-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ValueSet as a first-class type #226
Comments
Hi @cmoesel. We were discussing ValueSetRef and CodeSystemRef as first-class types at the Connecathon today. An update is being made to fix some issues with ValueSetRef and CodeSystemRef as first-class types in CQL with version 1.5.2. 1.5.2 correlates to CQL-to-ELM Translator 1.5.6. Bryn had mentioned this functionality wasn't available in cql-execution yet. He said a ticket needed to be created, so I volunteered. See Issue 259. I didn't see this ticket until afterward. Not sure if you want to merge tickets or, since this ticket seems to be specific to ValueSet references, leave Issue 259 open for the CodeSystem reference piece. Thoughts? |
I think it's likely we might implement these separately (one at a time), so it probably makes sense to have one issue for VS references and one for CS references. @JSRankins - can you update #259 to be specific to CodeSystems? And also include a reference to this ticket so that at least they are linked in some way? |
@cmoesel Done. |
Adding a note of support to this request from NCQA. A use case from our measures prompted this language update, and as such we are looking for engine support for the feature. |
(Updated description in Oct 2022 during backlog cleanup)
The CQL ValueSet type represents a reference to a value set, allowing that value set to be passed into CQL functions without the need to do a value set expansion (as in CQL 1.4).
To demonstrate how this might work, consider the following example:
This results in the following JSON:
Note that the function indicates that it takes a
ValueSet
, but when you invoke the function, it's actually aValueSetRef
that is passed in.Initial Zulip conversation: https://chat.fhir.org/#narrow/stream/179220-cql/topic/ValueSet.20Typing
The text was updated successfully, but these errors were encountered: