<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="IRD-CarePlan" />
  <url value="https://health.linova.de/fhir/v1/IRD/CarePlan" />
  <version value="1.0.0" />
  <name value="IRD_CarePlan" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="true" />
  <type value="CarePlan" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
  <derivation value="specialization" />
  <differential>
    <element id="CarePlan">
      <path value="CarePlan" />
      <definition value="A CarePlan represents the planned exercises for a patient which should be executed within a certain timeframe." />
    </element>
    <element id="CarePlan.period">
      <path value="CarePlan.period" />
      <definition value="The time period the CarePlan is intended to be executed by the patient or was executed." />
    </element>
    <element id="CarePlan.subject">
      <path value="CarePlan.subject" />
      <definition value="The patient this CarePlan is intended for." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Patient" />
      </type>
    </element>
    <element id="CarePlan.author">
      <path value="CarePlan.author" />
      <definition value="Author of the CarePlan - either an algorithm or Practitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/CarePlan_Algorithm" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/PractitionerRole" />
      </type>
    </element>
    <element id="CarePlan.goal">
      <path value="CarePlan.goal" />
      <definition value="Each CarePlan defines a goal which it aims to reach. At the end of a CarePlan the goal can be assessed and verified whether it was reached by the patient." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Goal" />
      </type>
    </element>
    <element id="CarePlan.activity.reference">
      <path value="CarePlan.activity.reference" />
      <definition value="Reference to the activity which the patient should execute." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Task" />
      </type>
    </element>
  </differential>
</StructureDefinition>