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

Condition.bodySite QICore 4.1.1 Authoring Pattern

XMLWordPrintable

    • Icon: Question/Guidance Question/Guidance
    • Resolution: Done
    • Icon: Moderate Moderate
    • None

      QICore 4.1.1 Condition.bodySite is a CodeableConcept with a 0..* cardinality. We are having trouble (i.e., not meeting 100% test case coverage in MADiE v1.3.1) accessing Condition.bodySite with a direct reference code using the following CQL pattern:

      define "Right Mastectomy Diagnosis":
        ( ["Condition": "Status Post Right Mastectomy"] RightMastectomyProcedure
          union ( ["Condition": "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
              where "Right (qualifier value)" in UnilateralMastectomyDiagnosis.bodySite
          ) ) RightMastectomy...

      The workaround (i.e., for meeting 100% test case coverage in MADiE) is to use the following pattern:

      define "Right Mastectomy Diagnosis":
        ( ["Condition": "Status Post Right Mastectomy"] RightMastectomyProcedure
          union ( ["Condition": "Unilateral Mastectomy, Unspecified Laterality"] UnilateralMastectomyDiagnosis
              where exists (UnilateralMastectomyDiagnosis.bodySite S where S ~ "Left (qualifier value)")
          ) ) RightMastectomy... 

      Question: Is there an explanation to this? Is this in any way related to the translator issue explored for Encounter.type per QICore 4.1.1 Authoring Patterns?

      Thank you!

            pjmuirESAC Peter Muir
            dlee38 Dorothy Lee
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: