HPRIM data types

Data type Description
CM: composite A field that is a combination of other meaningful data fields.
CE: coded element This data type transmits codes and the text that is associated with the code.
ID: coded value for HPRIM defined tables The value of such a field follows the formatting rules for an ST field except that it is drawn from a table of legal values. There is an HPRIM table number associated with ID data types. Examples of ID fields include religion and sex.
NM: numeric A number represented as a series of ASCII numeric characters consisting of an optional leading sign ( + or -), the digits, and an optional decimal point. In the absence of a sign, the number is assumed to be positive. If there is no decimal point, then the number is assumed to be an integer.
TX: text data String data meant for user display on a terminal or printer.
CQ: composite quantity with units Components: <quantity (NM)> ^ <units (CE)>

In future versions, CQ fields should be avoided because the same data can usually be sent as two separate fields, one with the value and one with the units as a CE data type.

ST: string data String data is left-justified with trailing blanks optional. Any displayable (printable) ACSII characters (hexadecimal values between 20 and 7E, inclusive, or ASCII decimal values between 32 and 126), except the defined delimiter characters.
AD: address Components: <street address (ST)> ^ < other designation (ST)> ^ <city (ST)> ^ <state or province (ST)> ^ <zip or postal code (ST)> ^ <country (ID)> ^ <address type (ID)> ^ <other geographic designation (ST)>
TS: time stamp Format: YYYY[MM[DD[HHMM[SS[.S[S[S[S]]]]]]]][+/-ZZZZ]^<degree of precision>

Contains the exact time of an event, including the date and time. The date portion of a time stamp follows the rules of a date field and the time portion follows the rules of a time field.

TN: telephone number For use in the United States and conforming countries, the telephone number is always in the form Format: [NN] [(999)]999-9999[X99999][B99999][C any text]

For use in other countries, the optional first two digits are the country code.

PN: person name Components: <family name (ST)> ^ <given name (ST)> ^ <middle initial or name (ST)> ^ <suffix (for example, JR or III) (ST)> ^ <prefix (for example, DR) (ST)> ^ <degree (for example, MD) (ST)>

This data type includes multiple free text components. Each component is specified to be an HPRIM ST data type. The maximum length of a PN field is 48 characters including component separators. The sending system may send upper- and lowercase or all uppercase. The receiving system may convert to all uppercase if required.