MediRecords FHIR Implementation Guide
1.4.2 - release


: Example of Consent - XML Representation

Raw xml | Download


<Consent xmlns="http://hl7.org/fhir">
  <id value="3f8b439e-b70a-42c3-81dd-23d463da2d72"/>
  <meta>
    <lastUpdated value="2024-12-19T14:56:18Z"/>
    <profile
             value="https://fhir.medirecords.com/StructureDefinition/mr-consent"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Consent 3f8b439e-b70a-42c3-81dd-23d463da2d72</b></p><a name="3f8b439e-b70a-42c3-81dd-23d463da2d72"> </a><a name="hc3f8b439e-b70a-42c3-81dd-23d463da2d72"> </a><a name="3f8b439e-b70a-42c3-81dd-23d463da2d72-en-US"> </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">Last updated: 2024-12-19 14:56:18+0000</p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-mr-consent.html">MR Consent</a></p></div><p><b>MR Comment Note Extension</b>: Consent given by the patient to the hospital to use their data for care and research purposes.</p><p><b>Consent source reference extension</b>: <a href="DocumentReference-8184d9d5-ee48-4985-98c0-74a50e77800e.html">DocumentReference: status = current; docStatus = final; type = Consent Document; category = Consent Document; date = 2017-12-17 14:56:18+0000</a></p><p><b>Consent source reference extension</b>: <a href="Bundle-1157b99e-b6f7-40cd-8349-a536e42456ae.html#DocumentReference_5bcb2a5c-b7a8-4619-aabe-955176c1a04c">Bundle: type = collection</a></p><p><b>status</b>: Active</p><p><b>scope</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/consentscope research}">Research</span></p><p><b>category</b>: <span title="Codes:{http://loinc.org 59284-0}">Patient Consent</span></p><p><b>patient</b>: <a href="Patient-1e5cae20-85bf-11e8-b401-ffccd711ad9c.html">Mila Female, DoB: 1990-11-29 ( Medicare Number: 32788511952 (, period: (?) --&gt; 2025-02))</a></p><p><b>performer</b>: <a href="Patient-1e5cae20-85bf-11e8-b401-ffccd711ad9c.html">Mila Female, DoB: 1990-11-29 ( Medicare Number: 32788511952 (, period: (?) --&gt; 2025-02))</a></p><p><b>policyRule</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode OPTIN}">opt-in</span></p><h3>Provisions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Period</b></td></tr><tr><td style="display: none">*</td><td>Opt In</td><td>2024-12-19 --&gt; (ongoing)</td></tr></table></div>
  </text>
  <extension
             url="https://fhir.medirecords.com/StructureDefinition/mr-comment-note-ext">
    <valueString
                 value="Consent given by the patient to the hospital to use their data for care and research purposes."/>
  </extension>
  <extension
             url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.sourceReference">
    <valueReference>🔗 
      <reference
                 value="DocumentReference/8184d9d5-ee48-4985-98c0-74a50e77800e"/>
    </valueReference>
  </extension>
  <extension
             url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.sourceReference">
    <valueReference>
      <reference
                 value="DocumentReference/5bcb2a5c-b7a8-4619-aabe-955176c1a04c"/>
    </valueReference>
  </extension>
  <status value="active"/>
  <scope>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
      <code value="research"/>
      <display value="Research"/>
    </coding>
    <text value="Research"/>
  </scope>
  <category>
    <coding>
      <system value="http://loinc.org"/>
      <code value="59284-0"/>
      <display value="Patient Consent"/>
    </coding>
    <text value="Patient Consent"/>
  </category>
  <patient>🔗 
    <reference value="Patient/1e5cae20-85bf-11e8-b401-ffccd711ad9c"/>
  </patient>
  <performer>🔗 
    <reference value="Patient/1e5cae20-85bf-11e8-b401-ffccd711ad9c"/>
  </performer>
  <policyRule>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="OPTIN"/>
      <display value="opt-in"/>
    </coding>
  </policyRule>
  <provision>
    <type value="permit"/>
    <period>
      <start value="2024-12-19"/>
    </period>
  </provision>
</Consent>