QA Diagnoses is a List on an Encounter, Performed - cqframework/CQL-Formatting-and-Usage-Wiki GitHub Wiki

Questions and Answers


Q&A - Diagnoses is a List on an Encounter, Performed

Question

I made the changes to the CQL for diagnoses it does not show any error in MAT but 2/3 test cases are still failing in Bonnie related to the diagnosis/facility location update 5.4.

Answer

It looks like the syntax you are using is:

  where Encounter.diagnoses in "Single Live Birth"

This is not the correct syntax as diagnoses is a list of diagnoses rather than a single diagnosis. It needs to be accessed similar to:

  where Encounter.diagnoses diagnosis where diagnosis in "Single Live Birth"