cqframework / clinical_quality_language

Clinical Quality Language (CQL) is an HL7 specification for the expression of clinical knowledge that can be used within both the Clinical Decision Support (CDS) and Clinical Quality Measurement (CQM) domains. This repository contains complementary tooling in support of that specification.
https://confluence.hl7.org/display/CDS/Clinical+Quality+Language
Apache License 2.0
267 stars 123 forks source link

Set ValueSetRef.preserve to true for included value sets #1409

Closed antvaset closed 2 months ago

antvaset commented 2 months ago

Closes #1407.

Starting with version 1.5, ValueSetRefs need to have preserve set to true during translation so that ValueSetRefEvaluator does not expand them during execution. Currently, this is only applied to the ValueSetRefs that point to value sets from the same library and not when the value set comes from an included library (i.e. not when ValueSetRefs are constructed from imported ValueSetDefs). The fix is to set ValueSetRef.preserve to true in both cases.

github-actions[bot] commented 2 months ago

Formatting check succeeded!

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 63.73%. Comparing base (05c2bd3) to head (917ea2c). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1409 +/- ## ============================================ - Coverage 63.73% 63.73% -0.01% - Complexity 2665 2666 +1 ============================================ Files 494 494 Lines 27834 27836 +2 Branches 5527 5528 +1 ============================================ + Hits 17740 17741 +1 - Misses 7851 7852 +1 Partials 2243 2243 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.