-
Bug/Issue
-
Resolution: Resolved
-
Major
-
None
-
MAT
-
MAT FHIR
-
FHIR/CQL
 MATGlobalCommonFunctionsFHIR4-5.0.000 has 2 functions with [Condition] in the where clause
define function "EncounterDiagnosis"(Encounter Encounter ):
Encounter.diagnosis D
return singleton from ([Condition] C where C.id = "GetId"(D.condition.reference))define function "PrincipalDiagnosis"(Encounter Encounter ):
(singleton from (Encounter.diagnosis D where FHIRHelpers.ToInteger(D.rank) = 1)) PD
return singleton from ([Condition] C where C.id = "GetId"(PD.condition.reference))
The MAT export does not specify Condition in the dataRequirement of the Library resource
See https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-719 for related Bonnie issue