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
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected StringType
The name of the city, town, village or other community or delivery center.protected StringType
Country - a nation as commonly understood or generally accepted.protected StringType
The name of the administrative area (county).protected List
<StringType> This component contains the house number, apartment number, street name, street direction, P.O.protected Period
Time period when address was/is in use.protected StringType
A postal code designating a region defined by the postal service.protected StringType
Sub-unit of a country with limited sovereignty in a federally organized country.protected StringType
A full text representation of the address.protected Enumeration
<Address.AddressType> Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g.protected Enumeration
<Address.AddressUse> The purpose of this address. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getCity()
getLine()
getState()
getText()
getType()
getUse()
boolean
hasCity()
boolean
boolean
boolean
boolean
boolean
boolean
hasLine()
boolean
boolean
boolean
boolean
boolean
hasState()
boolean
boolean
hasText()
boolean
boolean
hasType()
boolean
boolean
hasUse()
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) setCityElement
(StringType value) setCountry
(String value) setCountryElement
(StringType value) setDistrict
(String value) setDistrictElement
(StringType value) setPostalCode
(String value) setPostalCodeElement
(StringType value) void
setProperty
(String name, Base value) setStateElement
(StringType value) setTextElement
(StringType value) setType
(Address.AddressType value) setUse
(Address.AddressUse value) protected Address
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, 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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
use
The purpose of this address. -
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
A full text representation of the address. -
line
This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information. -
city
The name of the city, town, village or other community or delivery center. -
district
The name of the administrative area (county). -
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
A postal code designating a region defined by the postal service. -
country
Country - a nation as commonly understood or generally accepted. -
period
Time period when address was/is in use.
-
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
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
-
hasUse
-
setUseElement
- 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
- Returns:
- The purpose of this address.
-
setUse
- Parameters:
value
- The purpose of this address.
-
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
-
hasType
-
setTypeElement
- 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
- 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
- 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
- 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
-
hasText
-
setTextElement
- 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
-
getText
- Returns:
- A full text representation of the address.
-
setText
- Parameters:
value
- A full text representation of the address.
-
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
-
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
- 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
- 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
- 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
-
hasCity
-
setCityElement
- 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
- Returns:
- The name of the city, town, village or other community or delivery center.
-
setCity
- Parameters:
value
- The name of the city, town, village or other community or delivery center.
-
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
-
hasDistrict
-
setDistrictElement
- 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
- Returns:
- The name of the administrative area (county).
-
setDistrict
- Parameters:
value
- The name of the administrative area (county).
-
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
-
hasState
-
setStateElement
- 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
- 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
- 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
- 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
-
hasPostalCode
-
setPostalCodeElement
- 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
- Returns:
- A postal code designating a region defined by the postal service.
-
setPostalCode
- Parameters:
value
- A postal code designating a region defined by the postal service.
-
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
-
hasCountry
-
setCountryElement
- 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
- Returns:
- Country - a nation as commonly understood or generally accepted.
-
setCountry
- Parameters:
value
- Country - a nation as commonly understood or generally accepted.
-
getPeriod
- Returns:
period
(Time period when address was/is in use.)
-
hasPeriod
-
setPeriod
- Parameters:
value
-period
(Time period when address was/is in use.)
-
listChildren
- Overrides:
listChildren
in classElement
-
setProperty
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-