Closed lmd59 closed 1 year ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 85.79% (+0.39% πΌ) |
2040/2378 |
π‘ | Branches | 74.36% (+0.38% πΌ) |
1821/2449 |
π’ | Functions | 88.02% (+0.52% πΌ) |
360/409 |
π’ | Lines | 86.1% (+0.4% πΌ) |
1969/2287 |
382 tests passing in 29 suites.
Report generated by π§ͺjest coverage report action from 70090135ae25aee5469a5b7bee0ab96941890c91
Summary
Updates SDEResult interface to make
name
optional (not really a useful piece of information, but we're keeping it around for backwards compatibility) and addid
,criteriaExpression
, andusage
as result properties (usage
required). UpdatesgetSDEValues
function accordingly to populate these properties.New behavior
Output from calculation with SDEs includes these new properties
Code changes
ClauseResultsBuilder.ts
includes updates togetSDEValues
to populate propertiesCalculator.ts
types file includes updates to theSDEResult
interfaceincludes added
getSDEValues` unit testsimple-measure.json
fixture includes addedsupplementalData
id
MeasureReportBuilder.addSDE.test.ts
andMeasureReportBuilder.test.ts
to include new properties as part of test data objectsTesting guidance
npm run check
detailed -m "ecqm-content-r4-2021/bundles/measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR-bundle.json" -p "ecqm-content-r4-2021/bundles/measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR-files/tests-numer-CMS122-bundle.json" --debug -o
-> Searchoutput.json
file for"supplementalData":
to find the updated supplemental data, which should includeid
,criteriaExpression
, andusage