HL7 FHIR Implementation Guide: Data Access Policies
1.0.0-current - ci-build International flag

HL7 FHIR Implementation Guide: Data Access Policies, published by HL7 International / Security. This guide is not an authorized publication; it is the continuous build for version 1.0.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/data-access-policies/ and changes regularly. See the Directory of published versions

: Example of a SearchSet Bundle with Permission - JSON Representation

Raw json | Download

{
  "resourceType" : "Bundle",
  "id" : "ex-SearchSet-withPermission",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/dap/StructureDefinition/dap.bundleWithPermission"
    ],
    "security" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code" : "HTEST"
      },
      {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/uv/dap/StructureDefinition/dap.permissionImposedOnBundle",
            "valueReference" : {
              "reference" : "http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent"
            }
          }
        ],
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "CPLYPOL"
      }
    ]
  },
  "type" : "searchset",
  "timestamp" : "2023-11-22T09:32:24Z",
  "total" : 2,
  "link" : [
    {
      "relation" : "self",
      "url" : "http://test.fhir.net/R4/fhir/Observation?patient=9876&status=current"
    }
  ],
  "entry" : [
    {
      "fullUrl" : "http://test.fhir.net/R4/fhir/Observation/in-Observation",
      "resource" : {
        "resourceType" : "Observation",
        "id" : "in-Observation",
        "meta" : {
          "security" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
              "code" : "ETH"
            },
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
              "code" : "R"
            }
          ]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_in-Observation\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation in-Observation</b></p><a name=\"in-Observation\"> </a><a name=\"hcin-Observation\"> </a><a name=\"in-Observation-en-US\"> </a><p><b>status</b>: Final</p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 74013-4}\">Alcoholic drinks per day</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>effective</b>: 2022-06-13</p><p><b>performer</b>: <a href=\"Patient-ex-patient.html\">John Schmidt  Other, DoB: 1923-07-25</a></p><p><b>value</b>: 5 wine glasses per day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code/d = '/d')</span></p></div>"
        },
        "status" : "final",
        "code" : {
          "coding" : [
            {
              "system" : "http://loinc.org",
              "code" : "74013-4"
            }
          ]
        },
        "subject" : {
          🔗 "reference" : "Patient/ex-patient"
        },
        "effectiveDateTime" : "2022-06-13",
        "performer" : [
          {
            🔗 "reference" : "Patient/ex-patient"
          }
        ],
        "valueQuantity" : {
          "value" : 5,
          "unit" : "wine glasses per day",
          "system" : "http://unitsofmeasure.org",
          "code" : "/d"
        }
      },
      "search" : {
        "mode" : "match"
      }
    },
    {
      "fullUrl" : "http://test.fhir.net/R4/fhir/Permission/in-permission-redisclose-forbidden-without-consent",
      "resource" : {
        "resourceType" : "Permission",
        "id" : "in-permission-redisclose-forbidden-without-consent",
        "meta" : {
          "security" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
              "code" : "HTEST"
            }
          ]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Permission_in-permission-redisclose-forbidden-without-consent\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Permission in-permission-redisclose-forbidden-without-consent</b></p><a name=\"in-permission-redisclose-forbidden-without-consent\"> </a><a name=\"hcin-permission-redisclose-forbidden-without-consent\"> </a><a name=\"in-permission-redisclose-forbidden-without-consent-en-US\"> </a><p><b>status</b>: Active</p><p><b>asserter</b>: <a href=\"Organization-ex-organization.html\">Organization nowhere</a></p><p><b>date</b>: 2023-11-22</p><p><b>combining</b>: Deny-unless-permit</p><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><blockquote><p><b>activity</b></p><p><b>purpose</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason TREAT}\">treatment</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HPAYMT}\">healthcare payment</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HOPERAT}\">healthcare operations</span></p></blockquote><p><b>limit</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode NODSCLCDS}\">no disclosure without information subject's consent directive</span></p></blockquote></div>"
        },
        "status" : "active",
        "asserter" : {
          🔗 "reference" : "Organization/ex-organization"
        },
        "date" : [
          "2023-11-22"
        ],
        "combining" : "deny-unless-permit",
        "rule" : [
          {
            "type" : "permit",
            "activity" : [
              {
                "purpose" : [
                  {
                    "coding" : [
                      {
                        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code" : "TREAT"
                      }
                    ]
                  },
                  {
                    "coding" : [
                      {
                        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code" : "HPAYMT"
                      }
                    ]
                  },
                  {
                    "coding" : [
                      {
                        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
                        "code" : "HOPERAT"
                      }
                    ]
                  }
                ]
              }
            ],
            "limit" : [
              {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code" : "NODSCLCDS",
                    "display" : "no disclosure without information subject's consent directive"
                  }
                ]
              }
            ]
          }
        ]
      },
      "search" : {
        "mode" : "include"
      }
    }
  ]
}