-
Problem
-
Resolution: Done
-
Blocker
-
None
-
Example in Authoring Patten and all FHIR measures where encounterDiagnosis() is used.
-
Yes
-
EH
-
-
Test note: QI Core patterns to be updated
The function encounterDiagnosis() returns a list of QICore.Condition. However, the example in Authoring Pattern v4.1.1 is not using exists() in the evaluation of 'where' statement. Although both expressions are working in MADiE, we think exist() should be applied to a list.
Function -
define fluent function encounterDiagnosis(Encounter Encounter ):
Encounter.diagnosis D
return singleton from ([Condition] C where C.id = D.condition.reference.getId())
In Authoring Pattern -
define "Encounters with a Diabetes Condition": "Completed Encounters During the Measurement Period" CompletedEncounter where CompletedEncounter.encounterDiagnosis().code in "Diabetes"