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

Composite measure weighted scoring #236

Closed elsaperelli closed 1 year ago

elsaperelli commented 1 year ago

Summary

This PR adds support for calculating measure reports for composite measures with the weighted scoring type. More information regarding the component-level weighted scoring type can be found here.

New behavior

Before, if you tried to build a measure report from a composite measure with scoring type weighted, you got the following error: "Weighted scoring not implemented for composite measures". Now, you can build a measure report from a composite measure with scoring type weighted!

Code changes

Code change explanations

Testing guidance

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
86.42% (+0.01% πŸ”Ό)
2202/2548
🟑 Branches
75.18% (+0.14% πŸ”Ό)
2014/2679
🟒 Functions
88.77% (-0.15% πŸ”»)
403/454
🟒 Lines
86.75% (+0.01% πŸ”Ό)
2127/2452
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------- | :------------------------------------------------------------- | :---------------------------------------------------------- | :------------------------------------------------------------- | :------------------------------------------------------------- | | 🟑 |
`...` / MeasureReportBuilder.ts
|
72.49% (-0.54% πŸ”»)
| 55.81% |
67.19% (-2.17% πŸ”»)
|
75.21% (-0.63% πŸ”»)
| | 🟒 |
`...` / CompositeReportBuilder.ts
|
98.04% (-1.96% πŸ”»)
|
80.86% (+0.86% πŸ”Ό)
| 100% |
98.04% (-1.96% πŸ”»)
|

Test suite run success

409 tests passing in 31 suites.

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