public class XTN extends CompositeDataType
This data type specifies extended telecommunication number
Represents an HL7 XTN data type. This data type has the following attributes:
1. Telephone Number Withdrawn
2. Telecommunication Use Code (ID)Optional
3. Telecommunication Equipment Type (ID)Required
4. Communication Address (ST)Conditional
5. Country Code (SNM)Optional
6. Area/City Code (SNM)Optional
7. Local Number (SNM)Conditional
8. Extension (SNM)Conditional
9. Any Text (ST)Optional
10. Extension Prefix (ST)Optional
11. Speed Dial Code (ST)Optional
12. Unformatted Telephone number (ST)Conditional
13. Effective Start Date (DTM)Optional
14. Expiration Date (DTM)Optional
15. Expiration Reason (CWE)Optional
16. Protection Code (CWE)Optional
17. Shared Telecommunication Identifier (EI)Optional
18. Preference Order (NM)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 |
|---|
XTN()
Default Constructor for XTN
|
XTN(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for XTN class which takes two arguments and
sets the value in the respective member variable.
|
XTN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for XTN class which takes five arguments and
sets the value in the respective member variable.
|
XTN(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for XTN class which takes six arguments and
sets the value in the respective member variable.
|
XTN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for XTN class which takes four arguments and
sets the value in the respective member variable.
|
XTN(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for XTN 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 |
getAnyText()
Returns Any Text
|
SNM |
getAreaCityCode()
Returns Area/City Code
|
ST |
getCommunicationAddress()
Returns Communication Address
|
SNM |
getCountryCode()
Returns Country Code
|
DTM |
getEffectiveStartDate()
Returns Effective Start Date
|
DTM |
getExpirationDate()
Returns Expiration Date
|
CWE |
getExpirationReason()
Returns Expiration Reason
|
SNM |
getExtension()
Returns Extension
|
ST |
getExtensionPrefix()
Returns Extension Prefix
|
SNM |
getLocalNumber()
Returns Local Number
|
NM |
getPreferenceOrder()
Returns Preference Order
|
CWE |
getProtectionCode()
Returns Protection Code
|
EI |
getSharedTelecommunicationIdentifier()
Returns Shared Telecommunication Identifier
|
ST |
getSpeedDialCode()
Returns Speed Dial Code
|
ID |
getTelecommunicationEquipmentType()
Returns Telecommunication Equipment Type
|
ID |
getTelecommunicationUseCode()
Returns Telecommunication Use Code
|
ST |
getUnformattedTelephonenumber()
Returns Unformatted Telephone number
|
void |
setAnyText(ST objST)
Sets the AnyText.
|
void |
setAnyText(java.lang.String strAnyText)
Sets the AnyText.
|
void |
setAreaCityCode(SNM objSNM)
Sets the AreaCityCode.
|
void |
setAreaCityCode(java.lang.String strAreaCityCode)
Sets the AreaCityCode.
|
void |
setCommuinicationAddress(ST objST)
Sets the CommuinicationAddress.
|
void |
setCommuinicationAddress(java.lang.String strCommuinicationAddress)
Sets the CommuinicationAddress.
|
void |
setCountryCode(SNM objSNM)
Sets the CountryCode.
|
void |
setCountryCode(java.lang.String strCountryCode)
Sets the CountryCode.
|
void |
setEffectiveStartDate(DTM objDTM)
Sets the Effective Start Date.
|
void |
setEffectiveStartDate(java.lang.String strEffectiveStartDate)
Sets the Effective Start Date.
|
void |
setExpirationDate(DTM objDTM)
Sets the Expiration Date.
|
void |
setExpirationDate(java.lang.String strExpirationDate)
Sets the Expiration Date.
|
void |
setExpirationReason(CWE objCWE)
Sets the Expiration Reason.
|
void |
setExtension(SNM objSNM)
Sets the Extension.
|
void |
setExtension(java.lang.String strExtension)
Sets the Extension.
|
void |
setExtensionPrefix(ST objST)
Sets the ExtensionPrefix.
|
void |
setExtensionPrefix(java.lang.String strExtensionPrefix)
Sets the ExtensionPrefix.
|
void |
setLocalNumber(SNM objSNM)
Sets the LocalNumber.
|
void |
setLocalNumber(java.lang.String strLocalNumber)
Sets the LocalNumber.
|
void |
setPreferenceOrder(NM objNM)
Sets the Preference Order.
|
void |
setPreferenceOrder(java.lang.String strPreferenceOrder)
Sets the Preference Order.
|
void |
setProtectionCode(CWE objCWE)
Sets the Protection Code .
|
void |
setSharedTelecommunicationIdentifier(EI objEI)
Sets the Shared Telecommunication Identifier.
|
void |
setSpeedDialCode(ST objST)
Sets the SpeedDialCode.
|
void |
setSpeedDialCode(java.lang.String strSpeedDialCode)
Sets the SpeedDialCode.
|
void |
setTelecommunicationEquipmentType(ID objID)
Sets the TelecommunicationEquipmentType.
|
void |
setTelecommunicationEquipmentType(java.lang.String strTelecommunicationEquipmentType)
Sets the TelecommunicationEquipmentType.
|
void |
setTelecommunicationUseCode(ID objID)
Sets the TelecommunicationUseCode.
|
void |
setTelecommunicationUseCode(java.lang.String strTelecommunicationUseCode)
Sets the TelecommunicationUseCode.
|
void |
setUnformattedTelephonenumber(ST objST)
Sets the UnformattedTelephonenumber.
|
void |
setUnformattedTelephonenumber(java.lang.String strUnformattedPhNo)
Sets the UnformattedTelephonenumber.
|
boolean |
validate()
The Method validates the Input value,and if validated properly then returns true.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, write, writeToXMLpublic XTN()
public XTN(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 XTN(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 XTN(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 XTN(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 XTN(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 setTelecommunicationUseCode(java.lang.String strTelecommunicationUseCode)
strTelecommunicationUseCode - Specifies a code that represents a specific use of a telecommunication number.
Suggested values are PRN,ORN,WPN,VHN,ASN,EMR,NET,BPN [Refer table 0201.]public void setTelecommunicationUseCode(ID objID)
objID - Specifies a code that represents a specific use of a telecommunication number.
Suggested values are PRN,ORN,WPN,VHN,ASN,EMR,NET,BPN [Refer table 0201.]public void setTelecommunicationEquipmentType(java.lang.String strTelecommunicationEquipmentType)
strTelecommunicationEquipmentType - Specifies a code that represents the type of telecommunication equipment.
Suggested values are PH,FX,MD,CP,BP,Internet,X.400,TDD,TTY [Refer table 0202.]public void setTelecommunicationEquipmentType(ID objID)
objID - Specifies a code that represents the type of telecommunication equipment.
Suggested values are PH,FX,MD,CP,BP,Internet,X.400,TDD,TTY [Refer table 0202.]public void setCommuinicationAddress(java.lang.String strCommuinicationAddress)
strCommuinicationAddress - Specifies Email address.public void setCommuinicationAddress(ST objST)
objST - Specifies Email address.public void setCountryCode(java.lang.String strCountryCode)
strCountryCode - Specifies the Country code.public void setCountryCode(SNM objSNM)
objSNM - Specifies the Country code.public void setAreaCityCode(java.lang.String strAreaCityCode)
strAreaCityCode - Specifies the area /City Code.public void setAreaCityCode(SNM objSNM)
objSNM - Specifies the area /City Code.public void setLocalNumber(java.lang.String strLocalNumber)
strLocalNumber - Specifies an Local Number.public void setLocalNumber(SNM objSNM)
objSNM - Specifies an Local Number.public void setExtension(java.lang.String strExtension)
strExtension - Specifies an Extension.public void setExtension(SNM objSNM)
objSNM - Specifies an Extension.public void setAnyText(java.lang.String strAnyText)
strAnyText - Contains comments with respect to the telephone number.public void setAnyText(ST objST)
objST - Contains comments with respect to the telephone number.public void setExtensionPrefix(java.lang.String strExtensionPrefix)
strExtensionPrefix - Specifies the characters established within a company's
internal telephone system network used as a prefix to the Extension component for internal dialing.public void setExtensionPrefix(ST objST)
objST - Specifies the characters established within a company's
internal telephone system network used as a prefix to the Extension component for internal dialing.public void setSpeedDialCode(java.lang.String strSpeedDialCode)
strSpeedDialCode - Specifies The characters established within a
company's internal telephone system used in place of the (external) telephone number.public void setSpeedDialCode(ST objST)
objST - Specifies The characters established within a
company's internal telephone system used in place of the (external) telephone number.public void setUnformattedTelephonenumber(java.lang.String strUnformattedPhNo)
strUnformattedPhNo - Specifies an expression of the telephone number as an unparsible string.public void setUnformattedTelephonenumber(ST objST)
objST - Specifies an expression of the telephone number as an unparsible string.public void setEffectiveStartDate(java.lang.String strEffectiveStartDate)
strEffectiveStartDate - Specifies The first date, if known, on which the telecommunication number is valid and active.public void setEffectiveStartDate(DTM objDTM)
objDTM - Specifies The first date, if known, on which the telecommunication number is valid and active.public void setExpirationDate(java.lang.String strExpirationDate)
strExpirationDate - Specifies The last date, if known, on which the telecommunication number is valid and active.public void setExpirationDate(DTM objDTM)
objDTM - Specifies The last date, if known, on which the telecommunication number is valid and active.public void setExpirationReason(CWE objCWE)
objCWE - Specifies Indicates why this contact number/e-mail was marked as "ended".public void setProtectionCode(CWE objCWE)
objCWE - Indicates whether this information is considered sensitive or should be protected in some way.public void setSharedTelecommunicationIdentifier(EI objEI)
objEI - A unique identifier for the phone number or e-mail 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 ID getTelecommunicationUseCode()
public ID getTelecommunicationEquipmentType()
public ST getCommunicationAddress()
public SNM getCountryCode()
public SNM getAreaCityCode()
public SNM getLocalNumber()
public SNM getExtension()
public ST getAnyText()
public ST getExtensionPrefix()
public ST getSpeedDialCode()
public ST getUnformattedTelephonenumber()
public DTM getEffectiveStartDate()
public DTM getExpirationDate()
public CWE getExpirationReason()
public CWE getProtectionCode()
public EI getSharedTelecommunicationIdentifier()
public NM getPreferenceOrder()
public boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypevalidate in class CompositeDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.