Uploaded image for project: 'QDM Issue Tracker'
  1. QDM Issue Tracker
  2. QDM-130

QDM + CQL: Support Complex Attributes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Answered
    • Icon: Moderate Moderate
    • QDM v5.x
    • Data Model
    • None

      Currently, the QDM is a flat model; it does not allow for attributes to have a complex type. Every attribute must be a date, code, number, string, etc. This limitation is demonstrated in the "Encounter, Performed" data type attributes:

      • facility location
      • facility location arrival datetime
      • facility location departure datetime

      CQL allows complex attributes to be easily traversed using dot notation. Using the example above, instead of having the three attributes, "Encounter, Performed" could have a single "facility location" attribute that is of a complex type having the following sub attributes:

      • type
      • arrival datetime
      • departure datetime

      In CQL, you could access them like this:

      ["Encounter, Performed": "Inpatient"] E
        where E."facility location"."arrival datetime" during "Measurement Period"
      

      This approach would be especially valuable in representing encounter diagnoses and principal procedures (although that is admittedly a more significant change than facility location).

            FEisenberg Floyd Eisenberg
            chris.moesel Chris Moesel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: