Closed hossenlopp closed 11 months ago
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 |
435 tests passing in 31 suites.
Report generated by 🧪jest coverage report action from 92f16fec99d7f346eb2306a7581c840bb6ddee75
Thanks for fixing the comment!
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
src/cli.ts
- New function for finding json files in a given directory and immediate sub directory. Use this function when--patient-directory
is defined.src/gaps/QueryFilterParser.ts
- Added function to find AliasRef usage and expanded the search for bothAliasRef
andProperty
usages to properly traverse thelow
andhigh
properties of an ELM Interval statement. This are used to not attempt interval calculation and denote an unknown filter while parsing a comparison to an interval for gaps of care and data requirements.src/types/ELMTypes
- Added some missing ELM Types that were needed for unit tests.test/unit/queryFilters/interpretIn.test.ts
- Unit tests for theseTesting 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.