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
public class Address extends Hl7v2Based<XAD>
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCity()
String
getCountry()
String
getCountyParishCode()
String
getOtherDesignation()
String
getStateOrProvince()
String
getStreetAddress()
String
getZipOrPostalCode()
int
hashCode()
void
setCity(String city)
void
setCountry(String country)
void
setCountyParishCode(String countyParishCode)
void
setOtherDesignation(String otherDesignation)
void
setStateOrProvince(String stateOrProvince)
void
setStreetAddress(String streetAddress)
void
setZipOrPostalCode(String zipOrPostalCode)
String
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 Detail
-
Address
public Address()
-
Address
public Address(XAD xad)
-
-
Method Detail
-
getStreetAddress
public String getStreetAddress()
- Returns:
- the street address (XAD.1).
-
setStreetAddress
public void setStreetAddress(String streetAddress)
- Parameters:
streetAddress
- the street address (XAD.1).
-
getOtherDesignation
public String getOtherDesignation()
- Returns:
- the other designation (XAD.2).
-
setOtherDesignation
public void setOtherDesignation(String otherDesignation)
- Parameters:
otherDesignation
- the other designation (XAD.2).
-
getCity
public String getCity()
- Returns:
- the city (XAD.3).
-
setCity
public void setCity(String city)
- Parameters:
city
- the city (XAD.3).
-
getStateOrProvince
public String getStateOrProvince()
- Returns:
- the state or province (XAD.4).
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
- Parameters:
stateOrProvince
- the state or province (XAD.4).
-
getZipOrPostalCode
public String getZipOrPostalCode()
- Returns:
- the zip or postal code (XAD.5).
-
setZipOrPostalCode
public void setZipOrPostalCode(String zipOrPostalCode)
- Parameters:
zipOrPostalCode
- the zip or postal code (XAD.5).
-
getCountry
public String getCountry()
- Returns:
- the country (XAD.6).
-
setCountry
public void setCountry(String country)
- Parameters:
country
- the country (XAD.6).
-
getCountyParishCode
public String getCountyParishCode()
- Returns:
- the county parish code (XAD.9).
-
setCountyParishCode
public void setCountyParishCode(String countyParishCode)
- Parameters:
countyParishCode
- the county parish code (XAD.9).
-
-