You are on page 1of 17

APPENDIX-4 Interface specification

1.TCP/IP
1.1. Introduction
This document describes the TCP/IP interface specification between GASTAT-600Seires
with its connecting computer. The document includes connection details, data flow and
string details. Read the document carefully beforehand of interfacing GASTAT.

GASTAT reads the barcode (specimen ID) of the container, and receives the corresponding
patient demographic from the LIS. After the sample measurement, GASTAT sends the test
result to the LIS along with the patient demographic.

NOTE :
1. In case you prefer to read barcode of the container, you must configure the barcode
setting of the GASTAT in the following screen. For instance, select “Code 39” and then
press “OK” when you intend to read Code 39 barcode type.

2. Possible work flow may be below.


Read barcode of the syringe → Read barcode short-cut key to enter patient info if
necessary → Measure

79
1.2.General information

1. Standard :IEEE802.3 10BASE-T

2. Interface :TCP/IP

3. Transmission method :Socket communication

4. Socket type :Stream socket

5. Server/client : GASTAT is a client and LIS is a server.

6. Transmission code : ASCII. See Figure1.2Code table

7. Text length : Fixed length

8. Port number : Need to be discussed with LIS administrator. Whatever


number larger than 1025 is available.
9. Gateway : Need to be discussed with LIS administrator.

10. GASTAT IP address : Need to be discussed with LIS administrator.

11. LIS IP address : Need to be discussed with LIS administrator.

12.Available barcode of : Code39,Industrial2of5,Interleaved2of5,Matrix2of5,


the container MSI, NW7,UPCA, UPCE, JAN/EAN-8, JAN/EAN-13,
Code93, Code128, EAN128, Plessy
13. Confirmed operation : Windows9X, Windows2000, Windows XP, Windows NT
system

80
Figure1.2 Code table
The following code table is JIS8 code. Actually GASTAT transmission code should be JIS8 code.
However, ASCII code can be used as an option.
“¥” mark at the green position on the table become “㨈” in the ASCII code table.




81
1.3.Data Flow

1. Normal Flow

GASTAT LIS

ԘSession bind request


ԙSession bind permission

ԚSpecimen ID
ԛACK string

ԜSpecimen ID + Patient demographic


ԝACK string

ԞSpecimen ID + Patient demographic + Test results


ԟACK string

ԠSession terminate request

NOTE : Transmission schedule based on non schedule.

82
2. Flow when error

GASTAT LIS

ԘSession bind request


ԙSession bind permission

ԚSpecimen ID
ԛACK string              15sec time out

ԜSpecimen ID + Patient demographic


ԝACK string

ԞSpecimen ID + Patient demographic + Test results


ԟACK string

ԠSession terminate request

NOTE :
1. If GASTAT could not receive either one of ԙ,ԛ,ԟ from LIS, GASTAT
re-sends Ԙ,Ԛ,Ԟ maximum 5times for every 3seconds.
2. If there was no container barcode, GASTAT do not send Ԙ.
3. If there was no Patient demographic corresponds to container barcode, LIS should send
“Space(20H)” as a Patient demographic at Ԝ . In such case GASTAT sends
“Space(20H)” as a Patient demographic at Ԟ.
4. In case two or more different barcode are read before measurement, last one will be
acknowledged as specimen ID.
5. GASTAT sends Ԡ whenever in the following occasions.
a) In case container barcode was read after “START” key, GASTAT sends Ԡ and start
again from Ԙ.
b) In case “FUNCTION” key was pressed before “START” key, GASTAT sends Ԡ
c) In case “STOP” key was pressed while measurement or after measurement(before test
report print out), GASTAT sends Ԡ.

83
1.4. String format
Ԛ Specimen ID from GASTAT to LIS.
A No. of byte Location Item Details
nd
2 1-2 byte String ID It should be always 20.
3 3-5th byte Data length It should be always 020.
th
20 6-25 byte Specimen ID Left justify. Blank part should be
covered by “Space(20H)”.
1 26th byte CR It should be always 0DH.

մACK String
A No. of byte Location Item Details
2 1-2nd byte String ID It should be always 20.
th
3 3-5 byte Data length It should be always 004.
th
2 6-7 byte Communication Normal status : 00
status Abnormal : 01
String length is short or long: 02
Communication time out : 05
th
2 8-9 byte Dummy It should be always 00.
1 10th byte CR It should be always 0DH.



