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

Working of Measure ELM JSON file of eCMS 2020 measure #157

Open shardulbanker opened 4 years ago

shardulbanker commented 4 years ago

Hi,

Can I use directly ELM JSON file provided as part of 2020 Measure bundle of CMS? Can I put the same provided file under spec\fixtures\json\cqm_measures\.json?

Is it work as expected or do I need to make any changes?

Thanks.

Nadeem16011993 commented 4 years ago

Hello shardulbanker,

Did you find any solution for your query , i also had the same query

Thanks

Nadeem16011993 commented 4 years ago

@mayerm94 @okeefm can you help with the above query

Thanks and Regards Nadeem

mayerm94 commented 4 years ago

I haven't worked with this repo in a while but my guess is no, you cannot do that since spec\fixtures\json\cqm_measures.json is a directory containing test fixtures and the measure.jsons that you find in that directory do not appear to be ELM json. Open a measure file in spec\fixtures\json\cqm_measures.json and open your ELM json, do they look like they are representing the same type of content?

Nadeem16011993 commented 4 years ago

Exactly they both are totally different, spec\fixtures\json\cqm_measures.json has a totally different format , attached a img.

Any idea how to generate this format and also the QDM Patient format used in this project

Thanks Nadeem

Measure

mayerm94 commented 4 years ago

If I recall correctly https://github.com/projecttacoma/bonnie/blob/master/spec/javascripts/fixtures/json/README details how these fixtures were generated. You might have to spin up an instance of Bonnie to create patients for the measure you're trying to test. Again, it's been a while since I worked with this codebase so some of my knowledge might be dated.

Nadeem16011993 commented 4 years ago

Also i happened to see that the result we get when we run this project for CMS107v6 or be it any other Measure, Its not same as the expected values for IPP, NUMER, DENOM,, DENEX given in the spec\fixtures\json\patients of that particular Measure like in this case CMS107v6 , can see the image below

Any inputs on that ?

Thanks Nadeem Measure_result

mayerm94 commented 4 years ago

Are you sure that those are the calculated results for the right patient? Other than that, it's hard to tell without debugging the measure execution to see why the expected values don't align with the actual values.

Nadeem16011993 commented 4 years ago

My aim was to calculate ecqm automatically using CQL , as currently i was doing it manually for every measure using stored procedure. I found this calculation engine so was testing it out with the sample measures which it already has . So i used Measure CMS107v6 and corresponding patient file DENEXPass_CMOduringED

keshavr19 commented 3 years ago

@Nadeem16011993 Were you able to calculate the results for CMS measures based on the library. We are trying to execute the 2021 CMS measures using the library but we are also not getting the expected results. We tried to generate the measure data, value sets and test patients as mentioned in https://github.com/MeasureAuthoringTool/bonnie/tree/master/spec/javascripts/fixtures/json.

@mayerm94 Can this be due to the dependency on the particular version of cqm-models?