-
Notifications
You must be signed in to change notification settings - Fork 24
QDM Related Formatting Conventions
Bryn Rhodes edited this page Oct 28, 2016
·
4 revisions
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.
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
- Always use quoted identifiers
- Use PascalCase plus appropriate spacing
- Use the friendly name
For example:
["Encounter, Performed"]
- Never use quoted identifiers
- Use camelCase
For example:
relevantPeriod
authorDatetime
prevalencePeriod
- 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
Authoring Patterns - QICore v4.1.1
Authoring Patterns - QICore v5.0.0
Authoring Patterns - QICore v6.0.0
Cooking with CQL Q&A All Categories
Additional Q&A Examples
Developers Introduction to CQL
Specifying Population Criteria