Closed sarahmcdougall closed 1 year ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 86.33% (+0.01% 🔼) |
2273/2633 |
🟡 | Branches | 75.52% (+0.02% 🔼) |
2101/2782 |
🟢 | Functions | 89.43% | 423/473 |
🟢 | Lines | 86.65% (+0.01% 🔼) |
2193/2531 |
426 tests passing in 31 suites.
Report generated by 🧪jest coverage report action from 9081e4a05dc7e61e7973d7d0573e79639c0c1212
Summary
Adds a new calculation option
disableHTMLOrdering
that disables CQL statement sorting in HTML output.New behavior
When the
disableHTMLOrdering
Calculation Option is used, the CQL statements in the HTML output do not get sorted based on the type of statement (population statement, non-function, function). See https://github.com/projecttacoma/fqm-execution/pull/242 for more information on the sorting that occurs when this calculation option is absent. By default,disableHTMLOrdering
is set tofalse
.Code changes
Calculator.ts
- Passes the disable option to the HTML generation functions for both logic highlighting and clause coverage highlightingHTMLBuilder.ts
- Makes the sorting conditional depending on the value ofdisableHTMLOrdering
types/Calculator.ts
- AddsdisableHTMLOrdering
to theCalculationOptions
interfaceTesting guidance
disableHTMLOrdering
calculation option and compare results. Here’s one approach for doing this:CervicalCancerScreeningFHIR
measure.Example CLI command:
options.disableHTMLOrdering = true;
inCalculator.ts
. Then, run calculation again with the same command as above, but change the output path to something likeunordered-output.json
.