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

dataRequirements/gaps-in-care catch un-calculable intervals before they error out #274

Closed hossenlopp closed 11 months ago

hossenlopp commented 11 months ago

Summary

Fixes error with running dataRequirements on CMS1028.

New behavior

Now checks for query source alias usage (often done in a function call) in the Interval operator before attempting to calculate an Interval for a data requirement which would fail if one exists.

Also adds the ability to scan one level deep in folders when using --patient-directory. Also filters out non .json files. This is need to run the new MADiE test case export format.

Code changes

Testing guidance

Run unit tests. Run dataRequirements on CMS1028 and insure it doesn't error out.

For --patient-directory change: Ensure the functionality still is functional with a normal directory of patients. Move a patient into a sub folder and see if it is still executed.

github-actions[bot] commented 11 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
86.15% (+0.16% 🔼)
2333/2708
🟡 Branches
73.14% (+0.13% 🔼)
2140/2926
🟢 Functions
89.08% (+0.02% 🔼)
424/476
🟢 Lines
86.49% (+0.16% 🔼)
2254/2606

Test suite run success

435 tests passing in 31 suites.

Report generated by 🧪jest coverage report action from 92f16fec99d7f346eb2306a7581c840bb6ddee75

elsaperelli commented 11 months ago

Thanks for fixing the comment!