{
  "resourceType" : "Permission",
  "resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/Permission|1.0.0-current",
  "id" : "ex-finegrained-patient-access",
  "meta" : {
    "security" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
      "code" : "HTEST"
    }]
  },
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: Permission ex-finegrained-patient-access</b></p><a name=\"ex-finegrained-patient-access\"> </a><a name=\"hcex-finegrained-patient-access\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p><p style=\"margin-bottom: 0px\">Security Label: test health data (Details: ActReason code HTEST = 'test health data')</p></div><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>: Permit-unless-deny</p><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><h3>Data</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceType</b></td><td><b>Security</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-fhir-types.html#fhir-types-Patient\">All FHIR Types: Patient</a> (Patient)</td><td>local-tags: TAG_1 (TAG_1)</td></tr></table><blockquote><p><b>limit</b></p><p><b>element</b>: Patient.address</p></blockquote><blockquote><p><b>limit</b></p><p><b>element</b>: Patient.birthDate</p></blockquote><blockquote><p><b>limit</b></p><p><b>element</b>: Patient.meta</p></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>type</b>: Deny</p><h3>Data</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ResourceType</b></td><td><b>Security</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-fhir-types.html#fhir-types-Patient\">All FHIR Types: Patient</a> (Patient)</td><td>local-tags: VIP (VIP)</td></tr></table></blockquote></div>"
  },
  "status" : "active",
  "asserter" : {
    "reference" : "Organization/ex-organization"
  },
  "date" : ["2023-11-22"],
  "combining" : "permit-unless-deny",
  "rule" : [{
    "type" : "permit",
    "data" : [{
      "resourceType" : [{
        "system" : "http://hl7.org/fhir/fhir-types",
        "code" : "Patient"
      }],
      "security" : [{
        "system" : "http://example.org/fhir/ValueSet/local-tags",
        "code" : "TAG_1"
      }]
    }],
    "limit" : [{
      "element" : ["Patient.address"]
    },
    {
      "element" : ["Patient.birthDate"]
    },
    {
      "element" : ["Patient.meta"]
    }]
  },
  {
    "type" : "deny",
    "data" : [{
      "resourceType" : [{
        "system" : "http://hl7.org/fhir/fhir-types",
        "code" : "Patient"
      }],
      "security" : [{
        "system" : "http://example.org/fhir/ValueSet/local-tags",
        "code" : "VIP"
      }]
    }]
  }]
}