FhirPath Field Path
A field declaration can be a simple FHIRpath expression. It must be an epxression that leads to an identifiable node with and a value. This sub category of FHIRpath expressions are called a 'FHIRPath Field Path' in FQL.
Syntax
field-path: segment ( '.' segment )*
segment: identifier ( '[' indexer ']' )?
Functionally
Te name of the resulting field is the name of the most specific node of the expression.
So name.given
will result in a field with the name given
and the value(s) in the `given node(s).
Example
The following query will (typically) produce a table with 2 columns: given and family.
from Patient
select
name.given,
name.family
Usage
If you wish to have other column names, use a projection.