Package org.hl7.fhir

Class 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 extensions

Java 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 Details

  • Constructor Details

    • Encounter

      public Encounter()
  • Method Details

    • getIdentifier

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is EncounterState
    • getStatusHistory

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is EncounterClass
    • getType

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is CodeableConcept
    • 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 is Reference
    • getEpisodeOfCare

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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 is Reference
    • 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 is Period
    • 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 is Duration
    • getReason

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 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 Jakarta XML Binding object. This is why there is not a set method 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 is EncounterHospitalization
    • getLocation

      public 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 Jakarta XML Binding object. This is why there is not a set method 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 is Reference
    • 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 is Reference
    • withIdentifier

      public Encounter withIdentifier(Identifier... values)
    • withIdentifier

      public Encounter withIdentifier(Collection<Identifier> values)
    • withStatus

      public Encounter withStatus(EncounterState value)
    • withStatusHistory

      public Encounter withStatusHistory(EncounterStatusHistory... values)
    • withStatusHistory

      public Encounter withStatusHistory(Collection<EncounterStatusHistory> values)
    • withClazz

      public Encounter withClazz(EncounterClass value)
    • withType

      public Encounter withType(CodeableConcept... values)
    • withType

      public Encounter withType(Collection<CodeableConcept> values)
    • withPriority

      public Encounter withPriority(CodeableConcept value)
    • withPatient

      public Encounter withPatient(Reference value)
    • withEpisodeOfCare

      public Encounter withEpisodeOfCare(Reference... values)
    • withEpisodeOfCare

      public Encounter withEpisodeOfCare(Collection<Reference> values)
    • withIncomingReferral

      public Encounter withIncomingReferral(Reference... values)
    • withIncomingReferral

      public Encounter withIncomingReferral(Collection<Reference> values)
    • withParticipant

      public Encounter withParticipant(EncounterParticipant... values)
    • withParticipant

      public Encounter withParticipant(Collection<EncounterParticipant> values)
    • withAppointment

      public Encounter withAppointment(Reference value)
    • withPeriod

      public Encounter withPeriod(Period value)
    • withLength

      public Encounter withLength(Duration value)
    • withReason

      public Encounter withReason(CodeableConcept... values)
    • withReason

      public Encounter withReason(Collection<CodeableConcept> values)
    • withIndication

      public Encounter withIndication(Reference... values)
    • withIndication

      public Encounter withIndication(Collection<Reference> values)
    • withHospitalization

      public Encounter withHospitalization(EncounterHospitalization value)
    • withLocation

      public Encounter withLocation(EncounterLocation... values)
    • withLocation

      public Encounter withLocation(Collection<EncounterLocation> values)
    • withServiceProvider

      public Encounter withServiceProvider(Reference value)
    • withPartOf

      public Encounter withPartOf(Reference value)
    • withText

      public Encounter withText(Narrative value)
      Overrides:
      withText in class DomainResource
    • withContained

      public Encounter withContained(ResourceContainer... values)
      Overrides:
      withContained in class DomainResource
    • withContained

      public Encounter withContained(Collection<ResourceContainer> values)
      Overrides:
      withContained in class DomainResource
    • withExtension

      public Encounter withExtension(Extension... values)
      Overrides:
      withExtension in class DomainResource
    • withExtension

      public Encounter withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class DomainResource
    • withModifierExtension

      public Encounter withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class DomainResource
    • withModifierExtension

      public Encounter withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class DomainResource
    • withId

      public Encounter withId(Id value)
      Overrides:
      withId in class DomainResource
    • withMeta

      public Encounter withMeta(Meta value)
      Overrides:
      withMeta in class DomainResource
    • withImplicitRules

      public Encounter withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class DomainResource
    • withLanguage

      public Encounter withLanguage(Code value)
      Overrides:
      withLanguage in class DomainResource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class DomainResource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class DomainResource
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class DomainResource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DomainResource
    • toString

      public String toString()
      Overrides:
      toString in class DomainResource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class DomainResource
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class DomainResource
    • setIdentifier

      public void setIdentifier(List<Identifier> value)
    • setStatusHistory

      public void setStatusHistory(List<EncounterStatusHistory> value)
    • setType

      public void setType(List<CodeableConcept> value)
    • setEpisodeOfCare

      public void setEpisodeOfCare(List<Reference> value)
    • setIncomingReferral

      public void setIncomingReferral(List<Reference> value)
    • setParticipant

      public void setParticipant(List<EncounterParticipant> value)
    • setReason

      public void setReason(List<CodeableConcept> value)
    • setIndication

      public void setIndication(List<Reference> value)
    • setLocation

      public void setLocation(List<EncounterLocation> value)