Interfaces to EMR

 

When your practice sets out to find a new system, several decisions need to be made before you even start the process.  First, you need to decide if your existing billing application will meet the needs of your practice for at least the next four years.  If the answer to the question is “Yes”, then an interface will definitely be required with the new EMR system.

 

Next, if you decide the billing system should be replaced, you then have two options.  You can either purchase and EMR system that also has a built in billing system or you can choose the best EMR system and the best billing system and then have the two connect to each other via an HL7 interface.

 

HDS has implemented both types of systems and each has their pros and cons.  To make a better informed decision, you should first understand the details of how an interface works between an EMR and billing system.  The majority of all integration between two systems uses a standard which is called HL7.  The term HL7 actually stands for Health Language 7.  HL7 is not truly any kind of programming language but instead a specification of what format the data should be represented in.

 

The following text has come straight from www.hl7.org.  HL7 is defined by HL7.org as:

 

Health Level Seven is one of several American National Standards Institute (ANSI) -accredited Standards Developing Organizations (SDOs) operating in the healthcare arena. Most SDOs produce standards (sometimes called specifications or protocols) for a particular healthcare domain such as pharmacy, medical devices, imaging or insurance (claims processing) transactions. Health Level Seven’s domain is clinical and administrative data.

Headquartered in Ann Arbor, MI, Health Level Seven is like most of the other SDOs in that it is a not-for-profit volunteer organization. Its members-- providers, vendors, payers, consultants, government groups and others who have an interest in the development and advancement of clinical and administrative standards for healthcare—develop the standards. Like all ANSI-accredited SDOs, Health Level Seven adheres to a strict and well-defined set of operating procedures that ensures consensus, openness and balance of interest. A frequent misconception about Health Level Seven (and presumably about the other SDOs) is that it develops software. In reality, Health Level Seven develops specifications; the most widely used being a messaging standard that enables disparate healthcare applications to exchange keys sets of clinical and administrative data.

Members of Health Level Seven are known collectively as the Working Group, which is organized into technical committees and special interest groups. The technical committees are directly responsible for the content of the Standards. Special interest groups serve as a test bed for exploring new areas that may need coverage in HL7’s published standards. A list of the technical committees and special interest groups as well as their missions, scopes and current leadership is available on this web site (www.hl7.org).

The HL7 version that is most commonly used between EMR and Billing software vendors is 2.3.  While most vendors say they use version 2.3 many times you will discover that they may make minor changes to the specifications just to meet the needs of their application.  We will discuss that later in this article.  The HL7 2.3 specification is divided into what we called segments.  Each segment is used for a specific function by the application.  For this discussion, we will only cover a few of the segments that are typically used in a Billing to EMR interface.

The very first segment type is the MSH segment.  This is commonly known as the Message Header Segment.

The message header segment looks like this:

Typically, the vendor who sends the data will give the specification to the receiving vendor and then tell them what data to expect in what field.  Notice the first column is the sequence.  This is to ensure the every time a message is sent for example, field 4 will always contain the Sending Facilities name.  In this case, the vendor said the field is considered “O” or optional.  If there was data in field 4, then it could be up to 180 characters in length.

Also, notice in field 7 that in the Data Mapping Column the vendor tells the receiving vendor that that a date will be in the format of CCYYMMDDHHMM.  This allows the receiving vendor to know what to expect the date to look like when they read that field of data.

 

MSH - Message Header

 

seq

 

HL7 Field Name

R/O

 

Len

 

 

R/O

 

Len

Data Mapping

1

Field Separator

R

1

 

 

R

1

usually "|"

2

Encoding Characters

R

4

 

 

R

4

usually "^~\&"

3

Sending Application

O

180

 

 

O

7

'HDS'

4

Sending Facility

O

180

 

 

O

 

System Number

5

Receiving Application

O

180

 

 

O

 

 

6

Receiving Facility

O

180

 

 

O

11

NextGen

7

Date/time of Message

O

26

 

 

R

12

current date/time >

CCYYMMDDHHMM

8

Security

O

40

 

 

