Hide
Proposed Solution:
Using Date, instead of DateTime, aligns with how the logic is captured in other measures (e.g., Influenza).
BEFORE
First Referral during First 10 Months of Measurement Period
First(((["Intervention, Performed": "Referral"] ReferralPerform
where Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)ends during day of Interval[start of "Measurement Period", DateTime(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralPerform.id,
dateIntervention:
end of Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)
}
)
union(["Intervention, Order": "Referral"] ReferralOrder
where ReferralOrder.authorDatetime during day of Interval[start of "Measurement Period", DateTime(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralOrder.id,
dateIntervention: ReferralOrder.authorDatetime
}
))ReferralInterventions
sort by dateIntervention ascending
)
AFTER
First Referral during First 10 Months of Measurement Period
First(((["Intervention, Performed": "Referral"] ReferralPerform
where Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)ends during day of Interval[start of "Measurement Period", Date(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralPerform.id,
dateIntervention:
end of Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)
}
)
union(["Intervention, Order": "Referral"] ReferralOrder
where ReferralOrder.authorDatetime during day of Interval[start of "Measurement Period", Date(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralOrder.id,
dateIntervention: ReferralOrder.authorDatetime
}
))ReferralInterventions
sort by dateIntervention ascending
)
Rationale for Change:
This update improves harmonization of timing specificity across similar measures.
Show
Proposed Solution:
Using Date, instead of DateTime, aligns with how the logic is captured in other measures (e.g., Influenza).
BEFORE
First Referral during First 10 Months of Measurement Period
First(((["Intervention, Performed": "Referral"] ReferralPerform
where Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)ends during day of Interval[start of "Measurement Period", DateTime(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralPerform.id,
dateIntervention:
end of Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)
}
)
union(["Intervention, Order": "Referral"] ReferralOrder
where ReferralOrder.authorDatetime during day of Interval[start of "Measurement Period", DateTime(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralOrder.id,
dateIntervention: ReferralOrder.authorDatetime
}
))ReferralInterventions
sort by dateIntervention ascending
)
AFTER
First Referral during First 10 Months of Measurement Period
First(((["Intervention, Performed": "Referral"] ReferralPerform
where Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)ends during day of Interval[start of "Measurement Period", Date(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralPerform.id,
dateIntervention:
end of Global."NormalizeInterval"(ReferralPerform.relevantDatetime, ReferralPerform.relevantPeriod)
}
)
union(["Intervention, Order": "Referral"] ReferralOrder
where ReferralOrder.authorDatetime during day of Interval[start of "Measurement Period", Date(year from start of "Measurement Period", 10, 31)]
return {
identification: ReferralOrder.id,
dateIntervention: ReferralOrder.authorDatetime
}
))ReferralInterventions
sort by dateIntervention ascending
)
Rationale for Change:
This update improves harmonization of timing specificity across similar measures.