Professional Documents
Culture Documents
This document defines the interface linking between two systems. The two systems will be
the common process through which the systems will communicate, allowing to exchange
information. This interface conforms to the application layer definition of the Health Level 7 (HL7)
interface specification Version 2.3. HL7 is an application level protocol for the electronic exchange
or transfer of data in the healthcare environment.
Communication Protocol
Sequel Systems, Inc. has defined TCP/IP as their standard communication protocol. As a
result Sequel Systems adopted the HL7 lower layer protocol format for message receiving.
Following profiles must be maintained on both sending and receiving systems. These
profiles must be synchronized in order for all data items to be interpreted correctly.
Location
Provider
Referring Provider
Responsible Party
School
Plan
Plan Address
Employer
Lawyer
2
MSH – Message Header Segment
The MSH segment defines the source, destination, message type and some specific fields of the
segment. This is message header used in all message segments.
MSH Segment
1) The characters that are used by default are a “|” for the field separator, “^” for the
component separator, “&” for the sub-component separator and “~” for repetition separator
and “\” for the escape character.
3
P01 and P05
Data are sent from some application (usually a Registration or an ADT system) for example, to the
patient accounting or financial system to establish an account for a patient’s billing/accounts
receivable record. Many of the segments associated with this event are optional.
The A01 (admit/visit notification) event can notify systems of the creation of an account as well as
notify of a patient's arrival in the healthcare facility. In order to create a new account without
notifying systems of a patient's arrival, use the P01 trigger event.
SequelMed uses P01 event to add a new account that did not exist before, not to update an existing
account. The P05 (update account) event used to update an existing account.
PID Segment
Sequence Length Type Required SequelMed HL7 Note
Number /Optional Field Name Field Name
1 1 SI O Set ID - Patient ID
2 30 ST O Chart Number Patient ID (External ID)
3 30 CM R Account # Medical Record Number 1
4 N/A Alternate Patient ID – PID
5 PN R Patient Name
5.1 30 ST R Last Name Last Name
5.2 30 ST R First Name First Name
5.3 1 ST O M.I. Middle Initial
5.4 3 ST O Title Title
6 N/A Mother’s Maiden Name
7 8 DT R DOB Date/Time of Birth
8 1 ST R Sex (M,F or U) Sex
9 N/A Patient Alias
10 N/A Race
11 AD O Patient Address
11.1 50 ST O Address 1 Address Line 1
11.2 50 ST O Address 2 Address Line 2
11.3 20 ST O City City
11.4 2 ST O State State
11.5 10 ST O Zip Zip
12 N/A Country Code
13 10 TN O Home Tel Phone Number – Home 2
14 17 TN O Work Tel / Ext Phone Number – Business 3
15 N/A Primary Language
16 1 ST O Marital Status Marital Status
17 N/A Religion
18 ST O Hospital Case # Patient Account Number
19 9 ST R SSN SSN Number - Patient
1. The longest length of the medical record number field in SequelMed is 30
2. Format of the phone number is standard HL7 (|9999999999|)
3. Format of the phone number is standard HL7 (|999999-9999^99999|)
4
PV1 – Patient Visit Segment
The PV1 segment is used by the applications to communicate information on a visit-specific basis.
PV1 Segment
5
38 N/A Diet Type
39 N/A Servicing Facility
40 N/A Bed Status
41 N/A Account Status
42 N/A Pending Location
43 N/A Prior Temporary Location
44 DT O Admit Date Admit Date/Time
45 DT O Discharge Date Discharge Date/Time
46 N/A Current Patient Balance
47 N/A Total Charges
48 N/A Total Adjustments
49 N/A Total Payments
50 N/A Alternate Visit ID
51 N/A Visit Indicator
52 N/A Other Healthcare Provider
6
IN1 – Insurance Information Segment
The IN1 segment contains insurance policy coverage information necessary to produce properly
pro-rated patient and insurance bills.
IN1 Segment
7
31 N/A Type Of Agreement Code
32 N/A Billing Status
33 N/A Lifetime Reserve Days
34 N/A Delay Before L.R. Day
35 N/A Company Plan Code
36 30 ST R Plan ID Num Policy Number
37 30 NM O Visit Co Pay Policy Deductible
38 N/A Policy Limit - Amount
39 N/A Policy Limit - Days
40 N/A Room Rate - Semi-Private
41 N/A Room Rate - Private
42 N/A Insured’s Employment Status
43 1 ST R Sex (M, F, U) Insured’s Sex
44 O Insured’s Employer Address
1. For patient first insurance the insurance sequence must be 1. If patient has more than
one insurance then IN1 segment is repeated and the insurance sequence number
increases for each insurance.
IN2 Segment
8
ZLA – Lawyer Information Segment
The ZLA segment contains Insured’s Lawyer information.
ZLA Segment
1. As Lawyer information is related to insurance information. The Set ID should match IN1
segment (field Insurance Sequence).
9
GT1 – Guarantor Segment
The GT1 segment contains guarantor information (e.g., the person or the organization with financial
responsibility for payment of a patient account).
GT1 Segment
10
ZSC – School Information Segment
The ZSC segment contains Patient’s School information.
ZSC Segment
11
Sample Transaction
PV1|||QUEENS||||JKIM^KIM^JOHN^B|SQAD^QADRI^SHAFIQ|
Note:
1. Every message starts with VT (Vertical Tab) ASCII character 0b or decimal character
11.
2. Every Segment ends with (Carriage Return) ASCII characters 0d decimal character 13.
3. Every message ends with FSCR (File Separator and Carriage Return) ASCII
characters 1cod decimal character 2813.
12
P03
The Detail Financial Transaction (DFT) message (P03 trigger event is use to add the patient
charges) is used to describe a financial transaction transmitted between systems, that is, to the
billing system.
The PID segment is used by all applications as the primary means of communicating patient
identification information. This segment contains permanent patient identifying and demographic
information that, for the most part, is not likely to change frequently.
PID Segment
13
PV1 – Patient Visit Segment
The PV1 segment is used by the applications to communicate information on a visit-specific basis.
PV1 Segment
14
38 N/A Diet Type
39 N/A Servicing Facility
40 N/A Bed Status
41 N/A Account Status
42 N/A Pending Location
43 N/A Prior Temporary Location
44 DT O Admit Date Admit Date/Time
45 DT O Discharge Date Discharge Date/Time
46 N/A Current Patient Balance
47 N/A Total Charges
48 N/A Total Adjustments
49 N/A Total Payments
50 N/A Alternate Visit ID
51 N/A Visit Indicator
52 N/A Other Healthcare Provider
DB1 Segment
15
FT1 - financial transaction segment
The FT1 segment contains the detail data necessary to post charges patient accounting records.
FT1 Segment
1) This field contains the number that identifies this transaction. For the first occurrence of
Segment sequence number shall be 1, for the second occurrence it shall be 2, etc.
16
ACC - accident segment
The ACC segment contains patient information relative to an accident in which the patient has been
involved.
ACC Segment
Sample Transaction
MSH|^~\&| |SEQUELMED|||200210081811||DFT^P03|0000001234|P|2.3|
PV1|||QUEENS||||JKIM^KIM^JOHN^B|SQAD^QADRI^SHAFIQ||||||||||||||||||||||||||||||||||||20021010|20021
010|
DB1|||||||20021008|20021012|
ACC|20021008|||NY|Y||
Note:
1. Every message starts with VT (Vertical Tab) ASCII character 0b or decimal character 11.
2. Every Segment ends with (Carriage Return) ASCII characters 0d decimal character 13.
3. Every message ends with FSCR (File Separator and Carriage Return) ASCII characters
1cod decimal character 2813.
17