Stream: fhirpath
Topic: Are these two expressions equivalent in FHIRPath?
Steve Munini (Sep 05 2018 at 13:52):
(Patient.deceased as dateTime)
Patient.deceased.as(dateTime)
Grahame Grieve (Sep 05 2018 at 13:53):
I think that " as " isn't defined
Steve Munini (Sep 05 2018 at 14:05):
I just noticed that is new here: http://build.fhir.org/patient.html in the death-date search parameter: (Patient.deceased as dateTime). Used to be Patient.deceased.as(dateTime) in a previous version, so was wondering if these are the same. The FHIRpath spec provides this polymorphic example: (Observation.value as Quantity).unit, so I was wondering if this is maybe another style of using .as()
Brian Postlethwaite (Sep 05 2018 at 20:20):
"as" is defined http://hl7.org/fhirpath/#types
6.3.2 in the same way that "is" is defined.
Brian Postlethwaite (Sep 05 2018 at 20:20):
In this deceased example for filtering to the date type and not boolean type
Steve Munini (Sep 06 2018 at 00:29):
Thank you Brian. So, in my example above, I believe those two FHIRPath expressions are equivalent then - the .as() approach appears to serve the same function.
Last updated: Apr 12 2022 at 19:14 UTC