84
յSpecimen ID + Patient demographic from LIS to GASTAT.
A No. of byte Location Item Details
nd
2 1-2 byte String ID It should be always 20.
th
3 3-5 byte Data length It should be always 060.
20 6-25th byte Specimen ID Left justify. Blank part should be
covered by “Space(20H)”.
11 26-36th byte Patient ID Left justify. Blank part should be
covered by “Space(20H)”.
9 37-45th byte Dummy It should be covered by
“Space(20H)”.
20 46-65th byte Patient name Left justify. Use half size(one byte) ch
only.
Full size(two byte) character
unavailable.
1 66th byte CR It should be always 0DH.

նACK String
A No. of byte Location Item Details
nd
2 1-2 byte String ID It should be always 20.
th
3 3-5 byte Data length It should be always 004.
2 6-7th byte Communication Normal status : 00
status Abnormal : 01
String length is short or long: 02
Communication time out : 05
th
2 8-9 byte Dummy It should be always 00.
1 10th byte CR It should be always 0DH.














85
շSpecimen ID + Patient demographic + Test results from GASTAT to LIS.

A No. of byte Location Item Details


nd
2 1-2 byte String ID It should be always 22.
3 3-5th byte Data length It should be always 214.
th
20 6-25 byte Specimen ID Left justify. Blank part should be
covered by “Space(20H)”.
11 26-36th byte Patient ID Left justify. Blank part should be
covered by “Space(20H)”.
9 37-45th byte Dummy It should be covered by
“Space(20H)”.
20 46-65th byte Patient name Left justify. Use half size(one byte) ch
only. Full size(two byte) character unavail
10 66-75th byte Date & time YYMMDDHHMM
ie) Aug 12, 2004 15:16
0408121516
5 76-80th byte pH ie)9.999 Right justify. Blank part will be
with 0.
Upper limit: 8.000 lower limit: 6.000
5 81-85th byte pCO2 ie)999.9 Right justify. Blank part will be
with 0.
Upper limit: 200.0 lower limit: 10.0
5 86-90th byte pO2 ie)999.9 Right justify. Blank part will be
with 0.
Upper limit: 760.0 lower limit: 5.0
5 91-95th byte Na+ ie)999.9Right justify. Blank part will be
with 0.
Upper limit: 200.0 lower limit: 80.0
5 96-100th byte K+ ie)99.99Right justify. Blank part will be
with 0.
Upper limit: 10.0 lower limit: 1.0
5 101-105th byte Cl- ie)999.9Right justify. Blank part will be
with 0.
Upper limit: 200.0 lower limit: 50.0
5 106-110th byte Ca2+ ie)99.99Right justify. Blank part will be
with 0.
Upper limit: 5.00 lower limit: 0.50
5 111-115th byte Glc ie)99.99Right justify. Blank part will be
with 0.

86
Upper limit: 66.66 lower limit: 1.11
th
5 116-120 byte Lac ie)999.9Right justify. Blank part will be
with 0.
Upper limit: 30.0 lower limit: 0.4
3 121-123th byte BP ie)999 Right justify. Blank part will be
with 0.
4 124-127th byte Patient temp ie)99.9 Right justify. Blank part will be
with 0.
th
4 128-131 byte Hct ie)99.9 Right justify. Blank part will be
with 0.
Upper limit:65.0 Lower limit:15.0
4 132-135th byte Hb ie)99.9 Right justify. Blank part will be
with 0.
Upper limit 23.0 Lower limit:5.3
4 136-139th byte HCO3- ie)99.9 Right justify. Blank part will be
with 0.
Upper limit 99.0 Lower limit:0.0
5 140-144th byte O2SAT ie)999.9 Right justify. Blank part will be
with 0.
Upper limit 100.0 Lower limit:0.0
5 145-149th byte BE ie)s99.9 Right justify.Blank part will be
with 0.
Upper limit 30.0 Lower limit:-30.0
4 150-153th byte TCO2 ie)99.9 Right justify. Blank part will be
with 0.
Upper limit 99.0 Lower limit:0.0
4 154-157th byte O2CT ie)99.9 Right justify.Blank part will be
with 0.
Upper limit 40.0 Lower limit:5.0
4 158-161th byte BB ie)99.9 Right justify. Blank part will be
with 0.
Upper limit 99.0 Lower limit:0.0
5 162-166th byte SBE ie) s 99.9 Right justify. Blank part w
covered with 0.
Upper limit 30.0 Lower limit:-30.0
4 167-170th byte SBC ie)99.9 Right justify. Blank part will be
with 0.
Upper limit 99.0 Lower limit:0.0
5 171-175th byte cCa ie)99.99 Right justify. Blank part will be

