Package org.hl7.fhir.dstu2.model
Class Address
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.Type
-
- org.hl7.fhir.dstu2.model.Address
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class Address extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.AddressTypestatic classAddress.AddressTypeEnumFactorystatic classAddress.AddressUsestatic classAddress.AddressUseEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected StringTypecityThe name of the city, town, village or other community or delivery center.protected StringTypecountryCountry - a nation as commonly understood or generally accepted.protected StringTypedistrictThe name of the administrative area (county).protected List<StringType>lineThis component contains the house number, apartment number, street name, street direction, P.O.protected PeriodperiodTime period when address was/is in use.protected StringTypepostalCodeA postal code designating a region defined by the postal service.protected StringTypestateSub-unit of a country with limited sovereignty in a federally organized country.protected StringTypetextA full text representation of the address.protected Enumeration<Address.AddressType>typeDistinguishes between physical addresses (those you can visit) and mailing addresses (e.g.protected Enumeration<Address.AddressUse>useThe purpose of this address.
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
use
protected Enumeration<Address.AddressUse> use
The purpose of this address.
-
type
protected Enumeration<Address.AddressType> type
Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
-
text
protected StringType text
A full text representation of the address.
-
line
protected List<StringType> line
This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
-
city
protected StringType city
The name of the city, town, village or other community or delivery center.
-
district
protected StringType district
The name of the administrative area (county).
-
state
protected StringType state
Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
-
postalCode
protected StringType postalCode
A postal code designating a region defined by the postal service.
-
country
protected StringType country
Country - a nation as commonly understood or generally accepted.
-
-
Constructor Detail
-
Address
public Address()
-
-
Method Detail
-
getUseElement
public Enumeration<Address.AddressUse> getUseElement()
- Returns:
use(The purpose of this address.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value
-
hasUseElement
public boolean hasUseElement()
-
hasUse
public boolean hasUse()
-
setUseElement
public Address setUseElement(Enumeration<Address.AddressUse> value)
- Parameters:
value-use(The purpose of this address.). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value
-
getUse
public Address.AddressUse getUse()
- Returns:
- The purpose of this address.
-
setUse
public Address setUse(Address.AddressUse value)
- Parameters:
value- The purpose of this address.
-
getTypeElement
public Enumeration<Address.AddressType> getTypeElement()
- Returns:
type(Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public Address setTypeElement(Enumeration<Address.AddressType> value)
- Parameters:
value-type(Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public Address.AddressType getType()
- Returns:
- Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
-
setType
public Address setType(Address.AddressType value)
- Parameters:
value- Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
-
getTextElement
public StringType getTextElement()
- Returns:
text(A full text representation of the address.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
-
hasTextElement
public boolean hasTextElement()
-
hasText
public boolean hasText()
-
setTextElement
public Address setTextElement(StringType value)
- Parameters:
value-text(A full text representation of the address.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
-
setText
public Address setText(String value)
- Parameters:
value- A full text representation of the address.
-
getLine
public List<StringType> getLine()
- Returns:
line(This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.)
-
hasLine
public boolean hasLine()
-
addLineElement
public StringType addLineElement()
- Returns:
line(This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.)
-
addLine
public Address addLine(String value)
- Parameters:
value-line(This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.)
-
hasLine
public boolean hasLine(String value)
- Parameters:
value-line(This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.)
-
getCityElement
public StringType getCityElement()
- Returns:
city(The name of the city, town, village or other community or delivery center.). This is the underlying object with id, value and extensions. The accessor "getCity" gives direct access to the value
-
hasCityElement
public boolean hasCityElement()
-
hasCity
public boolean hasCity()
-
setCityElement
public Address setCityElement(StringType value)
- Parameters:
value-city(The name of the city, town, village or other community or delivery center.). This is the underlying object with id, value and extensions. The accessor "getCity" gives direct access to the value
-
getCity
public String getCity()
- Returns:
- The name of the city, town, village or other community or delivery center.
-
setCity
public Address setCity(String value)
- Parameters:
value- The name of the city, town, village or other community or delivery center.
-
getDistrictElement
public StringType getDistrictElement()
- Returns:
district(The name of the administrative area (county).). This is the underlying object with id, value and extensions. The accessor "getDistrict" gives direct access to the value
-
hasDistrictElement
public boolean hasDistrictElement()
-
hasDistrict
public boolean hasDistrict()
-
setDistrictElement
public Address setDistrictElement(StringType value)
- Parameters:
value-district(The name of the administrative area (county).). This is the underlying object with id, value and extensions. The accessor "getDistrict" gives direct access to the value
-
getDistrict
public String getDistrict()
- Returns:
- The name of the administrative area (county).
-
setDistrict
public Address setDistrict(String value)
- Parameters:
value- The name of the administrative area (county).
-
getStateElement
public StringType getStateElement()
- Returns:
state(Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).). This is the underlying object with id, value and extensions. The accessor "getState" gives direct access to the value
-
hasStateElement
public boolean hasStateElement()
-
hasState
public boolean hasState()
-
setStateElement
public Address setStateElement(StringType value)
- Parameters:
value-state(Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).). This is the underlying object with id, value and extensions. The accessor "getState" gives direct access to the value
-
getState
public String getState()
- Returns:
- Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
-
setState
public Address setState(String value)
- Parameters:
value- Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
-
getPostalCodeElement
public StringType getPostalCodeElement()
- Returns:
postalCode(A postal code designating a region defined by the postal service.). This is the underlying object with id, value and extensions. The accessor "getPostalCode" gives direct access to the value
-
hasPostalCodeElement
public boolean hasPostalCodeElement()
-
hasPostalCode
public boolean hasPostalCode()
-
setPostalCodeElement
public Address setPostalCodeElement(StringType value)
- Parameters:
value-postalCode(A postal code designating a region defined by the postal service.). This is the underlying object with id, value and extensions. The accessor "getPostalCode" gives direct access to the value
-
getPostalCode
public String getPostalCode()
- Returns:
- A postal code designating a region defined by the postal service.
-
setPostalCode
public Address setPostalCode(String value)
- Parameters:
value- A postal code designating a region defined by the postal service.
-
getCountryElement
public StringType getCountryElement()
- Returns:
country(Country - a nation as commonly understood or generally accepted.). This is the underlying object with id, value and extensions. The accessor "getCountry" gives direct access to the value
-
hasCountryElement
public boolean hasCountryElement()
-
hasCountry
public boolean hasCountry()
-
setCountryElement
public Address setCountryElement(StringType value)
- Parameters:
value-country(Country - a nation as commonly understood or generally accepted.). This is the underlying object with id, value and extensions. The accessor "getCountry" gives direct access to the value
-
getCountry
public String getCountry()
- Returns:
- Country - a nation as commonly understood or generally accepted.
-
setCountry
public Address setCountry(String value)
- Parameters:
value- Country - a nation as commonly understood or generally accepted.
-
hasPeriod
public boolean hasPeriod()
-
setPeriod
public Address setPeriod(Period value)
- Parameters:
value-period(Time period when address was/is in use.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
-