You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: claimManagement/src/main/java/org/openimis/imisclaims/SQLHandler.java
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ public class SQLHandler extends SQLiteOpenHelper {
48
48
privatestaticfinalStringCreateTableItems = "CREATE TABLE IF NOT EXISTS tblItems(Id text, Code text, Name text, Type text, Price text);";
49
49
privatestaticfinalStringCreateTableSubServices = "CREATE TABLE IF NOT EXISTS tblSubServices(ServiceId text, ServiceLinked text, Quantity text, Price text);";
50
50
privatestaticfinalStringCreateTableSubItems = "CREATE TABLE IF NOT EXISTS tblSubItems(ItemId text, ServiceId text, Quantity text, Price text);";
51
+
privatestaticfinalStringCreateTableHealthFacilities = "CREATE TABLE IF NOT EXISTS tblHealthFacilities(Id TEXT, Code TEXT, Name TEXT);";
51
52
52
53
publicfinalStringREFERENCE_UNKNOWN;
53
54
@@ -198,6 +199,15 @@ public Cursor SearchDisease(String InputText) {
198
199
returnc;
199
200
}
200
201
202
+
publicCursorSearchHF(StringInputText) {
203
+
Cursorc = db.rawQuery("SELECT Code as _id,Code, Name FROM tblHealthFacilities WHERE Code LIKE '%" + InputText + "%' OR Name LIKE '%" + InputText + "%'", null);
0 commit comments