public class XAD extends CompositeDataType
This data type specifies the address of a person, place or organization plus associated information.
Represents an HL7 XAD data type. This data type has the following attributes:
1. Street Address (SAD)Optional
2. Other Designation (ST)Optional
3. City (ST)Optional
4. State or Province (ST)Optional
5. Zip or Postal Code (ST)Optional
6. Country (ID)Optional
7. Address Type (ID)Conditional
8. Other Geographic Designation (ST)Optional
9. County/Parish Code (CWE)Optional
10. Census Tract (CWE)Optional
11. Address Representation Code (ID)Optional
13. Effective Date (DTM)Optional
14. Expiration Date (DTM)Optional
15. Expiration Reason (CWE)Optional
16. Temporary Indicator (ID)Optional
17. Bad Address Indicator (ID)Optional
18. Address Usage (ID)Optional
19. Addressee (ST)Optional
20. Comment (ST)Optional
21. Preference Order (NM)Optional
22. Protection Code (CWE)Optional
23. Address Identifier (EI)Optional
This class provides accessors & mutators for the elements mentioned above. This class override the equal method, to check whether some other object is "equal to" this one.
User can also create Data Type through DataElementFactory
| Constructor and Description |
|---|
XAD()
Default Constructor for XAD
|
XAD(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for XAD class which takes two arguments and
sets the value in the respective member variable.
|
XAD(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for XAD class which takes five arguments and
sets the value in the respective member variable.
|
XAD(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for XAD class which takes six arguments and
sets the value in the respective member variable.
|
XAD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for XAD class which takes four arguments and
sets the value in the respective member variable.
|
XAD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for XAD class which takes five arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
ST |
getAddressee()
Returns Addressee
|
EI |
getAddressIdentifier()
Returns Address Identifier
|
ID |
getAddressRepresentationCode()
Returns Address Representation Code
|
ID |
getAddressType()
Returns Address Type
|
ID |
getAddressUsage()
Returns Address UsagE
|
ID |
getBadAddressIndicator()
Returns Bad Address Indicator
|
CWE |
getCensusTract()
Returns Census Tract
|
ST |
getCity()
Returns City
|
ST |
getComment()
Returns Comment
|
ID |
getCountry()
Returns Country
|
CWE |
getCountyParishCode()
Returns County/Parish Code
|
DTM |
getEffectiveDate()
Returns Effective Date
|
DTM |
getExpirationDate()
Returns Expiration Date
|
CWE |
getExpirationReason()
Returns Expiration Reason
|
ST |
getOtherDesignation()
Returns Other Designation
|
ST |
getOtherGeographicDesignation()
Returns Other Geographic Designation
|
NM |
getPreferenceOrder()
Returns Preference Order
|
CWE |
getProtectionCode()
Returns Protection Code
|
ST |
getStateOrProvince()
Returns State or Province
|
SAD |
getStreetAddress()
Returns Street Address
|
ID |
getTemporaryIndicator()
Returns Temporary Indicator
|
ST |
getZipOrPostalCode()
Returns Zip or Postal Code
|
void |
setAddressee(ST objST)
Sets the Addressee .
|
void |
setAddressee(java.lang.String strAddressee)
Sets the Addressee .
|
void |
setAddressIdentifier(EI objEI)
Sets the Address Identifier .
|
void |
setAddressRepresentationCode(ID objID)
Sets the AddressRepresentationCode.
|
void |
setAddressRepresentationCode(java.lang.String strAddrRepresentationCode)
Sets the AddressRepresentationCode.
|
void |
setAddressType(ID objID)
Sets the AddressType.
|
void |
setAddressType(java.lang.String strAddressType)
Sets the AddressType.
|
void |
setAddressUsage(ID objID)
Sets the Address Usage.
|
void |
setAddressUsage(java.lang.String strAddressUsage)
Sets the Address Usage.
|
void |
setBadAddressIndicator(ID objID)
Sets the Bad Address Indicator.
|
void |
setBadAddressIndicator(java.lang.String strBadAddressIndicator)
Sets the Bad Address Indicator.
|
void |
setCensusTract(CWE objCWE)
Sets the CensusTract.
|
void |
setCensusTract(java.lang.String strCensusTract)
Sets the CensusTract.
|
void |
setCity(ST objST)
Sets the City.
|
void |
setCity(java.lang.String strCity)
Sets the City.
|
void |
setComment(ST objST)
Sets the Comment .
|
void |
setComment(java.lang.String strComment)
Sets the Comment .
|
void |
setCountry(ID objID)
Sets the Country.
|
void |
setCountry(java.lang.String strCountry)
Sets the Country.
|
void |
setCountyParishCode(CWE objCWE)
Sets the CountyParishCode.
|
void |
setCountyParishCode(java.lang.String strCountyParishCode)
Sets the CountyParishCode.
|
void |
setEffectiveDate(DTM objEffectiveDate)
Sets the EffectiveDate.
|
void |
setEffectiveDate(java.lang.String strEffectiveDate)
Sets the EffectiveDate.
|
void |
setExpirationDate(DTM objExpirationDate)
Sets the ExpirationDate.
|
void |
setExpirationDate(java.lang.String strExpirationDate)
Sets the ExpirationDate.
|
void |
setExpirationReason(CWE objCWE)
Sets the Expiration Reason.
|
void |
setOtherDesignation(ST objST)
Sets the OtherDesignation.
|
void |
setOtherDesignation(java.lang.String strOtherDesignation)
Sets the OtherDesignation.
|
void |
setOtherGeographicDesignation(ST objST)
Sets the OtherGeographicDesignation.
|
void |
setOtherGeographicDesignation(java.lang.String strOtherGeographicDesignation)
Sets the OtherGeographicDesignation.
|
void |
setPreferenceOrder(NM objNM)
Sets the Preference Order .
|
void |
setPreferenceOrder(java.lang.String strPreferenceOrder)
Sets the Preference Order .
|
void |
setProtectionCode(CWE objCWE)
Sets the Preference Code .
|
void |
setStateOrProvince(ST objST)
Sets the StateOrProvince.
|
void |
setStateOrProvince(java.lang.String strStateOrProvince)
Sets the StateOrProvince.
|
void |
setStreetAddress(SAD objStreetAddress)
Sets the StreetAddress.
|
void |
setTemporaryIndicator(ID objID)
Sets the Temporary Indicator.
|
void |
setTemporaryIndicator(java.lang.String strTemporaryIndicator)
Sets the Temporary Indicator.
|
void |
setZipOrPostalCode(ST objST)
Sets the ZipOrPostalCode.
|
void |
setZipOrPostalCode(java.lang.String strZipOrPostalCode)
Sets the ZipOrPostalCode.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic XAD()
public XAD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public XAD(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public XAD(int iComponentType, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public XAD(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public XAD(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setStreetAddress(SAD objStreetAddress)
objStreetAddress - specifies the street address.public void setOtherDesignation(java.lang.String strOtherDesignation)
strOtherDesignation - specifies the Second line of address.public void setOtherDesignation(ST objST)
objST - specifies the Second line of address.public void setCity(java.lang.String strCity)
strCity - the city, or district or place where the addressee is located.public void setCity(ST objST)
objST - the city, or district or place where the addressee is located.public void setStateOrProvince(java.lang.String strStateOrProvince)
strStateOrProvince - specifies the state or province where the addressee is located.public void setStateOrProvince(ST objST)
objST - specifies the state or province where the addressee is located.public void setZipOrPostalCode(java.lang.String strZipOrPostalCode)
strZipOrPostalCode - specifies the zip or postal code where the addressee is located.public void setZipOrPostalCode(ST objST)
objST - specifies the zip or postal code where the addressee is located.public void setCountry(java.lang.String strCountry)
strCountry - specifies the country where the addressee is located.public void setCountry(ID objID)
objID - specifies the country where the addressee is located.public void setAddressType(java.lang.String strAddressType)
strAddressType - specifies the kind or type of address.public void setAddressType(ID objID)
objID - specifies the kind or type of address.public void setOtherGeographicDesignation(java.lang.String strOtherGeographicDesignation)
strOtherGeographicDesignation - specifies any other geographic designation.public void setOtherGeographicDesignation(ST objST)
objST - specifies any other geographic designation.public void setCountyParishCode(java.lang.String strCountyParishCode)
strCountyParishCode - specifies a code that represents the county in which the specified address resides.public void setCountyParishCode(CWE objCWE)
objCWE - specifies a code that represents the county in which the specified address resides.public void setCensusTract(java.lang.String strCensusTract)
strCensusTract - specifies a code that represents the census tract in which the specified address resides.public void setCensusTract(CWE objCWE)
objCWE - specifies a code that represents the census tract in which the specified address resides.public void setAddressRepresentationCode(java.lang.String strAddrRepresentationCode)
strAddrRepresentationCode - specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]public void setAddressRepresentationCode(ID objID)
objID - specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]public void setEffectiveDate(java.lang.String strEffectiveDate)
strTime - specifies The first date, if known, on which the address is valid and active.public void setEffectiveDate(DTM objEffectiveDate)
objEffectiveDate - It is The first date, if known, on which the address is valid and active.public void setExpirationDate(java.lang.String strExpirationDate)
strTime - specifies The last date, if known, on which the address is valid and active.public void setExpirationDate(DTM objExpirationDate)
objExpirationDate - It is The last date, if known, on which the address is valid and active.public void setExpirationReason(CWE objCWE)
objCWE - specifies why this address was marked as "ended".public void setTemporaryIndicator(java.lang.String strTemporaryIndicator)
strTemporaryIndicator - indicates that the address is considered temporary.public void setTemporaryIndicator(ID objID)
objID - indicates that the address is considered temporary.public void setBadAddressIndicator(java.lang.String strBadAddressIndicator)
strBadAddressIndicator - indicates that it is not possible to contact the "owning" entity at this address.public void setBadAddressIndicator(ID objID)
objID - indicates that it is not possible to contact the "owning" entity at this address.public void setAddressUsage(java.lang.String strAddressUsage)
strAddressUsage - indicates how the address is intended to be used.public void setAddressUsage(ID objID)
objID - indicates how the address is intended to be used.public void setAddressee(java.lang.String strAddressee)
strAddressee - Identifies the name of the person or organization.public void setAddressee(ST objST)
objST - Identifies the name of the person or organization.public void setComment(java.lang.String strComment)
strComment - specifies Descriptive information about the use of the address.public void setComment(ST objST)
objST - specifies Descriptive information about the use of the address.public void setPreferenceOrder(java.lang.String strPreferenceOrder)
strPreferenceOrder - indicates which is the 'most preferred' (lowest number) to 'least preferred' (highest number).public void setPreferenceOrder(NM objNM)
objNM - indicates which is the 'most preferred' (lowest number) to 'least preferred' (highest number).public void setProtectionCode(CWE objCWE)
objCWE - Identifies that an address needs to be treated with special care or sensitivity.public void setAddressIdentifier(EI objEI)
objEI - Identifies A unique identifier for the address.public SAD getStreetAddress()
public ST getOtherDesignation()
public ST getCity()
public ST getStateOrProvince()
public ST getZipOrPostalCode()
public ID getCountry()
public ID getAddressType()
public ST getOtherGeographicDesignation()
public CWE getCountyParishCode()
public CWE getCensusTract()
public ID getAddressRepresentationCode()
public DTM getEffectiveDate()
public DTM getExpirationDate()
public CWE getExpirationReason()
public ID getTemporaryIndicator()
public ID getBadAddressIndicator()
public ID getAddressUsage()
public ST getAddressee()
public ST getComment()
public NM getPreferenceOrder()
public CWE getProtectionCode()
public EI getAddressIdentifier()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.