<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-Stoma" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-Stoma" />
  <version value="1.1.3" />
  <name value="Zib Stoma" />
  <title value="HCIM Stoma" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Stoma is defined by the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) version 3.2, release 2017.&#xD;&#xA;&#xD;&#xA;A stoma is an unnatural, surgically created opening connecting a body cavity with the outside world. A stoma is created e.g. as an exit opening for feces or urine in the event that they cannot leave the body naturally. In the case of a tracheostomy, the stoma is intended to facilitate breathing if that is no longer possible via the oral, nasal and throat cavity." />
  <purpose value="Information on present stomas is recorded to inform other health professionals. This information is of importance in determining the care required for the patient. In a transfer situation, the information offers the option to realize continuity of care by organizing specific expertise and materials in advance, for example." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="hcim-stoma-v3.2-2017EN" />
    <uri value="https://zibs.nl/wiki/Stoma-v3.2(2017EN)" />
    <name value="HCIM Stoma-v3.2(2017EN)" />
  </mapping>
  <mapping>
    <identity value="hcim-basicelements-v1.0-2017EN" />
    <uri value="https://zibs.nl/wiki/BasicElements-v1.0(2017EN)" />
    <name value="HCIM BasicElements-v1.0(2017EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="Stoma" />
      <alias value="Stoma" />
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.1" />
        <comment value="Stoma" />
      </mapping>
    </element>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <discriminator>
          <type value="value" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding:stomaCode">
      <path value="Observation.code.coding" />
      <sliceName value="stomaCode" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.code.coding:stomaCode.system">
      <path value="Observation.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.code.coding:stomaCode.code">
      <path value="Observation.code.coding.code" />
      <min value="1" />
      <fixedCode value="245857005" />
    </element>
    <element id="Observation.code.coding:stomaCode.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Observation.code.coding.display" />
      <defaultValueString value="Stoma (morphologic abnormality)" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.11" />
        <comment value="Subject" />
      </mapping>
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effectiveDateTime" />
      <sliceName value="effectiveDateTime" />
      <short value="CreationDate" />
      <definition value="The date on which the stoma was created in the patient. A vague date, such as only the year, is permitted." />
      <alias value="AanlegDatum" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.5" />
        <comment value="CreationDate" />
      </mapping>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson" />
      </type>
      <mapping>
        <identity value="hcim-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.7" />
        <comment value="Author" />
      </mapping>
    </element>
    <element id="Observation.performer.extension">
      <path value="Observation.performer.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.performer.extension:practitionerRole">
      <path value="Observation.performer.extension" />
      <sliceName value="practitionerRole" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference" />
      </type>
    </element>
    <element id="Observation.value[x]:valueCodeableConcept">
      <path value="Observation.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <short value="Stoma type" />
      <definition value="Stoma type indicates which body cavity the stoma is in and the kind of stoma used." />
      <alias value="StomaType" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <example>
        <label value="Zib example of double-barrelled colostomy" />
        <valueCodeableConcept>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="261072008" />
            <display value="double-barrelled colostomy" />
          </coding>
        </valueCodeableConcept>
      </example>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ObservationCode" />
        </extension>
        <strength value="extensible" />
        <description value="Stoma type code list" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.5.2.1--20171231000000" />
          <display value="StomaTypeCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.2" />
        <comment value="StomaType" />
      </mapping>
    </element>
    <element id="Observation.comment">
      <path value="Observation.comment" />
      <short value="Comment" />
      <definition value="A comment on the stoma." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.7" />
        <comment value="Comment" />
      </mapping>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <short value="AnatomicalLocation" />
      <definition value="Anatomical location of the stoma on the patient." />
      <alias value="AnatomischeLocatie" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite" />
        </extension>
        <strength value="extensible" />
        <description value="Codes describing anatomical locations for a stoma" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.5.2.2--20171231000000" />
          <display value="StomaAnatomischeLocatieCodelijst" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.4" />
        <comment value="AnatomicalLocation" />
      </mapping>
    </element>
    <element id="Observation.bodySite.extension">
      <path value="Observation.bodySite.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.bodySite.extension:Laterality">
      <path value="Observation.bodySite.extension" />
      <sliceName value="Laterality" />
      <short value="Laterality" />
      <alias value="Lateraliteit" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/BodySite-Qualifier" />
      </type>
      <mapping>
        <identity value="hcim-stoma-v3.2-2017EN" />
        <map value="NL-CM:5.2.8" />
        <comment value="Laterality" />
      </mapping>
    </element>
    <element id="Observation.bodySite.extension:Laterality.valueCodeableConcept:valueCodeableConcept">
      <path value="Observation.bodySite.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
      <binding>
        <strength value="extensible" />
        <description value="StomaLateralityCodelist" />
        <valueSetReference>
          <reference value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.5.2.3--20171231000000" />
          <display value="StomaLateralityCodelist" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>