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

Statement name and library name info to HTML output for each define statement #250

Closed hossenlopp closed 1 year ago

hossenlopp commented 1 year ago

Summary

Adds the libraryName and statementName as extra data in the HTML output.

New behavior

Info is added to the <pre> tag for each define statement as data-library-name and data-statement-name attributes. Example:

<pre data-library-name="DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" data-statement-name="Initial Population">

Code changes

HTMLBuilder.ts - Adds statementName to the data collected and sent to the handlebars template. main.ts - Adds the data- attributes to the <pre> tag for the statement.

Testing guidance

Run unit tests.

Run calculation that outputs HTML. Detailed results with debug output would work. Look in HTML output for the data attributes in the <pre> tags. Spot check that they are identifying the statement name correctly for the statement content.

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 86.44% 2218/2566
🟑 Branches 75.25% 2037/2707
🟒 Functions 89.32% 410/459
🟒 Lines 86.78% 2140/2466

Test suite run success

411 tests passing in 31 suites.

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