87
with 0.
Upper limit 5.00 Lower limit:0.25
5 176-180th byte FiO2 ie)999.9 Right justify. Blank part will be
with 0.
Upper limit 100.0 Lower limit:0.0
5 181-185th byte AG ie) s 99.9 Right justify. Blank part w
covered with 0.
5 186-190th byte AaDO2 ie)999.9 Right justify. Blank part will be
with 0.
Upper limit 760.0 Lower limit:0.0
4 191-194th byte a/A ie)9.99 Right justify. Blank part will be
with 0.
Upper limit 1.00 Lower limit 0.00
4 195-198th byte RI ie) 99.9 Right justify. Blank part will be
with 0.
Upper limit 20.0 Lower limit 0.0
11 199-209th byte Dummy It should be covered by Space(20H)”.
10 210-219th byte Error code See Chart 1.4.1 Parameter location and
Chart 1.4.2 Error status
1 220th byte CR It should be always 0DH. 

88
NOTE :
1. If specific measured/derived parameter is set to OFF, GASTAT sends corresponding
number of “Space(20H)”.
ie ) In case Cl- is OFF, GASTAT will send 5byte of “Space(20H)”.

2. Error code describes the error status of all of the measurement parameter. It may help LIS
to determine if test results is reliable/not reliable. The following chart gives an
information about the location of the each parameter and error code details.

Chart 1.4.1 Parameter location.


Location 210th 211 th 212 th 213 th 214 th 215 th 216 th 217 th 218 th 219 th
byte byte byte byte byte byte byte byte byte byte
Parameter pH pCO2 pO2 Na K Cl Ca Glc Lac Hct

Chart 1.4.2 Error status


Error code Status
0 Test finished without problem.
1 Bubble detect
2 Sample too small
3 Measurement failure
4 Result exceed the available measurement range.
5 Result underrun the available measurement range.
6 Result exceed the upper limit of normal value.
7 Result underrun the lower limit of normal value.

ie) In case Test result status is “0300000000”, it means that there is measurement failure on PCO2.

Smaller code has priority against larger one. It means that if error code 1 and 7
appears at the same moment, only error code 1 will appears.

In case there is measurement failure on specific measured parameter, relative derived parameter will
be “*”.
ie) If Hct has an measurement failure, GASTAT sends “**.*” as a Hb value to the LIS.






89
ոACK String
A No. of byte Location Item Details
nd
2 1-2 byte String ID It should be always 22.
th
3 3-5 byte Data length It should be always 004.
2 6-7th byte Communication Normal status : 00
status Abnormal : 01
String length is short or long: 02
Communication time out : 05
2 8-9th byte Dummy It should be always 00.
th
1 10 byte CR It should be always 0DH.












90
2. RS232C
2.1. Introduction
This document describes the RS232C interface specification between GASTAT-600Seires
with its connecting computer. The document includes connection details, data flow and
string details. Read the document carefully beforehand of interfacing GASTAT.

After GASTAT finish measurement, it sends the test result along with either patient ID or specimen
ID to the LIS.

NOTE :
1. Ensure to enter security code 707 and set it to ON(Factory condition is OFF) to enable
GASTAT for RS232C communication. In addition, you must enter security code 701
and set it to ON(Factory condition is OFF) so that barcode info of the container will be
sent to the LIS as a Patient ID/Specimen ID field (See Chart 2.3.1 String format Seq 5).
In case you remain code 701 as OFF, Patient ID/Specimen ID field will be blank if you
do not enter any patient ID manually via patient info screen.

2. In case you prefer to read barcode of the container, you must configure the barcode
setting of the GASTAT in the following screen. For instance, select “Code 39” and
then press “OK” when you intend to read Code 39 barcode type.

3. Possible work flow may be below.


Read barcode of the syringe →Read barcode short-cut key to enter patient info if
necessary → Measure

91
2.2. General information
1. Interface : RS-232C

3. Transmission method :Non-procedual communication method (Half duplex)

4. Transmission speed :4800bps/sec

5. Start bit :1

6. Data bit length : 7(ASCII)

7. Parity : 2(even number)

8. Stop bit length :2

9. String length : See Chart 2.3.1 String format

