{
  "resourceType": "StructureDefinition",
  "id": "Encounter",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Encounter/v1",
  "version": "1.0",
  "name": "Encounter",
  "status": "active",
  "date": "2024-01-10T14:02:01.1873929+00:00",
  "description": "This resource is used for information of the patient record.\r\nThe profile is based on the Encounter Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.id",
        "path": "Encounter.id",
        "max": "0"
      },
      {
        "id": "Encounter.meta",
        "path": "Encounter.meta"
      },
      {
        "id": "Encounter.meta.id",
        "path": "Encounter.meta.id",
        "max": "0"
      },
      {
        "id": "Encounter.meta.versionId",
        "path": "Encounter.meta.versionId",
        "min": 1
      },
      {
        "id": "Encounter.meta.lastUpdated",
        "path": "Encounter.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Encounter.meta.source",
        "path": "Encounter.meta.source",
        "max": "0"
      },
      {
        "id": "Encounter.meta.profile",
        "path": "Encounter.meta.profile",
        "max": "0"
      },
      {
        "id": "Encounter.meta.security",
        "path": "Encounter.meta.security",
        "max": "0"
      },
      {
        "id": "Encounter.meta.tag",
        "path": "Encounter.meta.tag",
        "max": "0"
      },
      {
        "id": "Encounter.implicitRules",
        "path": "Encounter.implicitRules",
        "max": "0"
      },
      {
        "id": "Encounter.language",
        "path": "Encounter.language",
        "max": "0"
      },
      {
        "id": "Encounter.text",
        "path": "Encounter.text",
        "max": "0"
      },
      {
        "id": "Encounter.contained",
        "path": "Encounter.contained",
        "max": "0"
      },
      {
        "id": "Encounter.extension",
        "path": "Encounter.extension",
        "min": 1
      },
      {
        "id": "Encounter.extension:receivingOrganization",
        "path": "Encounter.extension",
        "sliceName": "receivingOrganization",
        "definition": "Reference to the receiving organization.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ReceivingOrganizationReference/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:incident",
        "path": "Encounter.extension",
        "sliceName": "incident",
        "definition": "Reference to the incident.",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/IncidentReference/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:incident.value[x].reference",
        "path": "Encounter.extension.value[x].reference",
        "min": 1
      },
      {
        "id": "Encounter.extension:patientEncounterDateTime",
        "path": "Encounter.extension",
        "sliceName": "patientEncounterDateTime",
        "definition": "Date and time of first patient encounter.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientEncounterDateTime/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:priorityToDelivery",
        "path": "Encounter.extension",
        "sliceName": "priorityToDelivery",
        "definition": "Priority of transport to delivery.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PriorityToDelivery/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:patientDelieveryDateTime",
        "path": "Encounter.extension",
        "sliceName": "patientDelieveryDateTime",
        "definition": "This extension contains information of the timestamp (DateTime) of when the patient was delievered at the receiving organization.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientDelieveryDateTime/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:transportationEscort",
        "path": "Encounter.extension",
        "sliceName": "transportationEscort",
        "definition": "The type of medical escort during transport.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/TransportationEscort/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:patientETA",
        "path": "Encounter.extension",
        "sliceName": "patientETA",
        "definition": "Expected delievery time. Estimated time of arrival (Patient ETA) at the delivery address.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/PatientETA/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:characteristicOrLocation",
        "path": "Encounter.extension",
        "sliceName": "characteristicOrLocation",
        "definition": "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": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/CharacteristicOrLocation/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:treatmentPriority",
        "path": "Encounter.extension",
        "sliceName": "treatmentPriority",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/TreatmentPriority/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:closedOnSite",
        "path": "Encounter.extension",
        "sliceName": "closedOnSite",
        "definition": "Information regarding the registration being closed on site.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/ClosedOnSite/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.extension:vehicleDamage",
        "path": "Encounter.extension",
        "sliceName": "vehicleDamage",
        "definition": "Position of the damage of the vehicle.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/VehicleDamage/v1"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "definition": "Identifier by which this encounter is known.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.identifier.use",
        "path": "Encounter.identifier.use",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.type",
        "path": "Encounter.identifier.type",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "definition": "The namespace for the encounter.",
        "min": 1,
        "fixedUri": "http://amphisystems.com/amphi/encounterid"
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "definition": "Unique value of the encounter.",
        "min": 1
      },
      {
        "id": "Encounter.identifier.period",
        "path": "Encounter.identifier.period",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.assigner",
        "path": "Encounter.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "definition": "Status of the encounter resource.\r\n\r\nWhen 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."
      },
      {
        "id": "Encounter.statusHistory",
        "path": "Encounter.statusHistory",
        "max": "0"
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "definition": "Classification / type of patient encounter."
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "definition": "Identity of a terminology system.",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "max": "0"
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "definition": "Code defined by the system.",
        "min": 1,
        "fixedCode": "FLD"
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "definition": "Representation defined by the system.",
        "min": 1,
        "fixedString": "field"
      },
      {
        "id": "Encounter.class.userSelected",
        "path": "Encounter.class.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.classHistory",
        "path": "Encounter.classHistory",
        "max": "0"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "max": "0"
      },
      {
        "id": "Encounter.priority",
        "path": "Encounter.priority",
        "max": "0"
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "short": "The patient present at the encounter",
        "definition": "The patient present at the encounter.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Encounter.subject.reference",
        "path": "Encounter.subject.reference",
        "definition": "Literal reference to the patient resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "Encounter.subject.type",
        "path": "Encounter.subject.type",
        "max": "0"
      },
      {
        "id": "Encounter.subject.identifier",
        "path": "Encounter.subject.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.subject.display",
        "path": "Encounter.subject.display",
        "max": "0"
      },
      {
        "id": "Encounter.episodeOfCare",
        "path": "Encounter.episodeOfCare",
        "max": "0"
      },
      {
        "id": "Encounter.basedOn",
        "path": "Encounter.basedOn",
        "max": "0"
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "max": "0"
      },
      {
        "id": "Encounter.appointment",
        "path": "Encounter.appointment",
        "max": "0"
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "definition": "Start and end time of the patient health record."
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "definition": "Starting time of the patient health record when the patient health record is created. The boundary is inclusive.",
        "min": 1
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "definition": "End time of the patient health record. When the incident is closed.\r\n\r\nIf 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.\r\n\r\nIf 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."
      },
      {
        "id": "Encounter.length",
        "path": "Encounter.length",
        "max": "0"
      },
      {
        "id": "Encounter.reasonCode",
        "path": "Encounter.reasonCode",
        "max": "0"
      },
      {
        "id": "Encounter.reasonReference",
        "path": "Encounter.reasonReference",
        "max": "0"
      },
      {
        "id": "Encounter.diagnosis",
        "path": "Encounter.diagnosis",
        "max": "0"
      },
      {
        "id": "Encounter.account",
        "path": "Encounter.account",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization",
        "path": "Encounter.hospitalization",
        "max": "0"
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "max": "0"
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "max": "0"
      }
    ]
  }
}