John Moehrke XACML Consent Example
0.1.0 - ci-build International flag

John Moehrke XACML Consent Example, published by John Moehrke (Moehrke Research LLC). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/JohnMoehrke/xacml-consent/ and changes regularly. See the Directory of published versions

: AB352 Organizational Privacy Consent - breath - XML Representation

Raw xml | Download


<Consent xmlns="http://hl7.org/fhir">
  <id value="Consent-AB352-Example2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Consent Consent-AB352-Example2</b></p><a name="Consent-AB352-Example2"> </a><a name="hcConsent-AB352-Example2"> </a><p><b>status</b>: Active</p><p><b>scope</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/consentscope patient-privacy}">Privacy Consent</span></p><p><b>category</b>: <span title="Codes:{http://loinc.org 64292-6}">Release of information consent</span></p><p><b>patient</b>: <a href="http://example.org/Patient/example">http://example.org/Patient/example</a></p><p><b>dateTime</b>: 2025-01-15 12:00:00+0000</p><p><b>organization</b>: <a href="http://example.org/Organization/ca-hospital">Example California Hospital</a></p><p><b>policyRule</b>: <span title="Codes:{urn:ietf:rfc:3986 urn:law:us:ca:statute:AB352}">California AB 352</span></p><blockquote><p><b>provision</b></p><p><b>type</b>: Opt In</p><p><b>securityLabel</b>: <a href="http://terminology.hl7.org/7.0.1/CodeSystem-v3-Confidentiality.html#v3-Confidentiality-N">Confidentiality: N</a> (Normal)</p><p><b>purpose</b>: <a href="http://terminology.hl7.org/7.0.1/CodeSystem-v3-ActReason.html#v3-ActReason-TREAT">ActReason: TREAT</a> (treatment), <a href="http://terminology.hl7.org/7.0.1/CodeSystem-v3-ActReason.html#v3-ActReason-HPAYMT">ActReason: HPAYMT</a> (healthcare payment), <a href="http://terminology.hl7.org/7.0.1/CodeSystem-v3-ActReason.html#v3-ActReason-HOPERAT">ActReason: HOPERAT</a> (healthcare operations)</p><h3>Provisions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Extension</b></td><td><b>Type</b></td><td><b>SecurityLabel</b></td></tr><tr><td style="display: none">*</td><td> </td><td>Opt Out</td><td><a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-ABORTION">Health Information Sensitivity Categories: ABORTION</a> (Abortion-related services), <a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-GENDER_AFFIRMING_CARE">Health Information Sensitivity Categories: GENDER_AFFIRMING_CARE</a> (Gender-affirming care), <a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-CONTRACEPTION">Health Information Sensitivity Categories: CONTRACEPTION</a> (Contraception)</td></tr><tr><td style="display: none">*</td><td/><td>Opt In</td><td><a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-ABORTION">Health Information Sensitivity Categories: ABORTION</a> (Abortion-related services), <a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-GENDER_AFFIRMING_CARE">Health Information Sensitivity Categories: GENDER_AFFIRMING_CARE</a> (Gender-affirming care), <a href="CodeSystem-cs-health-sensitivity.html#cs-health-sensitivity-CONTRACEPTION">Health Information Sensitivity Categories: CONTRACEPTION</a> (Contraception)</td></tr></table></blockquote></div>
  </text>
  <status value="active"/>
  <scope>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
      <code value="patient-privacy"/>
      <display value="Privacy Consent"/>
    </coding>
  </scope>
  <category>
    <coding>
      <system value="http://loinc.org"/>
      <code value="64292-6"/>
      <display value="Release of information consent"/>
    </coding>
  </category>
  <patient>
    <reference value="http://example.org/Patient/example"/>
  </patient>
  <dateTime value="2025-01-15T12:00:00Z"/>
  <organization>
    <reference value="http://example.org/Organization/ca-hospital"/>
    <display value="Example California Hospital"/>
  </organization>
  <policyRule>
    <coding>
      <system value="urn:ietf:rfc:3986"/>
      <code value="urn:law:us:ca:statute:AB352"/>
      <display value="California AB 352"/>
    </coding>
  </policyRule>
  <provision>
    <type value="permit"/>
    <securityLabel>
      <system
              value="http://terminology.hl7.org/CodeSystem/v3-Confidentiality"/>
      <code value="N"/>
      <display value="Normal"/>
    </securityLabel>
    <purpose>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="TREAT"/>
    </purpose>
    <purpose>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="HPAYMT"/>
    </purpose>
    <purpose>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="HOPERAT"/>
    </purpose>
    <provision>
      <type value="deny"/>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="ABORTION"/>
      </securityLabel>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="GENDER_AFFIRMING_CARE"/>
      </securityLabel>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="CONTRACEPTION"/>
      </securityLabel>
    </provision>
    <provision>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/consent-location">
        <valueReference>🔗 
          <reference value="Location/ca-location"/>
        </valueReference>
      </extension>
      <type value="permit"/>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="ABORTION"/>
      </securityLabel>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="GENDER_AFFIRMING_CARE"/>
      </securityLabel>
      <securityLabel>
        <system
                value="http://johnmoehrke.github.io/xacml-consent/CodeSystem/cs-health-sensitivity"/>
        <code value="CONTRACEPTION"/>
      </securityLabel>
    </provision>
  </provision>
</Consent>