Package ca.uhn.hl7v2.model.v251.datatype
Class XTN
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v251.datatype.XTN
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 XTN (Extended Telecommunication Number) data type. This type consists of the following components:
- Telephone Number (ST)
- Telecommunication Use Code (ID)
- Telecommunication Equipment Type (ID)
- Email Address (ST)
- Country Code (NM)
- Area/City Code (NM)
- Local Number (NM)
- Extension (NM)
- Any Text (ST)
- Extension Prefix (ST)
- Speed Dial Code (ST)
- Unformatted Telephone number (ST)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns Any Text (component 9).Returns Area/City Code (component 6).getComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns Country Code (component 5).Returns Email Address (component 4).Returns Extension (component 8).Returns Extension Prefix (component 10).Returns Local Number (component 7).Returns Speed Dial Code (component 11).Returns Telecommunication Equipment Type (component 3).Returns Telecommunication Use Code (component 2).Returns Telephone Number (component 1).Returns Unformatted Telephone number (component 12).Returns Telephone Number (component 1).Returns Extension Prefix (component 10).Returns Speed Dial Code (component 11).Returns Unformatted Telephone number (component 12).Returns Telecommunication Use Code (component 2).Returns Telecommunication Equipment Type (component 3).Returns Email Address (component 4).Returns Country Code (component 5).Returns Area/City Code (component 6).Returns Local Number (component 7).Returns Extension (component 8).Returns Any Text (component 9).Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
XTN
Creates a new XTN type
-
-
Method Details
-
getComponents
Returns an array containing the data elements. -
getComponent
Returns an individual data component.- Parameters:
number- The component number (0-indexed)- Throws:
DataTypeException- if the given element number is out of range.
-
getTelephoneNumber
Returns Telephone Number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getXtn1_TelephoneNumber
Returns Telephone Number (component 1). This is a convenience method that saves you from casting and handling an exception. -
getTelecommunicationUseCode
Returns Telecommunication Use Code (component 2). This is a convenience method that saves you from casting and handling an exception. -
getXtn2_TelecommunicationUseCode
Returns Telecommunication Use Code (component 2). This is a convenience method that saves you from casting and handling an exception. -
getTelecommunicationEquipmentType
Returns Telecommunication Equipment Type (component 3). This is a convenience method that saves you from casting and handling an exception. -
getXtn3_TelecommunicationEquipmentType
Returns Telecommunication Equipment Type (component 3). This is a convenience method that saves you from casting and handling an exception. -
getEmailAddress
Returns Email Address (component 4). This is a convenience method that saves you from casting and handling an exception. -
getXtn4_EmailAddress
Returns Email Address (component 4). This is a convenience method that saves you from casting and handling an exception. -
getCountryCode
Returns Country Code (component 5). This is a convenience method that saves you from casting and handling an exception. -
getXtn5_CountryCode
Returns Country Code (component 5). This is a convenience method that saves you from casting and handling an exception. -
getAreaCityCode
Returns Area/City Code (component 6). This is a convenience method that saves you from casting and handling an exception. -
getXtn6_AreaCityCode
Returns Area/City Code (component 6). This is a convenience method that saves you from casting and handling an exception. -
getLocalNumber
Returns Local Number (component 7). This is a convenience method that saves you from casting and handling an exception. -
getXtn7_LocalNumber
Returns Local Number (component 7). This is a convenience method that saves you from casting and handling an exception. -
getExtension
Returns Extension (component 8). This is a convenience method that saves you from casting and handling an exception. -
getXtn8_Extension
Returns Extension (component 8). This is a convenience method that saves you from casting and handling an exception. -
getAnyText
Returns Any Text (component 9). This is a convenience method that saves you from casting and handling an exception. -
getXtn9_AnyText
Returns Any Text (component 9). This is a convenience method that saves you from casting and handling an exception. -
getExtensionPrefix
Returns Extension Prefix (component 10). This is a convenience method that saves you from casting and handling an exception. -
getXtn10_ExtensionPrefix
Returns Extension Prefix (component 10). This is a convenience method that saves you from casting and handling an exception. -
getSpeedDialCode
Returns Speed Dial Code (component 11). This is a convenience method that saves you from casting and handling an exception. -
getXtn11_SpeedDialCode
Returns Speed Dial Code (component 11). This is a convenience method that saves you from casting and handling an exception. -
getUnformattedTelephoneNumber
Returns Unformatted Telephone number (component 12). This is a convenience method that saves you from casting and handling an exception. -
getXtn12_UnformattedTelephoneNumber
Returns Unformatted Telephone number (component 12). This is a convenience method that saves you from casting and handling an exception.
-