JohnMoehrke Emancipation
0.1.0 - ci-build

JohnMoehrke Emancipation, published by John Moehrke (himself). 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/emancipation/ and changes regularly. See the Directory of published versions

## : Simple Emancipation Consent example - XML Representation

Raw xml | Download

    <Consent xmlns="http://hl7.org/fhir">
      <id value="ex-consent"/>
      <meta>
        <profile
                 value="http://johnmoehrke.github.io/Emancipation/StructureDefinition/EmancipationConsent"/>
        <security>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
          <code value="HTEST"/>
        </security>
      </meta>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Consent ex-consent</b></p><a name="ex-consent"> </a><a name="hcex-consent"> </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"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-EmancipationConsent.html">Consent profile indicating Emancipation</a></p><p style="margin-bottom: 0px">Security Label: <a href="http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html">test health data (Details: ActReason code HTEST = 'test health data')</a></p></div><h2>Participants</h2><table class="grid"><tr><td><b>Role</b></td><td><b>Details</b></td></tr><tr><td title="Who the consent applies to">Patient</td><td><a href="Patient-ex-patient.html">John Schmidt  Other, DoB: 2009-07-25</a></td></tr><tr><td title="Who is agreeing to the policy and rules">Party</td><td><a href="Patient-ex-patient.html">John Schmidt  Other, DoB: 2009-07-25</a></td></tr><tr><td title="Who manages the consent through its lifecycle.">Manager</td><td><a href="Organization-ex-organization.html">Organization somewhere org</a></td></tr></table><p>This consent is made under the policy <a href="http://example.org/policies/representative.xacml">http://example.org/policies/representative.xacml</a> .</p><table border="1" cellpadding="0" cellspacing="0" style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 2px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://hl7.org/fhir/R4/formats.html#table" title="Applicable Rule">Rule</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://hl7.org/fhir/R4/formats.html#table" title="Applicable Period">Time Period</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://hl7.org/fhir/R4/formats.html#table" title="Applicable Parties">Who</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://hl7.org/fhir/R4/formats.html#table" title="Applicable Data">What</a><span style="float: right"><a href="https://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension.png" alt="." style="background-color: white; background-color: inherit" title="Consent Provision" class="hierarchy"/> permit</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td></tr>
    <tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-qi-hidden.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Consent Provision" class="hierarchy"/> deny</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><ul><li>Period: 2026-08-16 --&gt; 2027-08-16</li></ul></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td></tr>
    <tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension.png" alt="." style="background-color: white; background-color: inherit" title="Consent Provision" class="hierarchy"/> permit</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><ul><li><span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode FTH}">father</span>: <a href="RelatedPerson-ex-father.html">RelatedPerson John Jacob Jingleheimer Schmidt (official)</a></li></ul></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><ul><li>Purpose: <a href="http://terminology.hl7.org/7.3.0/CodeSystem-v3-ActReason.html#v3-ActReason-FAMRQT">ActReason: FAMRQT</a> (family requested)</li></ul></td></tr>
    <tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck001.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Consent Provision" class="hierarchy"/> permit</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td></tr>
    <tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-qi-hidden.png" alt="." style="background-color: white; background-color: inherit" title="Consent Provision" class="hierarchy"/> deny</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><ul><li><span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode MTH}">mother</span>: <a href="RelatedPerson-ex-mother.html">RelatedPerson Mary Ann Schmidt (official)</a></li></ul></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td></tr>
    <tr><td colspan="4" class="hierarchy"><br/><a href="https://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <status value="active"/>
      <scope>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
          <code value="patient-privacy"/>
        </coding>
      </scope>
      <category>
        <coding>
          <system
                  value="http://johnmoehrke.github.io/Emancipation/CodeSystem/AuthorizedCodes"/>
          <code value="EmancipationConsent"/>
        </coding>
      </category>
      <category>
        <coding>
          <system value="http://loinc.org"/>
          <code value="64292-6"/>
          <display value="Release of information consent"/>
        </coding>
      </category>
      <category>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
          <code value="IDSCL"/>
        </coding>
      </category>
      <patient>🔗
        <reference value="Patient/ex-patient"/>
      </patient>
      <dateTime value="2026-08-23"/>
      <performer>🔗
        <reference value="Patient/ex-patient"/>
      </performer>
      <organization>🔗
        <reference value="Organization/ex-organization"/>
      </organization>
      <sourceReference>🔗
        <reference value="DocumentReference/ex-documentreference"/>
      </sourceReference>
      <policy>
        <uri value="http://example.org/policies/representative.xacml"/>
      </policy>
      <provision>
        <type value="deny"/>
        <period>
          <start value="2026-08-16"/>
          <end value="2027-08-16"/>
        </period>
        <provision>
          <type value="permit"/>
          <actor>
            <role>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/v3-RoleCode"/>
                <code value="FTH"/>
                <display value="father"/>
              </coding>
            </role>
            <reference>🔗
              <reference value="RelatedPerson/ex-father"/>
            </reference>
          </actor>
          <purpose>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
            <code value="FAMRQT"/>
            <display value="family requested"/>
          </purpose>
        </provision>
        <provision>
          <type value="permit"/>
          <provision>
            <type value="deny"/>
            <actor>
              <role>
                <coding>
                  <system
                          value="http://terminology.hl7.org/CodeSystem/v3-RoleCode"/>
                  <code value="MTH"/>
                  <display value="mother"/>
                </coding>
              </role>
              <reference>🔗
                <reference value="RelatedPerson/ex-mother"/>
              </reference>
            </actor>
          </provision>
        </provision>
      </provision>
    </Consent>