FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagextehr.eu.ehds.models
Resource TypeStructureDefinition
IdStructureDefinition-EHDSEncounter.json
FHIR VersionR5
Sourcehttps://build.fhir.org/ig/Xt-EHR/xt-ehr-common/StructureDefinition-EHDSEncounter.html
URLhttp://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter
Version0.2.1
Statusdraft
Date2026-02-04T19:00:50+00:00
NameEHDSEncounter
TitleEncounter model
DescriptionEHDS refined base model for Encounter
Typehttp://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter
Kindlogical

Resources that use this resource

StructureDefinition
EHDSDischargeReportDischarge Report model
EHDSEncounterEncounter model
EHDSImagingStudyImaging study model
EHDSServiceRequestService request model

Resources that this resource uses

StructureDefinition
EHDSCarePlanCare plan model
EHDSConditionCondition model
EHDSDataSetDataSet model
EHDSEncounterEncounter model
EHDSEpisodeOfCareEpisode of care model
EHDSHealthProfessionalHealth professional model
EHDSLocationLocation model
EHDSObservationObservation model
EHDSOrganisationOrganisation model
EHDSProcedureProcedure model
EHDSServiceRequestService request model

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition EHDSEncounter

NameFlagsCard.TypeDescription & Constraintsdoco
.. EHDSEncounter 0..*EHDSDataSetEncounter model

