<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nxh-consent" />
  <url value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/NxhConsent" />
  <name value="NxhConsent" />
  <status value="active" />
  <date value="2024-01-04T09:06:39.6068093+00:00" />
  <description value="Nexuzhealth profile for consent." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Consent" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Consent" />
  <derivation value="constraint" />
  <differential>
    <element id="Consent.extension:nxhExtHospitalCode">
      <path value="Consent.extension" />
      <sliceName value="nxhExtHospitalCode" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/nxh-ext-hospitalCode" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Consent.extension:nxhExtHospitalCode.value[x]">
      <path value="Consent.extension.value[x]" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)" />
    </element>
    <element id="Consent.extension:nxhExtMotivation">
      <path value="Consent.extension" />
      <sliceName value="nxhExtMotivation" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/nxh-ext-motivation" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Consent.extension:nxhExtMotivation.value[x]">
      <path value="Consent.extension.value[x]" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)." />
    </element>
    <element id="Consent.identifier">
      <path value="Consent.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Consent.identifier:therBepId">
      <path value="Consent.identifier" />
      <sliceName value="therBepId" />
      <short value="Therapy Limitation Id" />
      <definition value="Therapy Limitation (Beperking) Identification.&#xD;&#xA;Both Therapy Limitation Version 1 and Version 2 records are stored. In KWS the general rule is to consider V2 records as having priority over V1 records." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Consent.identifier:therBepId.system">
      <path value="Consent.identifier.system" />
      <fixedUri value="https://fhir.nexuzhealth.com/standards/fhir/NamingSystem/kws/bifrost/therapieBeperking/therBepId" />
    </element>
    <element id="Consent.status">
      <path value="Consent.status" />
      <definition value="Indicates the current state of this consent. &#xD;&#xA;An active record for DNR is considered an active history record. Which can be used to analyse the evolution of a patient's DNR code." />
    </element>
    <element id="Consent.scope.coding.code">
      <path value="Consent.scope.coding.code" />
      <fixedCode value="adr" />
    </element>
    <element id="Consent.scope.coding.display">
      <path value="Consent.scope.coding.display" />
      <fixedString value="Advanced Care Directive" />
    </element>
    <element id="Consent.category.coding.code">
      <path value="Consent.category.coding.code" />
      <fixedCode value="dnr" />
    </element>
    <element id="Consent.category.coding.display">
      <path value="Consent.category.coding.display" />
      <fixedString value="Do Not Resuscitate" />
    </element>
    <element id="Consent.verification.extension:nxhExtVerifiedBy">
      <path value="Consent.verification.extension" />
      <sliceName value="nxhExtVerifiedBy" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/nxh-ext-verified-by" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Consent.verification.extension:nxhExtVerifiedBy.value[x]">
      <path value="Consent.verification.extension.value[x]" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)." />
    </element>
    <element id="Consent.provision.action">
      <path value="Consent.provision.action" />
      <binding>
        <strength value="required" />
        <description value="DNR attributes" />
        <valueSet value="https://fhir.nexuzhealth.com/standards/fhir/ValueSet/nxh-vs-dnr-attributen" />
      </binding>
    </element>
    <element id="Consent.provision.code.coding">
      <path value="Consent.provision.code.coding" />
      <definition value="A reference to a code defined by a terminology system" />
      <binding>
        <strength value="required" />
        <description value="DNR Code" />
        <valueSet value="https://fhir.nexuzhealth.com/standards/fhir/ValueSet/nxh-vs-dnr-code" />
      </binding>
    </element>
  </differential>
</StructureDefinition>