-
Type:
Question
-
Resolution: Done
-
Priority:
Critical
-
Component/s: None
-
Annual Update Deadline
-
EH
-
Stroke Education
HI Bryn. During the Annual update cycle revisions for TJC's STK 8 measure, you had a comment for the Numerator CQL section - "Consider simplifying with a single expression with multiple withs, rather than multiple intersections, eacah of which use the same primary source" - Bryn.
Below is the original CQL you commented on and below this one is the one I mocked up -
( ( ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Activation of Emergency Medical System Education"] EMSEducation
such that EMSEducation.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
intersect ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Instructions for Follow Up After Discharge"] FollowUpInstructions
such that FollowUpInstructions.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
intersect ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Prescribed Medications Education"] MedicationEducation
such that MedicationEducation.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
intersect ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Risk Factors Education"] RiskEducation
such that RiskEducation.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
intersect ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Warning Signs and Symptoms Education"] WarningSigns
such that WarningSigns.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
intersect ( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ["Communication: From Provider To Patient": "Written Information Given"] WrittenInformation
such that WrittenInformation.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
union ( "Encounter Without Written Discharge Information" )
)
)
You mentioned use multiple "with"s instead of "intersect". I am not sure how that would look like. I mocked up a version - does this look right?
( "Encounter With Discharge To Home Or Police Custody" HomeOrPoliceDischarge
with ( ["Communication: From Provider To Patient": "Activation of Emergency Medical System Education"]
intersect ["Communication: From Provider To Patient": "Instructions for Follow Up After Discharge"]
intersect ["Communication: From Provider To Patient": "Prescribed Medications Education"]
intersect ["Communication: From Provider To Patient": "Risk Factors Education"]
intersect ["Communication: From Provider To Patient": "Warning Signs and Symptoms Education"]
intersect ["Communication: From Provider To Patient": "Written Information Given"] ) ProviderCommunication
such that ProviderCommunication.authorDatetime during HomeOrPoliceDischarge.relevantPeriod
)
Thanks for your help!