FHIR Chat · FHIRPath with Multiple Resources · implementers

Stream: implementers

Topic: FHIRPath with Multiple Resources


view this post on Zulip Ahmed Mohamed (Sep 11 2019 at 11:16):

Hi
I need some help with evaluating paths
I am looking for a way to evaluate multiple paths in different resource at the same time
Something like

exists(QuestionnaireResponse.item.where(linkId='8').answer.valueCoding.where(code='9')) and Patient.age > 16

Is there a straight forward way to do this using FhirPath or I am in the wrong direction
thanks

view this post on Zulip Grahame Grieve (Sep 11 2019 at 11:25):

the statement always executes with a single focus. in this case, it would presumably be the QuestionnnaireResponse. The patient would be QuestionnaireResponse.subject.resolve()..... Age itself is a calculation....

view this post on Zulip Ahmed Mohamed (Sep 11 2019 at 12:09):

Thanks Grahame
Is there a link to read more about this
I think resolve is not supported yet by fhirpath.js so I have to implement it myself.

view this post on Zulip Grahame Grieve (Sep 11 2019 at 12:11):

well, the FHIRPath spec, I guess


Last updated: Apr 12 2022 at 19:14 UTC