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
Profiles: Shareable View Definition, Tabular View Definition
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:
| Name | Fhir Type | SQL Type | Collection |
|---|---|---|---|
| id | string | String | |
| gender | string | String | |
| given_name | string | String | |
| family_name | string | String |
Selection Rules:
| Item | Coll | Type | Description |
|---|---|---|---|
![]() | Patient | ||
![]() ![]() | |||
![]() ![]() ![]() | string | getResourceKey() | |
![]() ![]() ![]() | code | gender | |
![]() ![]() | for each name.where(use = 'official').first() | ||
![]() ![]() ![]() | string | given.join(' ')A single given name field with all names joined together. | |
![]() ![]() ![]() | string | family |