{
  "resourceType" : "Permission",
  "resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/Permission|1.0.0-current",
  "id" : "ex-permission-directory-all",
  "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-permission-directory-all</b></p><a name=\"ex-permission-directory-all\"> </a><a name=\"hcex-permission-directory-all\"> </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>: Deny-unless-permit</p><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><blockquote><p><b>activity</b></p><p><b>action</b>: <span title=\"Codes:{http://hl7.org/fhir/restful-interaction create}\">create</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction read}\">read</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction update}\">update</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction delete}\">delete</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction search-type}\">search-type</span></p><p><b>purpose</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HDIRECT}\">directory</span>, <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason HSYSADMIN}\">health system administration</span></p></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><blockquote><p><b>activity</b></p><p><b>action</b>: <span title=\"Codes:{http://hl7.org/fhir/restful-interaction read}\">read</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction search-type}\">search-type</span></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><h3>Limits</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Tag</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-LOCIS\">ActCode: LOCIS</a> (location information sensitivity)</td></tr></table></blockquote><blockquote><p><b>rule</b></p><p><b>type</b>: Permit</p><blockquote><p><b>data</b></p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>select all Practitioner resources where the Practitioner has a PractitionerRole with code of doctor</td><td>application/x-fhir-query</td><td>Practitioner?_has:PractitionerRole:practitioner:role=http://terminology.hl7.org/CodeSystem/practitioner-role|doctor</td></tr></table></blockquote><blockquote><p><b>activity</b></p><p><b>action</b>: <span title=\"Codes:{http://hl7.org/fhir/restful-interaction read}\">read</span>, <span title=\"Codes:{http://hl7.org/fhir/restful-interaction search-type}\">search-type</span></p><p><b>purpose</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActReason PATRQT}\">patient requested</span></p></blockquote><h3>Limits</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Tag</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-LOCIS\">ActCode: LOCIS</a> (location information sensitivity)</td></tr></table></blockquote></div>"
  },
  "status" : "active",
  "asserter" : {
    "reference" : "Organization/ex-organization"
  },
  "date" : ["2023-11-22"],
  "combining" : "deny-unless-permit",
  "rule" : [{
    "type" : "permit",
    "activity" : [{
      "action" : [{
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "create"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "read"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "update"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "delete"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "search-type"
        }]
      }],
      "purpose" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code" : "HDIRECT"
        }]
      },
      {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code" : "HSYSADMIN"
        }]
      }]
    }]
  },
  {
    "type" : "permit",
    "activity" : [{
      "action" : [{
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "read"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "search-type"
        }]
      }],
      "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" : [{
      "tag" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "LOCIS"
      }]
    }]
  },
  {
    "type" : "permit",
    "data" : [{
      "expression" : {
        "description" : "select all Practitioner resources where the Practitioner has a PractitionerRole with code of doctor",
        "language" : "application/x-fhir-query",
        "expression" : "Practitioner?_has:PractitionerRole:practitioner:role=http://terminology.hl7.org/CodeSystem/practitioner-role|doctor"
      }
    }],
    "activity" : [{
      "action" : [{
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "read"
        }]
      },
      {
        "coding" : [{
          "system" : "http://hl7.org/fhir/restful-interaction",
          "code" : "search-type"
        }]
      }],
      "purpose" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "code" : "PATRQT"
        }]
      }]
    }],
    "limit" : [{
      "tag" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "LOCIS"
      }]
    }]
  }]
}