SQL on FHIR
2.1.0-pre - release
SQL on FHIR, published by SQL on FHIR Working Group. This guide is not an authorized publication; it is the continuous build for version 2.1.0-pre 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
| Official URL: https://sql-on-fhir.org/ig/Library/ActivePatientsView | Version: 2.1.0-pre | |||
| Active as of 2026-06-13 | Computable Name: ActivePatientsView | |||
Selects the identifier, name, and birth date of every active patient. Other
queries reference this view by its canonical URL and use the active_patients
label as a table name.
SELECT
patient_view.id AS patient_id,
patient_view.name AS patient_name,
patient_view.birth_date
FROM patient_view
WHERE patient_view.active = true
Profile: SQL View Library
| Depends On | patient_view | https://example.org/ViewDefinition/patient_view |
application/sql
SELECT
patient_view.id AS patient_id,
patient_view.name AS patient_name,
patient_view.birth_date
FROM patient_view
WHERE patient_view.active = true