CMS844v5- Query regarding OutpatientSurgeryService and PhysicalExam Result

XMLWordPrintable

    • Type: Logic/Intent/Data Elements
    • Resolution: Unresolved
    • Priority: Moderate
    • None
    • CMS1218v1
    • Not measure related

      Hi Team,
       
      Below mentioned are statements from cms844v5:
       
      Query 1:
      Global.HospitalizationWithObservationAndOutpatientSurgeryService(Encounter "Encounter, Performed")
      Encounter Visit
      let ObsVisit: Last(["Encounter, Performed": "Observation Services"] LastObs
      where LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod
      sort by 
      end of relevantPeriod
      ),
      VisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod),
      EDVisit: Last(["Encounter, Performed": "Emergency Department Visit"] LastED
      where LastED.relevantPeriod ends 1 hour or less on or before VisitStart
      sort by 
      end of relevantPeriod
      ),
      VisitStartWithED: Coalesce(start of EDVisit.relevantPeriod, VisitStart),
      OutpatientSurgeryVisit: Last(["Encounter, Performed": "Outpatient Surgery Service"] LastSurgeryOP
      where LastSurgeryOP.relevantPeriod ends 1 hour or less on or before VisitStartWithED
      sort by 
      end of relevantPeriod
      )
      return Interval[Coalesce(start of OutpatientSurgeryVisit.relevantPeriod, VisitStartWithED), 
      end of Visit.relevantPeriod]
       
      We have a query regarding the criteria for OutpatientSurgeryVisit.
       
      Based on below scenario, let us know if the Patient ABC would qualify for Global.HospitalizationWithObservationAndOutpatientSurgeryService.
       
      OSS-ED-OBS-IP
      Outpatient Surgery Service Discharge 1 hr before ED Admit
      Data :
      OSS Admit 6/1/2025 06:00:00
      OSS Discharge 6/1/2025 07:00:00
       
      EDAdmitDate : 6/1/2025 08:0:00
      EDDischargeDate : 6/1/2025 09:00:00
       
      Medicare payer:
      Start of participation period: 1/1/2025 00:00:00 
      End of participation period: 12/31/2025 00:00:00
       
      DOB: 1/1/1957 00:00:00
       
      ["Encounter, Performed": "Observation Services"]
      Obs admitdate: 6/1/2025  09:00:00
      Obs Dischargedate:  6/1/2025  10:00:00
      Code: 448951000124107, Code System: SNOMEDCT
       
      ["Encounter, Performed": "Inpatient Encounter"]
      IP Admit Date: 6/1/2025 10:00:00
      IP Discharge Date: 6/10/2025 23:59:59
      Code: 183452005, Code System: SNOMEDCT
       
      (LAB) Procedure startdate: IP Admit date: 6/1/2025 10:00:00
      code: 20570-8
       
      Query2:
      FirstPhysicalExam24HoursBeforeOr2HoursAfterInpatientStart(ExamList List<QDM.PositivePhysicalExamPerformed>)
      "Inpatient Encounters" Encounter
        let FirstExam: First(ExamList Exam
            where Global."EarliestOf"(Exam.relevantDatetime, Exam.relevantPeriod) during Interval[start of Encounter.relevantPeriod - 1440 minutes, start of Encounter.relevantPeriod + 120 minutes]
              and Exam.result is not null
            sort by Global."EarliestOf"(relevantDatetime, relevantPeriod)
        )
        return

      {     EncounterId: Encounter.id,     FirstResult: FirstExam.result as Quantity,     Timing: Global."EarliestOf" ( FirstExam.relevantDatetime, FirstExam.relevantPeriod )   }

       
      Are we supposed to validate units for while checking Exam.result as not null. Measure specification(CQL section) does not specify to check units. Kindly confirm.
       
      Kindly assist us on the above queries urgently as client deliverables are dependent upon it.

            Assignee:
            Rachelle Zribi
            Reporter:
            Prajakta Ghadigaonkar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: