The HL7 FHIR and CQL are a powerful duo that pave the way for the next generation of digital healthcare. While the FHIR standard provides the common data model for the healthcare data, the CQL specification defines the language for expressing clinical knowledge in a way that can be executed against the FHIR data model.
Clinical Quality Language (CQL) is a language used to represent clinically-focused logic such as quality measurements and clinical decision support. As a formal language, it supports the creation, distribution, execution, and maintenance of computable clinical knowledge.
Here is an example of a CQL library:
library libraryOne
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
valueset "Marital Status": 'http://hl7.org/fhir/ValueSet/marital-status'
context Patient
define PatientExample:
Patient P
where P.maritalStatus in "Marital Status"
CQL Editor is an editor for the Clinical Quality Language that allows you to author and run CQL code in your browser. This editor is an attempt to make it easier to learn and use CQL. It provides a simple interface for writing CQL libraries and executing those libraries against FHIR data.