Hide
Proposed solution
We propose to remove TJC.TruncateTime() from the TJCOverall Library.This function will be replaced with 'date from' in the following functions in TJCOverall library and VTE library to be:
1) TJC.CalendarDayOfOrDayAfter()
Interval[date from (StartValue), date from (StartValue + 1 day)]
2) VTE.FromDayOfStartOfHospitalizationToDayAfterAdmission():
Interval[date from ( start of Global."HospitalizationWithObservation" ( Encounter ) ), date from ( start of Encounter.relevantPeriod + 1 days)]
3) VTE.FromDayOfStartOfHospitalizationToDayAfterFirstICU():
Interval[date from ( start of Global."HospitalizationWithObservation" ( Encounter ) ), date from ( StartOfFirstICU(Encounter)+ 1 day ) ]
4). Update VTE-1 definition "Encounter with ICU Location Stay 1 Day or More" to:
VTE."Encounter with Age Range and without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
where ...
and Location.locationPeriod starts on or after start of QualifyingEncounter.relevantPeriod
and Location.locationPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod
)
Rationale for change
This change is intended to simplify definitions without any impact to the logic results. This change will also alleviate an issue with the TJC.TruncateDateTime() function where cases unintentionally failed the logic due to the function still capturing the time zone.
Show
Proposed solution
We propose to remove TJC.TruncateTime() from the TJCOverall Library.This function will be replaced with 'date from' in the following functions in TJCOverall library and VTE library to be:
1) TJC.CalendarDayOfOrDayAfter()
Interval[date from (StartValue), date from (StartValue + 1 day)]
2) VTE.FromDayOfStartOfHospitalizationToDayAfterAdmission():
Interval[date from ( start of Global."HospitalizationWithObservation" ( Encounter ) ), date from ( start of Encounter.relevantPeriod + 1 days)]
3) VTE.FromDayOfStartOfHospitalizationToDayAfterFirstICU():
Interval[date from ( start of Global."HospitalizationWithObservation" ( Encounter ) ), date from ( StartOfFirstICU(Encounter)+ 1 day ) ]
4). Update VTE-1 definition "Encounter with ICU Location Stay 1 Day or More" to:
VTE."Encounter with Age Range and without VTE Diagnosis or Obstetrical Conditions" QualifyingEncounter
where ...
and Location.locationPeriod starts on or after start of QualifyingEncounter.relevantPeriod
and Location.locationPeriod ends 1 day after day of start of QualifyingEncounter.relevantPeriod
)
Rationale for change
This change is intended to simplify definitions without any impact to the logic results. This change will also alleviate an issue with the TJC.TruncateDateTime() function where cases unintentionally failed the logic due to the function still capturing the time zone.