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 Observation resource to produce a table named "us_core_blood_pressures" where code.coding.exists(system='http://loinc.org' and code=%bp_code).
The table contains the following columns:
| Name | Fhir Type | SQL Type | Collection |
|---|---|---|---|
| id | string | String | |
| patient_id | string | String | |
| effective_date_time | dateTime | DateTime | |
| sbp_quantity_system | uri | String | |
| sbp_quantity_code | string | String | |
| sbp_quantity_unit | string | String | |
| sbp_quantity_value | decimal | Decimal | |
| dbp_quantity_system | uri | String | |
| dbp_quantity_code | string | String | |
| dbp_quantity_unit | string | String | |
| dbp_quantity_value | decimal | Decimal |
Constants:
| Name | Value |
|---|---|
| systolic_bp | 8480-6 |
| diastolic_bp | 8462-4 |
| bp_code | 85354-9 |
Selection Rules:
| Item | Coll | Type | Description |
|---|---|---|---|
![]() | Observation | ||
![]() ![]() | |||
![]() ![]() ![]() | getResourceKey() | ||
![]() ![]() ![]() | subject.getReferenceKey(Patient)Can be used to join to patient tables created by other views. | ||
![]() ![]() ![]() | effective.ofType(dateTime) | ||
![]() ![]() | for each component.where(code.coding.exists(system='http://loinc.org' and code=%systolic_bp)).first() | ||
![]() ![]() ![]() | value.ofType(Quantity).system | ||
![]() ![]() ![]() | value.ofType(Quantity).code | ||
![]() ![]() ![]() | value.ofType(Quantity).unit | ||
![]() ![]() ![]() | value.ofType(Quantity).value | ||
![]() ![]() | for each component.where(code.coding.exists(system='http://loinc.org' and code=%diastolic_bp)).first() | ||
![]() ![]() ![]() | value.ofType(Quantity).system | ||
![]() ![]() ![]() | value.ofType(Quantity).code | ||
![]() ![]() ![]() | value.ofType(Quantity).unit | ||
![]() ![]() ![]() | value.ofType(Quantity).value |