SQL on FHIR
3.0.0-ballot - STU 3 Ballot International flag

SQL on FHIR, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 3.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/sql-on-fhir/ and changes regularly. See the Directory of published versions

Example ViewDefinition: CodeSystem Hierarchy

This view acts on the CodeSystem resource to produce a table named "code_system_hierarchy".

The table contains the following columns:

NameFhir TypeSQL TypeCollectionNotes
idstringString
codestringStringThis column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'code' for some inputs

Selection Rules:

ItemCollTypeDescription
.. code_system_hierarchyCodeSystem
... Select
.... idgetResourceKey()
CodeSystem identifier
... Select
.... parent_codecode
Code of the parent concept in the hierarchy
.... Selectfor each concept
..... codecode
Code of the child concept