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"]
EBNF
retrieve
: '[' (contextIdentifier '->')? namedTypeSpecifier (':' (codePath codeComparator)? terminology)? ']'
;