<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="EndOfLifeCare" />
  <url value="http://openehr.org/StructureDefinition/EndOfLifeCare" />
  <version value="1.2.0" />
  <name value="EndOfLifeCare" />
  <title value="ROSI - End of life Care" />
  <status value="active" />
  <description value="`[openEHR-EHR-COMPOSITION.care_plan.v0]`&#xA;                             A persistent and managed list of any combination of archetypes that will support the accurate recording of a Care plan.)" />
  <fhirVersion value="4.0.1" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://openehr.org/StructureDefinition/EndOfLifeCare" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="EndOfLifeCare">
      <path value="EndOfLifeCare" />
      <short value="ROSI - End of life Care" />
      <definition value="`[openEHR-EHR-COMPOSITION.care_plan.v0]`&#xA;                             A persistent and managed list of any combination of archetypes that will support the accurate recording of a Care plan.)" />
    </element>
    <element id="EndOfLifeCare.category">
      <path value="EndOfLifeCare.category" />
      <short value="category" />
      <definition value="`[RM]`&#xA;                             Temporal category of this Composition, persistent / episodic or event.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Category" />
      </binding>
    </element>
    <element id="EndOfLifeCare.composer">
      <path value="EndOfLifeCare.composer" />
      <short value="composer" />
      <definition value="`[RM]`&#xA;                             The person primarily responsible for the content of the Composition (but not necessarily its committal into the EHR system). This is the identifier which should appear on the screen. It may or may not be the person who entered the data. When it is the patient, the special self instance of `PARTY_SELF` will be used.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext">
      <path value="EndOfLifeCare.eventContext" />
      <short value="Event Context" />
      <definition value="`[at0001]`&#xA;                             )" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.startTime">
      <path value="EndOfLifeCare.eventContext.startTime" />
      <short value="start_time" />
      <definition value="`[RM]`&#xA;                             COMPOSITION.context.start_time - Start time of the clinical session or other kind of event during which a provider performs a service of any kind for the patient.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.setting">
      <path value="EndOfLifeCare.eventContext.setting" />
      <short value="setting" />
      <definition value="`[RM]`&#xA;                             The setting in which the clinical session took place. Coded using the openEHR Terminology, setting group.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Setting" />
      </binding>
    </element>
    <element id="EndOfLifeCare.eventContext.xDSMetadata">
      <path value="EndOfLifeCare.eventContext.xDSMetadata" />
      <short value="XDS Metadata" />
      <definition value="`[openEHR-EHR-CLUSTER.xds_metadata.v0]`&#xA;                             Additional composition metadata aligned with IHE-XDS which is not already available from the Reference Model COMPOSITION class.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.xDSMetadata.documentType">
      <path value="EndOfLifeCare.eventContext.xDSMetadata.documentType" />
      <short value="Document type" />
      <definition value="`[at0003]`&#xA;                             The code specifying the precise type of document from the user perspective. Normally selected from a valueset provided by the local IHE-XDS Affinity Domain or national standard.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/DocumentType" />
      </binding>
    </element>
    <element id="EndOfLifeCare.eventContext.gPSynchDetails">
      <path value="EndOfLifeCare.eventContext.gPSynchDetails" />
      <short value="GP synch details" />
      <definition value="`[openEHR-EHR-CLUSTER.gp_synch_rosi.v0]`&#xA;                             GP synch rosi)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.gPSynchDetails.dateFirstSynchronised">
      <path value="EndOfLifeCare.eventContext.gPSynchDetails.dateFirstSynchronised" />
      <short value="Date first synchronised" />
      <definition value="`[at0001]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.gPSynchDetails.dateLastSynchronised">
      <path value="EndOfLifeCare.eventContext.gPSynchDetails.dateLastSynchronised" />
      <short value="Date last synchronised" />
      <definition value="`[at0002]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.patientSharing">
      <path value="EndOfLifeCare.eventContext.patientSharing" />
      <short value="Patient sharing" />
      <definition value="`[openEHR-EHR-CLUSTER.patient_sharing_rosi.v0]`&#xA;                             patient sharing rosi)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.patientSharing.prognosisToBeSharedWithPatient">
      <path value="EndOfLifeCare.eventContext.patientSharing.prognosisToBeSharedWithPatient" />
      <short value="Prognosis to be shared with patient" />
      <definition value="`[at0001]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/PrognosisToBeSharedWithPatient" />
      </binding>
    </element>
    <element id="EndOfLifeCare.eventContext.patientSharing.reasonForNotSharingPrognosis">
      <path value="EndOfLifeCare.eventContext.patientSharing.reasonForNotSharingPrognosis" />
      <short value="Reason for not sharing prognosis" />
      <definition value="`[at0002]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.careJourneyMetadata">
      <path value="EndOfLifeCare.eventContext.careJourneyMetadata" />
      <short value="Care journey metadata" />
      <definition value="`[openEHR-EHR-CLUSTER.care_journey_metadata.v0]`&#xA;                             Tp capture Care plan metadata)" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.careJourneyMetadata.carePlanName">
      <path value="EndOfLifeCare.eventContext.careJourneyMetadata.carePlanName" />
      <short value="Care plan name" />
      <definition value="`[at0001]`&#xA;                             The name , preferably coded of the Care plan with which this journey is associated, and against which the composition was updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.careJourneyMetadata.carePlanIdentifier">
      <path value="EndOfLifeCare.eventContext.careJourneyMetadata.carePlanIdentifier" />
      <short value="Care plan identifier" />
      <definition value="`[at0002]`&#xA;                             The identifier , preferably coded, of the Care plan with which this journey is associated, and against which the composition was updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.eventContext.careJourneyMetadata.patientJourneyIdentifier">
      <path value="EndOfLifeCare.eventContext.careJourneyMetadata.patientJourneyIdentifier" />
      <short value="Patient journey identifier" />
      <definition value="`[at0003]`&#xA;                             A patient-journey specific identifier i.e unique to a patient's journey along a specific care pathway.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis">
      <path value="EndOfLifeCare.primaryDiagnosis" />
      <short value="Primary diagnosis" />
      <definition value="`[openEHR-EHR-SECTION.adhoc.v1]`&#xA;                             A generic section header which should be renamed in a template to suit a specific clinical context.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis">
      <path value="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis" />
      <short value="Problem/Diagnosis" />
      <definition value="`[openEHR-EHR-EVALUATION.problem_diagnosis.v1]`&#xA;                             Details about a single identified health condition, injury, disability or any other issue which impacts on the physical, mental and/or social well-being of an individual.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.primaryEoLCareDiagnosis">
      <path value="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.primaryEoLCareDiagnosis" />
      <short value="Primary EoL care diagnosis" />
      <definition value="`[at0002]`&#xA;                             Identification of the problem or diagnosis, by name.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://example.org/ValueSet/PrimaryEoLCareDiagnosis" />
      </binding>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.clinicalDescription">
      <path value="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.clinicalDescription" />
      <short value="Clinical description" />
      <definition value="`[at0009]`&#xA;                             Narrative description about the problem or diagnosis.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.lastUpdated">
      <path value="EndOfLifeCare.primaryDiagnosis.ProblemDiagnosis.lastUpdated" />
      <short value="Last updated" />
      <definition value="`[at0070]`&#xA;                             The date this problem or diagnosis was last updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis" />
      <short value="Prognosis" />
      <definition value="`[openEHR-EHR-EVALUATION.prognosis_uk.v0]`&#xA;                             Judgement about the likely outcome of a health condition or situation. Note that in relation to end of&#xA;life care, awareness of prognosis is taken to mean awareness that life-span is limited.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis.prognosis">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis.prognosis" />
      <short value="Prognosis" />
      <definition value="`[at0004]`&#xA;                             An estimate of the prognosis of the illness or condition.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Prognosis" />
      </binding>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis.mainCarerInsight">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis.mainCarerInsight" />
      <short value="Main carer insight" />
      <definition value="`[at0007]`&#xA;                             Is the  main informal carer aware of the patient's prognosis?)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/MainCarerInsight" />
      </binding>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis.patientInsight">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis.patientInsight" />
      <short value="Patient insight" />
      <definition value="`[at0013]`&#xA;                             Does the patient have insight into their illness and/or prognosis?)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/PatientInsight" />
      </binding>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis.comment">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis.comment" />
      <short value="Comment" />
      <definition value="`[at0006]`&#xA;                             Any other comment about the prognosis.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.primaryDiagnosis.Prognosis.dateLastUpdated">
      <path value="EndOfLifeCare.primaryDiagnosis.Prognosis.dateLastUpdated" />
      <short value="Date last updated" />
      <definition value="`[at0003]`&#xA;                             The date that the prognosis was made or last updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions">
      <path value="EndOfLifeCare.coMorbidConditions" />
      <short value="Co-morbid conditions" />
      <definition value="`[openEHR-EHR-SECTION.adhoc.v1]`&#xA;                             A generic section header which should be renamed in a template to suit a specific clinical context.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis">
      <path value="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis" />
      <short value="Problem/Diagnosis" />
      <definition value="`[openEHR-EHR-EVALUATION.problem_diagnosis.v1]`&#xA;                             Details about a single identified health condition, injury, disability or any other issue which impacts on the physical, mental and/or social well-being of an individual.)" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis.coMorbidity">
      <path value="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis.coMorbidity" />
      <short value="Co-morbidity" />
      <definition value="`[at0002]`&#xA;                             Identification of the problem or diagnosis, by name.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis.lastUpdated">
      <path value="EndOfLifeCare.coMorbidConditions.ProblemDiagnosis.lastUpdated" />
      <short value="Last updated" />
      <definition value="`[at0070]`&#xA;                             The date this problem or diagnosis was last updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions.OtherRelevantClinicalIssues">
      <path value="EndOfLifeCare.coMorbidConditions.OtherRelevantClinicalIssues" />
      <short value="Other relevant clinical issues" />
      <definition value="`[openEHR-EHR-EVALUATION.clinical_synopsis.v1]`&#xA;                             Narrative summary or overview about a patient, specifically from the perspective of a healthcare provider, and with or without associated interpretations.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.coMorbidConditions.OtherRelevantClinicalIssues.otherRelevantClinicalIssues">
      <path value="EndOfLifeCare.coMorbidConditions.OtherRelevantClinicalIssues.otherRelevantClinicalIssues" />
      <short value="Other relevant clinical issues" />
      <definition value="`[at0002]`&#xA;                             The summary, assessment, conclusions or evaluation of the clinical findings.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.ClinicalFrailtyScale(CFS)">
      <path value="EndOfLifeCare.ClinicalFrailtyScale(CFS)" />
      <short value="Clinical Frailty Scale (CFS)" />
      <definition value="`[openEHR-EHR-OBSERVATION.clinical_frailty_scale.v1]`&#xA;                             An assessment scale used to screen for frailty and to broadly stratify degrees of fitness and frailty in an older adult.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.ClinicalFrailtyScale(CFS).time">
      <path value="EndOfLifeCare.ClinicalFrailtyScale(CFS).time" />
      <short value="time" />
      <definition value="`[RM]`&#xA;                             `OBSERVATION.EVENT.time` - Time of this Observation event. If the width is non-zero, it is the time point of the trailing edge of the event.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.ModifiedKarnofskyPerformanceStatusScale">
      <path value="EndOfLifeCare.ModifiedKarnofskyPerformanceStatusScale" />
      <short value="Modified Karnofsky Performance Status Scale" />
      <definition value="`[openEHR-EHR-OBSERVATION.modified_karnofsky_performance_status_scale.v0]`&#xA;                             Modified Karnofsky Performance Status Scale)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.ModifiedKarnofskyPerformanceStatusScale.time">
      <path value="EndOfLifeCare.ModifiedKarnofskyPerformanceStatusScale.time" />
      <short value="time" />
      <definition value="`[RM]`&#xA;                             `OBSERVATION.EVENT.time` - Time of this Observation event. If the width is non-zero, it is the time point of the trailing edge of the event.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications">
      <path value="EndOfLifeCare.JustInCaseMedications" />
      <short value="Just in case medications" />
      <definition value="`[openEHR-EHR-EVALUATION.just_in_case_medication.v0]`&#xA;                             Just in case medication)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.pRNMedication">
      <path value="EndOfLifeCare.JustInCaseMedications.pRNMedication" />
      <short value="PRN medication" />
      <definition value="`[at0010]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.pRNMedication.status">
      <path value="EndOfLifeCare.JustInCaseMedications.pRNMedication.status" />
      <short value="Status" />
      <definition value="`[at0004]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Status" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.pRNMedication.dateChartCompleted">
      <path value="EndOfLifeCare.JustInCaseMedications.pRNMedication.dateChartCompleted" />
      <short value="Date chart completed" />
      <definition value="`[at0042]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.pRNMedication.chartLocation">
      <path value="EndOfLifeCare.JustInCaseMedications.pRNMedication.chartLocation" />
      <short value="Chart location" />
      <definition value="`[at0008]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://example.org/ValueSet/ChartLocation" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.pRNMedication.notes">
      <path value="EndOfLifeCare.JustInCaseMedications.pRNMedication.notes" />
      <short value="Notes" />
      <definition value="`[at0009]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication">
      <path value="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication" />
      <short value="Syringe driver medication" />
      <definition value="`[at0015]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.status">
      <path value="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.status" />
      <short value="Status" />
      <definition value="`[at0016]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Status" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.chartLocation">
      <path value="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.chartLocation" />
      <short value="Chart location" />
      <definition value="`[at0020]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="preferred" />
        <valueSet value="http://example.org/ValueSet/ChartLocation" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.notes">
      <path value="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.notes" />
      <short value="Notes" />
      <definition value="`[at0023]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.syringeDriver">
      <path value="EndOfLifeCare.JustInCaseMedications.syringeDriverMedication.syringeDriver" />
      <short value="Syringe driver" />
      <definition value="`[at0036]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/SyringeDriver" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister">
      <path value="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister" />
      <short value="Authority for trained informal carer to administer" />
      <definition value="`[at0024]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.status">
      <path value="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.status" />
      <short value="Status" />
      <definition value="`[at0025]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Status" />
      </binding>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.informalCarerName">
      <path value="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.informalCarerName" />
      <short value="Informal carer name" />
      <definition value="`[at0035]`&#xA;                             )" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.notes">
      <path value="EndOfLifeCare.JustInCaseMedications.authorityForTrainedInformalCarerToAdminister.notes" />
      <short value="Notes" />
      <definition value="`[at0032]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.oxygen">
      <path value="EndOfLifeCare.JustInCaseMedications.oxygen" />
      <short value="Oxygen" />
      <definition value="`[at0038]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.JustInCaseMedications.oxygen.oxygen">
      <path value="EndOfLifeCare.JustInCaseMedications.oxygen.oxygen" />
      <short value="Oxygen" />
      <definition value="`[at0039]`&#xA;                             )" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/Oxygen" />
      </binding>
    </element>
    <element id="EndOfLifeCare.PreferredPlaceOfDeath">
      <path value="EndOfLifeCare.PreferredPlaceOfDeath" />
      <short value="Preferred place of death" />
      <definition value="`[openEHR-EHR-EVALUATION.care_preference_uk.v0]`&#xA;                             The subject's preferred priorities of care and 'What matters'.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.PreferredPlaceOfDeath.preferredPlaceOfDeath">
      <path value="EndOfLifeCare.PreferredPlaceOfDeath.preferredPlaceOfDeath" />
      <short value="Preferred place of death" />
      <definition value="`[at0015]`&#xA;                             The patient's first choice preferred place of death.)" />
      <min value="0" />
      <max value="2" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/PreferredPlaceOfDeath" />
      </binding>
    </element>
    <element id="EndOfLifeCare.PreferredPlaceOfDeath.preferredPlaceOfDeathLocation">
      <path value="EndOfLifeCare.PreferredPlaceOfDeath.preferredPlaceOfDeathLocation" />
      <short value="Preferred place of death location" />
      <definition value="`[at0036]`&#xA;                             Details of the organisation/location of the preferred place of death.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="EndOfLifeCare.PreferredPlaceOfDeath.dateLastUpdated">
      <path value="EndOfLifeCare.PreferredPlaceOfDeath.dateLastUpdated" />
      <short value="Date last updated" />
      <definition value="`[at0026]`&#xA;                             The date that the preferences were first stated or last updated.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="EndOfLifeCare.HealthcareFundingStatus(UK)">
      <path value="EndOfLifeCare.HealthcareFundingStatus(UK)" />
      <short value="Healthcare funding status (UK)" />
      <definition value="`[openEHR-EHR-ADMIN_ENTRY.healthcare_funding_status_uk.v1]`&#xA;                             The patient's current status with respect to healthcare funding arrangements.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="EndOfLifeCare.HealthcareFundingStatus(UK).fastTrackHealthcareFundingStatus">
      <path value="EndOfLifeCare.HealthcareFundingStatus(UK).fastTrackHealthcareFundingStatus" />
      <short value="Fast-track healthcare funding status" />
      <definition value="`[at0003]`&#xA;                             The status of the patient's fast-track healthcare funding arrangements.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/FastTrackHealthcareFundingStatus" />
      </binding>
    </element>
    <element id="EndOfLifeCare.HealthcareFundingStatus(UK).dS1500DisabilityLivingAllowanceStatus">
      <path value="EndOfLifeCare.HealthcareFundingStatus(UK).dS1500DisabilityLivingAllowanceStatus" />
      <short value="DS1500 Disability living allowance status" />
      <definition value="`[at0008]`&#xA;                             The status of DS1500 disability living allowance application.)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://example.org/ValueSet/DS1500DisabilityLivingAllowanceStatus" />
      </binding>
    </element>
  </differential>
</StructureDefinition>