{
  "resourceType": "StructureDefinition",
  "id": "c7848e05-12dd-4b75-8a84-be313896214c",
  "meta": {
    "lastUpdated": "2020-06-29T09:53:35.591+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/EncounterEmergency/v1",
  "name": "EncounterEmergency",
  "status": "draft",
  "date": "2020-06-29T09:53:22.5102077+00:00",
  "description": "The Encounter Emergency is defined as an interaction between a patient and healthcare provider(s) that is not planned. (Not implemented yet)",
  "fhirVersion": "4.0.0",
  "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": "https://fhir.cambio.se/StructureDefinition/EncounterOutpatient/v1",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Encounter.meta.source",
        "path": "Encounter.meta.source",
        "mustSupport": true
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "comment": "We only support planned, arrived, in-progress, finished, entered-in-error and cancelled.\r\nFor no-show patients, check Appointment status."
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "comment": "This is a high level categorization of contact types (a contact type group). E.g. outpatient, inpatient, emergency, ambulance and administrative, where each one can have several contact types."
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "min": 1,
        "fixedString": "2018-08-12"
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1,
        "fixedCode": "EMER"
      },
      {
        "id": "Encounter.class.userSelected",
        "path": "Encounter.class.userSelected",
        "max": "0"
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "comment": "Not supported for emergency class encounters."
      },
      {
        "id": "Encounter.priority.coding:SnomedCTCoding",
        "path": "Encounter.priority.coding",
        "sliceName": "SnomedCTCoding",
        "min": 1
      }
    ]
  }
}