STK 8 Annual Update Numerator CQL Help

XMLWordPrintable

    • 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!

        1. cqlit 96.docx
          140 kB
          Abrar Salam
        2. cqlit 96.docx
          38 kB
          Abrar Salam
        3. cqlit 96.docx
          140 kB
          Abrar Salam
        4. cqlit 96.docx
          140 kB
          Abrar Salam
        5. cqlit 96.docx
          140 kB
          Abrar Salam
        6. cqlit 96.docx
          38 kB
          Abrar Salam
        7. cqlit 96.docx
          38 kB
          Abrar Salam
        8. External E-Mail_ [ONC-JIRA] (BONNIE-439) STK 8 Annual Update Numerator test cases failing
          9 kB
          Abrar Salam
        9. External E-Mail_ [ONC-JIRA] (BONNIE-439) STK 8 Annual Update Numerator test cases failing
          9 kB
          Abrar Salam

            Assignee:
            Bryn Rhodes
            Reporter:
            Abrar Salam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: