{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.cambio.se/StructureDefinition/EncounterLite/v1",
  "version": "1.0.0",
  "name": "EncounterLite",
  "status": "draft",
  "description": "This profile is intended to support fetching basic encounter data. This is a \"closed\" profile.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "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",
        "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",
        "max": "0"
      },
      {
        "id": "Encounter.statusHistory",
        "path": "Encounter.statusHistory",
        "max": "0"
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "definition": "Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations. Currently, only the encounters belong to IMP class have been mapped."
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "min": 1
      },
      {
        "id": "Encounter.class.version",
        "path": "Encounter.class.version",
        "min": 1
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "min": 1
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "min": 1
      },
      {
        "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",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/PatientLiteSe/v1"
            ]
          }
        ]
      },
      {
        "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",
        "min": 1
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "min": 1
      },
      {
        "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.hospitalization.preAdmissionIdentifier",
        "path": "Encounter.hospitalization.preAdmissionIdentifier",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.origin",
        "path": "Encounter.hospitalization.origin",
        "max": "0"
      },
      {
        "id": "Encounter.hospitalization.admitSource",
        "path": "Encounter.hospitalization.admitSource",
        "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.location",
        "path": "Encounter.location",
        "min": 1
      },
      {
        "id": "Encounter.location.location",
        "path": "Encounter.location.location",
        "definition": "The location where the encounter takes place. This could be the locations where the patient is physically available or have been availble.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/LocationUnitSe/v1"
            ]
          }
        ]
      },
      {
        "id": "Encounter.location.status",
        "path": "Encounter.location.status",
        "min": 1
      },
      {
        "id": "Encounter.location.physicalType",
        "path": "Encounter.location.physicalType",
        "min": 1
      },
      {
        "id": "Encounter.location.period",
        "path": "Encounter.location.period",
        "max": "0"
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://commonprofiles.care/StructureDefinition/OrganizationSEVendorLite/v1"
            ]
          }
        ]
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "max": "0"
      }
    ]
  }
}