<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-BowelFunction" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction" />
  <name value="ZibBowelFunction" />
  <title value="zib BowelFunction" />
  <status value="draft" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="An important function of the rectum in particular is the temporary storage and excretion of feces, at the moment there is cause to do so. Disrupting the bowel functions can lead to fecal incontinence and constipation." />
  <purpose value="This Observation resource represents the Dutch [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) BowelFunction v3.1.1 (2020)](https://zibs.nl/wiki/BowelFunction-v3.1.1(2020EN))." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="zib-bowelfunction-v3.1.1-2020EN" />
    <uri value="https://zibs.nl/wiki/BowelFunction-v3.1.1(2020EN)" />
    <name value="zib BowelFunction-v3.1.1(2020EN)" />
  </mapping>
  <kind value="resource" />
  <abstract value="true" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <short value="BowelFunction" />
      <comment value="Several concepts of zib BowelFunction are represented using distinct Observation resources. These are grouped using the current resource and are referenced on `Observation.hasMember`:&#xD;&#xA;&#xD;&#xA;* FecalContinence (NL-CM:4.15.2): [zib-BowelFunction.FecalContinence](http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.FecalContinence)&#xD;&#xA;* Frequency (NL-CM:4.15.4): [zib-BowelFunction.Frequency](http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.Frequency)&#xD;&#xA;* DefecationConsistency(NL-CM:4.15.9): [zib-BowelFunction.DefecationConsistency](http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.DefecationConsistency)&#xD;&#xA;* DefecationColor(NL-CM:4.15.10): [zib-BowelFunction.DefecationColor](http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.DefecationColor)" />
      <alias value="Darmfunctie" />
      <mapping>
        <identity value="zib-bowelfunction-v3.1.1-2020EN" />
        <map value="NL-CM:4.15.1" />
        <comment value="BowelFunction" />
      </mapping>
    </element>
    <element id="Observation.extension:stoma">
      <path value="Observation.extension" />
      <sliceName value="stoma" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-StomaReference" />
      </type>
    </element>
    <element id="Observation.extension:stoma.value[x]">
      <path value="Observation.extension.value[x]" />
      <short value="Stoma" />
      <definition value="Stoma describes the presence of an unnatural, surgically created opening. If the patient has a stoma, the type of stoma must be entered along with the date on and location at which the stoma and any stoma pouches were placed. A comment can also be entered." />
      <alias value="Stoma" />
      <mapping>
        <identity value="zib-bowelfunction-v3.1.1-2020EN" />
        <map value="NL-CM:4.15.3" />
        <comment value="Stoma" />
      </mapping>
    </element>
    <element id="Observation.extension:incontinenceMaterial">
      <path value="Observation.extension" />
      <sliceName value="incontinenceMaterial" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.extension:incontinenceMaterial.value[x]">
      <path value="Observation.extension.value[x]" />
      <short value="IncontinenceMaterial" />
      <definition value="A description of the incontinence material used." />
      <alias value="Incontinentiemateriaal" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDevice" />
      </type>
      <mapping>
        <identity value="zib-bowelfunction-v3.1.1-2020EN" />
        <map value="NL-CM:4.15.6" />
        <comment value="IncontinenceMaterial" />
      </mapping>
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="111989001" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <max value="1" />
    </element>
    <element id="Observation.note.text">
      <path value="Observation.note.text" />
      <short value="Comment" />
      <definition value="A comment on the BowelFunction." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-bowelfunction-v3.1.1-2020EN" />
        <map value="NL-CM:4.15.7" />
        <comment value="Comment" />
      </mapping>
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resolve()" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.hasMember:fecalContinence">
      <path value="Observation.hasMember" />
      <sliceName value="fecalContinence" />
      <definition value="The FecalContinence concept (NL-CM:4.15.2) of zib BowelFunction, represented as a distinct Observation resource." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.FecalContinence" />
      </type>
    </element>
    <element id="Observation.hasMember:frequency">
      <path value="Observation.hasMember" />
      <sliceName value="frequency" />
      <definition value="The Frequency concept (NL-CM:4.15.4) of zib BowelFunction, represented as a distinct Observation resource." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.Frequency" />
      </type>
    </element>
    <element id="Observation.hasMember:defecationConsistency">
      <path value="Observation.hasMember" />
      <sliceName value="defecationConsistency" />
      <definition value="The DefecationConsistency concept (NL-CM:4.15.9) of zib BowelFunction, represented as a distinct Observation resource." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.DefecationConsistency" />
      </type>
    </element>
    <element id="Observation.hasMember:defecationColor">
      <path value="Observation.hasMember" />
      <sliceName value="defecationColor" />
      <definition value="The DefecationColor concept (NL-CM:4.15.10) of zib BowelFunction, represented as a distinct Observation resource." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-BowelFunction.DefecationColor" />
      </type>
    </element>
  </differential>
</StructureDefinition>