Supported Datatypes for HL7 Messages

Use the table in this topic when creating an HL7 message definition to map HL7 datatypes to the corresponding datatype in the message definition.

The HL7 Date, HL7 Time, and HL7 Timestamp datatypes do not support varying precision among different message instances. You must select a specific format for each of these datatypes in your HL7 message. To support different date/time precisions in the same message definition, use the String datatype instead. In this case, validation will not reject incorrectly formatted dates.

Table 1. HL7 datatypes and their appropriate mappings in a message definition
Datatype in HL7 Corresponding datatype in a message definition
String String
Text Data String
Formatted Text String
Numeric Choose based on the data: Integer, Float, or Double.
Seq ID Integer
ID String
IS String
Date Date

(Date format: yyyyMMdd)

Time Time

(Time format: HHmmss)

Time stamp Custom Date and Time

(Date time format: yyyyMMddHHmmss.SZ)

Telephone number String
Related concepts
Custom Wire Formats
Related tasks
Developing a Message Definition
Developing a Custom Class to Transform a Message Definition Field

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.