SQL on FHIR
2.1.0-pre - release
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
This content is an example of the Shareable View Definition Logical Model and is not a FHIR Resource
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".
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 |
This will result in a “patient_demographics” table that looks like this:
| id | gender | given_name | family_name |
|---|---|---|---|
| 1 | female | Malvina Gerda | Vicario |
| 2 | male | Yolotzin Adel | Bristow |
| 3 | other | Jin Gomer | Aarens |