Class Address
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.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 ca.uhn.hl7v2.model.Type> -
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based
MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCity()inthashCode()static AddressParses an HL7v2 string into an Address object.voidvoidsetCountry(String country) voidsetCountyParishCode(String countyParishCode) voidsetOtherDesignation(String otherDesignation) voidsetStateOrProvince(String stateOrProvince) voidsetStreetAddress(String streetAddress) voidsetZipOrPostalCode(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
public Address(ca.uhn.hl7v2.model.v25.datatype.XAD xad)
-
-
Method Details
-
parse
Parses an HL7v2 string into an Address object.- Parameters:
hl7String- HL7v2 representation of an Address object.- Returns:
- parsed Address object.
-
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
-