Skip to content
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

CodeSystem as first-class type #259

Open
JSRankins opened this issue Jan 12, 2022 · 2 comments
Open

CodeSystem as first-class type #259

JSRankins opened this issue Jan 12, 2022 · 2 comments

Comments

@JSRankins
Copy link

JSRankins commented Jan 12, 2022

ValueSetRef and CodeSystemRef were added as first-class types in CQL 1.5. Refer to http://www.hl7.org/dstucomments/showdetail_comment.cfm?commentid=1908. Some issues are being fixed with CQL 1.5.2 and have been addressed in the 1.5.6 CQL-to-ELM Translator. Capability needs to be added to the execution engine to support this 1.5 feature. This is a request to add capability for CodeSystemRef. Issue 226 is about adding ValueSetRef capability.

@JSRankins JSRankins changed the title Value Set Reference Capability in CQL 1.5 ValueSetRef and CodeSystemRef as first-class types Jan 12, 2022
@JSRankins JSRankins changed the title ValueSetRef and CodeSystemRef as first-class types CodeSystemRef as first-class type Jan 12, 2022
@cmoesel cmoesel added this to To do in CQL Spec Alignment Jan 12, 2022
@IrickNcqa
Copy link

Adding a note of support for this feature from NCQA.

@cmoesel cmoesel changed the title CodeSystemRef as first-class type CodeSystem as first-class type Oct 18, 2022
@cmoesel
Copy link
Member

cmoesel commented Oct 18, 2022

The CQL CodeSystem type represents a reference to a code system, allowing that code system to be passed into CQL functions.

To demonstrate how this might work, consider the following example:

library MyLibrary version '0.0.2'
codesystem MyCS: 'http://example.org/cs/mycs'
code Foo: 'Foo' from "MyCS" display 'Foo'

define function FooInCS(cs CodeSystem):
  Foo in cs

define IsFooInMyCVS:
  FooInCS(MyCS)

Much like the case for ValueSet (#226), the ELM representation of a function that takes a CodeSystem argument would be invoked with a CodeSystemRef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants