PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sql-on-fhir@3.0.0-ballot
    http://hl7.org/fhir/uv/sql-on-fhir/Library/ActivePatientsView
{
  "description": "Selects the identifier, name, and birth date of every active patient. Other\\nqueries reference this view by its canonical URL and use the `active_patients`\\nlabel as a table name.\\n\\n```sql\\nSELECT\\n  patient_view.id AS patient_id,\\n  patient_view.name AS patient_name,\\n  patient_view.birth_date\\nFROM patient_view\\nWHERE patient_view.active = true\\n```",
  "_filename": "example/Library-ActivePatientsView.json",
  "package_name": "hl7.fhir.uv.sql-on-fhir",
  "date": "2026-08-14T02:49:31+10:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/SQLView" ]
  },
  "publisher": "HL7 International / FHIR Infrastructure",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "content": [ {
    "data": "U0VMRUNUCiAgcGF0aWVudF92aWV3LmlkIEFTIHBhdGllbnRfaWQsCiAgcGF0aWVudF92aWV3Lm5hbWUgQVMgcGF0aWVudF9uYW1lLAogIHBhdGllbnRfdmlldy5iaXJ0aF9kYXRlCkZST00gcGF0aWVudF92aWV3CldIRVJFIHBhdGllbnRfdmlldy5hY3RpdmUgPSB0cnVl",
    "extension": [ {
      "url": "http://hl7.org/fhir/uv/sql-on-fhir/StructureDefinition/sql-text",
      "valueString": "SELECT\n  patient_view.id AS patient_id,\n  patient_view.name AS patient_name,\n  patient_view.birth_date\nFROM patient_view\nWHERE patient_view.active = true"
    } ],
    "contentType": "application/sql"
  } ],
  "name": "ActivePatientsView",
  "type": "{:coding [{:system \\\"http://hl7.org/fhir/uv/sql-on-fhir/CodeSystem/LibraryTypesCodes\\\", :code \\\"sql-view\\\"}]}",
  "experimental": null,
  "resourceType": "Library",
  "title": "Active Patients",
  "package_version": "3.0.0-ballot",
  "status": "active",
  "id": "e84f8881-9e3f-452e-ac65-49bafcf832ad",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/sql-on-fhir/Library/ActivePatientsView",
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.77.28.2",
    "system": "urn:ietf:rfc:3986"
  } ],
  "version": "3.0.0-ballot",
  "relatedArtifact": [ {
    "type": "depends-on",
    "label": "patient_view",
    "resource": "https://example.org/ViewDefinition/patient_view"
  } ],
  "contact": [ {
    "name": "HL7 International / FHIR Infrastructure",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ]
}