Stream: fhirpath
Topic: composite search in FHIRPath
Ruby Nash (Apr 08 2022 at 20:49):
Can anyone give me some guidance on how to create a composite search in FHIRPath? Trying to find a way to be able to search through one resource to return three values, including one via extension (for example: given name, city, and extension.value[x]). Is that possible?
The individual pieces work, but it will not fire when I put them together with any of the following symbols: | + ,
Paul Lynch (Apr 08 2022 at 20:52):
Is there one answer for each of those pieces, or multiple?
Ruby Nash (Apr 11 2022 at 11:22):
one answer for each piece.
Bryn Rhodes (Apr 11 2022 at 15:33):
You should be able to combine the result of each expression using union, but there is currently no way to construct a "tuple", no.
Ruby Nash (Apr 12 2022 at 13:24):
Thanks, Bryn - can you post an example of how to express that union? Any attempts I've made using FHIRPath guidance to create a union have failed so far.
Bryn Rhodes (Apr 12 2022 at 16:11):
This should be working: Patient.name.given | Patient.address.city | Patient.extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex').value
What errors are you getting?
Last updated: Apr 12 2022 at 19:14 UTC