Elements defined in Ancestors:header
Instances of this logical model can be the target of a Reference
... priority 0..1CodeableConceptPriority
Binding Description: (preferred): hl7:v3-xEncounterAdmissionUrgency
... type 1..1CodeableConceptEncounter type
Binding Description: (preferred): hl7v3:ActEncounterCode
... note 0..1stringA narrative description of the encounter course.
... episodeOfCare 0..*EHDSEpisodeOfCareReference to the episode(s) of care that this encounter should be recorded against
... basedOn[x] 0..*Reference to the request that initiated this encounter
.... basedOnEHDSCarePlanEHDSCarePlan
.... basedOnEHDSServiceRequestEHDSServiceRequest
... partOf 0..1EHDSEncounterReference to another encounter this encounter is part of
... serviceProvider 0..1EHDSOrganisationThe organisation (facility) responsible for this encounter
... actualPeriod 0..1PeriodThe actual start and end time of the encounter
... plannedStartDate 0..1dateTimeThe planned start date/time (or admission date) of the encounter
... plannedEndDate 0..1dateTimeThe planned end date/time (or discharge date) of the encounter
... admission 0..1BaseDetails about the admission to a healthcare service
.... admitter 0..1EHDSHealthProfessionalAdmitting healthcare professional
.... admitSource 0..1CodeableConceptFrom where the patient was admitted (e.g. physician referral, transfer).
Binding Description: (preferred): hl7:admit-source
.... referringProfessional 0..1EHDSHealthProfessionalReferring Healthcare Professional
.... reason[x] 0..*Reason(s) for admission, e.g. problem, procedure or finding.
..... reasonCodeableConceptCodeableConcept
..... reasonEHDSConditionEHDSCondition
..... reasonEHDSProcedureEHDSProcedure
..... reasonEHDSObservationEHDSObservation
.... reasonComment 0..1stringExplanation of the reason for the encounter.
.... legalStatus 0..1CodeableConceptLegal status/situation at admission (indicates the basis on which the patient is staying in a healthcare organisation).
Binding Description: (preferred): SNOMED CT
... discharge 0..1BaseDischarge details
.... destinationType 0..1CodeableConceptType of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc.
Binding Description: (preferred): hl7.discharge-disposition
.... destinationLocation[x] 0..1The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact.
..... destinationLocationEHDSOrganisationEHDSOrganisation
..... destinationLocationEHDSLocationEHDSLocation
... location 0..*BaseList of locations where the patient has been.
.... period 0..1PeriodTime period during which the patient was present at the location
.... organisationPart[x] 1..1Organisation or organisation part (department) where the patient was present.
..... organisationPartEHDSOrganisationEHDSOrganisation
..... organisationPartEHDSLocationEHDSLocation

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "EHDSEncounter",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter",
  "version": "0.2.1",
  "name": "EHDSEncounter",
  "title": "Encounter model",
  "status": "draft",
  "date": "2026-02-04T19:00:50+00:00",
  "publisher": "Xt-EHR",
  "contact": [
    {
      "name": "Xt-EHR",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.xt-ehr.eu/"
        }
      ]
    }
  ],
  "description": "EHDS refined base model for Encounter",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter",
  "baseDefinition": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDataSet",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "0.2.1"
      }
    ],
    "element": [
      {
        "id": "EHDSEncounter",
        "path": "EHDSEncounter",
        "short": "Encounter model",
        "definition": "EHDS refined base model for Encounter",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header",
        "path": "EHDSEncounter.header",
        "short": "Basic metadata for this information",
        "definition": "Basic metadata for this information",
        "min": 1,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.subject",
        "path": "EHDSEncounter.header.subject",
        "short": "Patient/subject information",
        "definition": "Patient/subject information",
        "min": 1,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header.subject",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSPatient"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.identifier",
        "path": "EHDSEncounter.header.identifier",
        "short": "Business identifier for the object, unique within its system. Supporting disambiguation between different contexts (systems/countries).",
        "definition": "Business identifier for the object, unique within its system. Supporting disambiguation between different contexts (systems/countries).",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSDataSet.header.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.author[x]",
        "path": "EHDSEncounter.header.author[x]",
        "short": "Author(s) responsible for the provided information.",
        "definition": "Author(s) responsible for the provided information. The exact role of the responsible author varies across use cases and is specific to individual models.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSDataSet.header.author[x]",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDevice"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.date",
        "path": "EHDSEncounter.header.date",
        "short": "Date and optionally time of authoring/issuing",
        "definition": "Date and optionally time of authoring/issuing",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header.date",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.status",
        "path": "EHDSEncounter.header.status",
        "short": "Status of the resource or document",
        "definition": "Status of the resource or document",
        "min": 1,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.source",
        "path": "EHDSEncounter.header.source",
        "short": "Source of information (e.g. patient, patient's proxy). Used in case the patient has authored the information or the author has submitted patient-stated information.",
        "definition": "Source of information (e.g. patient, patient's proxy). Used in case the patient has authored the information or the author has submitted patient-stated information.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header.source",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "EHDSEncounter.header.language",
        "path": "EHDSEncounter.header.language",
        "short": "Language in which the resource is written. Language is expressed by the IETF language tag.",
        "definition": "Language in which the resource is written. Language is expressed by the IETF language tag.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSDataSet.header.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "BCP 47"
        }
      },
      {
        "id": "EHDSEncounter.priority",
        "path": "EHDSEncounter.priority",
        "short": "Priority",
        "definition": "Indicates the urgency of the encounter.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.priority",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7:v3-xEncounterAdmissionUrgency"
        }
      },
      {
        "id": "EHDSEncounter.type",
        "path": "EHDSEncounter.type",
        "short": "Encounter type",
        "definition": "The type of the encounter whether inpatient or short stay encounter.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.type",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7v3:ActEncounterCode"
        }
      },
      {
        "id": "EHDSEncounter.note",
        "path": "EHDSEncounter.note",
        "short": "A narrative description of the encounter course.",
        "definition": "A narrative description of the encounter course.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.note",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "EHDSEncounter.episodeOfCare",
        "path": "EHDSEncounter.episodeOfCare",
        "short": "Reference to the episode(s) of care that this encounter should be recorded against",
        "definition": "Reference to the episode(s) of care that this encounter should be recorded against",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSEncounter.episodeOfCare",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEpisodeOfCare"
          }
        ]
      },
      {
        "id": "EHDSEncounter.basedOn[x]",
        "path": "EHDSEncounter.basedOn[x]",
        "short": "Reference to the request that initiated this encounter",
        "definition": "Reference to the request that initiated this encounter",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSEncounter.basedOn[x]",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSCarePlan"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSServiceRequest"
          }
        ]
      },
      {
        "id": "EHDSEncounter.partOf",
        "path": "EHDSEncounter.partOf",
        "short": "Reference to another encounter this encounter is part of",
        "definition": "Reference to another encounter this encounter is part of",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.partOf",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter"
          }
        ]
      },
      {
        "id": "EHDSEncounter.serviceProvider",
        "path": "EHDSEncounter.serviceProvider",
        "short": "The organisation (facility) responsible for this encounter",
        "definition": "The organisation (facility) responsible for this encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.serviceProvider",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.actualPeriod",
        "path": "EHDSEncounter.actualPeriod",
        "short": "The actual start and end time of the encounter",
        "definition": "The actual start and end time of the encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.actualPeriod",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "EHDSEncounter.plannedStartDate",
        "path": "EHDSEncounter.plannedStartDate",
        "short": "The planned start date/time (or admission date) of the encounter",
        "definition": "The planned start date/time (or admission date) of the encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.plannedStartDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "EHDSEncounter.plannedEndDate",
        "path": "EHDSEncounter.plannedEndDate",
        "short": "The planned end date/time (or discharge date) of the encounter",
        "definition": "The planned end date/time (or discharge date) of the encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.plannedEndDate",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission",
        "path": "EHDSEncounter.admission",
        "short": "Details about the admission to a healthcare service",
        "definition": "Details about the admission to a healthcare service",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.admitter",
        "path": "EHDSEncounter.admission.admitter",
        "short": "Admitting healthcare professional",
        "definition": "Admitting healthcare professional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission.admitter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.admitSource",
        "path": "EHDSEncounter.admission.admitSource",
        "short": "From where the patient was admitted (e.g. physician referral, transfer).",
        "definition": "From where the patient was admitted (e.g. physician referral, transfer).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission.admitSource",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7:admit-source"
        }
      },
      {
        "id": "EHDSEncounter.admission.referringProfessional",
        "path": "EHDSEncounter.admission.referringProfessional",
        "short": "Referring Healthcare Professional",
        "definition": "Referring Healthcare Professional",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission.referringProfessional",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.reason[x]",
        "path": "EHDSEncounter.admission.reason[x]",
        "short": "Reason(s) for admission, e.g. problem, procedure or finding.",
        "definition": "Reason(s) for admission, e.g. problem, procedure or finding.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSEncounter.admission.reason[x]",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSCondition"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSProcedure"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSObservation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.reasonComment",
        "path": "EHDSEncounter.admission.reasonComment",
        "short": "Explanation of the reason for the encounter.",
        "definition": "Explanation of the reason for the encounter.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission.reasonComment",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.legalStatus",
        "path": "EHDSEncounter.admission.legalStatus",
        "short": "Legal status/situation at admission (indicates the basis on which the patient is staying in a healthcare organisation).",
        "definition": "Legal status can be either voluntary or involuntary, however the legal status is always determined by a court. A patient can also receive healthcare based on a forensic status. (voluntary, involuntary, admission by legal authority).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.admission.legalStatus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "SNOMED CT"
        }
      },
      {
        "id": "EHDSEncounter.discharge",
        "path": "EHDSEncounter.discharge",
        "short": "Discharge details",
        "definition": "Discharge details",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.discharge",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.discharge.destinationType",
        "path": "EHDSEncounter.discharge.destinationType",
        "short": "Type of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc.",
        "definition": "Type of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.discharge.destinationType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7.discharge-disposition"
        }
      },
      {
        "id": "EHDSEncounter.discharge.destinationLocation[x]",
        "path": "EHDSEncounter.discharge.destinationLocation[x]",
        "short": "The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact.",
        "definition": "The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.discharge.destinationLocation[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSLocation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location",
        "path": "EHDSEncounter.location",
        "short": "List of locations where the patient has been.",
        "definition": "List of locations where the patient has been.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "EHDSEncounter.location",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location.period",
        "path": "EHDSEncounter.location.period",
        "short": "Time period during which the patient was present at the location",
        "definition": "Time period during which the patient was present at the location",
        "min": 0,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.location.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location.organisationPart[x]",
        "path": "EHDSEncounter.location.organisationPart[x]",
        "short": "Organisation or organisation part (department) where the patient was present.",
        "definition": "Organisation or organisation part (department) where the patient was present.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "EHDSEncounter.location.organisationPart[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSLocation"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "EHDSEncounter",
        "path": "EHDSEncounter",
        "short": "Encounter model",
        "definition": "EHDS refined base model for Encounter"
      },
      {
        "id": "EHDSEncounter.priority",
        "path": "EHDSEncounter.priority",
        "short": "Priority",
        "definition": "Indicates the urgency of the encounter.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7:v3-xEncounterAdmissionUrgency"
        }
      },
      {
        "id": "EHDSEncounter.type",
        "path": "EHDSEncounter.type",
        "short": "Encounter type",
        "definition": "The type of the encounter whether inpatient or short stay encounter.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7v3:ActEncounterCode"
        }
      },
      {
        "id": "EHDSEncounter.note",
        "path": "EHDSEncounter.note",
        "short": "A narrative description of the encounter course.",
        "definition": "A narrative description of the encounter course.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "EHDSEncounter.episodeOfCare",
        "path": "EHDSEncounter.episodeOfCare",
        "short": "Reference to the episode(s) of care that this encounter should be recorded against",
        "definition": "Reference to the episode(s) of care that this encounter should be recorded against",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEpisodeOfCare"
          }
        ]
      },
      {
        "id": "EHDSEncounter.basedOn[x]",
        "path": "EHDSEncounter.basedOn[x]",
        "short": "Reference to the request that initiated this encounter",
        "definition": "Reference to the request that initiated this encounter",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSCarePlan"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSServiceRequest"
          }
        ]
      },
      {
        "id": "EHDSEncounter.partOf",
        "path": "EHDSEncounter.partOf",
        "short": "Reference to another encounter this encounter is part of",
        "definition": "Reference to another encounter this encounter is part of",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSEncounter"
          }
        ]
      },
      {
        "id": "EHDSEncounter.serviceProvider",
        "path": "EHDSEncounter.serviceProvider",
        "short": "The organisation (facility) responsible for this encounter",
        "definition": "The organisation (facility) responsible for this encounter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.actualPeriod",
        "path": "EHDSEncounter.actualPeriod",
        "short": "The actual start and end time of the encounter",
        "definition": "The actual start and end time of the encounter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "EHDSEncounter.plannedStartDate",
        "path": "EHDSEncounter.plannedStartDate",
        "short": "The planned start date/time (or admission date) of the encounter",
        "definition": "The planned start date/time (or admission date) of the encounter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "EHDSEncounter.plannedEndDate",
        "path": "EHDSEncounter.plannedEndDate",
        "short": "The planned end date/time (or discharge date) of the encounter",
        "definition": "The planned end date/time (or discharge date) of the encounter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission",
        "path": "EHDSEncounter.admission",
        "short": "Details about the admission to a healthcare service",
        "definition": "Details about the admission to a healthcare service",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.admitter",
        "path": "EHDSEncounter.admission.admitter",
        "short": "Admitting healthcare professional",
        "definition": "Admitting healthcare professional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.admitSource",
        "path": "EHDSEncounter.admission.admitSource",
        "short": "From where the patient was admitted (e.g. physician referral, transfer).",
        "definition": "From where the patient was admitted (e.g. physician referral, transfer).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7:admit-source"
        }
      },
      {
        "id": "EHDSEncounter.admission.referringProfessional",
        "path": "EHDSEncounter.admission.referringProfessional",
        "short": "Referring Healthcare Professional",
        "definition": "Referring Healthcare Professional",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSHealthProfessional"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.reason[x]",
        "path": "EHDSEncounter.admission.reason[x]",
        "short": "Reason(s) for admission, e.g. problem, procedure or finding.",
        "definition": "Reason(s) for admission, e.g. problem, procedure or finding.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSCondition"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSProcedure"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSObservation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.reasonComment",
        "path": "EHDSEncounter.admission.reasonComment",
        "short": "Explanation of the reason for the encounter.",
        "definition": "Explanation of the reason for the encounter.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "EHDSEncounter.admission.legalStatus",
        "path": "EHDSEncounter.admission.legalStatus",
        "short": "Legal status/situation at admission (indicates the basis on which the patient is staying in a healthcare organisation).",
        "definition": "Legal status can be either voluntary or involuntary, however the legal status is always determined by a court. A patient can also receive healthcare based on a forensic status. (voluntary, involuntary, admission by legal authority).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "SNOMED CT"
        }
      },
      {
        "id": "EHDSEncounter.discharge",
        "path": "EHDSEncounter.discharge",
        "short": "Discharge details",
        "definition": "Discharge details",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.discharge.destinationType",
        "path": "EHDSEncounter.discharge.destinationType",
        "short": "Type of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc.",
        "definition": "Type of location to which the patient will go after the encounter. E.g. home, hospital, nursing home, left against medical advice etc.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "description": "hl7.discharge-disposition"
        }
      },
      {
        "id": "EHDSEncounter.discharge.destinationLocation[x]",
        "path": "EHDSEncounter.discharge.destinationLocation[x]",
        "short": "The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact.",
        "definition": "The location/organisation to which the patient will go after the encounter. Name, address and telecommunication contact.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSLocation"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location",
        "path": "EHDSEncounter.location",
        "short": "List of locations where the patient has been.",
        "definition": "List of locations where the patient has been.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Base"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location.period",
        "path": "EHDSEncounter.location.period",
        "short": "Time period during which the patient was present at the location",
        "definition": "Time period during which the patient was present at the location",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "EHDSEncounter.location.organisationPart[x]",
        "path": "EHDSEncounter.location.organisationPart[x]",
        "short": "Organisation or organisation part (department) where the patient was present.",
        "definition": "Organisation or organisation part (department) where the patient was present.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSOrganisation"
          },
          {
            "code": "http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSLocation"
          }
        ]
      }
    ]
  }
}