Class Encounter
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Encounter
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Encounter extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for Encounter complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Encounter"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}EncounterState"/> <element name="statusHistory" type="{http://hl7.org/fhir}Encounter.StatusHistory" maxOccurs="unbounded" minOccurs="0"/> <element name="class" type="{http://hl7.org/fhir}EncounterClass" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="priority" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="episodeOfCare" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="incomingReferral" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="participant" type="{http://hl7.org/fhir}Encounter.Participant" maxOccurs="unbounded" minOccurs="0"/> <element name="appointment" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/> <element name="length" type="{http://hl7.org/fhir}Duration" minOccurs="0"/> <element name="reason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="indication" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="hospitalization" type="{http://hl7.org/fhir}Encounter.Hospitalization" minOccurs="0"/> <element name="location" type="{http://hl7.org/fhir}Encounter.Location" maxOccurs="unbounded" minOccurs="0"/> <element name="serviceProvider" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="partOf" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Referenceappointmentprotected EncounterClassclazzprotected java.util.List<Reference>episodeOfCareprotected EncounterHospitalizationhospitalizationprotected java.util.List<Identifier>identifierprotected java.util.List<Reference>incomingReferralprotected java.util.List<Reference>indicationprotected Durationlengthprotected java.util.List<EncounterLocation>locationprotected java.util.List<EncounterParticipant>participantprotected ReferencepartOfprotected Referencepatientprotected Periodperiodprotected CodeableConceptpriorityprotected java.util.List<CodeableConcept>reasonprotected ReferenceserviceProviderprotected EncounterStatestatusprotected java.util.List<EncounterStatusHistory>statusHistoryprotected java.util.List<CodeableConcept>type-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Encounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ReferencegetAppointment()Gets the value of the appointment property.EncounterClassgetClazz()Gets the value of the clazz property.java.util.List<Reference>getEpisodeOfCare()Gets the value of the episodeOfCare property.EncounterHospitalizationgetHospitalization()Gets the value of the hospitalization property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.java.util.List<Reference>getIncomingReferral()Gets the value of the incomingReferral property.java.util.List<Reference>getIndication()Gets the value of the indication property.DurationgetLength()Gets the value of the length property.java.util.List<EncounterLocation>getLocation()Gets the value of the location property.java.util.List<EncounterParticipant>getParticipant()Gets the value of the participant property.ReferencegetPartOf()Gets the value of the partOf property.ReferencegetPatient()Gets the value of the patient property.PeriodgetPeriod()Gets the value of the period property.CodeableConceptgetPriority()Gets the value of the priority property.java.util.List<CodeableConcept>getReason()Gets the value of the reason property.ReferencegetServiceProvider()Gets the value of the serviceProvider property.EncounterStategetStatus()Gets the value of the status property.java.util.List<EncounterStatusHistory>getStatusHistory()Gets the value of the statusHistory property.java.util.List<CodeableConcept>getType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAppointment(Reference value)Sets the value of the appointment property.voidsetClazz(EncounterClass value)Sets the value of the clazz property.voidsetHospitalization(EncounterHospitalization value)Sets the value of the hospitalization property.voidsetLength(Duration value)Sets the value of the length property.voidsetPartOf(Reference value)Sets the value of the partOf property.voidsetPatient(Reference value)Sets the value of the patient property.voidsetPeriod(Period value)Sets the value of the period property.voidsetPriority(CodeableConcept value)Sets the value of the priority property.voidsetServiceProvider(Reference value)Sets the value of the serviceProvider property.voidsetStatus(EncounterState value)Sets the value of the status property.java.lang.StringtoString()EncounterwithAppointment(Reference value)EncounterwithClazz(EncounterClass value)EncounterwithContained(java.util.Collection<ResourceContainer> values)EncounterwithContained(ResourceContainer... values)EncounterwithEpisodeOfCare(java.util.Collection<Reference> values)EncounterwithEpisodeOfCare(Reference... values)EncounterwithExtension(java.util.Collection<Extension> values)EncounterwithExtension(Extension... values)EncounterwithHospitalization(EncounterHospitalization value)EncounterwithId(Id value)EncounterwithIdentifier(java.util.Collection<Identifier> values)EncounterwithIdentifier(Identifier... values)EncounterwithImplicitRules(Uri value)EncounterwithIncomingReferral(java.util.Collection<Reference> values)EncounterwithIncomingReferral(Reference... values)EncounterwithIndication(java.util.Collection<Reference> values)EncounterwithIndication(Reference... values)EncounterwithLanguage(Code value)EncounterwithLength(Duration value)EncounterwithLocation(java.util.Collection<EncounterLocation> values)EncounterwithLocation(EncounterLocation... values)EncounterwithMeta(Meta value)EncounterwithModifierExtension(java.util.Collection<Extension> values)EncounterwithModifierExtension(Extension... values)EncounterwithParticipant(java.util.Collection<EncounterParticipant> values)EncounterwithParticipant(EncounterParticipant... values)EncounterwithPartOf(Reference value)EncounterwithPatient(Reference value)EncounterwithPeriod(Period value)EncounterwithPriority(CodeableConcept value)EncounterwithReason(java.util.Collection<CodeableConcept> values)EncounterwithReason(CodeableConcept... values)EncounterwithServiceProvider(Reference value)EncounterwithStatus(EncounterState value)EncounterwithStatusHistory(java.util.Collection<EncounterStatusHistory> values)EncounterwithStatusHistory(EncounterStatusHistory... values)EncounterwithText(Narrative value)EncounterwithType(java.util.Collection<CodeableConcept> values)EncounterwithType(CodeableConcept... values)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
identifier
protected java.util.List<Identifier> identifier
-
status
protected EncounterState status
-
statusHistory
protected java.util.List<EncounterStatusHistory> statusHistory
-
clazz
protected EncounterClass clazz
-
type
protected java.util.List<CodeableConcept> type
-
priority
protected CodeableConcept priority
-
patient
protected Reference patient
-
episodeOfCare
protected java.util.List<Reference> episodeOfCare
-
incomingReferral
protected java.util.List<Reference> incomingReferral
-
participant
protected java.util.List<EncounterParticipant> participant
-
appointment
protected Reference appointment
-
period
protected Period period
-
length
protected Duration length
-
reason
protected java.util.List<CodeableConcept> reason
-
indication
protected java.util.List<Reference> indication
-
hospitalization
protected EncounterHospitalization hospitalization
-
location
protected java.util.List<EncounterLocation> location
-
serviceProvider
protected Reference serviceProvider
-
partOf
protected Reference partOf
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getStatus
public EncounterState getStatus()
Gets the value of the status property.- Returns:
- possible object is
EncounterState
-
setStatus
public void setStatus(EncounterState value)
Sets the value of the status property.- Parameters:
value- allowed object isEncounterState
-
getStatusHistory
public java.util.List<EncounterStatusHistory> getStatusHistory()
Gets the value of the statusHistory property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the statusHistory property.For example, to add a new item, do as follows:
getStatusHistory().add(newItem);Objects of the following type(s) are allowed in the list
EncounterStatusHistory
-
getClazz
public EncounterClass getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
EncounterClass
-
setClazz
public void setClazz(EncounterClass value)
Sets the value of the clazz property.- Parameters:
value- allowed object isEncounterClass
-
getType
public java.util.List<CodeableConcept> getType()
Gets the value of the type property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the type property.For example, to add a new item, do as follows:
getType().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getPriority
public CodeableConcept getPriority()
Gets the value of the priority property.- Returns:
- possible object is
CodeableConcept
-
setPriority
public void setPriority(CodeableConcept value)
Sets the value of the priority property.- Parameters:
value- allowed object isCodeableConcept
-
getPatient
public Reference getPatient()
Gets the value of the patient property.- Returns:
- possible object is
Reference
-
setPatient
public void setPatient(Reference value)
Sets the value of the patient property.- Parameters:
value- allowed object isReference
-
getEpisodeOfCare
public java.util.List<Reference> getEpisodeOfCare()
Gets the value of the episodeOfCare property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the episodeOfCare property.For example, to add a new item, do as follows:
getEpisodeOfCare().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getIncomingReferral
public java.util.List<Reference> getIncomingReferral()
Gets the value of the incomingReferral property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the incomingReferral property.For example, to add a new item, do as follows:
getIncomingReferral().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getParticipant
public java.util.List<EncounterParticipant> getParticipant()
Gets the value of the participant property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the participant property.For example, to add a new item, do as follows:
getParticipant().add(newItem);Objects of the following type(s) are allowed in the list
EncounterParticipant
-
getAppointment
public Reference getAppointment()
Gets the value of the appointment property.- Returns:
- possible object is
Reference
-
setAppointment
public void setAppointment(Reference value)
Sets the value of the appointment property.- Parameters:
value- allowed object isReference
-
getPeriod
public Period getPeriod()
Gets the value of the period property.- Returns:
- possible object is
Period
-
setPeriod
public void setPeriod(Period value)
Sets the value of the period property.- Parameters:
value- allowed object isPeriod
-
getLength
public Duration getLength()
Gets the value of the length property.- Returns:
- possible object is
Duration
-
setLength
public void setLength(Duration value)
Sets the value of the length property.- Parameters:
value- allowed object isDuration
-
getReason
public java.util.List<CodeableConcept> getReason()
Gets the value of the reason property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the reason property.For example, to add a new item, do as follows:
getReason().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getIndication
public java.util.List<Reference> getIndication()
Gets the value of the indication property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the indication property.For example, to add a new item, do as follows:
getIndication().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getHospitalization
public EncounterHospitalization getHospitalization()
Gets the value of the hospitalization property.- Returns:
- possible object is
EncounterHospitalization
-
setHospitalization
public void setHospitalization(EncounterHospitalization value)
Sets the value of the hospitalization property.- Parameters:
value- allowed object isEncounterHospitalization
-
getLocation
public java.util.List<EncounterLocation> getLocation()
Gets the value of the location property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the location property.For example, to add a new item, do as follows:
getLocation().add(newItem);Objects of the following type(s) are allowed in the list
EncounterLocation
-
getServiceProvider
public Reference getServiceProvider()
Gets the value of the serviceProvider property.- Returns:
- possible object is
Reference
-
setServiceProvider
public void setServiceProvider(Reference value)
Sets the value of the serviceProvider property.- Parameters:
value- allowed object isReference
-
getPartOf
public Reference getPartOf()
Gets the value of the partOf property.- Returns:
- possible object is
Reference
-
setPartOf
public void setPartOf(Reference value)
Sets the value of the partOf property.- Parameters:
value- allowed object isReference
-
withIdentifier
public Encounter withIdentifier(Identifier... values)
-
withIdentifier
public Encounter withIdentifier(java.util.Collection<Identifier> values)
-
withStatus
public Encounter withStatus(EncounterState value)
-
withStatusHistory
public Encounter withStatusHistory(EncounterStatusHistory... values)
-
withStatusHistory
public Encounter withStatusHistory(java.util.Collection<EncounterStatusHistory> values)
-
withClazz
public Encounter withClazz(EncounterClass value)
-
withType
public Encounter withType(CodeableConcept... values)
-
withType
public Encounter withType(java.util.Collection<CodeableConcept> values)
-
withPriority
public Encounter withPriority(CodeableConcept value)
-
withParticipant
public Encounter withParticipant(EncounterParticipant... values)
-
withParticipant
public Encounter withParticipant(java.util.Collection<EncounterParticipant> values)
-
withReason
public Encounter withReason(CodeableConcept... values)
-
withReason
public Encounter withReason(java.util.Collection<CodeableConcept> values)
-
withHospitalization
public Encounter withHospitalization(EncounterHospitalization value)
-
withLocation
public Encounter withLocation(EncounterLocation... values)
-
withLocation
public Encounter withLocation(java.util.Collection<EncounterLocation> values)
-
withText
public Encounter withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Encounter withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Encounter withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Encounter withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Encounter withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Encounter withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Encounter withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Encounter withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Encounter withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Encounter withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Encounter withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-