Class AddressDt
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.composite.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
public class AddressDt extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.ICompositeDatatype
HAPI/FHIR AddressDt Datatype ()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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressDt()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.model.primitive.StringDtaddLine()Adds and returns a new value for line ()AddressDtaddLine(ca.uhn.fhir.model.primitive.StringDt theValue)Adds a given new value for line ()AddressDtaddLine(String theString)Adds a new value for line ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetCity()Gets the value(s) for city ().ca.uhn.fhir.model.primitive.StringDtgetCityElement()Gets the value(s) for city ().StringgetCountry()Gets the value(s) for country ().ca.uhn.fhir.model.primitive.StringDtgetCountryElement()Gets the value(s) for country ().StringgetDistrict()Gets the value(s) for district ().ca.uhn.fhir.model.primitive.StringDtgetDistrictElement()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.StringDtgetLineFirstRep()Gets the first repetition for line (), creating it if it does not already exist.PeriodDtgetPeriod()Gets the value(s) for period ().StringgetPostalCode()Gets the value(s) for postalCode ().ca.uhn.fhir.model.primitive.StringDtgetPostalCodeElement()Gets the value(s) for postalCode ().StringgetState()Gets the value(s) for state ().ca.uhn.fhir.model.primitive.StringDtgetStateElement()Gets the value(s) for state ().StringgetText()Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDtgetTextElement()Gets the value(s) for text ().StringgetType()Gets the value(s) for type ().ca.uhn.fhir.model.primitive.BoundCodeDt<AddressTypeEnum>getTypeElement()Gets the value(s) for type ().StringgetUse()Gets the value(s) for use ().ca.uhn.fhir.model.primitive.BoundCodeDt<AddressUseEnum>getUseElement()Gets the value(s) for use ().booleanisEmpty()AddressDtsetCity(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for city ()AddressDtsetCity(String theString)Sets the value for city ()AddressDtsetCountry(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for country ()AddressDtsetCountry(String theString)Sets the value for country ()AddressDtsetDistrict(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for district ()AddressDtsetDistrict(String theString)Sets the value for district ()AddressDtsetLine(List<ca.uhn.fhir.model.primitive.StringDt> theValue)Sets the value(s) for line ()AddressDtsetPeriod(PeriodDt theValue)Sets the value(s) for period ()AddressDtsetPostalCode(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for postalCode ()AddressDtsetPostalCode(String theString)Sets the value for postalCode ()AddressDtsetState(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for state ()AddressDtsetState(String theString)Sets the value for state ()AddressDtsetText(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for text ()AddressDtsetText(String theString)Sets the value for text ()AddressDtsetType(AddressTypeEnum theValue)Sets the value(s) for type ()AddressDtsetType(ca.uhn.fhir.model.primitive.BoundCodeDt<AddressTypeEnum> theValue)Sets the value(s) for type ()AddressDtsetUse(AddressUseEnum theValue)Sets the value(s) for use ()AddressDtsetUse(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
-
-
-
-
Constructor Detail
-
AddressDt
public AddressDt()
Constructor
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getUseElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<AddressUseEnum> getUseElement()
Gets the value(s) for use (). creating it if it does not exist. Will not returnnull.Definition: The purpose of this address
-
getUse
public String 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
public AddressDt setUse(ca.uhn.fhir.model.primitive.BoundCodeDt<AddressUseEnum> theValue)
Sets the value(s) for use ()Definition: The purpose of this address
-
setUse
public AddressDt setUse(AddressUseEnum theValue)
Sets the value(s) for use ()Definition: The purpose of this address
-
getTypeElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<AddressTypeEnum> 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
public String 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
public AddressDt setType(ca.uhn.fhir.model.primitive.BoundCodeDt<AddressTypeEnum> theValue)
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
public AddressDt setType(AddressTypeEnum theValue)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setText(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for text ()Definition: A full text representation of the address
-
setText
public AddressDt setText(String theString)
Sets the value for text ()Definition: A full text representation of the address
-
getLine
public List<ca.uhn.fhir.model.primitive.StringDt> 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
public AddressDt setLine(List<ca.uhn.fhir.model.primitive.StringDt> theValue)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public AddressDt addLine(ca.uhn.fhir.model.primitive.StringDt theValue)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public AddressDt addLine(String theString)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setCity(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for city ()Definition: The name of the city, town, village or other community or delivery center
-
setCity
public AddressDt setCity(String theString)
Sets the value for city ()Definition: The name of the city, town, village or other community or delivery center
-
getDistrictElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setDistrict(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for district ()Definition: The name of the administrative area (county)
-
setDistrict
public AddressDt setDistrict(String theString)
Sets the value for district ()Definition: The name of the administrative area (county)
-
getStateElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setState(ca.uhn.fhir.model.primitive.StringDt theValue)
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
public AddressDt setState(String theString)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setPostalCode(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for postalCode ()Definition: A postal code designating a region defined by the postal service
-
setPostalCode
public AddressDt setPostalCode(String theString)
Sets the value for postalCode ()Definition: A postal code designating a region defined by the postal service
-
getCountryElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public AddressDt setCountry(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for country ()Definition: Country - a nation as commonly understood or generally accepted
-
setCountry
public AddressDt setCountry(String theString)
Sets the value for country ()Definition: Country - a nation as commonly understood or generally accepted
-
getPeriod
public PeriodDt 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
-
-