Foundation
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v5.0.0:
R5
-
STU
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Responsible Owner: Patient Administration Work Group | Standards Status : Informative | Compartments : Encounter , Group , Patient , Practitioner , RelatedPerson |
ShEx statement for encounter
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <code.shex># ShEx Version 2.2 IMPORT <Code.shex> IMPORT <Group.shex> IMPORT <Period.shex> IMPORT <Coding.shex> IMPORT <Device.shex> IMPORT <Patient.shex> IMPORT <Account.shex>IMPORT <dateTime.shex>IMPORT <DateTime.shex> IMPORT <Duration.shex> IMPORT <Location.shex> IMPORT <CarePlan.shex> IMPORT <CareTeam.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <Appointment.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <EpisodeOfCare.shex> IMPORT <DeviceRequest.shex> IMPORT <DomainResource.shex> IMPORT <NutritionOrder.shex> IMPORT <ServiceRequest.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> IMPORT <CodeableReference.shex> IMPORT <HealthcareService.shex> IMPORT <MedicationRequest.shex> IMPORT <VisionPrescription.shex> IMPORT <VirtualServiceDetail.shex> IMPORT <RequestOrchestration.shex> start=@<Encounter> AND {fhir:nodeRole [fhir:treeRoot]} # An interaction during which services are provided to the patient <Encounter> EXTENDS @<DomainResource> CLOSED {a [fhir:Encounter]?; fhir:nodeRole [fhir:treeRoot]?;a [fhir:Encounter]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Identifier(s) by which this # encounter is knownfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:encounter-status}; # planned | in-progress | on-hold | # discharged | completed | cancelled # | discontinued | entered-in-error # | unknown fhir:businessStatus @<OneOrMore_Encounter.businessStatus>?; # A granular, workflows specific set # of statuses that apply to the # encounter fhir:class @<OneOrMore_CodeableConcept>?; # Classification of patient # encounter context - e.g. # Inpatient, outpatient fhir:priority @<CodeableConcept>?; # Indicates the urgency of the # encounter fhir:type @<OneOrMore_CodeableConcept>?; # Specific type of encounter (e.g. # e-mail consultation, surgical # day-care, ...) fhir:serviceType @<OneOrMore_CodeableReference>?; # Specific type of servicefhir:subject @<Reference> AND {fhir:linkfhir:subject @<Reference> AND {fhir:l @<Group> OR @<Patient> ? }?; # The patient or group related to # this encounter fhir:subjectStatus @<CodeableConcept>?; # The current status of the subject # in relation to the Encounter fhir:episodeOfCare @<OneOrMore_Reference_EpisodeOfCare>?; # Episode(s) of care that this # encounter should be recorded # againstfhir:basedOn @<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_ServiceRequest>?; # The request that initiated thisfhir:basedOn @<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription>?; # The request that initiated this # encounter fhir:careTeam @<OneOrMore_Reference_CareTeam>?; # The group(s) that are allocated to # participate in this encounterfhir:partOf @<Reference> AND {fhir:linkfhir:partOf @<Reference> AND {fhir:l @<Encounter> ? }?; # Another Encounter this encounter # is part offhir:serviceProvider @<Reference> AND {fhir:linkfhir:serviceProvider @<Reference> AND {fhir:l @<Organization> ? }?; # The organization (facility) # responsible for this encounter fhir:participant @<OneOrMore_Encounter.participant>?; # List of participants involved in # the encounter fhir:appointment @<OneOrMore_Reference_Appointment>?; # The appointment that scheduled # this encounter fhir:virtualService @<OneOrMore_VirtualServiceDetail>?; # Connection details of a virtual # service (e.g. conference call) fhir:actualPeriod @<Period>?; # The actual start and end time of # the encounterfhir:plannedStartDate @<dateTime>?; # The planned start date/time (orfhir:plannedStartDate @<DateTime>?; # The planned start date/time (or # admission date) of the encounterfhir:plannedEndDate @<dateTime>?; # The planned end date/time (orfhir:plannedEndDate @<DateTime>?; # The planned end date/time (or # discharge date) of the encounter fhir:length @<Duration>?; # Actual quantity of time the # encounter lasted (less time # absent) fhir:reason @<OneOrMore_Encounter.reason>?; # The list of medical reasons that # are expected to be addressed # during the episode of care fhir:diagnosis @<OneOrMore_Encounter.diagnosis>?; # The list of diagnosis relevant to # this encounter fhir:account @<OneOrMore_Reference_Account>?; # The set of accounts that may be # used for billing for this # Encounter fhir:dietPreference @<OneOrMore_CodeableConcept>?; # Diet preferences reported by the # patient fhir:specialArrangement @<OneOrMore_CodeableConcept>?; # Wheelchair, translator, stretcher, # etc fhir:specialCourtesy @<OneOrMore_CodeableConcept>?; # Special courtesies (VIP, board # member) fhir:admission @<Encounter.admission>?; # Details about the admission to a # healthcare service fhir:location @<OneOrMore_Encounter.location>?; # List of locations where the # patient has been }# Details about the admission to a healthcare service <Encounter.admission> EXTENDS @<BackboneElement> CLOSED { fhir:preAdmissionIdentifier @<Identifier>?; # Pre-admission identifier fhir:origin @<Reference> AND {fhir:link @<Location> OR @<Organization> ? }?; # The location/organization from # which the patient came before # admission fhir:admitSource @<CodeableConcept>?; # From where patient was admitted # (physician referral, transfer) fhir:reAdmission @<CodeableConcept>?; # Indicates that the patient is # being re-admitted fhir:destination @<Reference> AND {fhir:link @<Location> OR @<Organization> ? }?; # Location/organization to which the # patient is discharged fhir:dischargeDisposition @<CodeableConcept>?; # Category or kind of location after # discharge } # The list of medical reasons that are expected to be addressed during the episode of care <Encounter.reason> EXTENDS @<BackboneElement> CLOSED { fhir:use @<OneOrMore_CodeableConcept>?; # What the reason value should be # used for/as fhir:value @<OneOrMore_CodeableReference>?; # Reason the encounter takes place # (core or reference)# A granular, workflows specific set of statuses that apply to the encounter <Encounter.businessStatus> EXTENDS @<BackboneElement> CLOSED { fhir:code @<CodeableConcept>; # The current business status fhir:type @<Coding>?; # The kind of workflow the status is # tracking fhir:effectiveDate @<DateTime>?; # When the encounter entered this # business status } # List of participants involved in the encounter <Encounter.participant> EXTENDS @<BackboneElement> CLOSED { fhir:type @<OneOrMore_CodeableConcept>?; # Role of participant in encounter fhir:period @<Period>?; # Period of time during the # encounter that the participant # participatedfhir:actor @<Reference> AND {fhir:linkfhir:actor @<Reference> AND {fhir:l @<Device> OR @<Group> OR @<HealthcareService> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }?; # The individual, device, or service # participating in the encounter } # The list of medical reasons that are expected to be addressed during the episode of care <Encounter.reason> EXTENDS @<BackboneElement> CLOSED { fhir:use @<OneOrMore_CodeableConcept>?; # What the reason value should be # used for/as fhir:value @<OneOrMore_CodeableReference>?; # Reason the encounter takes place # (core or reference) } # List of locations where the patient has been <Encounter.location> EXTENDS @<BackboneElement> CLOSED {fhir:location @<Reference> AND {fhir:linkfhir:location @<Reference> AND {fhir:l @<Location> ? }; # Location the encounter takes placefhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:encounter-location-status}?; # planned | active | reserved | # completed fhir:form @<CodeableConcept>?; # The physical type of the location # (usually the level in the location # hierarchy - bed, room, ward, # virtual etc.) fhir:period @<Period>?; # Time period during which the # patient was present at the # location } # Details about the admission to a healthcare service <Encounter.admission> EXTENDS @<BackboneElement> CLOSED { fhir:preAdmissionIdentifier @<Identifier>?; # Pre-admission identifier fhir:origin @<Reference> AND {fhir:l @<Location> OR @<Organization> ? }?; # The location/organization from # which the patient came before # admission fhir:admitSource @<CodeableConcept>?; # From where patient was admitted # (physician referral, transfer) fhir:reAdmission @<CodeableConcept>?; # Indicates that the patient is # being re-admitted fhir:destination @<Reference> AND {fhir:l @<Location> OR @<Organization> ? }?; # Location/organization to which the # patient is discharged fhir:dischargeDisposition @<CodeableConcept>?; # Category or kind of location after # discharge } # The list of diagnosis relevant to this encounter <Encounter.diagnosis> EXTENDS @<BackboneElement> CLOSED { fhir:condition @<OneOrMore_CodeableReference>?; # The diagnosis relevant to the # encounter fhir:use @<OneOrMore_CodeableConcept>?; # Role that this diagnosis has # within the encounter (e.g. # admission, billing, discharge …) } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_Encounter.businessStatus> CLOSED { rdf:first @<Encounter.businessStatus> ; rdf:rest [rdf:nil] OR @<OneOrMore_Encounter.businessStatus> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_CodeableReference> CLOSED { rdf:first @<CodeableReference> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference> } <OneOrMore_Reference_EpisodeOfCare> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<EpisodeOfCare> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_EpisodeOfCare> }<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_ServiceRequest> CLOSED { rdf:first @<Reference> AND {fhir:link<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription> CLOSED { rdf:first @<Reference> AND {fhir:l @<CarePlan> OR @<DeviceRequest> OR @<MedicationRequest> OR@<ServiceRequest> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_ServiceRequest>@<NutritionOrder> OR @<RequestOrchestration> OR @<ServiceRequest> OR @<VisionPrescription> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CarePlan_OR_DeviceRequest_OR_MedicationRequest_OR_NutritionOrder_OR_RequestOrchestration_OR_ServiceRequest_OR_VisionPrescription> } <OneOrMore_Reference_CareTeam> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<CareTeam> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_CareTeam> } <OneOrMore_Encounter.participant> CLOSED { rdf:first @<Encounter.participant> ; rdf:rest [rdf:nil] OR @<OneOrMore_Encounter.participant> } <OneOrMore_Reference_Appointment> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Appointment> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Appointment> } <OneOrMore_VirtualServiceDetail> CLOSED { rdf:first @<VirtualServiceDetail> ; rdf:rest [rdf:nil] OR @<OneOrMore_VirtualServiceDetail> } <OneOrMore_Encounter.reason> CLOSED { rdf:first @<Encounter.reason> ; rdf:rest [rdf:nil] OR @<OneOrMore_Encounter.reason> } <OneOrMore_Encounter.diagnosis> CLOSED { rdf:first @<Encounter.diagnosis> ; rdf:rest [rdf:nil] OR @<OneOrMore_Encounter.diagnosis> } <OneOrMore_Reference_Account> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Account> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Account> } <OneOrMore_Encounter.location> CLOSED { rdf:first @<Encounter.location> ; rdf:rest [rdf:nil] OR @<OneOrMore_Encounter.location> } #---------------------- Value Sets ------------------------ # The status of the location. fhirvs:encounter-location-status ["planned" "active" "reserved" "completed"] # Current state of the encounter. fhirvs:encounter-status ["planned" "in-progress" "on-hold" "discharged" "completed" "cancelled" "discontinued" "entered-in-error" "unknown"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R5
hl7.fhir.core#5.0.0
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Sun,
Mar
26,
2023
15:24+1100.
Fri,
Nov
14,
2025
02:31+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R4B
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change