Functions

FQL ships with a few FHIRPath functions that are specifically created and tailored to FQL. They are part of the FQL core infrastructure, so you can use them wherever you use FQL. This page describes two of them: the link function and the fields function.

Fields

The fields() function helps you discover the structure of a resource, or of a field within a resource.

The following example shows, for each patient, a list of the fields in that resource:

from Patient select fields()

To list only the fields within a specific structure, apply it to that field:

from Patient select name.fields()