Uploaded image for project: 'CQL Issue Tracker'
  1. CQL Issue Tracker
  2. CQLIT-325

Invalid unit calculation error assistance

XMLWordPrintable

    • Icon: Question Question
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • This impacts the upcoming publication for the measure.

      Hi Bonnie team,

      Would you kindly assist with troubleshooting this error message "Invalid unit 1"?

      This is in relation to but a separate issue from https://oncprojectracking.healthit.gov/support/browse/BONNIEMAT-1207 where there is a logic issue identified for “CumulativeDuration” function to handle null inputs from “RolloutIntervals” function.

      "CumulativeDuration" function has been removed and I am now only testing “RolloutIntervals” to make sure there are no errors in execution for that function first. "RolloutIntervals" is referenced/nested in these definitions: "Has ADHD Cumulative Medication Duration Greater Than or Equal to 210 Days" and "Initial Population 2". The error message (see screenshot) was displayed when uploading the draft MAT package (see attached) to Bonnie v5.1.2.

      It appears that the function "RolloutIntervals" is causing this error. Any insights you can provide to help narrow down the issue would be appreciated. Thank you!

      define function "RolloutIntervals"(intervals List<Interval<Date>> ):
        intervals I aggregate R starting ( null as List<Interval<Date>>): R
          union ( { I X
              let S: Max({ 
                end of Last(R)+ 1 day, start of X }
              ),
              E: S + duration in days of X
              return Interval[S, E]}
          ) 
      
      define "Has ADHD Cumulative Medication Duration Greater Than or Equal to 210 Days":
        "RolloutIntervals"("ADHD Medications Taken on IPSD or During Continuation and Maintenance Phase")
      
      define "Initial Population 2":
        AgeInYearsAt(date from start of "Intake Period")>= 6
          and AgeInYearsAt(date from 
            end of "Intake Period"
          )<= 12
          and exists "Qualifying Encounter"
          and "First ADHD Medication Prescribed During Intake Period" is not null
          and exists "Has ADHD Cumulative Medication Duration Greater Than or Equal to 210 Days"...

            eCQM Standards Team eCQM Standards Team
            dlee38 Dorothy Lee
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: