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

Fix QueryFilter parsing on optional Query relationship field #305

Closed hossenlopp closed 1 month ago

hossenlopp commented 1 month ago

Summary

Fixes an issue found in CMS816 bundle from May 2024 connectathon. The ELM in one of the libraries has a Query expression that has the relationship field not existent instead of as an empty array. This is allowed by the CQL logical specification. This issue can cause the dataRequirements operation to fail.

New behavior

Only copies the relationship info if it actually exists.

Code changes

Testing guidance

Ensure CMS861 does not error out when doing dataRequirement.

github-actions[bot] commented 1 month ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
85.16% (+0.01% πŸ”Ό)
2393/2810
🟑 Branches
73.01% (+0.01% πŸ”Ό)
2224/3046
🟒 Functions 87.47% 426/487
🟒 Lines
85.47% (+0.01% πŸ”Ό)
2312/2705

Test suite run success

451 tests passing in 31 suites.

Report generated by πŸ§ͺjest coverage report action from 3b13b6986ef62e988d27d1fccbf6a2d88c96982f