Skip to content

QDM Related Formatting Conventions

Bryn Rhodes edited this page Oct 28, 2016 · 4 revisions

QDM-Specific Formatting Conventions

In addition to general CQL Formatting Conventions, the following guidelines are intended to promote consistency and reusability of CQL developed for measures that use the Quality Data Model (QDM) to represent patient information.

Library-level Identifiers

Identifiers for top-level constructs including named expressions, functions, parameters, code systems, value sets, concepts, and codes should follow these guidelines:

  • Always use quoted identifiers
  • Use Title Case and appropriate spacing
  • Provide a descriptive, meaningful name

For example:

define "Encounters During Measurement Period":
  "Valid Encounters" Encounter
    where Encounter.relevantPeriod during "Measurement Period"

define function "ED Stay Time"(Encounter "Encounter, Performed"):
duration in minutes of Encounter.locationPeriod

Data Type Names

  • Always use quoted identifiers
  • Use PascalCase plus appropriate spacing
  • Use the friendly name

For example:

["Encounter, Performed"]

Attribute Names

  • Never use quoted identifiers
  • Use camelCase

For example:

relevantPeriod
authorDatetime
prevalencePeriod

Aliases and Argument Names

  • Never use quoted identifiers
  • Use PascalCase
  • Don't use abbreviations
  • Use descriptive names

For example:

define "Encounters During Measurement Period":
  "Valid Encounters" Encounter
    where Encounter.relevantPeriod during "Measurement Period"

define function "ED Stay Time"(Encounter "Encounter, Performed"):
duration in minutes of Encounter.locationPeriod

Wiki Index

Home

Authoring Patterns - QICore v4.1.1

Authoring Patterns - QICore v5.0.0

Authoring Patterns - QICore v6.0.0

Authoring Measures in CQL

Composite Measure Development

Cooking with CQL Examples

Cooking with CQL Q&A All Categories
Additional Q&A Examples

CQL 1.3 Impact Guidance

CQL Error Messages

Developers Introduction to CQL

Discussion Items

Example Measures

Formatting and Usage Topics

Formatting Conventions

Library Versioning

Negation in QDM

QDM Known Issues

Specific Occurrences

Specifying Population Criteria

Supplemental Data Elements

Terminology in CQL

Translator Options For Measure Development

Unions in CQL

Clone this wiki locally