FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.sql-on-fhir
Resource TypeLibrary
IdLibrary-ActivePatientAddressesQuery.json
FHIR VersionR6

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Metadata
Title Active Patient Addresses
Version 3.0.0-ballot
Identifier urn:oid:2.16.840.1.113883.4.642.40.77.28.1
Jurisdiction World
Steward (Publisher) HL7 International / FHIR Infrastructure
Steward Contact HL7 International / FHIR Infrastructure
Description

Joins the Active Patients view to patient addresses. The active_patients label resolves to the referenced SQLView, which the executing engine may materialize or inline.

SELECT
  active_patients.patient_id,
  active_patients.patient_name,
  patient_address_view.city,
  patient_address_view.state
FROM active_patients
JOIN patient_address_view
  ON active_patients.patient_id = patient_address_view.patient_id
Type sql-query from http://hl7.org/fhir/uv/sql-on-fhir/CodeSystem/LibraryTypesCodes
Dependency Description: Active Patients view
Resource: Active Patients
Canonical URL: http://hl7.org/fhir/uv/sql-on-fhir/Library/ActivePatientsView
Dependency Description: Patient address view
Resource: https://example.org/ViewDefinition/patient_address_view
Canonical URL: https://example.org/ViewDefinition/patient_address_view
Parameters
Parameter None
Library Content
application/sqlContent
Encoded data 
Generated using version 0.5.4 of the sample-content-ig Liquid templates

Source1

{
  "resourceType": "Library",
  "id": "ActivePatientAddressesQuery",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/SQLQuery"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://hl7.org/fhir/uv/sql-on-fhir/Library/ActivePatientAddressesQuery",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.40.77.28.1"
    }
  ],
  "version": "3.0.0-ballot",
  "name": "ActivePatientAddressesQuery",
  "title": "Active Patient Addresses",
  "status": "active",
  "type": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/uv/sql-on-fhir/CodeSystem/LibraryTypesCodes",
        "code": "sql-query"
      }
    ]
  },
  "date": "2026-08-13T15:42:34+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "name": "HL7 International / FHIR Infrastructure",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "Joins the [Active Patients](Library-ActivePatientsView.html) view to patient\naddresses. The `active_patients` label resolves to the referenced SQLView, which\nthe executing engine may materialize or inline.\n\n```sql\nSELECT\n  active_patients.patient_id,\n  active_patients.patient_name,\n  patient_address_view.city,\n  patient_address_view.state\nFROM active_patients\nJOIN patient_address_view\n  ON active_patients.patient_id = patient_address_view.patient_id\n```",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "relatedArtifact": [
    {
      "type": "depends-on",
      "label": "active_patients",
      "display": "Active Patients view",
      "resource": "http://hl7.org/fhir/uv/sql-on-fhir/Library/ActivePatientsView"
    },
    {
      "type": "depends-on",
      "label": "patient_address_view",
      "display": "Patient address view",
      "resource": "https://example.org/ViewDefinition/patient_address_view"
    }
  ],
  "content": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/sql-text",
          "valueString": "SELECT\n  active_patients.patient_id,\n  active_patients.patient_name,\n  patient_address_view.city,\n  patient_address_view.state\nFROM active_patients\nJOIN patient_address_view\n  ON active_patients.patient_id = patient_address_view.patient_id"
        }
      ],
      "contentType": "application/sql",
      "data": "U0VMRUNUCiAgYWN0aXZlX3BhdGllbnRzLnBhdGllbnRfaWQsCiAgYWN0aXZlX3BhdGllbnRzLnBhdGllbnRfbmFtZSwKICBwYXRpZW50X2FkZHJlc3Nfdmlldy5jaXR5LAogIHBhdGllbnRfYWRkcmVzc192aWV3LnN0YXRlCkZST00gYWN0aXZlX3BhdGllbnRzCkpPSU4gcGF0aWVudF9hZGRyZXNzX3ZpZXcKICBPTiBhY3RpdmVfcGF0aWVudHMucGF0aWVudF9pZCA9IHBhdGllbnRfYWRkcmVzc192aWV3LnBhdGllbnRfaWQ="
    }
  ]
}