Skip to content

HL7 implementation reference

This API supports version 2.3.1 of the HL7 specification, with some updates from later versions. The supported message types are:

When building your HL7 messages, you must use the delimiters specified in this documentation.

How to read this page

Column Meaning
SEG Segment
SEQ Field number
CMP Component number
REP Repetition number
REQ Whether the field is required (Y means that is is required, N is not required, and S is situationally required)
Description Description of the field
Type Data type
Format / values Format or allowed values
Max Maximum length

For situational fields, generally this means that the field is required if the main field is sent. As an example, the guarantor address is required once a guarantor is named.

If the Type is Enum, then the Format/Values column lists the permitted values.

Delimiters

The same delimiters apply to every message type.

Delimiter Character Decimal Hex Description
Message Prefix VT 11 0B Vertical Tab
Message Terminator FS,CR 28,13 1C,0D File Separator, Carriage Return
Segment Terminator CR 13 0D Carriage Return
Field Separator | 124 7C Pipe
Component Separator ^ 94 5E Caret
Subcomponent Separator & 38 26 Ampersand
Repetition Separator ~ 126 7E Tilde
Escape Separator \ 92 5C Backslash

Patient Messages (ADT A04 & A08)

Send ADT A04 to create a patient and ADT A08 to update one. The trigger event goes in both MSH.9.1 and EVN.1. Both A04 and A08 use the same fields.

