Chained Parameters
Search by associated resources
Chained parameters are a special kind of search parameters. You can use them to filter by parameter of a resource linked via a reference.
Syntax
Forward chain element
An element of a forward chain is represented as
Example:
Reverse chain element
An element of a reverse chain is represented as
Example
Chain terminal
Any chain must finish with a terminal. A terminal is just a search parameter name.
Chain
A chain is composed from an arbitrary amount of chain elements and finished with a chain terminal.
There are some rules to join chain elements:
Forward chain elements are joined using the
.
symbol;Reverse chain elements are joined using the
:
symbol;Different type chain elements are joined using the
.
symbol.
If the last chain element is a reverse element, then a terminal is joined using the :
symbol, otherwise the .
symbol.
Examples:
Semantics
You can interpret chain elements as a semijoin. The difference between forward and reverse chain is where a reference is located: in a forward chain a reference is located on the left side of a semijoin, in a reverse chain a reference is located on the right side of a semijoin.
Example 1:
You can read it as (pseudocode)
Semantically this means: find all organizations, which have patients that have observation with the given code.
Example 2:
You can read it as (pseudocode)
This means: find all observations that belong to some patient managed by some organization with the given name.
Example 3:
You can read it as (pseudocode)
This means: find all patients that visited the given practitioner.
Last updated