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
This view acts on the Encounter resource for version R4 to produce a table named "encounter_flat".
The table contains the following columns:
| Name | Fhir Type | SQL Type | Collection | Notes |
|---|---|---|---|---|
| id | string | String | ||
| status | string | String | ||
| patient_id | string | String | ||
| service_org_id | string | String | ||
| period_start | dateTime | DateTime | ||
| period_end | dateTime | DateTime | ||
| EpisodeOfCareId | string | String | ||
| type_sys | uri | String | This column is not defined as a collection, but the path statement 'system' might return multiple values for the column 'type_sys' for some inputs | |
| type_code | string | String | This column is not defined as a collection, but the path statement 'code' might return multiple values for the column 'type_code' for some inputs | |
| practitioner_id | string | String | ||
| location_id | string | String |
Selection Rules:
| Item | Coll | Type | Description |
|---|---|---|---|
![]() | Encounter | ||
![]() ![]() | |||
![]() ![]() ![]() | getResourceKey() | ||
![]() ![]() ![]() | status | ||
![]() ![]() ![]() | subject.getReferenceKey(Patient) | ||
![]() ![]() ![]() | serviceProvider.getReferenceKey(Organization) | ||
![]() ![]() ![]() | period.start | ||
![]() ![]() ![]() | period.end | ||
![]() ![]() ![]() | episodeOfCare.getReferenceKey(EpisodeOfCare) | ||
![]() ![]() | for each type.coding, or null | ||
![]() ![]() ![]() | system | ||
![]() ![]() ![]() | code | ||
![]() ![]() | for each participant, or null | ||
![]() ![]() ![]() | individual.getReferenceKey(Practitioner) | ||
![]() ![]() | for each location, or null | ||
![]() ![]() ![]() | location.getReferenceKey(Location) |