10. Transmission schedule : GASTAT sends the data to LIS after it print out test
result. Print out will occur either when GASTAT finishes
measurement, or operator accesses to the data search
menu.
11. Connector requirement RS232 DSUB 9pin connector.
Pin assignment is as below. Other pins should be free.
Pin No. Signal Meanings
2 RD Receive data
3 SD Send data
5 SG Signal ground
















92
2.3 String format
String format is described in the following chart.
Chart 2.3.1 String format
Seq Item Length Format GASTAT GASTAT GASTAT
(byte) 600/601 602i 603ie
1 STX 1 02H   
2 Date 6 YYMMDD   
3 Time 4 HHMM   
4 Sequential num 5 XXXXX   
test
5 Patient ID or 11 XXXXXXXXXXX   
Specimen ID
6 Dummy 3 XXX Space(20H) Space(20H) Space(20H)
7 pH 5 X.XXX   
8 pCO2 5 XXX.X   
9 pO2 5 XXX.X   
10 Na+ 5 XXX.X Space(20H)  
11 K+ 5 XX.XX Space(20H)  
12 Cl- 5 XXX.X Space(20H)  
13 Ca2+ 5 XX.XX Space(20H)  
14 Glc 5 XXX.X Space(20H) Space(20H) 
15 Lac 5 XXX.X Space(20H) Space(20H) 
16 BP 3 XXX   
17 Patient temp 4 XX.X   
18 Hct 4 XX.X   
19 Hb 4 XX.X   
20 HCO3- 4 XX.X   
21 O2SAT 5 XXX.X   
22 BE 5 ±XX.X   
23 TCO2 4 XX.X   
24 O2CT 4 XX.X   
25 BB 4 XX.X   
26 SBE 5 ±XX.X   
27 SBC 4 XX.X   
28 cCa 5 XX.XX Space(20H)  
29 FiO2 5 XXXXX   
30 AG 5 ±XX.X Space(20H)  
31 AaDO2 5 XXX.X   

93
32 a/A 4 X.XX   
33 RI 4 XX.X   
34 Dummy 11 XXXXXXXXXXX Space(20H) Space(20H) Space(20H)
35 Error code 10 XXXXXXXXXX See Chart 2.3.2 Parameter location and
Chart 2.3.3 Error status
36 ETX 1 03H   
37 CR 1 0DH   

NOTE :
1. Regarding the Seq 5 Patient ID, there are 2 alternatives.

a) If you want to send patient ID to LIS.

Enter security code number 701 at Maintenance security screen, and set to “OFF”.
b) If you want to send specimen ID to LIS.
Enter security code number 701 at Maintenance security screen, and set to “ON”.
In this mode, GASTAT reads the barcode of the container and sends it to the LIS. Note that if
the container barcode exceeds 11 byte, only first 11 byte shall be send to LIS. In case patient ID
is entered at Enter patient info screen, patient ID will be sent to LIS instead of container
barcode.

2. All of the measurement and calculated parameter will be right justify, and blank part will be
covered with 0.

3. If specific measured/derived parameter is set to OFF, GASTAT sends corresponding


number of “Space(20H)”.
ie ) In case Cl is OFF, GASTAT will send 5bytes of “Space(20H)”.

4. Regarding the Seq 35 Error code, it describes the error status of all of the measurement
parameter. It may help LIS to determine if test results is reliable/not reliable. The
following chart gives an information about the location of the each parameter and error
code details.

Chart 2.3.2 Parameter location.


Location 165th 166 th 167th 168th 169th 170th 171th 172th 173th 174th
byte byte byte byte byte byte byte byte byte byte
Parameter pH pCO2 pO2 Na K Cl Ca Glc Lac Hct

94
Chart 2.3.3 Error status
Error code Status
0 Test finished without problem.
1 Bubble detect
2 Sample too small
3 Measurement failure
4 Result exceed the available measurement range.
5 Result underrun the available measurement range.
6 Result exceed the upper limit of normal value.
7 Result underrun the lower limit of normal value.

ie) In case Test result status is “0300000000”, it means that there is measurement failure on PCO2.

Smaller code has priority against larger one. It means that if error code 1 and 7
appears at the same moment, only error code 1 will appears.

In case there is measurement failure on specific measured parameter, relative derived parameter will
be “*”.
ie) If Hct has an measurement failure, GASTAT sends “**.*” as a Hb value to the LIS.

95

You might also like