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

Logic Configuration CMS646

XMLWordPrintable

    • Icon: Question/Guidance Question/Guidance
    • Resolution: Done
    • Icon: Moderate Moderate
    • None
    • Working to clean up logic and add specificity in AU process.
    • Yes
    • QDM 5.6
    • Intravesical Bacillus-Calmette-Guerin for Non-Muscle Invasive Bladder Cancer
    • CMS0646v5
    • CMS0646v4
    • MADiE

      Hello,

      We are attempting to incorporate the "Bladder Cancer Diagnosis" using a .relatedTo attribute into the "First Bladder Cancer Staging Procedure" definition in CMS646 since the logic as it currently exists looks at any tumor staging. We have been making adjustments to the logic but cannot seem to get it to function as expected without any errors. I have attached the export of the CQL with the version that generates the least amount of errors. It is our belief that there is likely something small that we have missed in constructing this definition. 

      We have been referencing the following logic sequence from CMS129 as a model.

       

      define "Most Recent Prostate Cancer Staging T1a to T2a":

      ( Last((["Procedure, Performed": "Tumor staging (tumor staging)"] ProstateCaStaging
          where exists("Prostate Cancer Diagnosis" ProstateCaDx
              where ProstateCaDx.id in ProstateCaStaging.relatedTo)) ProstateCancerStaging
          with "First Prostate Cancer Treatment during day of Measurement Period" FirstProstateCancerTreatment
              such that Global."NormalizeInterval"(ProstateCancerStaging.relevantDatetime, ProstateCancerStaging.relevantPeriod) starts before start of Global."NormalizeInterval"(FirstProstateCancerTreatment.relevantDatetime, FirstProstateCancerTreatment.relevantPeriod)
              sort by start of Global."NormalizeInterval"(relevantDatetime, relevantPeriod)
          ) ) LastProstateCancerStaging
          where ( LastProstateCancerStaging.result ~ "American Joint Committee on Cancer cT1a (qualifier value)"
              or LastProstateCancerStaging.result ~ "American Joint Committee on Cancer cT1b (qualifier value)"
              or LastProstateCancerStaging.result ~ "American Joint Committee on Cancer cT1c (qualifier value)"
              or LastProstateCancerStaging.result ~ "American Joint Committee on Cancer cT2a (qualifier value)"
      )
       
      Thank you in advance for your help on this matter.

            pjmuirESAC Peter Muir
            britt.kent Britt Kent
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: