The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
It ended with an exception like java.lang.IllegalArgumentException: maritalStatus not found in Patient though we supply maritalStatus via a custom search parameter in FhirEngineConfiguration like below:
FhirEngineProvider.init(
FhirEngineConfiguration(
customSearchParameters =
listOf(
SearchParameter().apply {
addBase("Patient")
name = "maritalStatus"
code = "maritalStatus"
type = Enumerations.SearchParamType.TOKEN
expression = "Patient.maritalStatus.coding.code"
description = "Search the maritalStatus of Patient"
},
),
),
)
Expected behaviorx-fhir-query should consider the custom search parameter to pull related data.
Would you like to work on the issue?
A PR is created which resolves the issue.
Describe the bug Support for Custom Search Parameter implemented here #1382. But this doesn't work when we try to pull data via
x-fhir-query
.Component Core library - Engine
To Reproduce Steps to reproduce the behavior:
application/x-fhir-query
expression in the Questionnaire to pullPatient
datajava.lang.IllegalArgumentException: maritalStatus not found in Patient
though we supplymaritalStatus
via a custom search parameter inFhirEngineConfiguration
like below:Expected behavior
x-fhir-query
should consider the custom search parameter to pull related data.Would you like to work on the issue? A PR is created which resolves the issue.