SQL on FHIR
2.1.0-pre - release International flag

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

Library: Active Patients

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

Related Artifacts

Depends Onpatient_viewhttps://example.org/ViewDefinition/patient_view

Contents

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