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>
     
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • 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 java.util.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 JAXB 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
      • withLine

        public Address withLine​(java.util.Collection<String> values)
      • withPostalCode

        public Address withPostalCode​(String value)
      • 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:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class Element
      • equals

        public boolean equals​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Element
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class Element
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class Element