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
18 stars 6 forks source link

Implement library data requirements #181

Closed elsaperelli closed 1 year ago

elsaperelli commented 1 year ago

Summary

Before, we had only the option to calculate dataRequirements on a measure bundle. Now, we can calculate dataRequirements on a collection of Library resources (library bundle). This will be helpful when we implement Library/$data-requirements in the measure-repository-service.

New behavior

New function in Calculator.ts calculates library dataRequirements from a Library bundle. This is in addition to the calculateDataRequirements function that calculates the dataRequirements on a measure bundle.

Code changes

Testing guidance

LibraryDataRequirementsTestFiles.zip

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
84.89% (-0.84% πŸ”»)
1960/2309
🟑 Branches
73.46% (-0.36% πŸ”»)
1722/2344
🟒 Functions
87.44% (-1.28% πŸ”»)
348/398
🟒 Lines
85.17% (-0.81% πŸ”»)
1889/2218
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------- | :-------------------------------------------------------------- | :-------------------------------------------------------------- | :------------------------------------------------------------ | :--------------------------------------------------------- | | 🟑 |
`...` / DataRequirementHelpers.ts
|
78.83% (-19.21% πŸ”»)
|
80.53% (-11.39% πŸ”»)
|
71.43% (-28.57% πŸ”»)
|
79.7% (-18.3% πŸ”»)
|

Test suite run success

353 tests passing in 28 suites.

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