-
Type:
Logic/Intent/Data Elements
-
Resolution: Unresolved
-
Priority:
Moderate
-
None
-
CMS0529v6
Hi Team,
We have a few queries for below mentioned criteria.
FirstLabTestAfterHospitalizationStart(LabList List<QDM.PositiveLaboratoryTestPerformed>)
"Inpatient Encounters" Encounter
let FirstLab: First(LabList Lab
where Global."EarliestOf"(Lab.relevantDatetime, Lab.relevantPeriod) during Global."HospitalizationWithObservationAndOutpatientSurgeryService"(Encounter)
and Lab.result is not null
sort by resultDatetime )
where FirstLab is not null
return
Query 1:
From the statements we understand, Lab.relevantDatetime, Lab.relevantPeriod should be validated during Global."HospitalizationWithObservationAndOutpatientSurgeryService".
However, return value should for timing should be considered from QDM attribute resultDatetime.
Kindly confirm on our understanding.
Query 2:
Can Lab.relevantDatetime and resultDatetime have a different value?
Request you to respond at the earliest as our client deliverables are dependent on it.