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

returnELM hotfix #239

Closed mgramigna closed 1 year ago

mgramigna commented 1 year ago

We should not only push on to elmLibraries if returnELM is true since building the clause and statement results depends on it. We only use this calculation option when determining if we should return it from the overall function call.

Keep track of all of them in a master list to be potentially returned at the end, but always reset the one within the loop so that only the ELM executed is passed in to the statement results list

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 86.41% 2174/2516
🟑 Branches 75.04% 1975/2632
🟒 Functions 88.91% 393/442
🟒 Lines 86.74% 2099/2420

Test suite run success

408 tests passing in 31 suites.

Report generated by πŸ§ͺjest coverage report action from 440b05a0bedb79d0183d09524b41337b111928da