FHIR Chat · referencing terminological valuesets in CQL · cql

Stream: cql

Topic: referencing terminological valuesets in CQL


view this post on Zulip Georg Fette (Nov 05 2018 at 09:20):

Hello, I have a question concerning the referenciation of terminological valueSets in CQL:
valuesets can be defined as an explicit statement in a CQL library. The valuesets can then be used with the operator "in" or with implicit filtering like [Encounter: "Inpatient"].
- can the valueset be implicitely be defined in the statement, like with: [Patient] A where P.gender in { Code '2.16.840.1.113883.3.560.100.2'}
- How can a valueset be defined that contains multple codes ? In the specification there are only examples that explicitely reference a valueset-id (e.g. "Acute Pharyngitis": '2.16.840.1.113883.3.464.1003.102.12.1011'). How would a valueset definition look like if the codes would be explicitely be mentioned in the value set definition, like with: valueset "Acute Pharyngitis": {'Code '66071002' from 'SNOMED-CT:2014'}
Greetings
Georg

view this post on Zulip Bryn Rhodes (Nov 05 2018 at 16:58):

CQL value set declarations only support referencing existing value set definitions, there is an intentional separation there because that's a terminology concern. You can specify "value sets" in CQL as a list of codes as you've done in the first example above.


Last updated: Apr 12 2022 at 19:14 UTC