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

Order population expressions for HTML output #260

Closed elsaperelli closed 1 year ago

elsaperelli commented 1 year ago

Summary

This is similar to Lauren's PR here where we sorted the statements into population statements, non-functions, and then function statements; however, now we also order the population statements in the following order:

  1. initial-population
  2. denominator
  3. denominator-exclusion
  4. denominator-exception
  5. numerator
  6. numerator-exclusion
  7. measure-population
  8. measure-population-exclusion
  9. measure-observation (alphabetically sorted if multiple)

...and then non-functions and function statements.

New behavior

Population expression statements are now sorted in the above order. This order is based on the following "egg": image

Code changes

Testing guidance

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
86.01% (+0.06% πŸ”Ό)
2312/2688
🟑 Branches
73.02% (+0.05% πŸ”Ό)
2130/2917
🟒 Functions
89.12% (+0.02% πŸ”Ό)
426/478
🟒 Lines
86.35% (+0.07% πŸ”Ό)
2233/2586

Test suite run success

433 tests passing in 31 suites.

Report generated by πŸ§ͺjest coverage report action from 1a5c44dbd8e8e5ef46147f4e030226c1b1e6538f