<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-TreatmentObjective" />
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-TreatmentObjective" />
  <name value="HdBeTreatmentObjective" />
  <title value="HdBe TreatmentObjective" />
  <status value="draft" />
  <date value="2022-10-17T09:09:13.9562003+00:00" />
  <publisher value="Healthdata.be (Sciensano)" />
  <contact>
    <name value="Service portal – healthdata.be" />
    <telecom>
      <system value="url" />
      <value value="https://sciensano.service-now.com/sp" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="The treatment objective describes the desired result of the treatment/interventions in terms of the patient’s diagnosed problem. The objective and target date are entered in addition to the target value. Comparing the healthcare results to the treatment objective provides insight into the effectivity of the treatment/interventions." />
  <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-treatmentobjective-v3.2-2020EN" />
    <uri value="https://zibs.nl/wiki/TreatmentObjective-v3.2(2020EN)" />
    <name value="zib TreatmentObjective-v3.2(2020EN)" />
  </mapping>
  <mapping>
    <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
    <uri value="https://zibs.nl/wiki/FunctionalOrMentalStatus-v3.2(2020EN)" />
    <name value="zib FunctionalOrMentalStatus-v3.2(2020EN)" />
  </mapping>
  <mapping>
    <identity value="HdBe-TreatmentObjective" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-TreatmentObjective" />
    <name value="HdBe logical model TreatmentObjective" />
  </mapping>
  <mapping>
    <identity value="HdBe-FunctionalOrMentalStatus" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-FunctionalOrMentalStatus" />
    <name value="HdBe logical model FunctionalOrMentalStatus" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Goal" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Goal" />
  <derivation value="constraint" />
  <differential>
    <element id="Goal">
      <path value="Goal" />
      <short value="TreatmentObjective" />
      <comment value="Although the CBB model assumes there's a reference from zib TreatmentObjective to a distinct instance of CBB FunctionalOrMentalStatus (in future context), in this profile the concepts of CBB FunctionalOrMentalStatus are mapped directly as this aligns with the way the Goal resource is used." />
      <alias value="Behandeldoel" />
      <mapping>
        <identity value="zib-treatmentobjective-v3.2-2020EN" />
        <map value="NL-CM:13.5.1" />
        <comment value="TreatmentObjective" />
      </mapping>
      <mapping>
        <identity value="HdBe-TreatmentObjective" />
        <map value="TreatmentObjective" />
      </mapping>
    </element>
    <element id="Goal.lifecycleStatus">
      <path value="Goal.lifecycleStatus" />
      <comment value="No CBB concept can be mapped (implicitly). Unless `lifecycleStatus` is explicitly recorded, TreatmentObjectives may assumed to be _active_." />
    </element>
    <element id="Goal.description.text">
      <path value="Goal.description.text" />
      <short value="DesiredHealthcareResult / StatusName / StatusValue" />
      <definition value="The textual account of the treatment objective. This concept provides the option to define a treatment objective which cannot be described as a measurement value or functional/mental status." />
      <comment value="If the concept desired_healthcare_result is not present in this instance of CBB TreatmentObjective, but desired_health_condition is, `description.text` should be filled with a textual representation of FunctionalOrMentalStatus.status_name and FunctionalOrMentalStatus.status_value." />
      <alias value="GewenstZorgresultaat" />
      <mapping>
        <identity value="zib-treatmentobjective-v3.2-2020EN" />
        <map value="NL-CM:13.5.5" />
        <comment value="DesiredHealthcareResult" />
      </mapping>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.2" />
        <comment value="StatusName (implicit, main mapping is on Goal.target.measure)" />
      </mapping>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.3" />
        <comment value="StatusValue (implicit, main mapping is on Goal.target.detailCodeableConcept)" />
      </mapping>
      <mapping>
        <identity value="HdBe-TreatmentObjective" />
        <map value="DesiredHealthcareResult" />
      </mapping>
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="StatusName" />
        <comment value="implicit, main mapping is on Goal.target.measure" />
      </mapping>
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="StatusValue" />
        <comment value="implicit, main mapping is on Goal.target.detailCodeableConcept" />
      </mapping>
    </element>
    <element id="Goal.target">
      <path value="Goal.target" />
      <short value="DesiredHealthCondition" />
      <definition value="The desired health condition is a target value which can be expressed as the patient’s functional or mental status." />
      <alias value="GewensteGezondheidstoestand" />
      <max value="1" />
      <mapping>
        <identity value="zib-treatmentobjective-v3.2-2020EN" />
        <map value="NL-CM:13.5.3" />
        <comment value="DesiredHealthCondition" />
      </mapping>
      <mapping>
        <identity value="HdBe-TreatmentObjective" />
        <map value="DesiredHealthCondition" />
      </mapping>
    </element>
    <element id="Goal.target.extension">
      <path value="Goal.target.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Goal.target.extension:medicalDevice">
      <path value="Goal.target.extension" />
      <sliceName value="medicalDevice" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/ext-TreatmentObjective.MedicalDevice" />
      </type>
    </element>
    <element id="Goal.target.extension:medicalDevice.value[x]">
      <path value="Goal.target.extension.value[x]" />
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="MedicalDevice" />
      </mapping>
    </element>
    <element id="Goal.target.measure">
      <path value="Goal.target.measure" />
      <short value="StatusName" />
      <definition value="Coded description of the functional or mental status or limitation. &#xD;&#xA;CodeSystem used is SNOMED CT" />
      <alias value="StatusNaam" />
      <binding>
        <strength value="extensible" />
        <description value="Description of the Status" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/StatusName" />
      </binding>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.2" />
        <comment value="StatusName" />
      </mapping>
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="StatusName" />
      </mapping>
    </element>
    <element id="Goal.target.detail[x]">
      <path value="Goal.target.detail[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Goal.target.detail[x]:detailCodeableConcept">
      <path value="Goal.target.detail[x]" />
      <sliceName value="detailCodeableConcept" />
      <short value="StatusValue" />
      <definition value="The extent to which the patient is limited by the functional or mental condition.&#xD;&#xA;If both the status name and the status value are recorded in code, then both values must come from the same code system. If the patient uses a medical device, the evaluation of the extent of the limitation will take place without this aid. The answer codes must be selected from the subselection of the code system corresponding with the request in accordance with the rules applicable to that system." />
      <alias value="StatusWaarde" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.healthdata.be/ValueSet/StatusValue" />
      </binding>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.3" />
        <comment value="StatusValue" />
      </mapping>
      <mapping>
        <identity value="HdBe-TreatmentObjective" />
        <map value="StatusValue" />
      </mapping>
    </element>
    <element id="Goal.target.due[x]">
      <path value="Goal.target.due[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Goal.target.due[x]:dueDate">
      <path value="Goal.target.due[x]" />
      <sliceName value="dueDate" />
      <short value="StatusDate" />
      <definition value="Indicates the date of the DesiredHealthCondition by which the goal should be met." />
      <alias value="StatusDatum" />
      <type>
        <code value="date" />
      </type>
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.6" />
        <comment value="StatusDate" />
      </mapping>
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="StatusDate" />
      </mapping>
    </element>
    <element id="Goal.addresses">
      <path value="Goal.addresses" />
      <short value="Problem" />
      <definition value="Description of the problem to which the treatment objective applies." />
      <alias value="Probleem" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RiskAssessment" />
        <targetProfile value="https://fhir.healthdata.be/StructureDefinition/HdBe-Problem" />
      </type>
      <mapping>
        <identity value="zib-treatmentobjective-v3.2-2020EN" />
        <map value="NL-CM:13.5.4" />
        <comment value="Problem" />
      </mapping>
      <mapping>
        <identity value="HdBe-TreatmentObjective" />
        <map value="Problem" />
      </mapping>
    </element>
    <element id="Goal.note">
      <path value="Goal.note" />
      <max value="1" />
    </element>
    <element id="Goal.note.text">
      <path value="Goal.note.text" />
      <short value="Comment" />
      <definition value="Explanatory comments as a description of the functional or mental status." />
      <alias value="Toelichting" />
      <mapping>
        <identity value="zib-functionalormentalstatus-v3.2-2020EN" />
        <map value="NL-CM:4.26.4" />
        <comment value="Comment" />
      </mapping>
      <mapping>
        <identity value="HdBe-FunctionalOrMentalStatus" />
        <map value="Comment" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>