projecttacoma / cqm-execution

NPM module for calculating eCQMs (electronic clinical quality measures) written in CQL (clinical quality language).
Apache License 2.0
10 stars 2 forks source link

Using index to differentiate between reused observation definitions f… #261

Closed RohitKandimalla closed 6 months ago

RohitKandimalla commented 6 months ago

…or multiple groups

Pull requests into cqm-execution require the following. Submitter and reviewer should :white_check_mark: when done. For items that are not-applicable, note it's not-applicable ("N/A") and :white_check_mark:.

https://jira.cms.gov/browse/MAT-6782 Contents from reported bug image

Scenario: When a same function definition is used as an observation in more than 1 group, Observation results are not captured for the 1st group. This is due to overwriting of existing object while generating ELM JSON. This PR is to make sure every observation definition that is in a measure has its own unique observationDef name i.e by marking it with an index.

Submitter:

Reviewer 1:

Name:

Reviewer 2:

Name: