Introduction
  • 28 Feb 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Introduction

  • Dark
    Light
  • PDF

Article Summary

The Dr. Know Clinical Query Language (CQL) is a concise, but comprehensive set of natural language expressions that can be used to retrieve clinical information from a connected patient.

When embedding these expressions within curated content (i.e. apps, storyboards), they will be replaced with the appropriate clinical information at runtime.

How Query Expressions Work

Clinical query expressions are enclosed in double curly braces and composed of 3 parts:

image.png

PartRequiredDescription
SubjectYesThe entity to be returned from the clinical expression.
FiltersNoUsed to filter, or reduce, the subject. Must appear before the subject.
DecoratorsNoModifies the results in some way. Must appear after the subject.

Some subjects support both a singular and plural format. For example, the expression 'bmi vital' will display the most recent BMI value, while 'bmi vitals' will return a list of all recorded BMI values.

Below is an example that returns the most recent 3 BMI vital sign values:

Prompt: {{ take 3 bmi vitals }}
Output: The most recent 3 BMI vital sign values.

What's Next