Class Address
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XAD>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Address
- All Implemented Interfaces:
Serializable
Represents the address of a patient.
This class contains a subset of the fields from the HL7v2.5 XAD data type.
All members of this class are allowed to be null
. When transforming
to HL7 this indicates that the values are empty. Trailing empty values are
removed from the HL7 string.
- Author:
- Jens Riemschneider, Dmytro Rud
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
Hl7v2Based.Holder<T extends Type>
-
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCity()
int
hashCode()
void
void
setCountry
(String country) void
setCountyParishCode
(String countyParishCode) void
setOtherDesignation
(String otherDesignation) void
setStateOrProvince
(String stateOrProvince) void
setStreetAddress
(String streetAddress) void
setZipOrPostalCode
(String zipOrPostalCode) toString()
Methods inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
getHapiObject, getIntegerValue, getLongValue, isEmpty, parse, rawRender, render, render, setAssigningAuthority, setValue, setValue
-
Constructor Details
-
Address
public Address() -
Address
-
-
Method Details
-
getStreetAddress
- Returns:
- the street address (XAD.1).
-
setStreetAddress
- Parameters:
streetAddress
- the street address (XAD.1).
-
getOtherDesignation
- Returns:
- the other designation (XAD.2).
-
setOtherDesignation
- Parameters:
otherDesignation
- the other designation (XAD.2).
-
getCity
- Returns:
- the city (XAD.3).
-
setCity
- Parameters:
city
- the city (XAD.3).
-
getStateOrProvince
- Returns:
- the state or province (XAD.4).
-
setStateOrProvince
- Parameters:
stateOrProvince
- the state or province (XAD.4).
-
getZipOrPostalCode
- Returns:
- the zip or postal code (XAD.5).
-
setZipOrPostalCode
- Parameters:
zipOrPostalCode
- the zip or postal code (XAD.5).
-
getCountry
- Returns:
- the country (XAD.6).
-
setCountry
- Parameters:
country
- the country (XAD.6).
-
getCountyParishCode
- Returns:
- the county parish code (XAD.9).
-
setCountyParishCode
- Parameters:
countyParishCode
- the county parish code (XAD.9).
-
equals
-
hashCode
public int hashCode() -
toString
-