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

appliesResult to StratifierResult in detailed results output #308

Closed elsaperelli closed 2 months ago

elsaperelli commented 2 months ago

Summary

This PR adds an optional attribute to the StratifierResult interface so that we can report the result of a stratifier that includes an appliesTo extension for Patient-based Measures only.

New behavior

The appliesTo extension indicates which population a stratifier should apply to. If it is included on a Measure.group.stratifier, we now report the result of the stratifier AND the result of the population it applies to on the appliesResult attribute on the StratifierResult. The previous result attribute remains as it was: simply the result of the stratifier. The DetailedResults now contain the raw stratifier result in result (like before) as well as the result of the stratifier with the population result it applies to taken into consideration in appliesResult.

Code changes

Testing guidance

github-actions[bot] commented 2 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
85.35% (+0.09% πŸ”Ό)
2423/2839
🟑 Branches
72.89% (+0.09% πŸ”Ό)
2269/3113
🟒 Functions
87.47% (+0.1% πŸ”Ό)
433/495
🟒 Lines
85.65% (+0.09% πŸ”Ό)
2340/2732
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟑 |
`...` / MeasureReportBuilder.ts
|
73.26% (-0.67% πŸ”»)
|
54.77% (-1.21% πŸ”»)
|
66.67% (-0.98% πŸ”»)
|
76.02% (-0.57% πŸ”»)
|

Test suite run success

456 tests passing in 31 suites.

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