Package org.hl7.fhir

Class EncounterHospitalization

All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class EncounterHospitalization extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
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.

Java class for Encounter.Hospitalization complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Encounter.Hospitalization">
   <complexContent>
     <extension base="{http://hl7.org/fhir}BackboneElement">
       <sequence>
         <element name="preAdmissionIdentifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
         <element name="origin" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="admitSource" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="admittingDiagnosis" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
         <element name="reAdmission" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="dietPreference" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
         <element name="specialCourtesy" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
         <element name="specialArrangement" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
         <element name="destination" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
         <element name="dischargeDisposition" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
         <element name="dischargeDiagnosis" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • EncounterHospitalization

      public EncounterHospitalization()
  • Method Details

    • getPreAdmissionIdentifier

      public Identifier getPreAdmissionIdentifier()
      Gets the value of the preAdmissionIdentifier property.
      Returns:
      possible object is Identifier
    • setPreAdmissionIdentifier

      public void setPreAdmissionIdentifier(Identifier value)
      Sets the value of the preAdmissionIdentifier property.
      Parameters:
      value - allowed object is Identifier
    • getOrigin

      public Reference getOrigin()
      Gets the value of the origin property.
      Returns:
      possible object is Reference
    • setOrigin

      public void setOrigin(Reference value)
      Sets the value of the origin property.
      Parameters:
      value - allowed object is Reference
    • getAdmitSource

      public CodeableConcept getAdmitSource()
      Gets the value of the admitSource property.
      Returns:
      possible object is CodeableConcept
    • setAdmitSource

      public void setAdmitSource(CodeableConcept value)
      Sets the value of the admitSource property.
      Parameters:
      value - allowed object is CodeableConcept
    • getAdmittingDiagnosis

      public List<Reference> getAdmittingDiagnosis()
      Gets the value of the admittingDiagnosis 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 admittingDiagnosis property.

      For example, to add a new item, do as follows:

          getAdmittingDiagnosis().add(newItem);
       

      Objects of the following type(s) are allowed in the list Reference

    • getReAdmission

      public CodeableConcept getReAdmission()
      Gets the value of the reAdmission property.
      Returns:
      possible object is CodeableConcept
    • setReAdmission

      public void setReAdmission(CodeableConcept value)
      Sets the value of the reAdmission property.
      Parameters:
      value - allowed object is CodeableConcept
    • getDietPreference

      public List<CodeableConcept> getDietPreference()
      Gets the value of the dietPreference 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 dietPreference property.

      For example, to add a new item, do as follows:

          getDietPreference().add(newItem);
       

      Objects of the following type(s) are allowed in the list CodeableConcept

    • getSpecialCourtesy

      public List<CodeableConcept> getSpecialCourtesy()
      Gets the value of the specialCourtesy 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 specialCourtesy property.

      For example, to add a new item, do as follows:

          getSpecialCourtesy().add(newItem);
       

      Objects of the following type(s) are allowed in the list CodeableConcept

    • getSpecialArrangement

      public List<CodeableConcept> getSpecialArrangement()
      Gets the value of the specialArrangement 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 specialArrangement property.

      For example, to add a new item, do as follows:

          getSpecialArrangement().add(newItem);
       

      Objects of the following type(s) are allowed in the list CodeableConcept

    • getDestination

      public Reference getDestination()
      Gets the value of the destination property.
      Returns:
      possible object is Reference
    • setDestination

      public void setDestination(Reference value)
      Sets the value of the destination property.
      Parameters:
      value - allowed object is Reference
    • getDischargeDisposition

      public CodeableConcept getDischargeDisposition()
      Gets the value of the dischargeDisposition property.
      Returns:
      possible object is CodeableConcept
    • setDischargeDisposition

      public void setDischargeDisposition(CodeableConcept value)
      Sets the value of the dischargeDisposition property.
      Parameters:
      value - allowed object is CodeableConcept
    • getDischargeDiagnosis

      public List<Reference> getDischargeDiagnosis()
      Gets the value of the dischargeDiagnosis 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 dischargeDiagnosis property.

      For example, to add a new item, do as follows:

          getDischargeDiagnosis().add(newItem);
       

      Objects of the following type(s) are allowed in the list Reference

    • withPreAdmissionIdentifier

      public EncounterHospitalization withPreAdmissionIdentifier(Identifier value)
    • withOrigin

      public EncounterHospitalization withOrigin(Reference value)
    • withAdmitSource

      public EncounterHospitalization withAdmitSource(CodeableConcept value)
    • withAdmittingDiagnosis

      public EncounterHospitalization withAdmittingDiagnosis(Reference... values)
    • withAdmittingDiagnosis

      public EncounterHospitalization withAdmittingDiagnosis(Collection<Reference> values)
    • withReAdmission

      public EncounterHospitalization withReAdmission(CodeableConcept value)
    • withDietPreference

      public EncounterHospitalization withDietPreference(CodeableConcept... values)
    • withDietPreference

      public EncounterHospitalization withDietPreference(Collection<CodeableConcept> values)
    • withSpecialCourtesy

      public EncounterHospitalization withSpecialCourtesy(CodeableConcept... values)
    • withSpecialCourtesy

      public EncounterHospitalization withSpecialCourtesy(Collection<CodeableConcept> values)
    • withSpecialArrangement

      public EncounterHospitalization withSpecialArrangement(CodeableConcept... values)
    • withSpecialArrangement

      public EncounterHospitalization withSpecialArrangement(Collection<CodeableConcept> values)
    • withDestination

      public EncounterHospitalization withDestination(Reference value)
    • withDischargeDisposition

      public EncounterHospitalization withDischargeDisposition(CodeableConcept value)
    • withDischargeDiagnosis

      public EncounterHospitalization withDischargeDiagnosis(Reference... values)
    • withDischargeDiagnosis

      public EncounterHospitalization withDischargeDiagnosis(Collection<Reference> values)
    • withModifierExtension

      public EncounterHospitalization withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withModifierExtension

      public EncounterHospitalization withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withExtension

      public EncounterHospitalization withExtension(Extension... values)
      Overrides:
      withExtension in class BackboneElement
    • withExtension

      public EncounterHospitalization withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class BackboneElement
    • withId

      public EncounterHospitalization withId(String value)
      Overrides:
      withId in class BackboneElement
    • 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 BackboneElement
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class BackboneElement
    • 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 BackboneElement
    • hashCode

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

      public String toString()
      Overrides:
      toString in class BackboneElement
    • 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 BackboneElement
    • 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 BackboneElement
    • setAdmittingDiagnosis

      public void setAdmittingDiagnosis(List<Reference> value)
    • setDietPreference

      public void setDietPreference(List<CodeableConcept> value)
    • setSpecialCourtesy

      public void setSpecialCourtesy(List<CodeableConcept> value)
    • setSpecialArrangement

      public void setSpecialArrangement(List<CodeableConcept> value)
    • setDischargeDiagnosis

      public void setDischargeDiagnosis(List<Reference> value)