Details
-
Change Request
-
Resolution: Unresolved
-
Medium
-
Clinical Quality Language (FHIR)
-
1.4
-
Clinical Decision Support
-
Appendix B - Reference
Description
Multi-cardinality terminology targets work with value sets and code systems
because the terminology membership operator is specifically overridden to
support List-valued arguments on the left-hand side of the operator.
define ConditionCategoryCodes: [Condition: category in "Condition Category Codes"] define ConditionCategoryCodesLongHand: [Condition] C where C.category in "Condition Category Codes"
However, the analogous overloads don't exist for the singular case
(when the terminology expression is a direct-reference code or concept)
define ProblemListItems:
[Condition: category ~ "Condition Problem List Item"]
The analogous long-hand here is "contains", and that would require the introduction of a new terminology comparator in the retrieve.
Note it's not "just" a contains, in that it needs to use terminology comparison (i.e. equivalent), it's a "terminology contains", the opposite of a "terminology in" and should be resolved as such.
See the CQL-to-ELM translator issue Support multi-cardinality terminology targets · Issue #577 · cqframework/clinical_quality_language (github.com) for more information.