library
The root rule of every CQL file. A library may optionally begin with a library declaration, followed by zero or more definitions (using, include, codesystem, valueset, code, concept, parameter), then zero or more statements (expressions, contexts, functions), and finally the end-of-file marker.
Examples
A minimal library with no declarations
library MinimalLibrary
A full library with a model import, included library, and an expression
library ExampleLibrary version '1.0.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers codesystem "SNOMED-CT": 'http://snomed.info/sct' define "Adult": AgeInYears() >= 18
EBNF
library
: libraryDefinition?
definition*
statement*
EOF
;