<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="logicalmodel-Bristolstoolscale-R4" />
  <url value="http://linkehr.com/fhir/logicalmodel-bristolstoolscale-R4" />
  <identifier>
    <system value="openEHR-CKM" />
    <value value="openEHR-EHR-OBSERVATION.bristol_stool_scale.v0" />
  </identifier>
  <version value="0" />
  <name value="Bristolstoolscale" />
  <title value="Bristol stool scale" />
  <status value="draft" />
  <date value="2024-06-18" />
  <publisher value="openEHR" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.veratech.es" />
    </telecom>
  </contact>
  <description value="Classification of faeces characteristics according to the Bristol Stool Scale/Score." />
  <purpose value="To record a classification of characteristics of faeces after defaecation, according to the Bristol Stool Scale/Score, sometimes termed the 'Meyers' score." />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="openEHR" />
    <uri value="http://openehr.org" />
    <name value="openEHR Mapping" />
  </mapping>
  <mapping>
    <identity value="openEHR-natural" />
    <uri value="http://openehr.org" />
    <name value="openEHR natural path" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="StructureDefinition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <snapshot>
    <element id="Bristol_stool_scale">
      <path value="Bristol_stool_scale" />
      <short value="Bristol stool scale" />
      <definition value="Classification of faeces characteristics according to the Bristol Stool Scale/Score." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.protocol">
      <path value="Bristol_stool_scale.protocol" />
      <short value="Item tree" />
      <definition value="@ internal @" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.protocol" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.protocol.Extension">
      <path value="Bristol_stool_scale.protocol.Extension" />
      <short value="Extension" />
      <definition value="Additional information required to capture local context or to align with other reference models/formalisms." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Bristol_stool_scale.protocol.Extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series">
      <path value="Bristol_stool_scale.Event_Series" />
      <short value="Event Series" />
      <definition value="@ internal @" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time" />
      <short value="Point-in-time" />
      <definition value="Default, unspecified point in time event which may be explicitly defined in a template or at run-time." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.data">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.data" />
      <short value="Tree" />
      <definition value="@ internal @" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.data" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale" />
      <short value="Bristol stool scale" />
      <definition value="A score to assess the characteristics of faeces after defaecation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale.value">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale.value" />
      <short value="Bristol stool scale" />
      <definition value="A score to assess the characteristics of faeces after defaecation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Bristol_stool_scale.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment" />
      <short value="Comment" />
      <definition value="Additional narrative about the stool scale, not captured in other fields." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment.value">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment.value" />
      <short value="Comment" />
      <definition value="Additional narrative about the stool scale, not captured in other fields." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.data.Comment.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.state">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.state" />
      <short value="Tree" />
      <definition value="@ internal @" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.state" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors" />
      <short value="Confounding factors" />
      <definition value="Record any issues or factors that may impact on the stool scale." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors.value">
      <path value="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors.value" />
      <short value="Confounding factors" />
      <definition value="Record any issues or factors that may impact on the stool scale." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Bristol_stool_scale.Event_Series.Point_in_time.state.Confounding_factors.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
  </snapshot>
</StructureDefinition>