Académique Documents
Professionnel Documents
Culture Documents
895304-4301
G
23.4.2003
www.thermo.com/konelab
I LIMS INTERFACE
1.
2.
2.1.2
2.1.3
2.1.3.1
2.1.4
TIMING REQUIREMENTS ......................................................................................................14
2.2
EXAMPLES OF COMMUNICATION ...........................................................................................15
2.2.1
SAMPLE AND TEST DATA ENTRY.........................................................................................15
2.2.2
RECEIVING NEW READY RESULTS......................................................................................16
2.2.3
RECEIVING ALL READY RESULTS .......................................................................................17
2.2.4
RECEIVING RESULTS FOR A SPECIFIC SAMPLE ..............................................................17
2.2.5
SENDING TEST DATA FOR OLD SAMPLES .........................................................................18
2.2.6
ENQUIRING TESTS IN USE IN THE ANALYSER ..................................................................19
2.3
ERROR HANDLING.......................................................................................................................20
2.3.1
ERROR RECORD.....................................................................................................................20
2.3.2
RESULT ERROR CODES.........................................................................................................21
2.3.3
COMMUNICATION ERROR CODES......................................................................................21
2.3.4
ON LINE ERROR CODES........................................................................................................22
2.3.5
EXAMPLES OF ERROR HANDLING......................................................................................24
2.4
REQUESTING A CALCULATED TEST .......................................................................................25
3.
3.2.2
FIELD LENGTHS USED BY Konelab .....................................................................................38
3.2.3
EXAMPLES OF COMMUNICATION BETWEEN Konelab AND THE HOST
COMPUTER.............................................................................................................................................39
23.04.03
Konelab
LIMS and LAS Interfaces
895304-4301
II LAS INTERFACE
4.
23.04.03
Konelab
LIMS and LAS Interfaces
895304-4301
1.
HARDWARE INTERFACE
The Konelab LIMS hardware interface works through serial communication channel.
Figure 1: The connectors for serial communication channels are at the back of the
Konelab workstation. The connectors are 9-pin male D-connectors.
The channel (COM1,COM2) as well as the LIMS protocol (Konelab Online or
ASTM) and communication parameters (baud rate, number of bits in character,
number of start and stop bits and the use of parity) to be used can be configured in
the Konelab LIMS Configuration window.
Main window
F8/F1
Configuration
Configuration
F7
LIMS
Configuration
LIMS Configuration
23.04.03
Konelab
LIMS and LAS Interfaces
895304-4301
Receive Data
Pin 3
Transmit Data
Pin 5
Ground
PC
Pin 2 RxD---------------------------
TxD
Pin 3 TxD-----------------------------
RxD
Gnd
23.04.03
Konelab
895304-4301
1.1.2 CONFIGURATION
ASTM software has additional configurations as compared to Konelab Online
software. The configuration file is Konelab.ini and it is in folder C:\Konelab\Config.
The changes to the configuration are:
LimsProtocol = ASTM
- This is a new choice for protocol.
The ASTM software
supports sending results
on ready sample or on
ready request basis. The
sending of results on
ready request basis will
load the interface heavily
and it is recommended
that sending results by
ready sample should be
used. This selection can
be done through the
Konelab Configuration
function.
LimsAutomaticResultSending = YES
- When YES the new results are automatically send to Laboratory computer.
LimsThreadPriority = LOW
- This enables the Lims thread to use lower priority and give other software
processes more time.
LimsInterruptible = NO
- When YES the ASTM protocol allows the receiver to ask for interruption of
sending information.
LimsHostQuery =YES
- When YES the Konelab software will automatically send a query for sample
information and requests when new sample is introduced into Konelab.
SentryWaitsLimsRequests = YES
- When YES the sample entry function waits for the response to a query when new
sample is introduced.
ASTMControlResultSending = NO
- When YES the new control sample analysis results are automatically send to
Laboratory computer.
ASTMStandardResultSending = NO
- When YES the new calibrator sample analysis results are automatically send to
Laboratory computer.
SampleIdSendingDelay = 0
- If value is not 0, Konelab will use this delay between successive sending of new
sample Id's. This can be used to ease the burden on Laboratory computer when
e.g. a full segment with 14 samples is introduced. The value is expressed in
milliseconds.
ResultSendingDelay = 0
- If value is not 0, Konelab will use this delay between successive sending of new
sample results. This can be used to ease the burden on Laboratory computer. The
value is expressed in milliseconds.
In order to take ASTM protocol in use the configuration file should be edited
manually. Close the Konelab application by selecting MANAGEMENT and EXIT
from there. Wait for the Konelab application to shut down. Start Windows NT
Explorer by selecting Start-> Programs->Windows NT Explorer. Select the folder
C:\Konelab\Config and on the right side of Explorer display should be seen files
Konelab and UserText. Double click with mouse on Konelab file. Now the Notepad
program should open with the Konelab.ini file. Change the configuration manually
and after that save the modified file selecting File->Save. Now the Konelab software
can be started again with ASTM configurations.
23.04.03
Konelab
895304-4301
BI-DIRECTIONAL MODE
Konelab uses bi-directional data communication between the analyser and the
external computer i.e. both an external computer and the analyser can communicate
with each other. For example, the external computer can send test requests to
Konelab and the analyser can send completed results to the computer.
Bi-directional mode consists of seven different functions:
Function 1 is used when Patient data, Sample data and Test data is sent to
the analyser.
Function 2 is used to send Sample and Test data only to the analyser.
Control and Calibrator sample data can also be sent to the analyser using this
function.
These functions are activated using the initialisation records. Refer to section 2.1.1.1.
23.04.03
Konelab
895304-4301
2.1.1.1
INITIALISATION RECORDS
Initialisation records are activating commands which the host computer sends to the
analyser when the communication begins.
INITIALISATION RECORD 1
This record is used when Patient data, Sample data and Test data is sent to the
analyser.
:I:PR1/C/
C = check sum, refer to section 2.1.3.1.
INITIALISATION RECORD 2
This record is used to send Sample and Test data only to the analyser. Control and
Calibrator sample data can also be sent to the analyser using this initialisation record.
:I:PR2/C/
INITIALISATION RECORD 3
This record is used when a laboratory computer wishes to receive all newly
completed results which have not already been sent.
:I:PR3/C/
INITIALISATION RECORD 4
This record is used when a laboratory computer wishes to receive all results
completed that day.
:I:PR4/C/
INITIALISATION RECORD 5
This record is used when a laboratory computer wishes to receive all results for a
particular sample. Complete and incomplete tests are sent by the analyser.
:I:PR5/C/
INITIALISATION RECORD 6
This record is used when a laboratory computer wishes to know which patient
samples exist on the database of the analyser. The laboratory computer can then send
new requests.
:I:PR6/C/
23.04.03
Konelab
895304-4301
INITIALISATION RECORD 7
This record is used when a laboratory computer wishes to know which tests exist on
the database of the analyser.
:I:PR7/C/
2.1.1.2
nn..n
- Patient Name
(up to 24 characters)
ii..i
- Patient Identification
(up to 16 characters)
bb..b
(up to 8 characters)
ss..s
- Sender name
(up to 24 characters)
n or o
(1 character)
The slash (/) must be entered into the string, since it is the field delimiter. This
means that the number of slashes in a record is always constant. Note that the slash is
a forbidden character inside a field.
For example, if no sender information and no age information is sent, the Data String
looks like:
:P:nn..n/ii..i/M/A///n or o/C/
23.04.03
Konelab
895304-4301
ii..i
- sample identification
(up to 16 characters)
pn
(up to 2 characters)
pp
(up to 3 characters)
st
- sample type
(up to 2 characters)
nn
(up to 2 characters)
dd..d
(up to 8 characters)
tt..t
(up to 5 characters)
rrr
(up to 3 characters)
n or o
- new/old
(1 character)
2.1.1.4
:A:xx..x/!/yy..y/..../C/
(1 character)
xx..x
yy..y,etc
- test identification
(up to 8 characters)
The STAT identifier indicates that the following request must be performed urgently.
This is valid only for one request following the STAT identifier. If there is a STAT
profile to be sent, each test identification must have its separate STAT identifier. If
the '!' is omitted then the request is performed routinely,
i.e. :A:xx..x/yy..y/.../C/
23.04.03
Konelab
895304-4301
2.1.1.5
RESULT RECORD
:R:ii..i/aa..a/rr..r/ddd/ee..e/aa..a/rr..r///.../C/
SPECIAL NOTE:
The most significant
digit is lost if the
result includes more
than 6 characters.
ii..i
(16 characters)
aa..a
(8 characters)
rr..r
(6 characters)
ddd
(up to 3
characters)
ee..e
(up to 10
characters)
If the result was obtained without a dilution, the dilution field is skipped (/ remains).
If the result has no error, the error field is skipped, (/ remains).
23.04.03
Konelab
895304-4301
ANALYSER
23.04.03
Konelab
895304-4301
ANALYSER
ANALYSER
23.04.03
Konelab
895304-4301
10
ANALYSER
23.04.03
Konelab
895304-4301
11
ANALYSER
23.04.03
Konelab
895304-4301
12
LABORATORY COMPUTER
ANALYSER
LABORATORY COMPUTER
ANALYSER
23.04.03
Konelab
895304-4301
13
ASCII VALUE
58
73
58
80
82
50
47
SUBTRACT 32
26
41
26
48
50
18
15
TOTAL
26
67
93
141
191
209
224
MODULUS 64
26
29
13
63
17
32
ADD 32
64
CHARACTER
23.04.03
Konelab
895304-4301
14
2.2
EXAMPLES OF COMMUNICATION
This section gives brief examples of the protocol as it would be used in practice.
The examples are only intended to give an indication of the stages involved in each
operation, the data transmitted is arbitrary.
ANALYSER
:I:PR1/?/
ACK
:P:SMITH JOHN/4///30/2/N/8/
ACK
:S:6///PL/HA/97-12-18/12:13/0/N/7/
ACK
:A:ISE/ALB/ALK.PH/ALT/DBIL/GGT/PROT/T/
ACK
:P:JONES SUSAN/23423///97-12-08/3/O/_/
ACK
:S:12/2/1/SE//97-12-07/09:45/0/O/)/
ACK
:A:!/ALB/!/ALK.PH/!/ALT/!/DBIL/!/GGT/@/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
15
LABORATORY COMPUTER
ANALYSER
:I:PR2/@/
ACK
:S:6///PL/HA/97-12-18/12:13/0/N/7/
ACK
:A:ISE/ALB/ALK.PH/ALT/DBIL/GGT/PROT/T/
ACK
:S:12/2/1/SE//97-12-07/09:45/0/O/)/
ACK
:A:!/ALB/!/ALK.PH/!/ALT/!/DBIL/!/GGT/@/
ACK
:F:PR/+/
ACK
LABORATORY COMPUTER
ANALYSER
:I:PR3/A/
ACK
:R:2/ K / 4.7///NA /136//102; 137/CL///002;/-/
ACK
:R:2 /ALB / 43.3///PROT / 48.4//102; 60/^/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
16
LABORATORY COMPUTER
ANALYSER
:I:PR4/B/
ACK
:R:1/ LDH / 600/5.0//CREA /67///G/
ACK
:R:2 /K / 4.7///NA / 136//102; 137/CL ///002;/-/
ACK
:R3 /ALB / 43.3///PROT / 48.4//102; 60/^/
ACK
:F:PR/+/
ACK
LABORATORY COMPUTER
ANALYSER
:I:PR5/C/
ACK
:S:6/// PL/HA/97-12-18/12:13/0/N/7/
ACK
:R:6 /ALB ///001;/PROT / 4
8.4//102; 60.0/C/
ACK
:F:PR/+/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
17
ANALYSER
:I:PR6/D/
ACK
:S:6 / 1/ 19/PL/HA/97-12-19/14:55/ 0//D/
ACK
:A:GLUC/CREA/CA/ALB/CHOL/_/
ACK
:F:PR/+/
ACK
:S:12 / 1/20/SE/CO/97-12-13/11:35/ 0//N/
ACK
:A:CA/ALB/CHOL/;/
ACK
:F:PR/+/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
18
ANALYSER
:I:PR7/E/
ACK
:A:ALT /ALB / ALP /AMYL / AST
/CA /CHOL /CL /CPK /CREA
/CRP / FE / GGT /F/
ACK
:A:GLUC /K /LDH /LI / MG /NA /P
/PH / TBIL/ TPROT / TRIGLY /UR
AC /J/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
19
2.3
ERROR HANDLING
In the event of an error in the data transmission, the analyser returns an error record
instead of ACK. This situation could arise for instance when the laboratory
computer sends a test analysis record for a test which does not exist in the analyser.
For example:
LABORATORY COMPUTER
ANALYSER
When the laboratory computer receives an error record, the analyser expects a
finishing record to be sent back to acknowledge the error situation. The analyser
acknowledges this by sending back an ACK. After this, the protocol begins again
with the laboratory computer starting the bidding with the initialisation record. All
data up to the ACK sent by the analyser prior to the error is saved in the analyser,
including also the requests at the beginning of an analysis record up to the wrong test
identification.
xx..x
(up to 30 characters)
23.04.03
Konelab
895304-4301
20
EXPLANATION
001;
002;
result rejected, result will never come, e.g. one ISE electrode
was disabled
003;
101;xx..x
102;xx..x
EXPLANATION
001;
003;
004;
005;
protocol error
101;x..xx
103;x..xx
104;x..xx
105;x..xx
106;x..xx
107;x..xx
108;
201;x..xx
210;x..xx
211;x..xx
220;x..xx
221;x..xx
23.04.03
Konelab
895304-4301
21
32
401
402
403
407
409
External computer has received the data but transmission has been detected to be
incorrect.
Possible causes
404
The analyser has received the data but transmission has been recognised to be
incorrect.
Possible causes
23.04.03
Konelab
895304-4301
22
405
The analyser received a data record1 while it was expecting an ACK character or it
received ACK/NAK while expecting a data record.
Possible causes
1) A data record is a string of any characters beginning with ':' and ending with
(0D hex) or a string of any characters whose length exceeds the size of input buffer
(currently 132).
406
Possible causes
23.04.03
Konelab
895304-4301
23
LABORATORY COMPUTER
ANALYSER
:I:PR2/?/
NAK
:I:PR2/@/
ACK
LABORATORY COMPUTER
ANALYSER
:I:PR2/@/
ACK
:S:126///SE//97-12-18/12:13/0/N/O/
ACK
:A:XXX/PROT/@/
:E:105;XXX /A/
ACK
:F:PR/+/
ACK
23.04.03
Konelab
895304-4301
24
1) Tests
All tests including into the calculated test and the calculated test itself
must be defined in use.
All tests including into the calculated test and the calculated test itself
must have the online name.
A
B
2) Samples
First introduce samples with the right sample types, after that give the test request for
the calculated test.
The right sample type here means the sample type belonging to the calculated test
request.
23.04.03
Konelab
895304-4301
25
When a calculated
(patient) test has been
requested there must
be a PR1-record or the
patient must have been
introduced in the
Patient entry window
in the user interface.
Reporting
Reporting gives result of calculated (patient) test according to a patient. In addition
the external test is reported according to a patient. Results of tests including into the
calculated test are reported separately according to samples.
23.04.03
Konelab
895304-4301
26
3.
ASTM PROTOCOL
3.1
FEATURES
The physical transmission layer is implemented according to ASTM 1381. The cable
connector is a 9-pin male connector instead of the standard 25-pin male connector.
The logical layer contains selected portions of ASTM 1394. The detailed record
structure is described in section 3.2.1 ASTM in Konelab: ASTM 1394-91 Structure
of messages.
automatic request for sample information when new sample is introduced to the
instrument (configurable ON/OFF)
23.04.03
Konelab
895304-4301
27
3.2
ASTM in Konelab
No
Host
Instr.
Comment
Record type
ID
Delimiter
definition
Message
control ID
Access
password
Sender name
or ID
Sender street
address
Reserved
field
Sender
telephone
number
Characteristic
s of sender
Receiver ID
X
X
X
-
10
Comment or
special
instructions
Processing
ID
11
12
13
X
X
X
X
-
P production
T training
D debugging
Q QC
Version No.
X
X
X
X
-
14
(X)
Instrument type
60/30/20
^instrument ID
InstrumentData.iId
^software version
Get_version ?
23.04.03
Konelab
895304-4301
28
No
Host
Instr.
Comment
Record type ID
Sequence
number
Termination
code
(X)
X
X
X
-
(X)
X
X
X
X
X
No
Host
Instr.
Comment
Record type ID
Always P.
Sequence
number
Practice
assigned patient
ID
Laboratory
assigned patient
ID
Patient ID No.
3
Patient name
(X)
(X)
(X)
-
(X)
-
Mothers
maiden name
Date of birth
(X)
(X)
Patient sex
(X)
10
11
Reserved field
12
Patient
telephone
number
Attending
physician ID
Special field 1
13
14
15
Special field 2
16
Last name
^First name
^middle name or initial
^suffix
^title
Only one text field. The whole name
should be given there. Optional if no
patient relates to sample.
PatientData.sName
Form YYYYMMDD.
PatientData.acBirthDate
RefClassData.sName
23.04.03
Konelab
895304-4301
29
Patient height
17
Patient weight
18
Patients known
or suspected
diagnosis
Patient active
medications
Patients diet
19
20
21
Practice field 1
22
Practice field 2
23
Admission or
discharge dates
Admission
status
Location
24
25
26
(X)
(X)
Native of
alternative
diagnostic code
and classifiers
Alternative
diagnostic code
and
classification
Patient religion
27
28
29
Marital status
30
Isolation status
31
Language
32
Hospital
service
Hospital
institution
Dosage
category
33
34
35
SenderData.sID
23.04.03
Konelab
895304-4301
30
No
Host
Instr.
Comment
Record type ID
Always O.
Sequence
number
Specimen ID
(X)
(X)
Instrument
specimen ID
Universal test
ID
Priority
(X)
(X)
(X)
-
(X)
(X)
(X)
-
Requested/orde
red date and
time
Specimen
collection date
and time
Collection end
time
Collection
volume
Collector ID
(X)
(X)
10
11
Universal test ID
^universal test name
^universal test ID type
^manufacturer defined test code
TestData.sOnlineName
^auto-dilution factor
Multiple tests can be ordered separated by
repeat delimiter.
S stat
REQ_PRIOR_STAT
A asap
REQ_PRIOR_ASAP
R routine
REQ_PRIOR_NORMAL
C callback
P preoperative
*.ucPriority
Optional if no sample or sample is
calibrator or control.
Form YYYYMMDDHHMMSS
PatientSampleData.sCollectionInfo
23.04.03
Konelab
895304-4301
31
C cancel
A add test requests to existing specimen
N new test requests + new specimen
P pending specimen
L reserved
X specimen or test in process
Q QC specimen
Multiple action codes can be given
separated by repeat delimiter. For example
X\Q.
Action code
12
X
X
X
X
X
X
X
X
Danger code
13
Relevant
clinical
information
Date/time
specimen
received
Specimen
descriptor (type
and source)
14
(X)
(X)
15
16
X
-
X
-
Ordering
physician
Physicians
telephone
number
User field No.1
17
18
19
20
Laboratory field
No.1
Laboratory field
No.2
Date/time
results reported
or last modified
Instrument
charge to
computer
system
Instrument
section ID
Report types
21
22
23
24
25
(X)
(X)
26
X
X
X
X
X
X
X
X
X
X
X
O order
C correction to previously transmitted
results
P preliminary results
F final results
X requests cancelled
I in instrument pending
Y no order for test (response to query)
Z no record of this patient (response to
query)
Q response to query (info)
Multiple report types can be given
separated by repeat delimiter. For example
Y\Z.
PatientSampleData.osComment
Type
^Source
Type is coded as: 1 Serum, 2 Plasma, 3
Urine, 4 CSF, 5 Other
PatientSampleData.ucSampleType
23.04.03
Konelab
895304-4301
32
Reserved field
27
Location or
ward of
specimen
collection
Nosocomial
infection flag
Specimen
service
Specimen
institution
28
29
30
31
No
Host
Instr.
Comment
Record type ID
Always R.
Sequence
number
Universal test
ID
Data or
measurement
value
(X)
X
X
(X)
Units
Reference
ranges
6
-
X
X
X
X/-
Result
abnormal flags
Nature of
abnormality
testing
Components:
Low
TRCLimitsData.fLowerlimit
^High
TRCLimitsData.fUpperlimit
^Description
L/H below/above normal
LL/HH below/above panic normal
</> -below/above absolute low/high (off
the scale of instrument)
N/A normal/abnormal
U/D significant change up/down (delta)
B/W better/worse (used when direction
is not relevant)
*.ulErrorFlags
23.04.03
Konelab
895304-4301
33
Result status
Date of change
in instrument
normative
values or units
Operator
identification
Date/time test
started
Date/time test
completed
Instrument
identification
X
-
X
X
X
X
X
-
X
-
10
11
(X)
12
13
(X)
(X)
14
C correction
P preliminary
F final
X cancelled,
I pending
S partial
M MIC level
R reported
N contains necessary information to run a
new order
Q response to query
V verified
Multiple status flags can be given separated
by repeat delimiter. For example F\Q.
REQ_ASKED ~ I, REQ_FIXABLE ~ I
REQ_FIXED ~ I , REQ_CALCULATED
~ P, REQ_MEASURED ~ P,
REQ_XXX_ACC ~ F, REQ_XXX_REJ ~X
23.04.03
Konelab
895304-4301
34
No
Host
Instr.
Comment
Record type ID
Sequence
Number
Comment
source
Comment text
X
X
Comment type
P practice
L computer system
I clinical instrument system
Error condition identified with a number
and a text in English
1 Init abs.
2 Bichr. net abs.
3 Linearity
4 Unstable
5 Instr, error
6 Addl. meas. error
7 Sample blank error
8 Dil. limit low
9 Dil. limit high
10 Test limit low
11 Test limit high
12 Antigen limit high
13 Out of limit
14 QC
15 Calc. error
16 Outlier
17 Cut curve
18 Bias corr. limit
19 Antigen limit low
20 AE meas error
21 Blank resp. low
22 Blank resp. high
23 Blank init abs. low
24 Blank init abs. High
25 Critical limit low
26 Critical limit high
27 Instrument abs. Limit
28 Not measurable
Multiple flags can be given separated
with repeat delimiter.
*.ulErrorFlags
G generic/free text document
T test name comment
P positive test comment
N negative test comment
I instrument flag(s) comment
23.04.03
Konelab
895304-4301
35
No
Host
Instr.
Comment
Record type ID
Sequence
Number
Comment
source
Comment text
X
X
Comment type
X
-
P practice
L computer system
I clinical instrument system
Error condition identified by 'E' followed
by a number
E3 - wrong initialising character in
record
E4 - wrong termination code or
request code in record
E5 - records found in wrong order
E104 - sample position already
reserved in analyzer by another
sample or calibrator or control.
The new sample was wrongly
positioned by LIS. Use position
0^0 for any sample when the
position is defined at a later
moment with sample insertion
into the Konelab.
E105 - problems with analysis request,
request could not be created
E108 - Maximum number of samples/
patient exceeded
E210 - problems with updating patient
information
E211 - patient information could not be
found
E220 - . Sample already exists
E221 - problems with sample
information
G generic/free text document
T test name comment
P positive test comment
N negative test comment
I instrument flag(s) comment
23.04.03
Konelab
895304-4301
36
No
Host
Instr.
Comment
Record type ID
Sequence
number
Starting range
ID number
(X)
(X)
(X)
(X)
(X)
(X)
(X)
(X)
Ending range
ID number
Universal test
ID
(X)
(X)
Nature of
request time
limits
(X)
(X)
Beginning
request results
date and time
Ending request
results date and
time
Requesting
physician name
Requesting
physician
telephone
number
User field No.1
(X)
(X)
Universal test ID
^universal test name
^universal test ID type
^manufacturer defined test code
TestData.sOnlineName
^auto-dilution factor
Multiple tests can be requested separated
by repeat delimiter.
S specimen collect date
R result test date
According to standard R is taken as
default, so it is optional.
Form YYYYMMDDHHMMSS
(X)
(X)
Form YYYYMMDDHHMMSS
10
11
12
Request
information
status codes
13
X
X
X
X
X
-
X
X
X
X
X
-
C correction
P preliminary
F final
X cancelled
I pending
S unfinalized results
M MIC level,
R previously transmitted
A cancel last request criteria
23.04.03
Konelab
895304-4301
37
Length in characters
Instrument type
instrument ID
software version
Date and time of message
Laboratory assigned patient ID
Patient name
Date of birth
Patient sex
Hospital institution
Specimen ID
Instrument specimen ID
3
2
16
14
16
24
8
10
24
16
Segment , Position integers max 6
characters
30
14
30
2
8
10
Low 6, High 6
14
14
Universal test ID
Specimen collection date and time
Relevant clinical information
Instrument section ID
Data or measurement value
Units
Reference ranges
Date/time test completed
Beginning request results date and
time
Ending request results date and time
14
23.04.03
Konelab
895304-4301
38
23.04.03
Konelab
895304-4301
39
Host: <enq>
Konelab:<ack>
Host: <stx>1H|\^&|||60^Host^5.0|||||||P||20010502124702<cr><etx>12<cr><lf>
Konelab:<ack>
Host: <stx>2P|1|123456-789A|||LastName
FirstName|||Adult|||||||||||||||||||||||||<cr><etx>C2<cr><lf>
Konelab:<ack>
Host: <stx>3O|1|S1234^3.0||^^^Ca^0.0|R||||||X||||1|||||||||1|Q\O<cr><etx>9D<cr><lf>
Konelab:<ack>
Host: <stx>4L|1|F<cr><etx>FF<cr><lf>
Konelab:<ack>
Host: <eot>
23.04.03
Konelab
895304-4301
40
23.04.03
Konelab
895304-4301
41
Konelab:<enq>
Host: <ack>
Konelab:<stx>1H|\^&|||60^1^5.0|||||||P||20010502125610<cr><etx>97<cr><lf>
Host: <ack>
Konelab:<stx>2P|1|223311-9876||ICU Patient||||||||||||||||||||||||||||<cr><etx>50<cr><lf>
Host: <ack>
Konelab:<stx>3O|1|ICU
Sample^0.0^1^4||^^^ALL^|R||||||X||||1|||||||||1|F<cr><etx>F2<cr><lf>
Host: <ack>
Konelab:<stx>4R|1|^^^ISE.Na^0.0|9999999.9|mmol/l|^^|>||F||||20010502125556|1<c
r><etx>50<cr><lf>
Host: <ack>
Konelab:<stx>5C|1|I|11 Test limit high\15 Calc. error|I<cr><etx>29<cr><lf>
Host: <ack>
Konelab:<stx>6L|1|N<cr><etx>09<cr><lf>
Host: <ack>
Konelab:<eot>
23.04.03
Konelab
895304-4301
42
23.04.03
Konelab
895304-4301
43
4.
4.1
HARDWARE INTERFACE
Communication between the analyser and LAS is performed using standard threewire RS 232- interface. Maximum cable length is 15 meters and the cable should be
shielded. The pins used in 9-pin male D-connector on analyser side are:
Signal
Pin
GND (ground)
Communication parameters are 9600 baud, 8 bit, 1 start bit, 1 stop bit, no parity. No
hardware or software flow control is used.
4.2
You can set debug on
by F8/F1 function in
the Konelab
programs
Management
window. With the
same button it is also
set off.
GENERAL DESCRIPTION
When debug log is on, all messages between analyser and LAS are recorded to the
log file C:\Konelab\tmp\ksdebug.txt.
STX
0x02
ETX
0x03
ACK
0x06
NACK
0x15
23.04.03
Konelab
895304-4301
44
Each communication record contains also field for message length. Message length
doesnt include STX and ETX characters.
The general format of a message record is:
Byte
Field
Comment
STX
Message length
Message id
4-n
Message data
n+1
Checksum
n+2
ETX
Optional
23.04.03
Konelab
895304-4301
45
23.04.03
Konelab
895304-4301
46
ok
out of
order
not in use
not in use
busy
busy
LAS status
Free to move tubes and retry aspirate
sample.
When busy response is received from Konelab either as response to status query or
to aspirate sample command, Konelab is either initializing or recovering from an
error situation. This is a temporary state and LAS should start polling with status
query (or aspirate sample command) until status value other than busy is received.
Typically this will take 10-20 seconds and shouldnt take more than a minute. Until
then sample tubes must not be moved as KUSTI dispenser may be extended at the
LAS position. If status value ready is received, the recovery was successful and
another aspirate sample command may be sent. If the recovery was unsuccessful,
status out of order or not in use is returned.
Konelab does not automatically try to recover from states out of order or not in
use.
23.04.03
Konelab
895304-4301
47
The diagram below explains the possible states and transitions of the Konelab LAS
interface and when LAS is allowed to move sample tubes.
1. Analyser is ready for sample aspiration
LAS status : moving allowed
analyzer status: ok
SAMPLE DISPENSING
COMPLETE
RECORD,
status=0,1,2,3 or 5
received
ASPIRATE
SAMPLE
RECORD
sended
2. Analyser is busy
LAS status : moving not allowed
analyzer status: ok
ANALYSER STATUS
RECORD,
status=0 (ok)
received
SAMPLE DISPENSING
COMPLETE
RECORD,
status=4 or 7
received
ANALYSER STATUS
RECORD,
status=0 (ok)
received
ANALYSER STATUS
RECORD,
status=2 (fatal error)
received
Status response
0 (ready)
1 (busy)
1 (busy)
2 (out of order)
3 (not in use)
ANALYSER STATUS
RECORD,
status=1(busy)
received
ANALYSER STATUS
RECORD,
status=3 (not in use)
received
State
1
2
3
4
5
SAMPLE DISPENSING
COMPLETE
RECORD,
status=6 (not in use)
received
ANALYSER STATUS
RECORD,
status=0 (ok)
received
Aspirate response
starts dispensing
protocol error
7 (busy)
4 (fatal error)
6 ( not in use)
23.04.03
Konelab
895304-4301
48
4.3
COMMUNICATION RECORDS
Byte
Field
Comment
STX
Message length
Message id (0x01)
Checksum
ETX
Byte
Field
Comment
STX
Message length
Message id (0x02)
Error type
Error info1
Error info2
Checksum
ETX
Byte
Field
Comment
STX
Message length
Message id (0x03)
Checksum
ETX
23.04.03
Konelab
895304-4301
49
Byte
Field
Comment
STX
Message length
Message id (0x04)
Status
Checksum
ETX
Byte
Field
Comment
STX
Message length
Message id (0x05)
Sample ID length
6n
Sample ID
n+1
Checksum
n+2
ETX
23.04.03
Konelab
895304-4301
50
Byte
Field
Comment
STX
Message length
Message id (0x06)
Status
Sample ID length
6n
Sample ID
n+1
Checksum
n+2
ETX
0x00 = OK
0x01 = No empty sample
positions in the sample disk for
sample dispensing
0x02 = Duplicate sample id
0x03 = Timeout in sample
dispensing
0x04 = Analyser couldnt
perform operation due to a fatal
error situation. Sample tubes
may not be moved.
0x05 = Not enough sample
found in sample tube
0x06 = Analyser not in use and
sample aspiration cant be
performed. Sample tubes may be
moved.
0x07 = Analyser is busy and
sample aspiration cant be
performed. Sample tubes may
not be moved.
Maximum length of sample ID is
16 characters
Byte
1
2
3
4
5
Field
STX
Message length
Message id (0x07)
Checksum
ETX
Comment
23.04.03
Konelab
895304-4301
51
4.4
COMMUNICATION EXAMPLES
ANALYSER
Initialisation record
5 s timeout
Initialisation record
ACK
Max 10 s
Status query record
ACK
Status Record
ACK
ANALYSER
23.04.03
Konelab
895304-4301
52
ANALYSER
wait 10 s
Status query record
ACK
status record
status = BUSY
ACK
wait 10 s
Status query record
ACK
status record
status = READY
ACK
Aspirate sample record
ACK
sample dispensing complete
record
status = OK
ACK
23.04.03
Konelab
895304-4301
53
ANALYSER
23.04.03
Konelab
895304-4301
54
ANALYSER
23.04.03
Konelab
895304-4301
55