<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="bc-LegalSituation-Representation" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/bc-LegalSituation-Representation" />
  <version value="1.3.3" />
  <name value="bc-LegalSituation-Representation" />
  <title value="bc-LegalSituation-Representation" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="geboortezorg@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A Condition profile describing legal representation as defined by BabyConnect. Representation is important in situations where a person is legally not competent to give permission and/or factually (partly) incapable of doing so. A representative supports and takes decisions in the interest of the representee when they cannot do so themselves (temporarily or permanently)." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="gebz-peri-v3.2" />
    <uri value="https://decor.nictiz.nl/art-decor/decor-datasets-\-peri20-?id=2.16.840.1.113883.2.4.3.11.60.90.77.1.6&amp;effectiveDate=2016-09-08T00%3A00%3A00&amp;conceptId=2.16.840.1.113883.2.4.3.11.60.90.77.2.6.4&amp;conceptEffectiveDate=2016-09-08T00%3A00%3A00" />
    <name value="Geboortezorg 3.2" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Condition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Condition" />
  <derivation value="constraint" />
  <differential>
    <element id="Condition">
      <path value="Condition" />
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-7860" />
        <comment value="Vertegenwoordiging" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-10567" />
        <comment value="JuridischeSituatie" />
      </mapping>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-10566" />
        <comment value="JuridischeSituatie" />
      </mapping>
    </element>
    <element id="Condition.category">
      <path value="Condition.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Condition.category:representationCode">
      <path value="Condition.category" />
      <sliceName value="representationCode" />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="151701000146105" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Condition.code">
      <path value="Condition.code" />
      <short value="Representation" />
      <definition value="In some situations, a person is legally not competent to give permission and/or factually (partly) incapable of doing so. A representative supports and takes decisions in the interest of the representee when they cannot do so themselves (temporarily or permanently). The representative should involve the patient as much as possible in the fulfillment of their tasks and the factual capability of the patient must be honored as much as possible. The Wgbo (Dutch law) determines who are able to become representatives as well as an enforced order." />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.17.2--20200901000000" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-3333" />
        <comment value="Vertegenwoordiging" />
      </mapping>
    </element>
    <element id="Condition.subject">
      <path value="Condition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/bc-Woman" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/bc-Child" />
      </type>
    </element>
    <element id="Condition.onset[x]">
      <path value="Condition.onset[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-7861" />
        <comment value="DatumAanvang" />
      </mapping>
    </element>
    <element id="Condition.abatement[x]">
      <path value="Condition.abatement[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="gebz-peri-v3.2" />
        <map value="peri32-dataelement-7862" />
        <comment value="DatumEinde" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>