Class AddressDt
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeDatatype
,ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IDatatype
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.ICompositeType
Definition: 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
Requirements: Need to be able to record postal addresses, along with notes about their use
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.model.primitive.StringDt
addLine()
Adds and returns a new value for line ()addLine
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for line ()Adds a new value for line ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) getCity()
Gets the value(s) for city ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for city ().Gets the value(s) for country ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for country ().Gets the value(s) for district ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for district ().List
<ca.uhn.fhir.model.primitive.StringDt> getLine()
Gets the value(s) for line ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for line (), creating it if it does not already exist.Gets the value(s) for period ().Gets the value(s) for postalCode ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for postalCode ().getState()
Gets the value(s) for state ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for state ().getText()
Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for text ().getType()
Gets the value(s) for type ().ca.uhn.fhir.model.primitive.BoundCodeDt
<AddressTypeEnum> Gets the value(s) for type ().getUse()
Gets the value(s) for use ().ca.uhn.fhir.model.primitive.BoundCodeDt
<AddressUseEnum> Gets the value(s) for use ().boolean
isEmpty()
setCity
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for city ()Sets the value for city ()setCountry
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for country ()setCountry
(String theString) Sets the value for country ()setDistrict
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for district ()setDistrict
(String theString) Sets the value for district ()Sets the value(s) for line ()Sets the value(s) for period ()setPostalCode
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for postalCode ()setPostalCode
(String theString) Sets the value for postalCode ()setState
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for state ()Sets the value for state ()setText
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for text ()Sets the value for text ()setType
(AddressTypeEnum theValue) Sets the value(s) for type ()setType
(ca.uhn.fhir.model.primitive.BoundCodeDt<AddressTypeEnum> theValue) Sets the value(s) for type ()setUse
(AddressUseEnum theValue) Sets the value(s) for use ()setUse
(ca.uhn.fhir.model.primitive.BoundCodeDt<AddressUseEnum> theValue) Sets the value(s) for use ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
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
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
AddressDt
public AddressDt()Constructor
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getUseElement
Gets the value(s) for use (). creating it if it does not exist. Will not returnnull
.Definition: The purpose of this address
-
getUse
Gets the value(s) for use (). creating it if it does not exist. This method may returnnull
.Definition: The purpose of this address
-
setUse
Sets the value(s) for use ()Definition: The purpose of this address
-
setUse
Sets the value(s) for use ()Definition: The purpose of this address
-
getTypeElement
Gets the value(s) for type (). creating it if it does not exist. Will not returnnull
.Definition: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both
-
getType
Gets the value(s) for type (). creating it if it does not exist. This method may returnnull
.Definition: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both
-
setType
Sets the value(s) for type ()Definition: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both
-
setType
Sets the value(s) for type ()Definition: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both
-
getTextElement
Gets the value(s) for text (). creating it if it does not exist. Will not returnnull
.Definition: A full text representation of the address
-
getText
Gets the value(s) for text (). creating it if it does not exist. This method may returnnull
.Definition: A full text representation of the address
-
setText
Sets the value(s) for text ()Definition: A full text representation of the address
-
setText
Sets the value for text ()Definition: A full text representation of the address
-
getLine
Gets the value(s) for line (). creating it if it does not exist. Will not returnnull
.Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
-
setLine
Sets the value(s) for line ()Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
-
addLine
Adds and returns a new value for line ()Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
-
addLine
Adds a given new value for line ()Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
- Parameters:
theValue
- The line to add (must not benull
)
-
getLineFirstRep
Gets the first repetition for line (), creating it if it does not already exist.Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
-
addLine
Adds a new value for line ()Definition: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getCityElement
Gets the value(s) for city (). creating it if it does not exist. Will not returnnull
.Definition: The name of the city, town, village or other community or delivery center
-
getCity
Gets the value(s) for city (). creating it if it does not exist. This method may returnnull
.Definition: The name of the city, town, village or other community or delivery center
-
setCity
Sets the value(s) for city ()Definition: The name of the city, town, village or other community or delivery center
-
setCity
Sets the value for city ()Definition: The name of the city, town, village or other community or delivery center
-
getDistrictElement
Gets the value(s) for district (). creating it if it does not exist. Will not returnnull
.Definition: The name of the administrative area (county)
-
getDistrict
Gets the value(s) for district (). creating it if it does not exist. This method may returnnull
.Definition: The name of the administrative area (county)
-
setDistrict
Sets the value(s) for district ()Definition: The name of the administrative area (county)
-
setDistrict
Sets the value for district ()Definition: The name of the administrative area (county)
-
getStateElement
Gets the value(s) for state (). creating it if it does not exist. Will not returnnull
.Definition: 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)
-
getState
Gets the value(s) for state (). creating it if it does not exist. This method may returnnull
.Definition: 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
Sets the value(s) for state ()Definition: 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
Sets the value for state ()Definition: 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
Gets the value(s) for postalCode (). creating it if it does not exist. Will not returnnull
.Definition: A postal code designating a region defined by the postal service
-
getPostalCode
Gets the value(s) for postalCode (). creating it if it does not exist. This method may returnnull
.Definition: A postal code designating a region defined by the postal service
-
setPostalCode
Sets the value(s) for postalCode ()Definition: A postal code designating a region defined by the postal service
-
setPostalCode
Sets the value for postalCode ()Definition: A postal code designating a region defined by the postal service
-
getCountryElement
Gets the value(s) for country (). creating it if it does not exist. Will not returnnull
.Definition: Country - a nation as commonly understood or generally accepted
-
getCountry
Gets the value(s) for country (). creating it if it does not exist. This method may returnnull
.Definition: Country - a nation as commonly understood or generally accepted
-
setCountry
Sets the value(s) for country ()Definition: Country - a nation as commonly understood or generally accepted
-
setCountry
Sets the value for country ()Definition: Country - a nation as commonly understood or generally accepted
-
getPeriod
Gets the value(s) for period (). creating it if it does not exist. Will not returnnull
.Definition: Time period when address was/is in use
-
setPeriod
Sets the value(s) for period ()Definition: Time period when address was/is in use
-