Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom search param for Patient name and identifier #3563

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,22 @@ interface ConfigService {
description = "Search the sort field"
}

val patientSearchParameter =
SearchParameter().apply {
url = "http://smartregister.org/SearchParameter/patient-search"
addBase("Patient")
name = SEARCH_PARAM
code = SEARCH_PARAM
type = Enumerations.SearchParamType.STRING
expression = "Patient.name.text | Patient.identifier.value"
description = "Search patients by name and identifier fields"
}

return listOf(
activeGroupSearchParameter,
flagStatusSearchParameter,
medicationSortSearchParameter,
patientSearchParameter,
)
}

Expand All @@ -121,6 +133,7 @@ interface ConfigService {
const val APP_VERSION = "AppVersion"
const val STATUS_SEARCH_PARAM = "status"
const val SORT_SEARCH_PARAM = "sort"
const val SEARCH_PARAM = "search"
const val MEDICATION_SORT_URL = "http://smartregister.org/SearchParameter/medication-sort"
}
}
Loading