HL7 Europe Common Cancer Model
1.0.0-ballot - ballot 150

HL7 Europe Common Cancer Model - Local Development build (v1.0.0-ballot) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Logical Model: LastFollowUp - XML Profile

Active as of 2026-06-14

XML representation of the LastFollowUp logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="LastFollowUp"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition LastFollowUp</b></p><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp" title="Logical model representing the assessment of the patient’s status at a specific follow-up visit, including vital status and evidence of disease. Derived from Cancer_Common_Logical_Model_20260521.xlsx (sheet LastFollowUp).">LastFollowUp</a><a name="LastFollowUp"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( lfu-1, lfu-2, lfu-3, lfu-4 )">C</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://build.fhir.org/types.html#Base">Base</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">LastFollowUp<br/><span style="font-weight:bold">Instances of this logical model can be the target of a Reference</span><br class="constraint"/><span title="null" class="constraint">Constraints: </span><span style="font-weight:bold" title="EvidenceOfDisease must be present if VitalStatus is Alive; otherwise, it must not be present." class="constraint">lfu-1</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="CauseOfDeath must be present if VitalStatus is Dead; otherwise, it must not be present." class="constraint">lfu-2</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="DeathDate must be present if VitalStatus is Dead; otherwise, it must not be present." class="constraint">lfu-3</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="DeathDate must not be present if VitalStatus is Alive." class="constraint">lfu-4</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.subject" title="Reference to the patient (subject) for whom follow-up information is recorded.">subject</a><a name="LastFollowUp.subject"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-CancerPatient.html">Cancer Patient</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Patient Reference</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.vitalStatus" title="Patient vital status at the time of follow-up (Alive or Dead).">vitalStatus</a><a name="LastFollowUp.vitalStatus"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">VitalStatus</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.evidenceOfDisease" title="If Alive, indicates whether there is evidence of disease at follow-up.">evidenceOfDisease</a><a name="LastFollowUp.evidenceOfDisease"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#boolean">boolean</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">EvidenceOfDisease</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.causeOfDeath" title="If Dead, cause of death.">causeOfDeath</a><a name="LastFollowUp.causeOfDeath"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">CauseOfDeath</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.date" title="Date of the follow-up assessment.">date</a><a name="LastFollowUp.date"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Date</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_primitive.png" alt="." style="background-color: white; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-LastFollowUp-definitions.html#LastFollowUp.deathDate" title="If Dead, the date of death.">deathDate</a><a name="LastFollowUp.deathDate"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">DeathDate</td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <url
           value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
      <version value="1.0.0-ballot"/>
      <name value="LastFollowUp"/>
      <title value="LastFollowUp"/>
      <status value="active"/>
      <date value="2026-06-14T12:51:40+02:00"/>
      <publisher value="HL7 Europe"/>
      <contact>
        <name value="HL7 Europe"/>
        <telecom>
          <system value="url"/>
          <value value="http://hl7.eu"/>
        </telecom>
      </contact>
      <description
                   value="Logical model representing the assessment of the patient’s status at a specific follow-up visit, including vital status and evidence of disease. Derived from Cancer_Common_Logical_Model_20260521.xlsx (sheet LastFollowUp)."/>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="150"/>
          <display value="Europe"/>
        </coding>
      </jurisdiction>
      <copyright
                 value="HL7 Europe Copyright. Licensed under Common Creative License (CC0 1.0). Details at [Copyright](copyright.html)."/>
      <fhirVersion value="4.0.1"/>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="4.0.1"/>
        </extension>
        <element id="LastFollowUp">
          <path value="LastFollowUp"/>
          <short value="LastFollowUp"/>
          <definition
                      value="Logical model representing the assessment of the patient’s status at a specific follow-up visit, including vital status and evidence of disease. Derived from Cancer_Common_Logical_Model_20260521.xlsx (sheet LastFollowUp)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="lfu-1"/>
            <severity value="error"/>
            <human
                   value="EvidenceOfDisease must be present if VitalStatus is Alive; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Alive').exists()) = evidenceOfDisease.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-2"/>
            <severity value="error"/>
            <human
                   value="CauseOfDeath must be present if VitalStatus is Dead; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Dead').exists()) = causeOfDeath.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-3"/>
            <severity value="error"/>
            <human
                   value="DeathDate must be present if VitalStatus is Dead; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Dead').exists()) = deathDate.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-4"/>
            <severity value="error"/>
            <human
                   value="DeathDate must not be present if VitalStatus is Alive."/>
            <expression
                        value="vitalStatus.where(text = 'Alive').exists() implies deathDate.empty()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <isModifier value="false"/>
        </element>
        <element id="LastFollowUp.subject">
          <path value="LastFollowUp.subject"/>
          <short value="Patient Reference"/>
          <definition
                      value="Reference to the patient (subject) for whom follow-up information is recorded."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.subject"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.eu/fhir/cancer-common/StructureDefinition/CancerPatient"/>
          </type>
        </element>
        <element id="LastFollowUp.vitalStatus">
          <path value="LastFollowUp.vitalStatus"/>
          <short value="VitalStatus"/>
          <definition
                      value="Patient vital status at the time of follow-up (Alive or Dead)."/>
          <comment value="Choice: Alive | Dead"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.vitalStatus"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="LastFollowUp.evidenceOfDisease">
          <path value="LastFollowUp.evidenceOfDisease"/>
          <short value="EvidenceOfDisease"/>
          <definition
                      value="If Alive, indicates whether there is evidence of disease at follow-up."/>
          <comment
                   value="If VitalStatus is Alive, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.evidenceOfDisease"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="LastFollowUp.causeOfDeath">
          <path value="LastFollowUp.causeOfDeath"/>
          <short value="CauseOfDeath"/>
          <definition value="If Dead, cause of death."/>
          <comment
                   value="If VitalStatus is Dead, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.causeOfDeath"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="LastFollowUp.date">
          <path value="LastFollowUp.date"/>
          <short value="Date"/>
          <definition value="Date of the follow-up assessment."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.date"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="LastFollowUp.deathDate">
          <path value="LastFollowUp.deathDate"/>
          <short value="DeathDate"/>
          <definition value="If Dead, the date of death."/>
          <comment
                   value="If VitalStatus is Dead, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="LastFollowUp.deathDate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="LastFollowUp">
          <path value="LastFollowUp"/>
          <short value="LastFollowUp"/>
          <definition
                      value="Logical model representing the assessment of the patient’s status at a specific follow-up visit, including vital status and evidence of disease. Derived from Cancer_Common_Logical_Model_20260521.xlsx (sheet LastFollowUp)."/>
          <constraint>
            <key value="lfu-1"/>
            <severity value="error"/>
            <human
                   value="EvidenceOfDisease must be present if VitalStatus is Alive; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Alive').exists()) = evidenceOfDisease.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-2"/>
            <severity value="error"/>
            <human
                   value="CauseOfDeath must be present if VitalStatus is Dead; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Dead').exists()) = causeOfDeath.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-3"/>
            <severity value="error"/>
            <human
                   value="DeathDate must be present if VitalStatus is Dead; otherwise, it must not be present."/>
            <expression
                        value="(vitalStatus.where(text = 'Dead').exists()) = deathDate.exists()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
          <constraint>
            <key value="lfu-4"/>
            <severity value="error"/>
            <human
                   value="DeathDate must not be present if VitalStatus is Alive."/>
            <expression
                        value="vitalStatus.where(text = 'Alive').exists() implies deathDate.empty()"/>
            <source
                    value="http://hl7.eu/fhir/cancer-common/StructureDefinition/LastFollowUp"/>
          </constraint>
        </element>
        <element id="LastFollowUp.subject">
          <path value="LastFollowUp.subject"/>
          <short value="Patient Reference"/>
          <definition
                      value="Reference to the patient (subject) for whom follow-up information is recorded."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.eu/fhir/cancer-common/StructureDefinition/CancerPatient"/>
          </type>
        </element>
        <element id="LastFollowUp.vitalStatus">
          <path value="LastFollowUp.vitalStatus"/>
          <short value="VitalStatus"/>
          <definition
                      value="Patient vital status at the time of follow-up (Alive or Dead)."/>
          <comment value="Choice: Alive | Dead"/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="LastFollowUp.evidenceOfDisease">
          <path value="LastFollowUp.evidenceOfDisease"/>
          <short value="EvidenceOfDisease"/>
          <definition
                      value="If Alive, indicates whether there is evidence of disease at follow-up."/>
          <comment
                   value="If VitalStatus is Alive, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="LastFollowUp.causeOfDeath">
          <path value="LastFollowUp.causeOfDeath"/>
          <short value="CauseOfDeath"/>
          <definition value="If Dead, cause of death."/>
          <comment
                   value="If VitalStatus is Dead, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="LastFollowUp.date">
          <path value="LastFollowUp.date"/>
          <short value="Date"/>
          <definition value="Date of the follow-up assessment."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="LastFollowUp.deathDate">
          <path value="LastFollowUp.deathDate"/>
          <short value="DeathDate"/>
          <definition value="If Dead, the date of death."/>
          <comment
                   value="If VitalStatus is Dead, then this attribute must be present; otherwise, it must not be present."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>