{
  "resourceType": "StructureDefinition",
  "id": "RE02",
  "url": "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE02",
  "name": "PrehospitalDataInEHREncounterPrehospitalEncounterprofile",
  "status": "draft",
  "description": "This profile contains information regarding the communication between patient, emergency department and the paramedics. The purpose of this profile is to assess the health status of the patient prior to arrival to the ER.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter",
        "short": "Informations regarding the incident",
        "definition": "This profile contains information regarding the incident."
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "short": "Danish social security number (CPR)",
        "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",
        "short": "Entry to Danish social security number database",
        "min": 1
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "short": "Unique identifier of 10 digits",
        "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",
        "fixedCode": "finished"
      },
      {
        "id": "Encounter.statusHistory",
        "path": "Encounter.statusHistory",
        "max": "0"
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "fixedCoding": {
          "system": "http://snomed.info/sct",
          "version": "2020/09/30",
          "code": "182813001"
        }
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "max": "0"
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "max": "0"
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "max": "0"
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "max": "0"
      },
      {
        "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",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE09"
            ]
          }
        ]
      },
      {
        "id": "Encounter.subject.reference",
        "path": "Encounter.subject.reference",
        "max": "0"
      },
      {
        "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",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "max": "0"
      },
      {
        "id": "Encounter.participant.period",
        "path": "Encounter.participant.period",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual",
        "path": "Encounter.participant.individual",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE12"
            ]
          }
        ]
      },
      {
        "id": "Encounter.participant.individual.reference",
        "path": "Encounter.participant.individual.reference",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual.type",
        "path": "Encounter.participant.individual.type",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual.identifier",
        "path": "Encounter.participant.individual.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.participant.individual.display",
        "path": "Encounter.participant.individual.display",
        "max": "0"
      },
      {
        "id": "Encounter.appointment",
        "path": "Encounter.appointment",
        "max": "0"
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "max": "0"
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "max": "0"
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "max": "0"
      },
      {
        "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",
        "short": "The organization responsible for this encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://PrehospitalDataInEHR.dk/fhir/StructureDefinition/RE08"
            ]
          }
        ]
      },
      {
        "id": "Encounter.serviceProvider.reference",
        "path": "Encounter.serviceProvider.reference",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.type",
        "path": "Encounter.serviceProvider.type",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.identifier",
        "path": "Encounter.serviceProvider.identifier",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider.display",
        "path": "Encounter.serviceProvider.display",
        "max": "0"
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "max": "0"
      }
    ]
  }
}