projecttacoma / fqm-execution

fqm-execution is a library that allows users to calculate FHIR-based electronic Clinical Quality Measures (eCQMs) and retrieve the results in a variety of formats
https://projecttacoma.github.io/fqm-execution/
Apache License 2.0
17 stars 6 forks source link

Make highlighting backwards compatible with older translator versions #298

Closed elsaperelli closed 4 months ago

elsaperelli commented 4 months ago

Summary

Our most recent PR addresses updates to clause coverage calculation and highlighting that were necessary to reflect the functionality of the 3.7.1 version of the cql to elm translator. Due to the nature of changes to localId assignment in the translator versions, this broke just the highlighting of some aliases (no affect to clause coverage calculation) for measures that use older translator versions. This PR makes sure that highlighting is backwards compatible with the older translator version (there should be no change to highlighting).

New behavior

I have a comment in the code that details these translator version quirks, but essentially we can't always use the statement.localId if it exists for measures that were translated using the other translator. I was able to narrow this down to just With statements.

Code changes

Testing guidance

github-actions[bot] commented 4 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
85.47% (+0.01% 🔼)
2377/2781
🟡 Branches
73.28% (+0.04% 🔼)
2219/3028
🟢 Functions 88.15% 424/481
🟢 Lines
85.81% (+0.01% 🔼)
2297/2677

Test suite run success

451 tests passing in 31 suites.

Report generated by 🧪jest coverage report action from de0bba6f9c28dfe3a9ad3589ed21b88a0e6a4216