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
The fhir engine does not return any Patient resouce (patient resource should be returned, checked on our server)
Tried using Encounter.Patient in resource reference as well.
I could not find any documentation on how to use include with the search in fhir engine.
Is the code incorrect, or is it not returning the correct value?
@jingtang10@aditya-07 Thank you for the response. While exploring the search feature, I was able to find how to retrieve the included resouce successfully.
fhirEngine.search(ResourceType.Encounter) {
filter(
Encounter.TYPE, {
value = of(Coding("%SYSTEM_URL%", "%CODE%", ""))
}
)
filter(
Encounter.STATUS, {
value = of("%STATUS%")
}
)
include(ResourceType.Patient, Encounter.SUBJECT)
}.forEach { searchResult ->
val includedResource = searchResult.included?.get(Encounter.SUBJECT.paramName)[0] as Patient
}
}
Describe the Issue
Fhir engine search does not return correct data when using include.
when try to replicate the query
with fhir engine search method :
The fhir engine does not return any Patient resouce (patient resource should be returned, checked on our server)
Tried using Encounter.Patient in resource reference as well.
I could not find any documentation on how to use include with the search in fhir engine.
Is the code incorrect, or is it not returning the correct value?
@jingtang10 @fredhersch help would be appreciated.
Would you like to work on the issue?
The text was updated successfully, but these errors were encountered: