retrieve

A retrieve expression queries the data source for clinical data of a specified type. An optional code path and terminology restrict the results. An optional context specifier narrows retrieval to a specific evaluation context.

Examples

All Conditions for the current patient context

[Condition]

Conditions filtered by value set membership

[Condition: "Diabetes Mellitus Codes"]

Conditions using an explicit code path and comparator

[Condition: code in "Hypertension Value Set"]

Conditions scoped to a specific context

[Patient -> Condition: "Chronic Conditions"]
Railroad Diagram
100%
[ contextIdentifier -> namedTypeSpecifier : codePath codeComparator terminology ]

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

retrieve
  : '[' (contextIdentifier '->')? namedTypeSpecifier (':' (codePath codeComparator)? terminology)? ']'
  ;

Used In