Lis CS240
Lis CS240
02)
Auto-Chemistry Analyzer and LIS Communication Interface Introduction
Auto-Chemistry Analyzer and LIS communication interface adopts serial port communication mode, which
has been adopted by most analyzers. This communication interface follows ASTM standard protocol (refer to
section 6-13 of ASTM 1394). ASTM standard protocol provides a bi-directional communication channel for
Auto-Chemistry Analyzer and LIS workstation.
Through this interface, Auto-Chemistry Analyzer can apply sample information registered in LIS workstation
manually or automatically, and transmit test result and QC result to LIS workstation manually or automatically.
The data transmitted through this interface all follow ASTM standard protocol format.
LIS Communication Setting Description
The setting interface is as follow:
Open Communication: In order to ensure the normal communication between Auto-Chemistry Analyzer and
LIS workstation, “Open Communication” must be selected, otherwise, Auto-Chemistry Analyzer and LIS
communication will be unavailable.
Bidirectional: “Bidirectional” must be selected when applying LIS data. This setting selection is not necessary
when transmitting test result or QC result to LIS. When “Open Communication” is selected, “Bidirectional” is
selectable.
Basic Setting: Only serial port mode is introduced here.
Data Transmission Mode: Including real time mode and batch mode. Those two modes are available when
Auto-Chemistry Analyzer transmitting test result or QC result of the day to LIS work station. On real time
mode, when all items of the sample have results during test or the result of a QC item is obtained, Auto-
Chemistry Analyzer will transmit all information of the sample to LIS work station automatically. On batch
mode, user can transmit the sample information or QC information from Auto-Chemistry Analyzer to LIS
work station.
Analyzer ID: Marking Auto-Chemistry Analyzer
Host ID: Marking LIS work station
Serial Port: Selecting valid serial port No.
Baud Rate: Variation times of carrier parameter per unit time. 9600Bps or 19200Bps can be selected. Default
as 19200Bps.
Data Bits: 7 or 8. Default as 8.
Stop Bit: 1 or 2. Default as 1.
Parity: N, M, E, O, S. Default as N.
Timeout Retry Time: Time interval used for overtime retry in communication. The communication will stop
when there is no effective communication during overtime retry time. The input range of overtime retry time is
1-15.
Timeout Retry Count: Count used for overtime retry in communication. The communication will stop when
there is no effective communication during overtime retry count. The input range of overtime retry count is 1-
6.
LIS Communication Data Format
1. Control Code
LF (Line Feed) (Hex 0A)
CR (Carriage Return) (Hex 0D)
STX (Start of Text) (Hex 02)
ETX (End of Text) (Hex 03)
EOT (End of Transmission) (Hex 04)
ENQ (Enquiry) (Hex 05)
ACK (Acknowledge) (Hex 06)
NAK (Not Acknowledged) (Hex 15)
2. Message Frame / Checksum Calculation
The end frame
F C
[STX] Text first char. ...... Text last char. ETX CL [CR] [LF]
N H
[STX]
The ASCII code 2, indicating the beginning of a frame transmission.
FN
The frame number modulo 8. Frames of a single Transmission Phase are consecutively numbered beginning
with 1. So FN runs from 1 to 7, continues with 0, 1 and so on.
Text
Data content.
[ETX]
ASCII code 3, indicating the end of the text block of an end frame.
CH, CL
Represent the high nibble and the low nibble of the 8 bit checksum, respectively. CH and CL are represented
as two digits of hex numbers. The checksum is the modulo 256 of the sum of ASCII values of the frame
characters starting with and including "FN" and completing with [ETX].
Example for Checksum Calculation:
[STX]1Test[ETX]
Symbol Character Value (decimal) Sum
FN ‘1’ 049 49
468 = 468
MOD 256
212 = 212
CH ‘D’ 068
CL ‘4’ 052
Notice:
When the double direction communication apply the testing from the Analyzer To LIS system, If when the LIS
system didn’t find the sample that should be applied, must send:
ENQ
EOT
Examples
1. Message Transmitted from Analyzer to LIS Work Station
Analyzer [ENQ]
HOST [ACK]
Analyzer [STX]1H|\^&||| Analyzer |||||Host||1|20090119131415[CR]
[ETX]24[CR][LF]
HOST [ACK]
Analyzer [STX] 2P|1|||||||||||||^[CR][ETX]E9 [CR][LF]
HOST [ACK]
Analyzer [STX] 3O|1|128123^1^1^2|||R|20090119123027|||||||||1||||||||||O
[CR][ETX]55[CR][LF]
HOST [ACK]
Analyzer [STX] 4R|1|^^^ALT|-2|U/L|^\^|N||F||||20090119123027[CR]
[ETX]32[CR][LF]
HOST [ACK]
Analyzer [STX] 5R|2|^^^AST|1|U/L|^\^|N||F||||20090119123027[CR]
[ETX]0D[CR][LF]
HOST [ACK]
Analyzer [STX] 6R|3|^^^ALB|-8.57|g/l|^\^|N||F||||20090119123027[CR]
[ETX]F6[CR][LF]
HOST [ACK]
Analyzer [STX] 7L|1|N[CR][ETX]0A[CR][LF]
HOST [ACK]
Analyzer [EOT]
2.Apply from analyzer to LIS
Single:
Analyzer [ENQ]
HOST [ACK]
Analyzer [STX]1H|\^&||| Analyzer |||||Host||1|20090119131335[CR]
[ETX]25[CR][LF]
HOST [ACK]
Analyzer [STX] 2Q|1|^130^5^45^N||ALL||||||||O[CR][ETX]B4[CR][LF]
HOST [ACK]
Analyzer [STX] 3L|1|N[CR][ETX]06[CR][LF]
HOST [ACK]
Analyzer [EOT]
Batch:
Analyzer [ENQ]
HOST [ACK]
Analyzer [STX]1H|\^&||| Analyzer |||||Host||1|20090119131335[CR]
[ETX]25[CR][LF]
HOST [ACK]
Analyzer [STX] 2Q|1|^11^2^11^N||ALL||||||||O[CR][ETX]78[CR][LF]
HOST [ACK]
Analyzer [STX] 3Q|2|^12^2^12^N||ALL||||||||O[CR][ETX]7C[CR][LF]
HOST [ACK]
Analyzer [STX] 4Q|3|^13^2^13^N||ALL||||||||O[CR][ETX]80[CR][LF]
HOST [ACK]
Analyzer [STX] 5Q|4|^14^2^14^N||ALL||||||||O[CR][ETX]84[CR][LF]
HOST [ACK]
Analyzer [STX] 6L|1|N[CR][ETX]09[CR][LF]
HOST [ACK]
Analyzer [EOT]
3.Test order from LIS to analyzer
Sample ID mode:
Single:
HOST [ENQ]
Analyzer [ACK]
HOST [STX] 1H|\^&[CR][ETX]E5[CR][LF]
Analyzer [ACK]
HOST [STX] 2P|1|||||||||||||^[CR][ETX]E9[CR][LF]
Analyzer [ACK]
HOST [STX] 3O|1|3977777^4^1^1^N||^^^AST|R|20090119100534||||||||
|1||||||||||O[CR][ETX]51[CR][LF]
Analyzer [ACK]
HOST [STX] 4O|2|3977777^4^1^1^N||^^^TP|R|20090119100534||||||||
|1||||||||||O[CR][ETX]0F[CR][LF]
Analyzer [ACK]
HOST [STX] 5O|3|3977777^4^1^1^N||^^^ALB|R|20090119100534||||||||
|1||||||||||O[CR][ETX]3C[CR][LF]
Analyzer [ACK]
HOST [STX] 6L|1|N[CR][ETX]09[CR][LF]
Analyzer [ACK]
HOST [EOT]
Batch: When transferring batches, no matter how many samples, only one [ENQ] at the beginning and one
[EOT] at the end are allowed, instead of one sample having a set of [ENQ] and [EOT] flags. There can only be
one <H> at the beginning, and there can be only one <L> at the end. Regardless of the number of samples in
the middle, <L> is a sign that the sample information is received and the test is started.
HOST <ENQ>
Analyzer <ACK>
HOST <STX>1H|\^&<CR><ETX>E5<CR><LF>
Analyzer <ACK>
HOST <STX>2P|1||0||wxy|||M||||||20^Y<CR><ETX>89<CR><LF>
Analyzer <ACK>
HOST <STX>3O|1|160511680414^1^0^1^N^1||^^^ALB|R|20160515154341|N||||||||0||||||||||
O<CR><ETX>F9<CR><LF>
Analyzer <ACK>
HOST <STX>4O|2|160511680414^1^0^1^N^1||^^^ALT|R|20160515154341|N||||||||0||||||||||
O<CR><ETX>0D<CR><LF>
Analyzer <ACK>
HOST <STX>5O|3|160511680414^1^0^1^N^1||^^^P|R|20160515154341|N||||||||0||||||||||
O<CR><ETX>7E<CR><LF>
Analyzer <ACK>
HOST <STX>6O|4|160511680414^1^0^1^N^1||^^^TP|R|20160515154341|N||||||||0||||||||||
O<CR><ETX>D4<CR><LF>
Analyzer <ACK>
HOST <STX>7P|2||0||lxy|||M||||||22^Y<CR><ETX>86<CR><LF>
Analyzer <ACK>
HOST <STX>0O|1|160511120485^2^0^2^N^1||^^^ALB|R|20160515154434|N||||||||0||||||||||
O<CR><ETX>F8<CR><LF>
Analyzer <ACK>
HOST <STX>1O|2|160511120485^2^0^2^N^1||^^^ALT|R|20160515154434|N||||||||0||||||||||
O<CR><ETX>0C<CR><LF>
Analyzer <ACK>
HOST <STX>2O|3|160511120485^2^0^2^N^1||^^^AST|R|20160515154434|N||||||||0||||||||||
O<CR><ETX>15<CR><LF>
Analyzer <ACK>
HOST <STX>3O|4|160511120485^2^0^2^N^1||^^^P|R|20160515154434|N||||||||0||||||||||
O<CR><ETX>7F<CR><LF>
Analyzer <ACK>
HOST <STX>4O|5|160511120485^2^0^2^N^1||^^^TBIL|R|20160515154434|N||||||||0||||||||||
O<CR><ETX>5C<CR><LF>
Analyzer <ACK>
HOST <STX>5P|3||0||lxs|||M||||||24^Y<CR><ETX>81<CR><LF>
Analyzer <ACK>
HOST <STX>6O|1|160510810321^3^0^3^N^1||^^^ALB|R|20160515154540|N||||||||0||||||||||
O<CR><ETX>F8<CR><LF>
Analyzer <ACK>
HOST <STX>7O|2|160510810321^3^0^3^N^1||^^^AST|R|20160515154540|N||||||||0||||||||||
O<CR><ETX>13<CR><LF>
Analyzer <ACK>
HOST <STX>0O|3|160510810321^3^0^3^N^1||^^^P|R|20160515154540|N||||||||0||||||||||
O<CR><ETX>75<CR><LF>
Analyzer <ACK>
HOST <STX>1O|4|160510810321^3^0^3^N^1||^^^TBIL|R|20160515154540|N||||||||0||||||||||
O<CR><ETX>52<CR><LF>
Analyzer <ACK>
HOST <STX>2O|5|160510810321^3^0^3^N^1||^^^TP|R|20160515154540|N||||||||0||||||||||
O<CR><ETX>CD<CR><LF>
Analyzer <ACK>
HOST <STX>3P|4||0||pys|||F||||||23^Y<CR><ETX>7D<CR><LF>
Analyzer <ACK>
HOST <STX>4O|1|160511480468^4^0^4^N^1||^^^DBIL|R|20160515154657|N||||||||0||||||||||
O<CR><ETX>5D<CR><LF>
Analyzer <ACK>
HOST <STX>5O|2|160511480468^4^0^4^N^1||^^^P|R|20160515154657|N||||||||0||||||||||
O<CR><ETX>94<CR><LF>
Analyzer <ACK>
HOST <STX>6O|3|160511480468^4^0^4^N^1||^^^TBIL|R|20160515154657|N||||||||0||||||||||
O<CR><ETX>71<CR><LF>
Analyzer <ACK>
HOST <STX>7O|4|160511480468^4^0^4^N^1||^^^TP|R|20160515154657|N||||||||0||||||||||
O<CR><ETX>EC<CR><LF>
Analyzer <ACK>
HOST <STX>0P|5||0||sxt|||F||||||25^Y<CR><ETX>80<CR><LF>
Analyzer <ACK>
HOST <STX>1O|1|160511010367^5^0^5^N^1||^^^ALT|R|20160515154745|N||||||||0||||||||||
O<CR><ETX>13<CR><LF>
Analyzer <ACK>
HOST <STX>2O|2|160511010367^5^0^5^N^1||^^^AST|R|20160515154745|N||||||||0||||||||||
O<CR><ETX>1C<CR><LF>
Analyzer <ACK>
HOST <STX>3O|3|160511010367^5^0^5^N^1||^^^DBIL|R|20160515154745|N||||||||0||||||||||
O<CR><ETX>51<CR><LF>
Analyzer <ACK>
HOST <STX>4O|4|160511010367^5^0^5^N^1||^^^P|R|20160515154745|N||||||||0||||||||||
O<CR><ETX>88<CR><LF>
Analyzer <ACK>
HOST <STX>5O|5|160511010367^5^0^5^N^1||^^^TP|R|20160515154745|N||||||||0||||||||||
O<CR><ETX>DE<CR><LF>
Analyzer <ACK>
HOST <STX>6L|1|N<CR><ETX>09<CR><LF>
Analyzer <ACK>
HOST <EOT>