FHIR Chat · memberof function documentation · fhirpath

Stream: fhirpath

Topic: memberof function documentation


view this post on Zulip 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

view this post on Zulip 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

view this post on Zulip 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()

view this post on Zulip 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

view this post on Zulip Brian Postlethwaite (Mar 02 2022 at 22:44):

Sounds like an issue with the expression.

view this post on Zulip Nick George (Mar 02 2022 at 22:48):

probably want

view this post on Zulip 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