X

 

 

9

Message Type

R

7

 

 

R

7

message type^trigger event >

ORM^O01 - orders

ORU^R01 - results

ADT^A08 - Patient Info

ADT^A40 - Patient Merge

10

Message Control ID

R

20

 

 

R

15

unique message id > accession number-right justified,zero filled

11

Processing ID

R

3

 

 

R

1

'P'

12

Version ID

R

8

 

 

R

3

'2.3'

13

Sequence Number

O

15

 

 

X

 

 

14

Continuation Pointer

O

180

 

 

X

 

HL7 continuation pointer indicator

- not currently supported

15

Accept

Acknowledgment Type

O

2

 

 

X

 

"AL"

16

Application Acknowledgment Type

O

2

 

 

X

 

"NE"

17

Country Code

O

2

 

 

X

 

 

 

The next segment that is commonly used is the PID segment.  PID stands for Patient Identifier Information.  This segment has the following specification:

 

Typically, this table is used to communicate the two different Patient ID’s that exist in the billing system and the EMR system.  Usually fields 2 and 3 handle this requirement.  Notice in field 8 that the vendor is specifying how the sex field will contain data.  This is in case the billing system uses “M” to designate a Male and the EMR system may designate the number 1 for a Male. The EMR system may have to write some special program to make the conversion before the data is imported into their system.

 

PID - Patient Identification

seq

HL7 Field Name

R/O

Len

 

 

R/O

Len

Data Mapping

1

Set ID - Patient ID

O

4

 

 

X

 

 

2

Patient ID (External ID)

O

16

 

 

X

16

 

3

Patient ID (Internal ID)

R

20

 

 

R

11

Medical Record Number > Jacket Number

4

Alternate Patient ID

O

12

 

 

O

9

Social Security Number

5

Patient Name

   last name

   first name

   middle initial

R

48

 

 

R

 

 

6

Mother’s Maiden Name

O

30

 

 

X

 

 

7

Date of Birth

O

26

 

 

R

8

Date portion only (YYYYMMDD)

8

Sex

O

1

 

 

R

1

M - Male

F - Female

O - Other

U - Unknown

9

Patient Alias

O

48

 

 

X

 

 

10

Race

O

1

 

 

X

 

 

11

Patient Address

O

106

 

 

O

 

 

12

County Code

B

4

 

 

X

 

 

13

Phone Number - Home

O

40

 

 

O

10

aaapppssss

14

Phone Number - Business

O

40

 

 

O

10

aaapppssss

15

Language - Patient

O

25

 

 

X

 

 

16

Marital Status

O

1

 

 

O

 

 

17

Religion

O

3

 

 

O

 

 

18

Patient Account Number

O

20

 

 

O

11

Patient ID (Internal ID)

19

SSN Number - Patient

O

16

 

 

O

9

Alternate Patient ID

20

Driver’s Lic Num - Patient

O

25

 

 

X

 

 

21

Mother’s Identifier

O

20

 

 

X

 

 

22

Ethnic Group

O

1

 

 

X

 

 

23

Birth Place

O

25

 

 

X

 

 

24

Multiple Birth Indicator

O

2

 

 

X

 

 

25

Birth Order

O

2

 

 

X

 

 

26

Citizenship

O

3

 

 

X

 

 

27

Veterans Military Status

O

60

 

 

X

 

 

28

Nationality

O

80

 

 

X

 

 

29

Patient Death Date/Time

O

26

 

 

X

 

 

30

Patient Death Indicator

O

1

 

 

X

 

 

 

The next table that is typically used in the HL7 interface process is the Patient Visit table.  As you can see this table tell you who referred the patient, who the primary care physician is, where the service was performed and the admit and discharge date.

 

 

PV1 – Patient Visit

seq

HL7 Field Name

R/O

Len

 

 

R/O

Len

Data Mapping

1

Set ID - Patient Visit

O

4

 

 

X

 

 

2

Patient Class

R

1

 

 

R

1

O - Outpatient

 

3

Assigned Patient Location

   nurse unit

   room

   bed

   facility id

O