Stream: fhirpath
Topic: memberof function documentation
Nick George (Mar 02 2022 at 22:15):
Hello, I'm trying to find a source of truth for the memberof
definition. I see https://build.fhir.org/fhirpath.html but that doesn't define behavior for memberof
on a multi-valued codeable concept
Nick George (Mar 02 2022 at 22:16):
i.e., not just a codeable concept with multiple codings, but a multi-valued field of type codeable concept, e.g., Condition.category
Nick George (Mar 02 2022 at 22:17):
specifically, this is for the expression on UsCore Condition:
where(category.memberOf('http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category')).exists()
Nick George (Mar 02 2022 at 22:43):
Currently my fhirpath implementation bombs out on this because it wants memberOf
to operate on single-valued fields - I'm not sure if that's a bug in my implementation or in the expression in the US Core IG
Brian Postlethwaite (Mar 02 2022 at 22:44):
Sounds like an issue with the expression.
Nick George (Mar 02 2022 at 22:48):
probably want
Nick George (Mar 02 2022 at 22:49):
category.where(memberOf('http://hl7.org/fhir/us/core/ValueSet/us-core-condition-category')).exists()
Last updated: Apr 12 2022 at 19:14 UTC