<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="logicalmodel-Macroscopicfindings-colorectalcancer-R4" />
  <url value="http://linkehr.com/fhir/logicalmodel-macroscopicfindings-colorectalcancer-R4" />
  <identifier>
    <system value="openEHR-CKM" />
    <value value="openEHR-EHR-CLUSTER.macroscopy_colorectal_carcinoma.v0" />
  </identifier>
  <version value="0" />
  <name value="Macroscopicfindings-colorectalcancer" />
  <title value="Macroscopic findings - Colorectal cancer" />
  <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="Macroscopic anatomical pathology findings related to colorectal cancer." />
  <purpose value="To record detailed findings about colorectal cancer found on macroscopic histopathological examination." />
  <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="Macroscopic_findings___Colorectal_cancer">
      <path value="Macroscopic_findings___Colorectal_cancer" />
      <short value="Macroscopic findings - Colorectal cancer" />
      <definition value="Macroscopic anatomical pathology findings related to colorectal cancer." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_dimensions">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_dimensions" />
      <short value="Tumour dimensions" />
      <definition value="Details of maximum dimensions of the tumour." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_dimensions" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension">
      <path value="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension" />
      <short value="Maximum extramuscular extension" />
      <definition value="The maximum extramuscular extension of the tumour." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension.value" />
      <short value="Maximum extramuscular extension" />
      <definition value="The maximum extramuscular extension of the tumour." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Maximum_extramuscular_extension.value" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end" />
      <short value="Distance of tumour to nearest cut-end" />
      <definition value="The distance of the tumour to the nearest cut-end (i.e. proximal or distal margin). It is the measurement from the nearest cut end of the specimen and not the non-peritonealised (i.e. circumferential or radial) margin." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end.value" />
      <short value="Distance of tumour to nearest cut-end" />
      <definition value="The distance of the tumour to the nearest cut-end (i.e. proximal or distal margin). It is the measurement from the nearest cut end of the specimen and not the non-peritonealised (i.e. circumferential or radial) margin." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_nearest_cut_end.value" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin" />
      <short value="Distance of tumour to circumferential margin" />
      <definition value="The distance of the tumour to the circumferential or radial margin. It is the measurement to the non-peritonealised margin and not to the nearest cut-end (i.e. proximal,distal)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin.value" />
      <short value="Distance of tumour to circumferential margin" />
      <definition value="The distance of the tumour to the circumferential or radial margin. It is the measurement to the non-peritonealised margin and not to the nearest cut-end (i.e. proximal,distal)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_to_circumferential_margin.value" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line" />
      <short value="Distance of tumour from dentate line" />
      <definition value="For abdominoperineal resection specimens, distance of tumour from the dentate line." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line.value" />
      <short value="Distance of tumour from dentate line" />
      <definition value="For abdominoperineal resection specimens, distance of tumour from the dentate line." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Distance_of_tumour_from_dentate_line.value" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Quantity" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted">
      <path value="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted" />
      <short value="Anastomotic doughnuts submitted" />
      <definition value="Have anastomotic doughnuts been submitted for analysis?" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted.value" />
      <short value="Anastomotic doughnuts submitted" />
      <definition value="Have anastomotic doughnuts been submitted for analysis?" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Anastomotic_doughnuts_submitted.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_perforation">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation" />
      <short value="Tumour perforation" />
      <definition value="Findings related to tumour perforation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation" />
      <short value="Tumour perforation" />
      <definition value="Finding of tumour perforation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation.value" />
      <short value="Tumour perforation" />
      <definition value="Finding of tumour perforation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Tumour_perforation.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="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location" />
      <short value="Perforation location" />
      <definition value="The location of a perforation, if present." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location.value" />
      <short value="Perforation location" />
      <definition value="The location of a perforation, if present." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Perforation_location.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="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Comment">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Comment" />
      <short value="Comment" />
      <definition value="Furrher text comment on the perforation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Comment" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Comment.value">
      <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.Comment.value" />
      <short value="Comment" />
      <definition value="Furrher text comment on the perforation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.Tumour_perforation.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="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours">
      <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours" />
      <short value="For rectal tumours" />
      <definition value="Findings related solely to rectal tumours." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection">
      <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection" />
      <short value="Relationship to anterior peritoneal reflection" />
      <definition value="The relationship of rectal tumour to the anterior peritoneal reflection." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection.value">
      <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection.value" />
      <short value="Relationship to anterior peritoneal reflection" />
      <definition value="The relationship of rectal tumour to the anterior peritoneal reflection." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Relationship_to_anterior_peritoneal_reflection.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="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum">
      <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum" />
      <short value="Intactness of the mesorectum" />
      <definition value="An assessment of the intactness of the mesorectum." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum" />
        <min value="0" />
        <max value="1" />
      </base>
    </element>
    <element id="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum.value">
      <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum.value" />
      <short value="Intactness of the mesorectum" />
      <definition value="An assessment of the intactness of the mesorectum." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Macroscopic_findings___Colorectal_cancer.For_rectal_tumours.Intactness_of_the_mesorectum.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>