
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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringTypeThe name of the city, town, village or other community or delivery center.protected StringTypeCountry - a nation as commonly understood or generally accepted.protected StringTypeThe name of the administrative area (county).protected List<StringType> This component contains the house number, apartment number, street name, street direction, P.O.protected PeriodTime period when address was/is in use.protected StringTypeA postal code designating a region defined by the postal service.protected StringTypeSub-unit of a country with limited sovereignty in a federally organized country.protected StringTypeA 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getCity()getLine()getState()getText()getType()getUse()booleanhasCity()booleanbooleanbooleanbooleanbooleanbooleanhasLine()booleanbooleanbooleanbooleanbooleanhasState()booleanbooleanhasText()booleanbooleanhasType()booleanbooleanhasUse()booleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) setCityElement(StringType value) setCountry(String value) setCountryElement(StringType value) setDistrict(String value) setDistrictElement(StringType value) setPostalCode(String value) setPostalCodeElement(StringType value) voidsetProperty(String name, Base value) setStateElement(StringType value) setTextElement(StringType value) setType(Address.AddressType value) setUse(Address.AddressUse value) protected AddressMethods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementMethods 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, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods 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:
listChildrenin classElement
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-