When creating an HL7 message definition, map the following HL7 datatypes to the appropriate datatypes.
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. If you need 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.
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 |
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com