Package org.hl7.fhir

Class Address

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

public class Address extends Element 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 a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions

Java class for Address complex type.

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

 <complexType name="Address">
   <complexContent>
     <extension base="{http://hl7.org/fhir}Element">
       <sequence>
         <element name="use" type="{http://hl7.org/fhir}AddressUse" minOccurs="0"/>
         <element name="type" type="{http://hl7.org/fhir}AddressType" minOccurs="0"/>
         <element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="line" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="city" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="district" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="state" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="postalCode" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="country" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Address

      public Address()
  • Method Details

    • getUse

      public AddressUse getUse()
      Gets the value of the use property.
      Returns:
      possible object is AddressUse
    • setUse

      public void setUse(AddressUse value)
      Sets the value of the use property.
      Parameters:
      value - allowed object is AddressUse
    • getType

      public AddressType getType()
      Gets the value of the type property.
      Returns:
      possible object is AddressType
    • setType

      public void setType(AddressType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is AddressType
    • getText

      public String getText()
      Gets the value of the text property.
      Returns:
      possible object is String
    • setText

      public void setText(String value)
      Sets the value of the text property.
      Parameters:
      value - allowed object is String
    • getLine

      public List<String> getLine()
      Gets the value of the line 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 line property.

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

          getLine().add(newItem);
       

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

    • getCity

      public String getCity()
      Gets the value of the city property.
      Returns:
      possible object is String
    • setCity

      public void setCity(String value)
      Sets the value of the city property.
      Parameters:
      value - allowed object is String
    • getDistrict

      public String getDistrict()
      Gets the value of the district property.
      Returns:
      possible object is String
    • setDistrict

      public void setDistrict(String value)
      Sets the value of the district property.
      Parameters:
      value - allowed object is String
    • getState

      public String getState()
      Gets the value of the state property.
      Returns:
      possible object is String
    • setState

      public void setState(String value)
      Sets the value of the state property.
      Parameters:
      value - allowed object is String
    • getPostalCode

      public String getPostalCode()
      Gets the value of the postalCode property.
      Returns:
      possible object is String
    • setPostalCode

      public void setPostalCode(String value)
      Sets the value of the postalCode property.
      Parameters:
      value - allowed object is String
    • getCountry

      public String getCountry()
      Gets the value of the country property.
      Returns:
      possible object is String
    • setCountry

      public void setCountry(String value)
      Sets the value of the country property.
      Parameters:
      value - allowed object is String
    • 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
    • withUse

      public Address withUse(AddressUse value)
    • withType

      public Address withType(AddressType value)
    • withText

      public Address withText(String value)
    • withLine

      public Address withLine(String... values)
    • withLine

      public Address withLine(Collection<String> values)
    • withCity

      public Address withCity(String value)
    • withDistrict

      public Address withDistrict(String value)
    • withState

      public Address withState(String value)
    • withPostalCode

      public Address withPostalCode(String value)
    • withCountry

      public Address withCountry(String value)
    • withPeriod

      public Address withPeriod(Period value)
    • withExtension

      public Address withExtension(Extension... values)
      Overrides:
      withExtension in class Element
    • withExtension

      public Address withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class Element
    • withId

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

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

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

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

      public void setLine(List<String> value)