FHIR Chat · ValueSet without expansion? · cql

Stream: cql

Topic: ValueSet without expansion?


view this post on Zulip Sean McIlvenna (Feb 25 2021 at 23:21):

When using $evaluate-measure with a ValueSet, if no expansion is provided in the ValueSet, does it try to figure out the expansion? Or, does CQF-Ruler require that any ValueSet referenced by CQL already have the ValueSet.expansion populated?

view this post on Zulip JP (Feb 26 2021 at 00:47):

The $evaluate-measure operation recently (as of HAPI 5.3.0) moved from the cqf-ruler (which is a set of plugins for HAPI) and was put into the hapi-fhir-jpaserver-cql project. That means that the cqf-ruler is no longer in the picture for $evaluate-measure. The hapi-fhir server now supports $evaluate-measure natively.

view this post on Zulip JP (Feb 26 2021 at 00:49):

The hapi-fhir server currently always ignores the ValueSet.expansion element, even if it's supplied on the resource. It will always attempt to compute the ValueSet expansion based on the available CodeSystems.

view this post on Zulip JP (Feb 26 2021 at 00:50):

There's an issue on the hapi-fhir git repo tracking adding support for the ValueSet.expansion element:

https://github.com/hapifhir/hapi-fhir/issues/2376

view this post on Zulip JP (Feb 26 2021 at 00:52):

Because the ValueSet expansions are always computed you'll need appropriate CodeSystems loaded in order to do the expansion.

view this post on Zulip Sean McIlvenna (Feb 26 2021 at 21:55):

Thanks for the explanation @JP


Last updated: Apr 12 2022 at 19:14 UTC