SQL on FHIR
2.1.0-pre - release International flag

SQL on FHIR - Local Development build (v2.1.0-pre) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Example ViewDefinition: ShareablePatientDemographics

draft

Generated Narrative: ViewDefinition ShareablePatientDemographics

This view acts on the Patient resource for versions R4 and R5 to produce a table named "patient_demographics".

The table contains the following columns:

NameFhir TypeSQL TypeCollection
idstringString
genderstringString
given_namestringString
family_namestringString

Selection Rules:

ItemCollTypeDescription
.. patient_demographicsPatient
... Select
.... idstringgetResourceKey()
.... gendercodegender
... Selectfor each name.where(use = 'official').first()
.... given_namestringgiven.join(' ')
A single given name field with all names joined together.
.... family_namestringfamily