Hi Team,
We have a query related to few functions for CMS108v8:
Query 1:
Global.HospitalizationWithObservation(Encounter "Encounter, Performed")
Encounter Visit
let ObsVisit: Last(["Encounter, Performed": "Observation Services"] LastObs
where LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod
sort by
end of relevantPeriod
),
VisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod),
EDVisit: Last(["Encounter, Performed": "Emergency Department Visit"] LastED
where LastED.relevantPeriod ends 1 hour or less on or before VisitStart
sort by
end of relevantPeriod
)
return Interval[Coalesce(start of EDVisit.relevantPeriod, VisitStart),
end of Visit.relevantPeriod]
In the above function please confirm whether we need to create multiple ED/Obs entries to test the LastED or LastObs cases as highlighted below.
If Yes, then how are we supposed to create multiple ED/Obs entries Kindly help us with examples because as per our understanding there can be only one ED location for an encounter
Query2:
During VTEICU."FromDayOfStartOfHospitalizationToDayAfterAdmission"(QualifyingEncounter)
Interval[Global."ToDate"(start of Global."HospitalizationWithObservation"(Encounter)), Global."ToDate"(start of Encounter.relevantPeriod + 2 days))
Interpretation:
Interval[Global."ToDate"(start of EDVisit.relevantPeriod (Enounter)), Global."ToDate"(start of *Encounter.relevantPeriod* + 2 days)]
where LastED.relevantPeriod ends 1 hour or less on or before Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod)
OR
Interval[Global."ToDate"(start of ObsVisit.relevantPeriod (Enounter)), Global."ToDate"(start of *Encounter.relevantPeriod* + 2 days)]
where LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod
OR
Interval[Global."ToDate"(start of Visit.relevantPeriod (Enounter)), Global."ToDate"(start of *Encounter.relevantPeriod* + 2 days)]
If the above interpretation is correct, then kindly confirm whether the highlighted encounter would be respective ED/Obs/IP encounter
Query3:
During TJC."CalendarDayOfOrDayAfter" ( end of AnesthesiaProcedure.relevantPeriod)
Interval[Global."ToDate"(StartValue), Global."ToDate"(StartValue + 2 days)) ( end of AnesthesiaProcedure.relevantPeriod)
Kindly confirm if StartValue = end of AnesthesiaProcedure.relevantPeriod in above scenario
+Query4: +
TJC."CalendarDayOfOrDayAfter"(start of QualifyingEncounter.relevantPeriod)
Interval[Global."ToDate"(StartValue), Global."ToDate"(StartValue + 2 days)) "(start of QualifyingEncounter.relevantPeriod)
Kindly confirm whether the Qualifying encounter highlighted above will be only IP or it can be anyone from ED/Obs/IP
Query5:
TJC."CalendarDayOfOrDayAfter"(start of Global."HospitalizationWithObservation")
Interpretation:
Interval[Global."ToDate"(StartValue), Global."ToDate"(StartValue + 2 days)) (start of EDVisit.relevantPeriod)
OR
Interval[Global."ToDate"(StartValue), Global."ToDate"(StartValue + 2 days)) (start of ObsVisit.relevantPeriod)
OR
Interval[Global."ToDate"(StartValue), Global."ToDate"(StartValue + 2 days)) (start of Visit.relevantPeriod)
Kindly confirm if the above Interpretation is correct.
Query6:
Please confirm validation for (StartValue + 2 days):
If "start of Encounter.relevantPeriod = 12/12/2019 13:00:00" so "start of "Encounter.relevantPeriod + 2 days" = 12/13/2019 11:00:00 OR 12/14/2019 11:00:00
(StartValue + 2 days)) ( end of AnesthesiaProcedure.relevantPeriod):
If StartValue = end of AnesthesiaProcedure.relevantPeriod which is 12/12/2019 13:00:00 so (StartValue + 2 days)) ( end of AnesthesiaProcedure.relevantPeriod) = 12/13/2019 11:00:00 OR 12/14/2019 11:00:00