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 response is a Bundle with total: 1 containing only the Composition.
Environment
Which version of LinuxForHealth FHIR Server?
v4
To Reproduce
Create a Composition resource with nested sections and entry fields, attempt to retrieve all referenced entry resources using Composition search with an _include Composition:entry parameter.
Expected behavior
I expected all resources referenced in Composition.section.section.entry to be included in the search bundle.
The text was updated successfully, but these errors were encountered:
My guess is that means the search parameter is only capturing the top-level sections of the Composition; given that Composition.section is explicitly recursive, this is probably not conformant.
Incidentally, I suspect this is an issue with other resources/search params with a recursive structure, such as Questionnaire:definition.
According to the current normative version of FHIRPath, the correct way of doing this is "expression": "Composition.repeat(section).entry".
Likewise with Questionnaire items.
Describe the bug
I have a Composition with two layers of sections, and resources referenced in the "entry" field of the subsection:
I place a search call, attempting to retrieve the Composition and all associated entry resources.
curl -X 'GET' 'http://localhost:3001/fhir-server/api/v4/Composition?encounter=18950d5c0c9-1806ad9f-e7da-422c-be68-a08b3f5a6241&_include=Composition:entry&_include:iterate=AdverseEvent:substance&_include:iterate=MedicationAdministration:medication&_include:iterate=MedicationDispense:medication&_include:iterate=Medication:ingredient' -H 'accept: application/fhir+json'
The response is a Bundle with total: 1 containing only the Composition.
Environment
Which version of LinuxForHealth FHIR Server?
v4
To Reproduce
Create a Composition resource with nested sections and entry fields, attempt to retrieve all referenced entry resources using Composition search with an _include Composition:entry parameter.
Expected behavior
I expected all resources referenced in Composition.section.section.entry to be included in the search bundle.
The text was updated successfully, but these errors were encountered: