<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="do-not-resuscitate-order" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Security" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <url value="https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/do-not-resuscitate-order" />
  <version value="1.0.6" />
  <name value="DoNotResuscitateOrder" />
  <title value="Do-Not-Resuscitate Order" />
  <status value="active" />
  <experimental value="false" />
  <date value="2021-09-08" />
  <publisher value="Berlin Institute of Health at Charité (BIH)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://www.bihealth.org/en/research/core-facilities/interoperability/" />
    </telecom>
  </contact>
  <description value="A do-not-resuscitate (DNR) order" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.scope">
      <path value="Consent.scope" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.scope.coding">
      <path value="Consent.scope.coding" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.scope.coding.system">
      <path value="Consent.scope.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/consentscope" />
    </element>
    <element id="Consent.scope.coding.code">
      <path value="Consent.scope.coding.code" />
      <min value="1" />
      <fixedCode value="adr" />
    </element>
    <element id="Consent.category">
      <path value="Consent.category" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.category.coding">
      <path value="Consent.category.coding" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.category.coding.system">
      <path value="Consent.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/consentcategorycodes" />
    </element>
    <element id="Consent.category.coding.code">
      <path value="Consent.category.coding.code" />
      <min value="1" />
      <fixedCode value="dnr" />
    </element>
    <element id="Consent.patient">
      <path value="Consent.patient" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.dateTime">
      <path value="Consent.dateTime" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.provision">
      <path value="Consent.provision" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.provision.code">
      <path value="Consent.provision.code" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://www.netzwerk-universitaetsmedizin.de/fhir/ValueSet/resuscitation-status" />
      </binding>
    </element>
    <element id="Consent.provision.code.coding">
      <path value="Consent.provision.code.coding" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Consent.provision.code.coding.system">
      <path value="Consent.provision.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Consent.provision.code.coding.code">
      <path value="Consent.provision.code.coding.code" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>