CMS529v6-Timing as FirstLab.resultDatetime

XMLWordPrintable

    • Type: Logic/Intent/Data Elements
    • Resolution: Unresolved
    • Priority: Moderate
    • None
    • CMS0529v6

      Hi Team,

      We have a few queries for below mentioned criteria. 

      FirstLabTestAfterHospitalizationStart(LabList List<QDM.PositiveLaboratoryTestPerformed>)
        "Inpatient Encounters" Encounter
          let FirstLab: First(LabList Lab
           where Global."EarliestOf"(Lab.relevantDatetime, Lab.relevantPeriod) during Global."HospitalizationWithObservationAndOutpatientSurgeryService"(Encounter)
            and Lab.result is not null
             sort by resultDatetime  )
              where FirstLab is not null
               return

      {           EncounterId: Encounter.id,           FirstResult: FirstLab.result as Quantity,           Timing: FirstLab.resultDatetime           }

      Query 1:
      From the statements we understand, Lab.relevantDatetime, Lab.relevantPeriod should be validated during Global."HospitalizationWithObservationAndOutpatientSurgeryService".
      However, return value should for timing should be considered from QDM attribute resultDatetime.
      Kindly confirm on our understanding.

      Query 2:
      Can Lab.relevantDatetime and resultDatetime have a different value?

      Request you to respond at the earliest as our client deliverables are dependent on it.

            Assignee:
            CHM Admin User
            Reporter:
            Prajakta Ghadigaonkar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: