Package com.ibm.fhir.model.resource
Class Encounter
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.Encounter
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Encounter extends DomainResource
An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.Maturity level: FMM2 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncounter.Builderstatic classEncounter.ClassHistoryThe class history permits the tracking of the encounters transitions without needing to go through the resource history.static classEncounter.DiagnosisThe list of diagnosis relevant to this encounter.static classEncounter.HospitalizationDetails about the admission to a healthcare service.static classEncounter.LocationList of locations where the patient has been during this encounter.static classEncounter.ParticipantThe list of people responsible for providing the service.static classEncounter.StatusHistoryThe status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Encounter.Builderbuilder()booleanequals(Object obj)List<Reference>getAccount()The set of accounts that may be used for billing for this Encounter.List<Reference>getAppointment()The appointment that scheduled this encounter.List<Reference>getBasedOn()The request this encounter satisfies (e.g.List<Encounter.ClassHistory>getClassHistory()The class history permits the tracking of the encounters transitions without needing to go through the resource history.CodinggetClazz()Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.List<Encounter.Diagnosis>getDiagnosis()The list of diagnosis relevant to this encounter.List<Reference>getEpisodeOfCare()Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used.Encounter.HospitalizationgetHospitalization()Details about the admission to a healthcare service.List<Identifier>getIdentifier()Identifier(s) by which this encounter is known.DurationgetLength()Quantity of time the encounter lasted.List<Encounter.Location>getLocation()List of locations where the patient has been during this encounter.List<Encounter.Participant>getParticipant()The list of people responsible for providing the service.ReferencegetPartOf()Another Encounter of which this encounter is a part of (administratively or in time).PeriodgetPeriod()The start and end time of the encounter.CodeableConceptgetPriority()Indicates the urgency of the encounter.List<CodeableConcept>getReasonCode()Reason the encounter takes place, expressed as a code.List<Reference>getReasonReference()Reason the encounter takes place, expressed as a code.ReferencegetServiceProvider()The organization that is primarily responsible for this Encounter's services.CodeableConceptgetServiceType()Broad categorization of the service that is to be provided (e.g.EncounterStatusgetStatus()planned | arrived | triaged | in-progress | onleave | finished | cancelled +.List<Encounter.StatusHistory>getStatusHistory()The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.ReferencegetSubject()The patient or group present at the encounter.List<CodeableConcept>getType()Specific type of encounter (e.g.booleanhasChildren()inthashCode()Encounter.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
Identifier(s) by which this encounter is known.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getStatus
public EncounterStatus getStatus()
planned | arrived | triaged | in-progress | onleave | finished | cancelled +.- Returns:
- An immutable object of type
EncounterStatusthat is non-null.
-
getStatusHistory
public List<Encounter.StatusHistory> getStatusHistory()
The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.- Returns:
- An unmodifiable list containing immutable objects of type
Encounter.StatusHistorythat may be empty.
-
getClazz
public Coding getClazz()
Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.- Returns:
- An immutable object of type
Codingthat is non-null.
-
getClassHistory
public List<Encounter.ClassHistory> getClassHistory()
The class history permits the tracking of the encounters transitions without needing to go through the resource history. This would be used for a case where an admission starts of as an emergency encounter, then transitions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kind of discharge from emergency to inpatient.- Returns:
- An unmodifiable list containing immutable objects of type
Encounter.ClassHistorythat may be empty.
-
getType
public List<CodeableConcept> getType()
Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getServiceType
public CodeableConcept getServiceType()
Broad categorization of the service that is to be provided (e.g. cardiology).- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getPriority
public CodeableConcept getPriority()
Indicates the urgency of the encounter.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getSubject
public Reference getSubject()
The patient or group present at the encounter.- Returns:
- An immutable object of type
Referencethat may be null.
-
getEpisodeOfCare
public List<Reference> getEpisodeOfCare()
Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getBasedOn
public List<Reference> getBasedOn()
The request this encounter satisfies (e.g. incoming referral or procedure request).- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getParticipant
public List<Encounter.Participant> getParticipant()
The list of people responsible for providing the service.- Returns:
- An unmodifiable list containing immutable objects of type
Encounter.Participantthat may be empty.
-
getAppointment
public List<Reference> getAppointment()
The appointment that scheduled this encounter.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getPeriod
public Period getPeriod()
The start and end time of the encounter.- Returns:
- An immutable object of type
Periodthat may be null.
-
getLength
public Duration getLength()
Quantity of time the encounter lasted. This excludes the time during leaves of absence.- Returns:
- An immutable object of type
Durationthat may be null.
-
getReasonCode
public List<CodeableConcept> getReasonCode()
Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getReasonReference
public List<Reference> getReasonReference()
Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getDiagnosis
public List<Encounter.Diagnosis> getDiagnosis()
The list of diagnosis relevant to this encounter.- Returns:
- An unmodifiable list containing immutable objects of type
Encounter.Diagnosisthat may be empty.
-
getAccount
public List<Reference> getAccount()
The set of accounts that may be used for billing for this Encounter.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getHospitalization
public Encounter.Hospitalization getHospitalization()
Details about the admission to a healthcare service.- Returns:
- An immutable object of type
Encounter.Hospitalizationthat may be null.
-
getLocation
public List<Encounter.Location> getLocation()
List of locations where the patient has been during this encounter.- Returns:
- An unmodifiable list containing immutable objects of type
Encounter.Locationthat may be empty.
-
getServiceProvider
public Reference getServiceProvider()
The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.- Returns:
- An immutable object of type
Referencethat may be null.
-
getPartOf
public Reference getPartOf()
Another Encounter of which this encounter is a part of (administratively or in time).- Returns:
- An immutable object of type
Referencethat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Encounter.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static Encounter.Builder builder()
-
-