ca.uhn.hl7v2.model.v24.datatype
Class XTN

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractType
      extended by ca.uhn.hl7v2.model.v24.datatype.XTN
All Implemented Interfaces:
Composite, Type, Serializable

public class XTN
extends AbstractType
implements Composite

Represents an HL7 XTN (extended telecommunication number) data type. This type consists of the following components:

See Also:
Serialized Form

Constructor Summary
XTN(Message message)
          Creates a new XTN type
 
Method Summary
 TN get9999999X99999CAnyText()
          Returns [(999)] 999-9999 [X99999][C any text] (component #1).
 ST getAnyText()
          Returns any text (component #9).
 NM getAreaCityCode()
          Returns Area/city code (component #6).
 Type getComponent(int number)
          Returns an individual data component.
 Type[] getComponents()
          Returns an array containing the data elements.
 NM getCountryCode()
          Returns Country Code (component #5).
 ST getEmailAddress()
          Returns Email address (component #4).
 NM getExtension()
          Returns Extension (component #8).
 NM getPhoneNumber()
          Returns Phone number (component #7).
 ID getTelecommunicationEquipmentType()
          Returns telecommunication equipment type (ID) (component #3).
 ID getTelecommunicationUseCode()
          Returns telecommunication use code (component #2).
 TN getXtn1_9999999X99999CAnyText()
          Returns [(999)] 999-9999 [X99999][C any text] (component #1).
 ID getXtn2_TelecommunicationUseCode()
          Returns telecommunication use code (component #2).
 ID getXtn3_TelecommunicationEquipmentType()
          Returns telecommunication equipment type (ID) (component #3).
 ST getXtn4_EmailAddress()
          Returns Email address (component #4).
 NM getXtn5_CountryCode()
          Returns Country Code (component #5).
 NM getXtn6_AreaCityCode()
          Returns Area/city code (component #6).
 NM getXtn7_PhoneNumber()
          Returns Phone number (component #7).
 NM getXtn8_Extension()
          Returns Extension (component #8).
 ST getXtn9_AnyText()
          Returns any text (component #9).
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractType
clear, encode, getExtraComponents, getMessage, getName, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parse
 

Constructor Detail

XTN

public XTN(Message message)
Creates a new XTN type

Method Detail

getComponents

public Type[] getComponents()
Returns an array containing the data elements.

Specified by:
getComponents in interface Composite

getComponent

public Type getComponent(int number)
                  throws DataTypeException
Returns an individual data component.

Specified by:
getComponent in interface Composite
Parameters:
number - The component number (0-indexed)
Throws:
DataTypeException - if the given element number is out of range.

get9999999X99999CAnyText

public TN get9999999X99999CAnyText()
Returns [(999)] 999-9999 [X99999][C any text] (component #1). This is a convenience method that saves you from casting and handling an exception.


getXtn1_9999999X99999CAnyText

public TN getXtn1_9999999X99999CAnyText()
Returns [(999)] 999-9999 [X99999][C any text] (component #1). This is a convenience method that saves you from casting and handling an exception.


getTelecommunicationUseCode

public ID getTelecommunicationUseCode()
Returns telecommunication use code (component #2). This is a convenience method that saves you from casting and handling an exception.


getXtn2_TelecommunicationUseCode

public ID getXtn2_TelecommunicationUseCode()
Returns telecommunication use code (component #2). This is a convenience method that saves you from casting and handling an exception.


getTelecommunicationEquipmentType

public ID getTelecommunicationEquipmentType()
Returns telecommunication equipment type (ID) (component #3). This is a convenience method that saves you from casting and handling an exception.


getXtn3_TelecommunicationEquipmentType

public ID getXtn3_TelecommunicationEquipmentType()
Returns telecommunication equipment type (ID) (component #3). This is a convenience method that saves you from casting and handling an exception.


getEmailAddress

public ST getEmailAddress()
Returns Email address (component #4). This is a convenience method that saves you from casting and handling an exception.


getXtn4_EmailAddress

public ST getXtn4_EmailAddress()
Returns Email address (component #4). This is a convenience method that saves you from casting and handling an exception.


getCountryCode

public NM getCountryCode()
Returns Country Code (component #5). This is a convenience method that saves you from casting and handling an exception.


getXtn5_CountryCode

public NM getXtn5_CountryCode()
Returns Country Code (component #5). This is a convenience method that saves you from casting and handling an exception.


getAreaCityCode

public NM getAreaCityCode()
Returns Area/city code (component #6). This is a convenience method that saves you from casting and handling an exception.


getXtn6_AreaCityCode

public NM getXtn6_AreaCityCode()
Returns Area/city code (component #6). This is a convenience method that saves you from casting and handling an exception.


getPhoneNumber

public NM getPhoneNumber()
Returns Phone number (component #7). This is a convenience method that saves you from casting and handling an exception.


getXtn7_PhoneNumber

public NM getXtn7_PhoneNumber()
Returns Phone number (component #7). This is a convenience method that saves you from casting and handling an exception.


getExtension

public NM getExtension()
Returns Extension (component #8). This is a convenience method that saves you from casting and handling an exception.


getXtn8_Extension

public NM getXtn8_Extension()
Returns Extension (component #8). This is a convenience method that saves you from casting and handling an exception.


getAnyText

public ST getAnyText()
Returns any text (component #9). This is a convenience method that saves you from casting and handling an exception.


getXtn9_AnyText

public ST getXtn9_AnyText()
Returns any text (component #9). This is a convenience method that saves you from casting and handling an exception.



Copyright © 2001-2011 University Health Network. All Rights Reserved.