cqframework / sample-content-ig

Sample Content IG
Apache License 2.0
7 stars 13 forks source link

Add profiles for the Data Requirements in Human readable #34

Closed adongare closed 9 months ago

adongare commented 10 months ago

There are some duplicate Data Requirements seen in the Data requirement section of the Human readable when CQL has both positive and negative profiles. e.g., Observation and ObservationNotDone.

Valueset “Standardized Tools Score for Assessment of Cognition”:
definition “x”:
   exists [Observation: “Standardized Tools Score for Assessment of Cognition”]
         or exists [ObservationNotDone: “Standardized Tools Score for Assessment of Cognition”]

MADiE is using the Data Requirements Processor to generate the effectiveDataRequiremets which will be used later to generate the human readable. We are using collapseDataRequirements translator option to remove duplicates. There are different criteria applied while filtering the duplicates and one of them is profiles. With the above CQL the HR generated will have the following data requirements, note highlighted ones: image

Although both data requirements are different, because we do not show profiles, they look exactly the same. Adding the profiles to the data requirements would help users to differentiate them.

brynrhodes commented 9 months ago

Included in 0.3.0