{
  "resourceType": "StructureDefinition",
  "id": "32c6ffde-9d90-47bd-a93c-555f29a642ae",
  "meta": {
    "lastUpdated": "2020-06-29T09:51:47.135+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/EncounterCore/v1",
  "name": "EncounterCore",
  "status": "draft",
  "date": "2020-06-29T09:51:31.015214+00:00",
  "description": "The EncounterCore is defined as an interaction between a patient and healtcare provider(s) for the purpose of providing healtcare service(s) or assessing the health status of a patient. (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": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Encounter.meta.source",
        "path": "Encounter.meta.source",
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier.use",
        "path": "Encounter.identifier.use",
        "comment": "Not applicable for contact identifiers.",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.type",
        "path": "Encounter.identifier.type",
        "comment": "Not applicable for contact identifiers.",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "min": 1
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "min": 1
      },
      {
        "id": "Encounter.identifier.period",
        "path": "Encounter.identifier.period",
        "max": "0"
      },
      {
        "id": "Encounter.identifier.assigner",
        "path": "Encounter.identifier.assigner",
        "comment": "Removed as this is not supported by Cambio applications",
        "max": "0"
      },
      {
        "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.classHistory",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ClassHistory"
          }
        ],
        "path": "Encounter.classHistory",
        "max": "0"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "comment": "One (contact) type belongs to one class (contact type category)."
      },
      {
        "id": "Encounter.serviceType",
        "path": "Encounter.serviceType",
        "comment": "Most probably a service (Swe: vårdtjänst) in COSMIC."
      },
      {
        "id": "Encounter.priority.coding",
        "path": "Encounter.priority.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Encounter.priority.coding:SnomedCTCoding",
        "path": "Encounter.priority.coding",
        "sliceName": "SnomedCTCoding",
        "max": "1"
      },
      {
        "id": "Encounter.priority.coding:SnomedCTCoding.system",
        "path": "Encounter.priority.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Encounter.participant.individual",
        "path": "Encounter.participant.individual",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Encounter.reasonCode.coding",
        "path": "Encounter.reasonCode.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Encounter.reasonCode.coding:SEReasonCodes",
        "path": "Encounter.reasonCode.coding",
        "sliceName": "SEReasonCodes"
      },
      {
        "id": "Encounter.account",
        "path": "Encounter.account",
        "max": "1"
      },
      {
        "id": "Encounter.hospitalization.preAdmissionIdentifier",
        "path": "Encounter.hospitalization.preAdmissionIdentifier",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.reAdmission",
        "path": "Encounter.hospitalization.reAdmission",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.dietPreference",
        "path": "Encounter.hospitalization.dietPreference",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.specialCourtesy",
        "path": "Encounter.hospitalization.specialCourtesy",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.specialArrangement",
        "path": "Encounter.hospitalization.specialArrangement",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "comment": "Maps to responsible unit in COSMIC."
      }
    ]
  }
}