Uploaded image for project: 'eCQM Issue Tracker'
  1. eCQM Issue Tracker
  2. CQM-6551

New Function definition CMD.RolloutIntervals(intervals List<Interval<Date>>)

XMLWordPrintable

    • Icon: EC eCQMs EC eCQMs
    • Resolution: Answered
    • Icon: Moderate Moderate
    • None
    • None
    • Hide
      Thank you for your inquiry for CMS136v13:Follow-Up Care for Children Prescribed ADHD Medication (ADD). The function "CMD.RolloutIntervals" is part of the measure's Initial Population 2 criteria requiring that patient remains on medication for at least 210 treatment days during the 301-day period. When considering treatment days (or covered days) for the same medications, the measure is looking for covered days based on total summed days supply. You should not need to count the gaps in between prescriptions; this function "CMD.RolloutIntervals" is designed to return a list of non-overlapping intervals where any overlaps in the input list have pushed out subsequent intervals, for same medications. It utilizes an aggregate query (https://cql.hl7.org/03-developersguide.html#aggregate-queries ) to return the union of the current result with an interval constructed from the greater of the day after the end of the last interval and the start of the current interval (i.e., Max({end of Last(R) + 1 day, start of X}), to the duration of days of the current interval later.

      The third example you referenced from Step 1 (same medications) is calculated in the logic as such. For example:

      CMD."MedicationOrderPeriod" of same medications:
      - 1/1-1/7 (7 days) Medication A
      - 1/1-1/7 (7 days) Medication A
      - 1/1-1/7 (7 days) Medication A
      - 1/20-1/26 (7 days) Medication A
      - 1/28-2/3 (7 days) Medication A

      "ADHD Medications Taken on IPSD or During Continuation and Maintenance Phase":
      - 1/1-1/7
      - 1/8-1/14
      - 1/15-1/21
      - 1/22-1/28
      - 1/29-2/4

      "ADHD Cumulative Medication Duration"
      - 35

      For Step 2, covered days between different medications with overlaps are not double counted. Below is another scenario illustrative of Step 1, 2 and 3:

      CMD."MedicationOrderPeriod" of same and different medications:
      - 1/1-1/7 (7 days) Medication A
      - 1/1-1/7 (7 days) Medication A
      - 1/1-1/7 (7 days) Medication A
      - 1/20-1/26 (7 days) Medication A
      - 1/28-2/3 (7 days) Medication A
      - 2/4-2/10 (7 days) Medication A
      - 2/4-2/10 (7 days) Medication B
      - 2/5-2/11 (7 days) Medication B

      "ADHD Medications Taken on IPSD or During Continuation and Maintenance Phase":
      - 1/1-1/7
      - 1/8-1/14
      - 1/15-1/21
      - 1/22-1/28
      - 1/29-2/4
      - 2/5-2/11
      - 2/4-2/10
      - 2/11-2/17

      "ADHD Cumulative Medication Duration"
      - 48
      Show
      Thank you for your inquiry for CMS136v13:Follow-Up Care for Children Prescribed ADHD Medication (ADD). The function "CMD.RolloutIntervals" is part of the measure's Initial Population 2 criteria requiring that patient remains on medication for at least 210 treatment days during the 301-day period. When considering treatment days (or covered days) for the same medications, the measure is looking for covered days based on total summed days supply. You should not need to count the gaps in between prescriptions; this function "CMD.RolloutIntervals" is designed to return a list of non-overlapping intervals where any overlaps in the input list have pushed out subsequent intervals, for same medications. It utilizes an aggregate query ( https://cql.hl7.org/03-developersguide.html#aggregate-queries ) to return the union of the current result with an interval constructed from the greater of the day after the end of the last interval and the start of the current interval (i.e., Max({end of Last(R) + 1 day, start of X}), to the duration of days of the current interval later. The third example you referenced from Step 1 (same medications) is calculated in the logic as such. For example: CMD."MedicationOrderPeriod" of same medications: - 1/1-1/7 (7 days) Medication A - 1/1-1/7 (7 days) Medication A - 1/1-1/7 (7 days) Medication A - 1/20-1/26 (7 days) Medication A - 1/28-2/3 (7 days) Medication A "ADHD Medications Taken on IPSD or During Continuation and Maintenance Phase": - 1/1-1/7 - 1/8-1/14 - 1/15-1/21 - 1/22-1/28 - 1/29-2/4 "ADHD Cumulative Medication Duration" - 35 For Step 2, covered days between different medications with overlaps are not double counted. Below is another scenario illustrative of Step 1, 2 and 3: CMD."MedicationOrderPeriod" of same and different medications: - 1/1-1/7 (7 days) Medication A - 1/1-1/7 (7 days) Medication A - 1/1-1/7 (7 days) Medication A - 1/20-1/26 (7 days) Medication A - 1/28-2/3 (7 days) Medication A - 2/4-2/10 (7 days) Medication A - 2/4-2/10 (7 days) Medication B - 2/5-2/11 (7 days) Medication B "ADHD Medications Taken on IPSD or During Continuation and Maintenance Phase": - 1/1-1/7 - 1/8-1/14 - 1/15-1/21 - 1/22-1/28 - 1/29-2/4 - 2/5-2/11 - 2/4-2/10 - 2/11-2/17 "ADHD Cumulative Medication Duration" - 48
    • CMS0136v13

      his query is regarding the National Committee for Quality Assurance stewarded measure CMS136V13. 

      The new function section definition, that is added for  

      CMD.RolloutIntervals(intervals List<Interval<Date>>) 

      • intervals I aggregate all R starting ( null as List<Interval<Date>>): R 
          union (
        Unknown macro: { I X       let S}

         
              return Interval[S, E]
          ) 

       

      Here, we want to confirm before proceeding with the development of the measure. 

      1. Does Start of X in the above function indicates-Start Date of the first medication & end of Last (R) signifies the Stop Date of the medication, which should be maximum according to the above function, so should we cover the gaps too? 
      1. If there’s a gap in between the start date and stop date (without overlaps of the same medication, are we considering it in the period for which the patient was on that medication or are we leaving the gaps and then considering the covered days for the medication?  

      Since in your definition section of the HR, The definition for treatment days step 1 says, ‘For same medications that are prescribed on the same day or on different days with overlapping days supply, the days supply is summed. The start and end dates are then identified. The start date is the date of service of the earliest prescription event and the first covered day.’ 

      Also on the contrary, there’s a given example in which it says, ‘If there are three 7-days supply prescription events for the same medication on January 1, a 7-days supply prescription event on January 20 and a 7-days supply prescription event on January 28, the start date is January 1 and the end date is February 4. Covered days include January 1–February 4. ‘  

      Here in the above example there’s a gap in between the prescription events and that too is not under the overlapping condition, so are we summing this kind of scenarios up and then calculating the covered days like the above example as its for Cumulative Medication Duration Greater Than or Equal to 210 Days? 

       

      1. Step 2: For all other events (multiple prescriptions for the same medication on different days without overlap, multiple prescriptions for different medications on the same or different days, with or without overlap), the covered days are identified by the start and end dates for each prescription event individually. The start date through the end date are considered covered days. This rule assumes the member will take the different medications concurrently. 

      Here in the above scenario also, are we summing the gaps between different medications even if the covered days events are calculated individually? 

            edave Mathematica EC eCQM Team
            Dgulati01 Devanshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Solution Posted On: