File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
android/engine/src/main/java/org/smartregister/fhircore/engine/configuration/app Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,22 @@ interface ConfigService {
109
109
description = " Search the sort field"
110
110
}
111
111
112
+ val patientSearchParameter =
113
+ SearchParameter ().apply {
114
+ url = " http://smartregister.org/SearchParameter/patient-search"
115
+ addBase(" Patient" )
116
+ name = SEARCH_PARAM
117
+ code = SEARCH_PARAM
118
+ type = Enumerations .SearchParamType .STRING
119
+ expression = " Patient.name.text | Patient.identifier.value"
120
+ description = " Search patients by name and identifier fields"
121
+ }
122
+
112
123
return listOf (
113
124
activeGroupSearchParameter,
114
125
flagStatusSearchParameter,
115
126
medicationSortSearchParameter,
127
+ patientSearchParameter,
116
128
)
117
129
}
118
130
@@ -121,6 +133,7 @@ interface ConfigService {
121
133
const val APP_VERSION = " AppVersion"
122
134
const val STATUS_SEARCH_PARAM = " status"
123
135
const val SORT_SEARCH_PARAM = " sort"
136
+ const val SEARCH_PARAM = " search"
124
137
const val MEDICATION_SORT_URL = " http://smartregister.org/SearchParameter/medication-sort"
125
138
}
126
139
}
You can’t perform that action at this time.
0 commit comments