code
A QDM attribute provides specific detail about a QDM datatype.
The single code or a member of the value set used to represent the quality data element. The code attribute explicitly specifies the value set (or DRC) filter such that the query will retrieve only values defined by the QDM data element value or value set. Previous versions of QDM datatypes implicitly refer to attributes about a set of items that are included in a value set.
- All QDM data elements require a QDM datatype with either a value set or DRC to specify the data element and a code is required.
- If the QDM data element’s attribute specifies a value set or DRC, the code attribute is required.
- If the QDM data element’s attribute does not specify a value set or DRC, the code attribute is not required.
Earlier versions did not explicitly state that the datatype attributes only refer to a specific item that is a member of the defined value set. The code is applied in the CQL Model Info16 used to translate the CQL into the Expression Logical Model (ELM) to enhance computer readability. Measure developers do not need to specify any additional code.