<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Encounter" />
  <url value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Encounter/v1" />
  <version value="1.0" />
  <name value="Encounter" />
  <status value="active" />
  <date value="2024-01-10T14:02:01.1873929+00:00" />
  <description value="This resource is used for information of the patient record.&#xD;&#xA;The profile is based on the Encounter Resource." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Encounter" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Encounter" />
  <derivation value="constraint" />
  <differential>
    <element id="Encounter.id">
      <path value="Encounter.id" />
      <max value="0" />
    </element>
    <element id="Encounter.meta">
      <path value="Encounter.meta" />
    </element>
    <element id="Encounter.meta.id">
      <path value="Encounter.meta.id" />
      <max value="0" />
    </element>
    <element id="Encounter.meta.versionId">
      <path value="Encounter.meta.versionId" />
      <min value="1" />
    </element>
    <element id="Encounter.meta.lastUpdated">
      <path value="Encounter.meta.lastUpdated" />
      <min value="1" />
    </element>
    <element id="Encounter.meta.source">
      <path value="Encounter.meta.source" />
      <max value="0" />
    </element>
    <element id="Encounter.meta.profile">
      <path value="Encounter.meta.profile" />
      <max value="0" />
    </element>
    <element id="Encounter.meta.security">
      <path value="Encounter.meta.security" />
      <max value="0" />
    </element>
    <element id="Encounter.meta.tag">
      <path value="Encounter.meta.tag" />
      <max value="0" />
    </element>
    <element id="Encounter.implicitRules">
      <path value="Encounter.implicitRules" />
      <max value="0" />
    </element>
    <element id="Encounter.language">
      <path value="Encounter.language" />
      <max value="0" />
    </element>
    <element id="Encounter.text">
      <path value="Encounter.text" />
      <max value="0" />
    </element>
    <element id="Encounter.contained">
      <path value="Encounter.contained" />
      <max value="0" />
    </element>
    <element id="Encounter.extension">
      <path value="Encounter.extension" />
      <min value="1" />
    </element>
    <element id="Encounter.extension:receivingOrganization">
      <path value="Encounter.extension" />
      <sliceName value="receivingOrganization" />
      <definition value="Reference to the receiving organization." />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ReceivingOrganizationReference/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:incident">
      <path value="Encounter.extension" />
      <sliceName value="incident" />
      <definition value="Reference to the incident." />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/IncidentReference/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:incident.value[x].reference">
      <path value="Encounter.extension.value[x].reference" />
      <min value="1" />
    </element>
    <element id="Encounter.extension:patientEncounterDateTime">
      <path value="Encounter.extension" />
      <sliceName value="patientEncounterDateTime" />
      <definition value="Date and time of first patient encounter." />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientEncounterDateTime/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:priorityToDelivery">
      <path value="Encounter.extension" />
      <sliceName value="priorityToDelivery" />
      <definition value="Priority of transport to delivery." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PriorityToDelivery/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:patientDelieveryDateTime">
      <path value="Encounter.extension" />
      <sliceName value="patientDelieveryDateTime" />
      <definition value="This extension contains information of the timestamp (DateTime) of when the patient was delievered at the receiving organization." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientDelieveryDateTime/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:transportationEscort">
      <path value="Encounter.extension" />
      <sliceName value="transportationEscort" />
      <definition value="The type of medical escort during transport." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/TransportationEscort/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:patientETA">
      <path value="Encounter.extension" />
      <sliceName value="patientETA" />
      <definition value="Expected delievery time. Estimated time of arrival (Patient ETA) at the delivery address." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientETA/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:characteristicOrLocation">
      <path value="Encounter.extension" />
      <sliceName value="characteristicOrLocation" />
      <definition value="This element contains the registration of characteristic or location which describes any characteristics or the location of the patient at the casualty clearing station collection point." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/CharacteristicOrLocation/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:treatmentPriority">
      <path value="Encounter.extension" />
      <sliceName value="treatmentPriority" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/TreatmentPriority/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:closedOnSite">
      <path value="Encounter.extension" />
      <sliceName value="closedOnSite" />
      <definition value="Information regarding the registration being closed on site." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ClosedOnSite/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.extension:vehicleDamage">
      <path value="Encounter.extension" />
      <sliceName value="vehicleDamage" />
      <definition value="Position of the damage of the vehicle." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/VehicleDamage/v1" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Encounter.identifier">
      <path value="Encounter.identifier" />
      <definition value="Identifier by which this encounter is known." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Encounter.identifier.use">
      <path value="Encounter.identifier.use" />
      <max value="0" />
    </element>
    <element id="Encounter.identifier.type">
      <path value="Encounter.identifier.type" />
      <max value="0" />
    </element>
    <element id="Encounter.identifier.system">
      <path value="Encounter.identifier.system" />
      <definition value="The namespace for the encounter." />
      <min value="1" />
      <fixedUri value="http://amphisystems.com/amphi/encounterid" />
    </element>
    <element id="Encounter.identifier.value">
      <path value="Encounter.identifier.value" />
      <definition value="Unique value of the encounter." />
      <min value="1" />
    </element>
    <element id="Encounter.identifier.period">
      <path value="Encounter.identifier.period" />
      <max value="0" />
    </element>
    <element id="Encounter.identifier.assigner">
      <path value="Encounter.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Encounter.status">
      <path value="Encounter.status" />
      <definition value="Status of the encounter resource.&#xD;&#xA;&#xD;&#xA;When encounter is created status is 'in progress', and when the incident of the encounter is closed or the registration on the patient record is set to be terminated, the status is 'finished'. When the incident is closed the journal automatically forced closed." />
    </element>
    <element id="Encounter.statusHistory">
      <path value="Encounter.statusHistory" />
      <max value="0" />
    </element>
    <element id="Encounter.class">
      <path value="Encounter.class" />
      <definition value="Classification / type of patient encounter." />
    </element>
    <element id="Encounter.class.system">
      <path value="Encounter.class.system" />
      <definition value="Identity of a terminology system." />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
    </element>
    <element id="Encounter.class.version">
      <path value="Encounter.class.version" />
      <max value="0" />
    </element>
    <element id="Encounter.class.code">
      <path value="Encounter.class.code" />
      <definition value="Code defined by the system." />
      <min value="1" />
      <fixedCode value="FLD" />
    </element>
    <element id="Encounter.class.display">
      <path value="Encounter.class.display" />
      <definition value="Representation defined by the system." />
      <min value="1" />
      <fixedString value="field" />
    </element>
    <element id="Encounter.class.userSelected">
      <path value="Encounter.class.userSelected" />
      <max value="0" />
    </element>
    <element id="Encounter.classHistory">
      <path value="Encounter.classHistory" />
      <max value="0" />
    </element>
    <element id="Encounter.type">
      <path value="Encounter.type" />
      <max value="0" />
    </element>
    <element id="Encounter.serviceType">
      <path value="Encounter.serviceType" />
      <max value="0" />
    </element>
    <element id="Encounter.priority">
      <path value="Encounter.priority" />
      <max value="0" />
    </element>
    <element id="Encounter.subject">
      <path value="Encounter.subject" />
      <short value="The patient present at the encounter" />
      <definition value="The patient present at the encounter." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Encounter.subject.reference">
      <path value="Encounter.subject.reference" />
      <definition value="Literal reference to the patient resource. Relative URL is being used." />
      <min value="1" />
    </element>
    <element id="Encounter.subject.type">
      <path value="Encounter.subject.type" />
      <max value="0" />
    </element>
    <element id="Encounter.subject.identifier">
      <path value="Encounter.subject.identifier" />
      <max value="0" />
    </element>
    <element id="Encounter.subject.display">
      <path value="Encounter.subject.display" />
      <max value="0" />
    </element>
    <element id="Encounter.episodeOfCare">
      <path value="Encounter.episodeOfCare" />
      <max value="0" />
    </element>
    <element id="Encounter.basedOn">
      <path value="Encounter.basedOn" />
      <max value="0" />
    </element>
    <element id="Encounter.participant">
      <path value="Encounter.participant" />
      <max value="0" />
    </element>
    <element id="Encounter.appointment">
      <path value="Encounter.appointment" />
      <max value="0" />
    </element>
    <element id="Encounter.period">
      <path value="Encounter.period" />
      <definition value="Start and end time of the patient health record." />
    </element>
    <element id="Encounter.period.start">
      <path value="Encounter.period.start" />
      <definition value="Starting time of the patient health record when the patient health record is created. The boundary is inclusive." />
      <min value="1" />
    </element>
    <element id="Encounter.period.end">
      <path value="Encounter.period.end" />
      <definition value="End time of the patient health record. When the incident is closed.&#xD;&#xA;&#xD;&#xA;If this element is not set, or/and the incident is finished (Incident.status = 'finished' – when implemented), the registration reflects that the patient health record is closed, but the EMS Unit has had lost signal or a post registration on the patient health record has been made.&#xD;&#xA;&#xD;&#xA;If this element is not set, or/and the incident is not finished (Incident.status = 'in-progress' – when implemented), the registration reflects that the patient health record is not yet closed." />
    </element>
    <element id="Encounter.length">
      <path value="Encounter.length" />
      <max value="0" />
    </element>
    <element id="Encounter.reasonCode">
      <path value="Encounter.reasonCode" />
      <max value="0" />
    </element>
    <element id="Encounter.reasonReference">
      <path value="Encounter.reasonReference" />
      <max value="0" />
    </element>
    <element id="Encounter.diagnosis">
      <path value="Encounter.diagnosis" />
      <max value="0" />
    </element>
    <element id="Encounter.account">
      <path value="Encounter.account" />
      <max value="0" />
    </element>
    <element id="Encounter.hospitalization">
      <path value="Encounter.hospitalization" />
      <max value="0" />
    </element>
    <element id="Encounter.location">
      <path value="Encounter.location" />
      <max value="0" />
    </element>
    <element id="Encounter.serviceProvider">
      <path value="Encounter.serviceProvider" />
      <max value="0" />
    </element>
    <element id="Encounter.partOf">
      <path value="Encounter.partOf" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>