<?xml version="1.0" encoding="UTF-8"?>

<Consent xmlns="http://hl7.org/fhir">
  <id value="2d3400fc-31e8-4cb7-9f41-7b2d8cfb8125"/>
  <meta>
    <profile value="http://fhir.ehdsi.eu/eps/StructureDefinition/advance-directive-myhealtheu-eps"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p>Active do-not-resuscitate advance directive recorded for Petra Schwartz.</p></div>
  </text>
  <status value="active"/>
  <scope>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/consentscope"/>
      <code value="adr"/>
      <display value="Advanced Care Directive"/>
    </coding>
  </scope>
  <category>
    <coding>
      <system value="http://loinc.org"/>
      <code value="42348-3"/>
      <display value="Advance healthcare directives"/>
    </coding>
  </category>
  <patient>
    <reference value="Patient/f0b2dcfe-e837-464b-ae8a-3b9da1807dd3"/>
  </patient>
  <dateTime value="2025-08-15T10:00:00+02:00"/>
  <performer>
    <reference value="Patient/f0b2dcfe-e837-464b-ae8a-3b9da1807dd3"/>
  </performer>
  <policyRule>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="OPTOUT"/>
      <display value="op-out"/>
    </coding>
  </policyRule>
  <provision>
    <type value="deny"/>
    <code>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="304253006"/>
        <display value="Do not resuscitate"/>
      </coding>
    </code>
  </provision>
</Consent>