SEG SEQ CMP REP REQ Description Type Format / values Max
MSH 2 0 0 Y ‘^~&’ String ^~&
MSH 3 0 0 N Sending App String
MSH 4 0 0 N Sending Facility Name String 60
MSH 4 1 0 N Sending Facility ID (External or Internal) String 12
MSH 5 0 0 Y Receiving App ‘CollaborateMD’ String CollaborateMD
MSH 6 0 0 Y Customer Name String 120
MSH 6 1 0 Y Customer Number String 9
MSH 7 0 0 Y Date Time of Message Date yyyyMMddHHmmss
MSH 9 0 0 Y ‘ADT’ String ADT
MSH 9 1 0 Y ‘A04’ or ‘A08’ String
MSH 10 0 0 Y Message Control Number String
MSH 11 0 0 Y ‘P’ String P
MSH 12 0 0 Y ‘2.3.1’ String 2.3.1
EVN 1 0 0 Y ‘A04’ or ‘A08’ String
EVN 2 0 0 Y Date Time of Event Date yyyyMMddHHmmss
EVN 2 1 0 Y ‘S’ String S
PID 1 0 0 Y Sequence ID String
PID 2 0 0 N Patient Account Number in CollaborateMD String
PID 3 0 0 N Patient Account Number in Sending System String 20
PID 3 0 1 N Visit ID String 50
PID 3 0 2 N Patient Reference # (not used for matching) String 20
PID 4 0 0 N Patient Social Security Number String Unformatted 9
PID 5 0 0 Y Patient Last Name String 30
PID 5 1 0 Y Patient First Name String 20
PID 5 2 0 N Patient Middle Name/Initial String 20
PID 7 0 0 Y Patient Birth Date Date yyyyMMdd
PID 8 0 0 Y Patient Sex Enum F =Female
M = Male
PID 10 0 0 N Patient Race Enum I = American Indian or Alaskan Native
A = Asian or Pacific Islander
B = Black
W = White
O = Other
PID 11 0 0 S Patient Address1 String 40
PID 11 1 0 N Patient Address2 String 40
PID 11 2 0 S Patient City String 28
PID 11 3 0 S Patient State String Abbreviation 2
PID 11 4 0 S Patient Zip Code String 10
PID 11 5 0 N Patient Country String ISO 3166 Alpha-3 code 3
PID 12 0 0 N Patient Cell Phone String (###) ###-####
PID 13 0 0 N Patient Home Phone String (###) ###-####
PID 13 3 0 N Patient E-Mail String 100
PID 14 0 0 N Patient Work Phone String (###) ###-####
PID 15 0 0 N Patient Language Enum 0 = English
1 = Spanish
2 = Other
PID 16 0 0 N Patient Marital Status Enum M = Married
S = Single
D = Divorced
W = Widowed
A = Legally Separated
U = Unknown
PID 18 0 0 N Patient Account Number in Sending System (update) String 20
PID 19 0 0 N Patient Social Security Number (update) String Unformatted 9
PID 22 0 0 N Patient Ethnicity Enum H = Hispanic
N = Non-Hispanic
U = Unknown
NK1 1 0 0 Y Set ID - ‘1’ String 1
NK1 2 0 0 N Next of Kin / Associated Party Last Name String 30
NK1 2 1 0 N Next of Kin / Associated Party First Name String 20
NK1 2 2 0 N Next of Kin / Associated Party Middle initial String 20
NK1 3 0 0 N Next of Kin / Associated Party Relationship Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
NK1 4 0 0 N Next of Kin / Associated Party Address 1 String 40
NK1 4 1 0 N Next of Kin / Associated Party Address 2 String 40
NK1 4 2 0 N Next of Kin / Associated Party City String 28
NK1 4 3 0 N Next of Kin / Associated Party State String 2
NK1 4 4 0 N Next of Kin / Associated Party Zip String 10
NK1 4 5 0 N Next of Kin / Associated Party Country String ISO 3166 Alpha-3 code 3
NK1 5 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 5 3 0 N Next of Kin / Associated E-Mail String 50
NK1 6 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 6 3 0 N Next of Kin / Associated Remarks String 50
PV1 1 0 0 Y Sequence ID String 1
PV1 2 0 0 N Patient Class String U
PV1 3 0 0 N Provider Reference ID String 12
PV1 7 0 0 Y Provider ID (SeqNo or External ID) String
PV1 7 1 0 Y Provider Last Name String 60
PV1 7 2 0 Y Provider First Name String 35
PV1 7 3 0 N Provider Middle Initial String 1
PV1 7 6 0 N Provider Credentials String 15
PV1 7 7 0 N Provider Office Location Code (Defaults to 0) String
PV1 8 0 0 N Referring ID (SeqNo, UPIN, or External ID) String If you enter NPI, this will create a new referring provider if there is no match
PV1 8 1 0 N Referring Last Name String 35
PV1 8 2 0 N Referring First Name String 20
PV1 8 3 0 N Referring Middle Initial String 1
PV1 8 6 0 N Referring Credentials String 15
PV1 9 0 0 N Sales Rep ID (SeqNo, UPIN, or External ID) String
PV1 9 1 0 N Sales Rep Last Name String 35
PV1 9 2 0 N Sales Rep First Name String 20
PV1 9 3 0 N Sales Rep Middle Initial String 1
PV1 9 6 0 N Sales Rep Credentials String 15
PV1 10 0 0 N Ordering ID (SeqNo, UPIN, or External ID) String
PV1 10 1 0 N Ordering Last Name String 35
PV1 10 2 0 N Ordering First Name String 20
PV1 10 3 0 N Ordering Middle Initial String 1
PV1 10 6 0 N Ordering Credentials String 15
GT1 1 0 2 S Sequence ID String
GT1 3 0 0 S Guarantor Last Name String 30
GT1 3 1 0 S Guarantor First Name String 20
GT1 3 2 0 N Guarantor Middle Name/Initial String 20
GT1 5 0 0 S Guarantor Address1 String 40
GT1 5 1 0 N Guarantor Address2 String 40
GT1 5 2 0 S Guarantor City String 28
GT1 5 3 0 S Guarantor State String 2
GT1 5 4 0 S Guarantor Zip Code String 10
GT1 5 5 0 N Guarantor Country String ISO-3166 Alpha-3 code 3
GT1 6 0 0 N Guarantor Home Phone String (###) ###-####
GT1 6 4 0 N Gurantor Email String 100
GT1 7 0 0 N Guarantor Work Phone String (###) ###-####
GT1 8 0 0 S Guarantor Date of Birth Date yyyyMMdd
GT1 9 0 0 S Guarantor Sex Enum F =Female
M = Male
GT1 11 0 0 S Guarantor Relation to Patient Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
GT1 12 No specification given in the source document.
ACC 1 0 0 N Accident Date Date yyyyMMdd
ACC 2 0 0 N Accident Type String 0 = No Accident
1 = Emp. Accident
2 = Auto Accident
3 = Other Accident
ACC 4 0 0 N Accident State - 2 letter state code String 2
IN1 1 0 3 S Sequence ID String
IN1 2 0 0 S Payer ID in Sending System String 12
IN1 3 0 0 S Payer ID - CollaborateMD internal ID String
IN1 4 0 0 S Payer Name String 80
IN1 5 0 0 S Payer Address1 String 42
IN1 5 1 0 N Payer Address2 String 42
IN1 5 2 0 S Payer City String 28
IN1 5 3 0 S Payer State String 2
IN1 5 4 0 S Payer Zip Code String 10
IN1 7 0 0 N Payer Phone String (###) ###-####
IN1 9 0 0 N Payer Group Name String 60
IN1 10 0 0 N Insurance Group Number String 29
IN1 12 0 0 N Insured Policy Effective Date Date yyyyMMdd
IN1 13 0 0 N Insured Policy Termination Date Date yyyyMMdd
IN1 16 0 0 Y Insured’s Last Name String 30
IN1 16 1 0 Y Insured’s First Name String 20
IN1 16 2 0 S Insured’s Middle Initial String 20
IN1 17 0 0 Y Insured Relationship to Patient Enum S = Self
P = Spouse
C = Child
O = Other
IN1 18 0 0 N Insured’s Date of Birth Date yyyyMMdd
IN1 19 0 0 Insured’s Address line 1 String 40
IN1 19 1 0 Insured’s Address Line 2 String 40
IN1 19 2 0 Insured’s City String 28
IN1 19 3 0 Insured’s State String 2
IN1 19 4 0 Insured’s Zip Code String 10
IN1 19 5 0 N Insured’s Country String ISO 3166 Alpha-3 code 3
IN1 36 0 0 S Insurance Policy Number String 25
IN1 37 0 0 N Insurance Copay String 0.00-999.99
IN1 37 1 0 N Co-Insurance Percentage String 0-100
IN1 37 2 0 N Insurance Deductible String 0.00-99999.99
IN1 42 0 0 N Insured Employment Status String 0 = Full-Time
1 = Part-Time
2 = Unemployed
3 = Self Employed
4 = Retired
5 - Military
6 - Unknown
IN1 43 0 0 S Insured’s Sex Enum F = Female
M = Male
IN1 44 0 0 N Insured Employer Address Line 1 String 40
IN1 44 1 0 N Insured Employer Address Line 2 String 40
IN1 44 2 0 N Insured Employer City String 28
IN1 44 3 0 N Insured Employer State String 2
IN1 44 4 0 N Insured Employer Zip Code String 10
IN2 3 0 0 N Insured Employer Name String 35
DG1 1 0 0 N Patient Default Diagnosis Index String 1-8
DG1 3 0 0 Y ICD Code String 8
DG1 3 1 0 N ICD Description String 250
DG1 3 2 0 Y ICD Version String “9” or “10”
OBX 1 0 0 N Sequence ID String 1
OBX 3 0 0 S Code String 8665-2 6
OBX 5 0 S Last Menstrual Period Start Date Date yyyyMMdd 8

Appointment Messages (SIU S12, S14 & S15)

Send SIU S12 to create an appointment, SIU S14 to modify one, and SIU S15 to cancel one. The trigger event goes in MSH.9.1. All three have the same available fields.

SEG SEQ CMP REP REQ Description Type Format / values Max
MSH 2 0 0 Y ‘^~&’ String ^~&
MSH 3 0 0 N Sending App String
MSH 4 0 0 N Sending Facility Name String 60
MSH 4 1 0 N Sending Facility ID (External or Internal) String 12
MSH 5 0 0 Y Receiving App ‘CollaborateMD’ String CollaborateMD
MSH 6 0 0 Y Customer Name String 120
MSH 6 1 0 Y Customer Number String 9
MSH 7 0 0 Y Date Time of Message Date yyyyMMddHHmmss
MSH 9 0 0 Y ‘SIU’ String SIU
MSH 9 1 0 Y ‘S12’ or ‘S14’ or ‘S15’ String
MSH 10 0 0 Y Message Control Number String
MSH 11 0 0 Y ‘P’ String P
MSH 12 0 0 Y ‘2.3.1’ String 2.3.1
SCH 1 0 0 Y Unique Identifier for the Appointment String
SCH 2 0 0 N Refid String
SCH 6 0 0 S Appointment Status Enum 0=Scheduled
1=Checked-In
2=In-Room
3=Checked-Out
4=Canceled
5=No-Show
6=Deleted
7=Confirmed
SCH 7 0 0 S Appointment Status - Identifier String
SCH 7 1 0 S Appointment Status - Type String
SCH 8 0 0 Y Appointment Reason - Identifier String
SCH 8 1 0 Y Appointment Reason - Type String
SCH 9 0 0 Y Appointment Duration String
SCH 10 0 0 Y Duration unit - ‘minutes’ String minutes
SCH 11 3 0 Y Appointment Start Date and Time String YYYYMMDDHH24MISS
NTE 3 0 0 N Set ID - ‘1’ String 1
NTE 3 2 0 N Appointment Comment String 4000
PID 2 0 0 N Patient Account Number in Sending System String 20
PID 3 0 0 N Patient Account Number in CollaborateMD String
PID 3 0 1 N Visit ID String 50
PID 3 0 2 N Patient Reference # (not used for matching) String 20
PID 4 0 0 N Patient Social Security Number String Unformatted 9
PID 5 0 0 Y Patient Last Name String 30
PID 5 1 0 Y Patient First Name String 20
PID 5 2 0 N Patient Middle Name/Initial String 20
PID 7 0 0 Y Patient Birth Date Date yyyyMMdd
PID 8 0 0 Y Patient Sex Enum F = Female
M = Male
PID 10 0 0 N Patient Race Enum I = American Indian or Alaskan Native
A = Asian or Pacific Islander
B = Black
W = White
O = Other
PID 11 0 0 S Patient Address1 String 40
PID 11 1 0 N Patient Address2 String 40
PID 11 2 0 S Patient City String 28
PID 11 3 0 S Patient State String 2
PID 11 4 0 S Patient Zip Code String 10
PID 12 0 0 N Patient Cell Phone String (###) ###-####
PID 13 0 0 N Patient Home Phone String (###) ###-####
PID 13 3 0 N Patient E-Mail String 100
PID 14 0 0 N Patient Work Phone String (###) ###-####
PID 15 0 0 N Patient Language Enum 0 = English
1 = Spanish
2 = Other
PID 16 0 0 N Patient Marital Status Enum M = Married
S = Single
D = Divorced
W = Widowed
A = Legally Separated
U = Unknown
PID 18 0 0 N Patient Account Number in Sending System (update) String 20
PID 19 0 0 N Patient Social Security Number (update) String 9
PID 22 0 0 N Patient Ethnicity Enum H = Hispanic
N = Non-Hispanic
U = Unknown
NK1 1 0 0 Y Set ID - ‘1’ String 1
NK1 2 0 0 N Next of Kin / Associated Party Last Name String 30
NK1 2 1 0 N Next of Kin / Associated Party First Name String 20
NK1 2 2 0 N Next of Kin / Associated Party Middle initial String 20
NK1 3 0 0 N Next of Kin / Associated Party Relationship Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
NK1 4 0 0 N Next of Kin / Associated Party Address 1 String 40
NK1 4 1 0 N Next of Kin / Associated Party Address 2 String 40
NK1 4 2 0 N Next of Kin / Associated Party City String 28
NK1 4 3 0 N Next of Kin / Associated Party State String 2
NK1 4 4 0 N Next of Kin / Associated Party Zip String 10
NK1 5 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 5 3 0 N Next of Kin / Associated E-Mail String 50
NK1 6 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 6 3 0 N Next of Kin / Associated Remarks String 50
PV1 1 0 0 Y Sequence ID String 1
PV1 2 0 0 N Patient Account Type String Must exactly match the name of the account type in the application.
PV1 7 0 0 Y Provider ID (SeqNo or External ID) String
PV1 7 1 0 Y Provider Last Name String 60
PV1 7 2 0 Y Provider First Name String 35
PV1 7 3 0 N Provider Middle Initial String 1
PV1 7 6 0 N Provider Credentials String 15
PV1 8 0 0 N Referring ID (SeqNo, UPIN, or External ID) String
PV1 8 1 0 N Referring Last Name String 35
PV1 8 2 0 N Referring First Name String 20
PV1 8 3 0 N Referring Middle Initial String 1
PV1 8 6 0 N Referring Credentials String 15
GT1 1 0 2 S Sequence ID String 1
GT1 3 0 0 S Guarantor Last Name String 30
GT1 3 1 0 S Guarantor First Name String 20
GT1 3 2 0 N Guarantor Middle Name/Initial String 20
GT1 5 0 0 S Guarantor Address1 String 40
GT1 5 1 0 N Guarantor Address2 String 40
GT1 5 2 0 S Guarantor City String 28
GT1 5 3 0 S Guarantor State String 2
GT1 5 4 0 S Guarantor Zip Code String 10
GT1 6 0 0 N Guarantor Home Phone String (###) ###-####
GT1 6 4 0 N Gurantor Email String 100
GT1 7 0 0 N Guarantor Work Phone String (###) ###-####
GT1 8 0 0 N Guarantor Birth Date Date yyyMMdd
GT1 9 0 0 S Guarantor Sex Enum F = Female
M = Male
1
GT1 11 0 0 S Patient Relation to Guarantor Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
ACC 1 0 0 N Accident Date Date yyyyMMdd
ACC 2 0 0 N Accident Type String 0 = No Accident
1 = Emp. Accident
2 = Auto Accident
3 = Other Accident
ACC 4 0 0 N Accident State - 2 letter state code String 2
IN1 1 0 3 S Sequence ID String
IN1 2 0 0 S Payer ID in Sending System String 12
IN1 3 0 0 S Payer ID - CollaborateMD internal ID String
IN1 4 0 0 S Payer Name String 80
IN1 5 0 0 S Payer Address1 String 42
IN1 5 1 0 N Payer Address2 String 42
IN1 5 2 0 S Payer City String 28
IN1 5 3 0 S Payer State String 2
IN1 5 4 0 S Payer Zip Code String 10
IN1 7 0 0 N Payer Phone String (###) ###-####
IN1 9 0 0 N Payer Group Name String 60
IN1 10 0 0 N Insurance Group Number String 29
IN1 12 0 0 N Insured Policy Effective Date Date yyyyMMdd
IN1 13 0 0 N Insured Policy Termination Date Date yyyyMMdd
IN1 16 0 0 Y Insured’s Last Name String 30
IN1 16 1 0 Y Insured’s First Name String 20
IN1 16 2 0 S Insured’s Middle Initial String 20
IN1 17 0 0 Y Insured Relationship to Patient Enum S = Self
P = Spouse
C = Child
O = Other
IN1 18 0 0 N Insured’s Date of Birth Date yyyyMMdd
IN1 19 0 0 Insured’s Address line 1 String 40
IN1 19 1 0 Insured’s Address Line 2 String 40
IN1 19 2 0 Insured’s City String 28
IN1 19 3 0 Insured’s State String 2
IN1 19 4 0 Insured’s Zip Code String 10
IN1 36 0 0 S Insurance Policy Number String 25
IN1 37 0 0 N Insurance Copay String 0.00-999.99
IN1 37 1 0 N Co-Insurance Percentage String 0-100
IN1 37 2 0 N Insurance Deductible String 0.00-99999.99
IN1 42 0 0 N Insured Employment Status String 0 = Full-Time
1 = Part-Time
2 = Unemployed
3 = Self Employed
4 = Retired
5 - Military
6 - Unknown
IN1 43 0 0 S Insured’s Sex String F = Female
M = Male
IN1 44 0 0 N Insured Employer Address Line 1 String 40
IN1 44 1 0 N Insured Employer Address Line 2 String 40
IN1 44 2 0 N Insured Employer City String 28
IN1 44 3 0 N Insured Employer State String 2
IN1 44 4 0 N Insured Employer Zip Code String 10
IN2 3 0 0 N Insured Employer Name String 35
AIG 1 0 0 Y Appointment Information ID - ‘1’ String 1
AIG 3 0 0 S Appointment Information Resource ID String
AIG 3 1 0 S Appointment Information Resource Last Name String
AIG 3 2 0 S Appointment Information Resource First Name String

Claim Messages (DFT P03)

Send DFT P03 to create a claim. Claim update messages (P12) are not supported. Set MSH.11.0 to P for a professional claim or to I for an institutional claim; an institutional claim also carries the fields under Institutional claim additions.

SEG SEQ CMP REP REQ Description Type Format / values Max
MSH 2 0 0 Y ‘^~&’ String ^~&
MSH 3 0 0 N Sending App String
MSH 4 0 0 N Sending Facility Name String 60
MSH 4 1 0 N Sending Facility ID (External or Internal) String 12
MSH 5 0 0 Y Receiving App ‘CollaborateMD’ String CollaborateMD
MSH 6 0 0 Y Customer Name String 120
MSH 6 1 0 Y Customer Number String 9
MSH 7 0 0 Y Date Time of Message Date yyyyMMddHHmmss
MSH 9 0 0 Y ‘DFT’ String DFT
MSH 9 1 0 Y ‘P03’ String P03
MSH 10 0 0 Y Message Control Number Date
MSH 11 0 0 Y Claim Type String P - Professional
I - Institutional
MSH 12 0 0 Y ‘2.3.1’ String 2.3.1
EVN 1 0 0 Y ‘P03’ String P03
EVN 2 0 0 Y Date Time of Event Date yyyyMMddHHmmss
EVN 2 1 0 Y ‘S’ String
PID 2 0 0 S Patient Account Number in CollaborateMD String
PID 3 0 0 S Patient Account Number in Sending System String 20
PID 3 0 1 N Visit ID String 50
PID 3 0 2 N Patient Reference # (not used for matching) String 20
PID 4 0 0 S Patient Social Security Number String 9
PID 5 0 0 Y Patient Last Name String 30
PID 5 1 0 Y Patient First Name String 20
PID 5 2 0 N Patient Middle Name/Initial String 20
PID 7 0 0 Y Patient Birth Date Date yyyyMMdd
PID 8 0 0 Y Patient Sex Enum F = Female
M = Male
PID 11 0 0 S Patient Address1 String 40
PID 11 1 0 N Patient Address2 String 40
PID 11 2 0 S Patient City String 28
PID 11 3 0 S Patient State String 2
PID 11 4 0 S Patient Zip Code String 10
PID 12 0 0 N Patient Cell Phone String (###) ###-####
PID 13 0 0 N Patient Home Phone String (###) ###-####
PID 13 3 0 N Patient E-Mail String 100
PID 14 0 0 N Patient Work Phone String (###) ###-####
PID 16 0 0 N Patient Marital Status Enum M = Married
S = Single
D = Divorced
W = Widowed
A = Legally Separated
U = Unknown
PID 18 0 0 N Patient Account Number in Sending System (update) String 20
PID 19 0 0 N Patient Social Security Number (update) String Unformatted 9
NK1 1 0 0 Y Set ID - ‘1’ String 1
NK1 2 0 0 N Next of Kin / Associated Party Last Name String 30
NK1 2 1 0 N Next of Kin / Associated Party First Name String 20
NK1 2 2 0 N Next of Kin / Associated Party Middle initial String 20
NK1 3 0 0 N Next of Kin / Associated Party Relationship Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
NK1 4 0 0 N Next of Kin / Associated Party Address 1 String 40
NK1 4 1 0 N Next of Kin / Associated Party Address 2 String 40
NK1 4 2 0 N Next of Kin / Associated Party City String 28
NK1 4 3 0 N Next of Kin / Associated Party State String 2
NK1 4 4 0 N Next of Kin / Associated Party Zip String 10
NK1 5 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 5 3 0 N Next of Kin / Associated E-Mail String 50
NK1 6 0 0 N Next of Kin / Associated Contact Phone String (###) ###-####
NK1 6 3 0 N Next of Kin / Associated Remarks String 50
PV1 1 0 0 Y Sequence ID String 1
PV1 2 0 0 N Patient Account Type String Must exactly match the name of the account type in the application.
PV1 3 0 0 N Claim Unique Identifier String
PV1 7 0 0 Y Provider ID (SeqNo or External ID) String
PV1 7 1 0 Y Provider Last Name String 60
PV1 7 2 0 Y Provider First Name String 35
PV1 7 3 0 N Provider Middle Initial String 1
PV1 7 6 0 N Provider Credentials String 15
PV1 7 12 0 N Provider ID Type String Valid values are:
NPI, UPIN, GUID, or RELAYID
PV1 8 0 0 N Referring ID (SeqNo, UPIN, or External ID) String
PV1 8 1 0 N Referring Last Name String 35
PV1 8 2 0 N Referring First Name String 20
PV1 8 3 0 N Referring Middle Initial String 1
PV1 8 6 0 N Referring Credentials String 15
PV1 9 0 0 N Sales Rep ID (SeqNo, UPIN, or External ID) String
PV1 9 1 0 N Sales Rep Last Name String 35
PV1 9 2 0 N Sales Rep First Name String 20
PV1 9 3 0 N Sales Rep Middle Initial String 1
PV1 9 6 0 N Sales Rep Credentials String 15
PV1 10 0 0 N Ordering ID (SeqNo, UPIN, or External ID) String
PV1 10 1 0 N Ordering Last Name String 35
PV1 10 2 0 N Ordering First Name String 20
PV1 10 3 0 N Ordering Middle Initial String 1
PV1 10 6 0 N Ordering Credentials String 15
PV1 44 0 0 N Hospitalized From Date Date yyyyMMdd
PV1 45 0 0 N Hospitalized To Date Date yyyyMMdd
FT1 1 0 99 Y Sequence ID String
FT1 4 0 0 N From Date of Service (Default to Today) Date yyyyMMdd
FT1 5 0 0 N To Date of Service (Default to Today) Date yyyyMMdd
FT1 6 0 0 N Type of Service Code String 2
FT1 9 0 0 N Charge Unique Identifier String
FT1 10 0 0 N Number of Units (Default to 1) String
FT1 11 0 0 N Total Price String
FT1 12 0 0 N Unit Price (Determined from Procedure) String
FT1 14 0 0 N Bill To (Default to 1 when insured, P when self pay) Enum 1,2,3,P
FT1 16 0 0 N Place of Service Code String 2
FT1 19 0 4 Y* ICD Code
*Not required for Institutional claims.
Instead use DG1 segments.
String 8
FT1 19 1 0 N* ICD Description
*Not required for Institutional claims.
Instead use DG1 segments.
String 250
FT1 25 0 0 Y Procedure Code String 10
FT1 25 1 0 N Procedure Description String 200
FT1 26 0 4 N Procedure Modifier String 2
FT1 29 0 0 N Charge Drug Code String 5-4-2 (N4) Format 11
FT1 43 0 0 N Drug Code Units (Defaulted to charge units) String
FT1 43 1 0 N Drug Code Units of Measure String UN, GR, ML, F2, or ME
GT1 1 0 2 S Sequence ID String 1
GT1 3 0 0 S Guarantor Last Name String 30
GT1 3 1 0 S Guarantor First Name String 20
GT1 3 2 0 N Guarantor Middle Name/Initial String 20
GT1 5 0 0 S Guarantor Address1 String 40
GT1 5 1 0 N Guarantor Address2 String 40
GT1 5 2 0 S Guarantor City String 28
GT1 5 3 0 S Guarantor State String 2
GT1 5 4 0 S Guarantor Zip Code String 10
GT1 6 0 0 N Guarantor Home Phone String (###) ###-####
GT1 6 4 0 N Gurantor Email String 100
GT1 7 0 0 N Guarantor Work Phone String (###) ###-####
GT1 8 0 0 S Guarantor Birth Date Date yyyyMMdd
GT1 9 0 0 S Guarantor Sex Enum F = Female
M = Male
1
GT1 11 0 0 S Guarantor Relation to Patient Enum S = Spouse
P = Parent
C = Child
R = Relative
O = Other
IN1 1 0 3 S Sequence ID String
IN1 2 0 0 S Payer ID in Sending System String 12
IN1 3 0 0 S Payer SeqNo in CollaborateMD String
IN1 4 0 0 S Payer Name String 80
IN1 5 0 0 S Payer Address1 String 42
IN1 5 1 0 N Payer Address2 String 42
IN1 5 2 0 S Payer City String 28
IN1 5 3 0 S Payer State String 2
IN1 5 4 0 S Payer Zip Code String 10
IN1 7 0 0 N Payer Phone String (###) ###-####
IN1 9 0 0 N Payer Group Name String 60
IN1 10 0 0 S Insurance Policy Group Number String 29
IN1 14 0 0 S Authorization Number String 30
IN1 14 1 0 S Authorization Visits Allowed String
IN1 14 2 0 S Authorization Visits Used String
IN1 14 3 0 S Authorization Effective Date Date yyyyMMdd
IN1 14 4 0 S Authorization Termination Date Date yyyyMMdd
IN1 16 0 0 N Insured’s Last Name String 20
IN1 16 1 0 N Insured’s First Name String 20
IN1 16 3 0 N Insured’s Middle Initial String 20
IN1 17 0 0 N Insured’s Relationship to Patient Enum S = Self
P = Spouse
C = Child
O = Other
IN1 18 0 0 N Insured’s Date Of Birth Date yyyyMMdd
IN1 19 0 0 N Insured’s Address Line 1 String 40
IN1 19 1 0 N Insured’s Address Line 2 String 40
IN1 19 2 0 N Insured’s City String 28
IN1 19 3 0 N Insured’s State String 2
IN1 19 4 0 N Insured’s Zip Code String 10
IN1 20 0 0 N Release of Information (Defaults to Y) Enum Y,N
IN1 27 0 0 N Assignment of Benefits (Defaults to Y) Enum Y,N
IN1 36 0 0 S Insurance Policy Number String 25
IN1 37 0 0 N Insurance Copay String 0.00-999.99
IN1 37 1 0 N Co-Insurance Percentage String 0-100
IN1 37 2 0 N Insurance Deductible String 0.00-99999.99
IN1 42 0 0 N Insured Employment Status String 0 = Full-Time
1 = Part-Time
2 = Unemployed
3 = Self Employed
4 = Retired
5 - Military
6 - Unknown
IN1 43 0 0 S Insured’s Sex String F = Female
M = Male
IN1 44 0 0 N Insured Employer Address Line 1 String 40
IN1 44 1 0 N Insured Employer Address Line 2 String 40
IN1 44 2 0 N Insured Employer City String 28
IN1 44 3 0 N Insured Employer State String 2
IN1 44 4 0 N Insured Employer Zip Code String 10
IN1 47 0 0 N Insurance Policy Type String
IN2 3 0 0 N Insured Employer Name String 35
OBX 1 0 0 N Sequence ID String 1
OBX 3 0 0 S Code String 8665-2 6
OBX 5 0 S Last Menstrual Period Start Date Date yyyyMMdd 8

Institutional claim additions

These fields are additional to the DFT P03 table above and are sent only when MSH.11.0 is I. A professional claim ignores them.

SEG SEQ CMP REP REQ Description Type Format / values Max
GP1 1 0 0 Y Type Of Bill Number ### 3
PV1 4 0 0 N Admission Type Enum 1 = Emergency
2 = Urgent
3 = Elective
4 = Newborn
5 = Trauma Center
9 = Information Not Available
1
PV1 14 0 0 N Admission Source Enum 1 = Non-Health Care Facility
2 = Clinic or Physician’s Office
4 = Transfer from a Hospital (Different Facility)
5 = Transfer from a Skilled Nursing Facility (SNF), Intermediate Care Facility (ICF), or Assisted Living Facility (ALF)
6 = Transfer from Another Health Care Facility
8 = Court/Law Enforcement
9 = Information Not Available
D = Transfer from One Distinct Unit of the Hospital to Another Distinct Unit of the Same Hospital Resulting in a Separate Claim to the Payer
E = Transfer from an Ambulatory Surgery Center
F = Transfer from a Hospice facility
G = Transfer from a Designated Disaster Alternate Care Site
1
PV1 36 0 0 N Patient Discharge Status Enum 01 = Discharged to home or self care (routine discharge)
02 = Discharged/Transferred to a short term general hospital for inpatient care
03 = Discharged/Transferred to skilled nursing facility (SNF) with Medicare certification
04 = Discharged/Transferred to a Facility that provides Custodial or Supportive Care
05 = Discharged/Transferred to a Designated Cancer Center or Children’s Hospital
06 = Discharged/Transferred to home under care of organized home health service organization
07 = Left against medical advice or discontinued care
09 = Admitted as an inpatient to this hospital
20 = Expired
21 = Discharged/Transferred to Court/Law Enforcement
30 = Still Patient
40 = Expired at home
41 = Expired in a medical facility
42 = Expired-Place Unknown
43 = Discharged/Transferred to a federal health care facility
50 = Hospice-Home
51 = Hospice-Medical Facility (Certified) Providing Hospice Level of Care
61 = Discharged/Transferred to hospital-based Medicare approved swing bed
62 = Discharged/Transferred to an inpatient rehabilitation facility (IRF) including Rehabilitation Distinct Part Units of a Hospital
63 = Discharged/Transferred to a Medicare Certified Long Term Care Hospital (LTCH)
64 = Discharged/Transferred to a Nursing Facility Certified under Medicaid but not Certified under Medicare
65 = Discharged/Transferred to a psychiatric hospital or Psychiatric Distinct Part Unit of a Hospital
66 = Discharged/Transferred to a Critical Access Hospital (CAH)
69 = Discharged/Transferred to a designated disaster alternative care site
70 = Discharged/Transferred to another type of health care institution not defined elsewhere in this code list
81 = Discharged to Home or Self Care with a Planned Acute Care Hospital Inpatient Readmission
82 = Discharged/Transferred to a Short Term General Hospital for Inpatient Care with a Planned Acute Care Hospital Inpatient Readmission
83 = Discharged/Transferred to a Skilled Nursing Facility (SNF) with Medicare Certification with a Planned Acute Care Hospital Inpatient Readmission
84 = Discharged/Transferred to a Facility that Provides Custodial or Supportive Care with a Planned Acute Care Hospital Inpatient Readmission
85 = Discharged/Transferred to a Designated Cancer Center or Children’s Hospital with a Planned Acute Care Hospital Inpatient Readmission
86 = Discharged/Transferred to Home Under Care of Organized Home Health Service Organization with a Planned Acute Care Hospital Inpatient Readmission
87 = Discharged/Transferred to Court/Law Enforcement with a Planned Acute Care Hospital Inpatient Readmission
88 = Discharged/Transferred to a Federal Health Care Facility with a Planned Acute Care Hospital Inpatient Readmission
89 = Discharged/Transferred to a Hospital-based Medicare Approved Swing Bed with a Planned Acute Care Hospital Inpatient Readmission
90 = Discharged/Transferred to an Inpatient Rehabilitation Facility (IRF) including Rehabilitation Distinct Part Units of a Hospital with a Planned Acute Care Hospital Inpatient Readmission
91 = Discharged/Transferred to a Medicare Certified Long Term Care Hospital (LTCH) with a Planned Acute Care Hospital Inpatient Readmission
92 = Discharged/Transferred to a Nursing Facility Certified Under Medicaid but not Certified Under Medicare with a Planned Acute Care Hospital Inpatient Readmission
93 = Discharged/Transferred to a Psychiatric Hospital or Psychiatric Distinct Part Unit of a Hospital with a Planned Acute Care Hospital Inpatient Readmission
94 = Discharged/Transferred to a Critical Access Hospital (CAH) with a Planned Acute Care Hospital Inpatient Readmission
95 = Discharged/Transferred to Another Type of Health Care Institution not Defined Elsewhere in this Code List with a Planned Acute Care Hospital Inpatient Readmission
2
PV1 44 0 0 N Admission Date Date yyyyMMddHHmm
PV1 45 0 0 N Discharge Date Date yyyyMMddHHmm
UB2 3 0 1 N Condition Code String 2
UB2 6 0 1 N Value Code String 2
UB2 6 1 1 N Value Code Amount String
UB2 7 0 1 N Occurrence Code String 2
UB2 7 1 1 N Occurrence Date Date yyyyMMdd
UB2 8 0 1 N Occurrence Span Code String 2
UB2 8 1 1 N Occurrence Span Start Date yyyyMMdd
UB2 8 2 1 N Occurrence Span End Date yyyyMMdd
FT1 25 0 0 N HCPCS Code String 10
FT1 25 1 0 N HCPCS Code Description String 200
FT1 27 0 0 Y Revenue Code String 4
DG1 1 0 0 Y Diagnosis Index String 1 - Primary Diagnosis
2-18 Additional Diagnoses
19 - Admitting Diagnosis
20-31 External Causes of Injury
32-35 Patient Reasons
DG1 3 0 0 Y ICD Code String 8
DG1 3 1 0 N ICD Description String 250
DG1 3 2 0 Y ICD Version String “9” or “10”
DG1 26 0 0 N POA String “N”, “U”, “W”, “Y”, “1” 1