Académique Documents
Professionnel Documents
Culture Documents
ID.No. 1704559-001
Document Version 1.3
Document Name:
Author:
Printed:
BMSTAHI.DOC
Claus Mahlmann
05/08/99 08:08
Roche Diagnostics
Global System Support
STA
STA
DISCLAIMER
ROCHE DIAGNOSTICS MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO
THE CONTENTS OF THIS DOCUMENT AND SPECIFICALLY DISCLAIMS ANY IMPLIED
WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE. IN NO CASE SHALL ROCHE DIAGNOSTICS BE LIABLE FOR
INCIDENTAL OR CONSEQUENTIAL DAMAGES.
COPYRIGHT
COPYRIGHT 1997, BY ROCHE DIAGNOSTICS. ALL RIGHT RESERVED. NO PART OF THIS
PUBLICATION MAY BE REPRODUCED WITHOUT THE EXPRESS WRITTEN PERMISSION OF
ROCHE DIAGNOSTICS.
VERSION HISTORY
Version
Date
Modifications
1.0
June 1995
first version
1.1
November 1997
1.2
May 1998
1.3
July 1999
STA
STA
Contents:
1. INTRODUCTION
2. INTERFACE SETUP
4. STD-BI PROTOCOL
4.1. Definitions
4.1.1. Trace Format (Std-Bi)
4.1.2. Checksum Calculation (Std-Bi)
4.2. Data Transmission Control (Std-Bi)
4.2.1. Establishment Phase
4.2.2. Worklist Request / Worklist
4.2.3. Result Transmission
4.2.4. Line Test
4.2.5. Termination Phase
5. ASTM PROTOCOL
5.1. Data Transmission Control (ASTM)
5.1.1. Common Transmission Procedure
5.1.2. Communication Phases
5.1.3. Flow Charts
5.1.4. Message Structure
5.2. Record Structure
5.2.1. Record Types
5.2.2. General Record Format
5.2.3. Checksum Calculation (ASTM)
5.2.4. Record Details
5.3. Trace Examples (ASTM)
5.3.1. Worklist Request from STA to Host
5.3.2. Worklist from Host to STA (STA, STA-C, STA-R Strict)
8
8
9
10
10
10
11
14
17
21
22
23
23
24
25
26
28
30
30
31
33
34
35
36
38
39
40
40
40
40
41
41
43
47
53
55
56
56
56
57
58
63
64
64
64
64
65
72
73
74
5.3.3.
5.3.4.
5.3.5.
5.3.6.
5.3.7.
STA
75
76
77
78
79
80
80
81
81
82
83
84
STA
1. Introduction
rd
This manual describes the connection of the STA Analyzer to a 3 Party Laboratory Host System via
an RS232C asynchronous serial port. It details the communication protocols, the required hardware,
and considerations to be taken when interfacing different computer systems.
The following fundamental questions are considered:
Hardware
What interface hardware is required?
How is the physical connection established?
Operation and Data Transmission
How to set transfer and communication parameters?
What is the format of the transmitted data and how is it used?
What type of data can be transmitted?
How is the data transfer initiated?
Software
What communication protocol is used?
What are the Hosts software requirements?
The following protocols are described in this manual:
Instrument
Protocol
STA
STA-Compact
ASTM protocol
STA-Rack
The ASTM protocols of STA, STA-Compact and STA-R Strict are compatible !
In case of difficulty please contact the responsible person of Roche Diagnostics Service Department:
Roche Diagnostics
Global System Support
Sandhofer Strae 116
D-68305 Mannheim
Tel:
Fax:
STA
2. Interface Setup
2.1. Data Cable
Figure 1 illustrates the wiring of the data cable used to connect the STA analyzer to the Host.
Connect to the 9-pin male socket at the rear of the analyzer.
Signal
Explanation
Direction
Txd
Transmit Data
out
Rxd
Receive Data
in
SG
Signal Ground
Table 1 gives the pin-out descriptions of the used pins. None of the handshake lines is used. They
remain unconnected.
STA
Specification
Remarks
Interface
Max. Cable
Length 15m
Handshaking
Software
Communication Method
Half Duplex
Character Code
ASCII
GLOBAL OPTIONS Page 2/2 shows the following options for the Std-Bi protocol:
Protocol
Selection of the protocol type
Range: Std-Bi/ASTM
Station Number
2-digit Instrument Identification Number
Range: 0 to 99
Baud Rate
Baud rate of the serial interface (baud = bits per second)
Range: 9600, 4800, 2400, 1200, 600, 300
Parity
Type of parity check
Range: none, odd or even
10
STA
STA
Use Alarm
Codes
Action Taken
NO
NO
YES
NO
YES
YES
There are two different tables for Error/Alarm codes. (see Table 10 on page 49)
11
Access to the GLOBAL OPTIONS screen requires the 6-digit access code.
(see 3.1.9.1. Calculation Method of the Access Code on page 24)
Successful entry of the correct access code displays GLOBAL OPTIONS Page 1/2.
Press <PageDown> to display the following screen:
12
STA
STA
GLOBAL OPTIONS Page 2/2 displays the following options for the ASTM protocol:
Protocol
Selection of the protocol type
Range: Std-Bi/ASTM
Station Number
2-digit Instrument Identification Number
Range: 0 to 99
Baud Rate
Baud rate of the serial interface (baud = bits per second)
Range: 9600, 4800, 2400, 1200, 600, 300
Parity
Type of parity check
Range: none, odd or even
Number of Data Bits
Number of data bits per character
Range: 7 or 8
Number of Stop Bits
Number of stop bits
Range: 1 or 2
Number of On Error Retries
Number of times the STA repeats a frame when it receives a character different from [ACK] or
[EOT]. This number has to be set to 6.
Range: 1 to 9
Verify Patient Data
YES:
The four information fields in the worklist from Host are displayed after receiption in a
separate window for confirmation.
NO:
The four information fields in the worklist from Host are not displayed in a separate
window for confirmation..
Range: YES / NO
ID Type
Format of the 16-character patient ID.
Range: Numerical/Alphanum
13
STA
14
STA
Selecting a test and pressing <Enter> calls TEST SETUP (Page 1/3). Pressing <PageDown> twice
displays the TRANSMISSION TEST NUMBER setup page.
15
STA
To modify a transmission number, select the number and press <Del>. The following screen will
appear.
Select a free number in the test list and press <Enter>. The test number is automatically entered in the
TRANSMISSION TEST NUMBER column (Page 3/3 ).
It is not possible to select an allocated number.
To change a test number return to the TRANSMISSION TEST NUMBER section on Page 3/3. Select a test
number and press <F1> to delete it. The number can now be reused.
Exiting Test Setup gives a prompt to save any changes. The access code must be given.
(see 3.1.9.1. Calculation Method of the Access Code on page 24).
16
STA
The cursor is positioned on the ID field. The instrument then waits for a bar-coded sample cup to pass
in front of the bar-code reader, or alternatively, manual input of the bar-code number.
The mode must be changed from MANUAL MODE to AUTO before the instrument requests a worklist
from the Host. To change the mode press <Esc>. A small menu appears in the upper left of the
screen. The options are:
Change Profiles
Change Prefix
AUTO mode
Return to Loading
Quit
Select AUTO mode.
17
18
STA
STA
The profile should be BY TELELOADING. If not, press <Esc> and select CHANGE PROFILE.
19
STA
When the option Verify Patient Data is set to YES in SETUP GLOBAL OPTIONS Page 2/2, the STA
analyzer expects the Host to send four extra information fields as part of the worklist.
(see Figure 2 on page 10 and Figure 3 on page 12) These four fields are displayed in a separate
window and must be confirmed with <F10>. (see Figure 10)
Info Field 1
Info Field 2
Info Field 3
Info Field 4
(16 characters)
(12 characters)
(6 characters)
(4 characters)
example below:
example below:
example below:
example below:
20
1234567890123456
123456789012
123456
1234
STA
Setting the On-Line Transmission option to YES sends the test results as soon as they are available
after the measurement.
Note: A transmission rank should be defined first.
(see 3.1.3. Setting up Method Ranking)
21
Press <Esc> to call up a small menu in the upper left of the display.
This gives the following options:
Change File Selection
Transmit
Print
Quit
Transmit offers the choice of transmitting all, or only new results to the Host.
22
STA
STA
At the sample list select the required sample using the cursor keys. Press <Enter> to show a samples
results.
A single test can be selected and sent to the Host by pressing <F11>.
23
STA
The access code is derived from the system date and is format dependent:
Digit 1:
Digit 2:
Digit 3:
Digit 4:
Digits 5 and 6:
24
10/25/1994
120508
STA
Select menu option Host Computer Communications to display the communication parameters:
Modify the parameters via the SETUP GLOBAL OPTIONS Page 2/2.
(see Figure 2 on page 10).
Refer to chapter 3.1.1. Setting up Host Interface Parameters (Std-Bi) for an explanation of the
parameters.
25
STA
26
STA
Modify the parameters via the SETUP GLOBAL OPTIONS Page 2/2.
(see Figure 3 on page 12).
Refer to 3.1.2. Setting up Host Interface Parameters (ASTM) on page 11 for an explanation of the
parameters.
There is one test function available on this screen:
<F1> Line Test.
The STA Analyzer sends [ENQ] to the Host.
The Host is expected to respond with [ACK].
When the [ACK] is received the STA Analyzer terminates the Line Test with [EOT] and the PASSED
message is displayed.
If the Host failed to respond, FAILED is displayed.
27
Selecting the menu option Computer System opens another menu with the following options:
Printer
Keyboard
External Serial Line
Beep
Monitor
Return to previous menu
28
STA
STA
The option External Serial Line opens the serial interface screen:
The baud rate, parity, number of data and number of stop bits are defined from the start up window.
Confirm the configuration with <F10>.
From this point on all keyboard input is sent via COM2 to the Host.
There are two test modes which are selected by the <F1> and <F2> keys:
1. <F1> Plug Mode
Placing a 'Loop Back' connector at rear of the STA allows typed characters to be received and
displayed in the Received Characters window.
This plug directly connects the Transmit and Receive pins (2 and 3).
2. <F2> Console Mode
Characters are sent via the Host port to an external device.
These options test the function of COM2 port.
29
STA
To change the settings, press the [Modif.] button. The settings may be changed only if the option On
line Transmission on the SETUP GLOBAL OPTIONS screen is disabled.
30
STA
To change the ranking first select the test in the right list, then press the [Modif.] button and enter the
method rank in the column Transmission Rank.
31
Pressing the buttons [...] displays the list of all actualy assigned transmission ranks.
32
STA
STA
33
STA
34
STA
35
STA
If the samples are already unloaded the results of the selected samples may be sent by pressing the
Upload button.
36
STA
If the racktray was already removed the sample results may also be sent out of the BUFFER FILE.
A result upload in batch mode is possible even if the option On line transmission on the
SETUP GLOBAL OPTIONS screen is deselected.
37
38
STA
STA
39
STA
4. Std-Bi Protocol
4.1. Definitions
4.1.1. Trace Format (Std-Bi)
To aid readability the following control character definitions will be used:
Code
Description
Mnemonic
01 hex
Connect Request
[SOH]
02 hex
Start of Text
[STX]
03 hex
End of Text
[ETX]
06 hex
Acknowledge
[ACK]
15 hex
Not Acknowledged
[NAK]
20 hex
Space Character
( = Code 250 )
00 to FF
Checksum Character
[xxh]
Start-of-Text
Text
Checksum
End-of-Text
Length
Variable
Trace
[STX]
[xxh]
[ETX]
40
STA
Protocol:
The STA analyzer sends [SOH].
The Host returns a [SOH] within the pre-determined time.
If the return is not within the specified delay, or not received, the Establishment Phase is considered
false.
4.2.1.2. Data Flow
Connect Control
Character
STA
Host
SOH
SOH
41
STA
Start of
Communication
Send test
character [SOH]
Start Timer
Poll RS232
No
Message
received ?
Yes
Message =
[SOH] ?
Yes
No
ACK delay
time over ?
No
Yes
result =
not connected
42
result =
connected
STA
Protocol:
The STA sends a worklist request Q message and waits for a [ACK] or [NAK] from the Host within the
specified delay. (see GLOBAL OPTIONS Page 2/2).
When the Host responds with [ACK], the STA waits for the worklist T message to arrive within the predefined File Downloading Delay. If unsuccessful that patient sample is regarded as invalid and the
Worklist Not Received error is displayed.
When the Host responds with [NAK], the STA repeats the message until the required Number of On
Error Retries is reached. If all attempts fail then that patient sample is regarded as invalid and the
Worklist Not Received error is displayed.
4.2.2.2. Message Format
Worklist Request
Item
Start-of-Text
Frame ID
Station
Patient ID
Checks
End-of-Text
Length
Trace
[STX]
xx
pppppppp
[cch]
[ETX]
Code
02 hex
51 hex
Note
03 hex
1
Patient ID
Methods
Checks
End-of-Text
Length
2 to 24
Trace
[STX]
xx
pppppppp
mm
[cch]
[ETX]
Code
02 hex
51 hex
Note
03 hex
1
Patient ID
Info
Methods
Checks
End-of-Text
Length
38
2 to 24
Trace
[STX]
xx
pppppppp
aaaa...
mm
[cch]
[ETX]
Code
02 hex
51 hex
Note
03 hex
1
43
STA
Notes:
Note 1: Station Number.
Defined in GLOBAL OPTIONS Page 2/2.
Note 2: Patient Identification
Defined as an 8-character numerical or alphanumerical. (see GLOBAL OPTIONS Page 2/2).
The numerical ID is left justified and padded with zeros (30h).
The alphanumeric ID is left justified and padded with spaces (20h).
Note 3: Checksum
Method defined in GLOBAL OPTIONS Page 2/2.
Note 4: Methods
This field is repeated up to 12 times depending on the number of methods requested. See
TEST SETUP menu for method ranking. For each method one main unit and one rank is
defined. There are up to 3 ranks for secondary units. The main unit rank is used to determine
the method. The other ranks are only used to send the results.
Note 5: Info
This patient information field must contain the obligatory character / (2F hex) at the end of Info
Field 1.
1) The STA analyzer automatically identifies the format (1 or 2).
2) If format 2 is found the INFO field is truncated as follows:
Info Field 1
16
Characters (including /)
Info Field 2
12
Characters
Info Field 3
Characters
Info Field 4
Characters
38
Characters
Total
The operator is strongly recommended to keep these settings. This ensures a clear patient
information display in the various menus of the STA software.
4.2.2.3. Data Flow
Worklist Request
STA
Host
Request
ACK
ACK
44
Worklist
STA
Request for
Worklist
Reset Retry
Counter
No
Send Request Q
Error:
Worklist not
received
Yes
Start Timer
Nein
Increment retry
counter
Poll RS232
Yes
Yes
Message
received ?
Yes
Message =
[ACK] ?
No
Message =
[NAK] ?
No
End
Yes
Cnt > No. of
retries ?
Reset Retry
Counter
No
No
ACK delay
time over ?
Poll RS232
Increment retry
counter
No
Message
received ?
Yes
Send [NAK]
No
Yes
No
Worklist
Timeout ?
Worklist T ?
No
End
Yes
Message
correct ?
Yes
Yes
Send [ACK]
Error:
Worklist not
received
End
45
STA
16:27:51 [STX]Q99003[42h][ETX]
[STX]
Q
99
003
End code
[42h]
[ETX]
[STX]
T
99
003
Info fields
Inf1/
Inf2
Inf3
Inf4
Info
Info
Info
Info
Selected methods
0104
End code
[49h]
[ETX]
field
field
field
field
1
2
3
4
(16
(12
( 6
( 4
characters)
characters)
characters)
characters)
Trace Example 2 : Worklist Request and Worklist with Info Fields (Std-Bi).
16:28:10
16:28:10
16:28:10
16:28:10
[STX]Q99......003[42h][ETX]
[ACK]
[STX]T99......0030104[42h][ETX]
[ACK]
46
STA
Start-of-Text
Frame ID
Stati.
Patient ID
Zeros
Results
Checks
End-of-Text
Length
see
below
Trace
[STX]
xx
pppppppp
0000
[cch]
[ETX]
Code
02 hex
52 hex
4 * 48 hex
Note
03 hex
3
....
Method Rank
Value
Alarm
Length
Trace
Mm
RRRR
AA
Note
Test Result n
Notes:
Note 1: Station Number
Defined in GLOBAL OPTIONS Page 2/2.
Note 2: Patient Identification
Defined as 8-character numerical or alphanumerical.
(see GLOBAL OPTIONS Page 2/2)
The numerical ID is left justified and padded with zeros (30h).
The alphanumeric ID is left justified and padded with spaces (20h).
Note 3: Checksum
Method defined in GLOBAL OPTIONS Page 2/2.
Note 4: Results
Total Length never exceeds 237 characters. Patient files of greater size are sent as several
messages with the same heading.
47
STA
Division Factor
sec
10
INR
100
g/l
100
mg/dl
ratio
100
ng/ml
100
U/ml
100
IU/ml
100
AU1
**
AU2
**
AU3
**
**: Consistent with decimal point position defined in GLOBAL OPTIONS Page 1/2.
The Result Field is right justified and with padded zeros.
Note 7: Error or Error/Alarm Code
There are 2 characters in this field. The first character is always 7Fh. The second character
indicates the Error or Error Alarm Code. (see the tables below)
If Use Error Codes and Use Alarm Codes are both set to NO in GLOBAL OPTIONS Page 2/2
only validated 6-character results are transmitted (2 character method rank and 4 character
value).
48
STA
Error Codes
When Use Error Codes = YES and Use Alarm Codes = NO, the following applies:
Characters
ASCII Code
Error Message
31 hex
To be confirmed
32 hex
Technical Error
33 hex
> T max.
34 hex
< T min.
35 hex
38 hex
R < R min./Colorimetry
41 hex
Confirmed
Group 2
Group 3
ASCII Code
Error Message
Alarm Code
32 hex
Technical Error
Not Used
33 hex
T > T max.
Not Used
34 hex
T < T min.
Not Used
35 hex
Not Used
38 hex
Linearity
Not Used
41 hex
Confirmed
Without
42 hex
Confirmed
43 hex
Confirmed
4F hex
Confirmed
14
31 hex
To be confirmed
Without
62 hex
To be confirmed
63 hex
To be confirmed
6F hex
To be confirmed
14
49
Code
1
STA
Description
Result:
Calibration Control:
Overridden
Quality Control:
Quality Control:
Overridden
Arm #3:
No Level Detection
Arm #2:
No Level Detection
Arm #1:
No Level Detection
Result:
Result:
Dilution Change
10
Result:
Rerun Test
11
Reagent Drawer
12
13
14
Note: If there are multiple alarms for a result, the highest priority code is transmitted. Code 1 is the
highest of 14 priority levels.
STA
Host
Result
Result
ACK
50
ACK
STA
Result
Transmission
Reset Retry
Counter
No
Cnt > No. of
retries ?
Send Result R
Yes
Error:
Transmission
failed
Start Timer
Increment retry
counter
Poll RS232
No
Yes
Message
received ?
Yes
Message =
[ACK] ?
No
Yes
ACK delay
time over ?
Transmit another
result ?
Yes
Error:
ACK Timeout
No
Message =
[NAK] ?
No
No
Error:
Invalid message
End
Yes
Wait 500 msec
51
STA
[STX]
R
99
003
Results
0000
01
0123
A
02
4567
1
03
0054
1
04
0456
1
End code
[33h]
[ETX]
:
:
:
:
:
:
:
:
:
:
:
:
1
123
A ( =
2
4567
1 ( =
3
54
1 ( =
4
456
1 ( =
confirmed)
to be confirmed)
to be confirmed)
to be confirmed)
16:31:31 [STX]R990030000010123[40h][ETX]
[STX]
R
99
003
Results
0000
01
0123
End code
[40h]
[ETX]
: 1
: 123
52
STA
Start-of-Text
Frame Type
Checksum
End-of-Text
Length
Trace
[STX]
[46h]
[ETX]
Code
02 hex
45 hex
46 hex
03 hex
STA
Host
Line Test
NAK
53
STA
Test of Line
Start Timer
Poll RS232
No
Message
received ?
Yes
Message =
[NAK] ?
Yes
No
ACK delay
time over ?
No
Yes
result =
FAILED
54
result =
PASSED
STA
Start-of-Text
Frame Type
Checksum
End-of-Text
Length
Trace
[STX]
[45h]
[ETX]
Code
02 hex
45 hex
45 hex
03 hex
STA
Termination
Host
Termination
Phase
16:27:18 [STX]E[45h][ETX]
55
STA
5. ASTM Protocol
Details of the ASTM protocol can be found in the following papers:
ASTM E1381-94 Low Level Protocol:
Specification for Low Level Protocol to Transfer Messages Between Clinical Laboratory Instruments
and Computer Systems.
ASTM E1394-91 High Level Protocol:
Standard Specification for Transferring Information Between Clinical Instruments and Computer
Systems.
Rx:
The following procedure is used whenever information is sent over the link by either the STA or the
Host. This procedure has three phases:
Establishment Phase
The link is claimed by the sender (STA or Host).
Transfer Phase
Transmission of the different records making up the message.
Termination Phase
The link is released
Transfer Phase
Establishment
Phase
Sender
Receiver
ENQ
Record 1
ACK
Record n
ACK
56
Termination
Phase
EOT
ACK
STA
57
STA
START
A
No
Message to be
transmitted ?
Yes
Building of record
to send
No
Character on
line ?
Yes
58
STA
Poll RS232
Send [ACK]
Yes
No
Record received ?
Checksum
ok ?
Yes
Yes
Frame no.
ok ?
No
No
No
[EOT] ?
Error:
Checksum
incorrect
Error:
Frame no.
incorrect
Yes
Dispatch in
database
Send [NAK]
59
STA
Reset Retry
Counter
Send [ENQ]
Start Timer
Poll RS232
Yes
No
Anything received
?
Yes
[ACK] ?
No
No
Timeout
(10 sec) ?
[ENQ] ?
Yes
Line Test ?
Yes
Wait 10 sec
No
Yes
Wait 10 sec
Error:
No answer from
host
No
Error: Impossible
to get on line
Increment retry
counter
Error:
Answer different
from [ACK]
60
Yes
Cnt > x ?
(x=1 to 9)
No
STA
F
No
Reset Retry
Counter
Send Record
Start Timer
No
Poll RS232
No
Anything received
?
Yes
[ACK] or
[EOT] ?
Yes
Last Record ?
No
No
Wait 15 sec
Timeout
(10 sec) ?
Yes
Increment retry
counter
Cnt > x ?
(x=1 to 9)
Yes
Error:
No answer from
host
Error:
Answer different
from [ACK]
Yes
61
Send [EOT]
62
STA
STA
(STA to Host)
Record name
Message Header Record
Request Info. Record
Message Terminator Record
Worklist Message:
(Host to STA)
Record ID
H
P
Record name
Message Header Record
Patient Record 1
Test Order Record 1
O
...
O
L
Result Message:
(STA to Host)
Record ID
H
P
O
R
M
...
R
M
L
Record name
Message Header Record
Patient Record
Test Order Record
Result Record 1
Manufacturer Information Record 1
...
Result Record n
Manufacturer Information Record n
Message Terminator Record
A worklist is normally sent in response to a worklist request, although, the ASTM protocol also allows
the sending of a modified worklist for an already existing sample entry at the STA without first sending
a request.
for STA and STA-C:
If the operator identifies and positions the samples in routine so fast that the worklist request for the
next sample is earlier than the worklist from the host for the previous sample the request from the STA
has higher priority and the host must buffer the request until he gets the line for sending the worklist.
Depending on the speed of the operator it could happen that the host must buffer all requests of one
drawer.
When the host gets the line for worklist transmission the host can send the methods for all buffered
samples within one worklist transmission by repetition of the Patient and Test Order records (see
Worklist above)
63
STA
Name
Rec ID Sender
ASTM
Spec
Message Header
STA/Host
7.1.
Patient Information
STA/Host
8.1.
Request Information
STA
Sample ID
Test Order 1
Host
9.4.
Test Order 2
STA
Sample ID
9.4.
Result
STA
10.1.
Manufacturer
Information
STA
15.1.
Message Terminator
STA/Host
12.1.
13.1.
Start-of-text
[STX]
Frame Number
Record Type
Data
Section
End Code
[ETX] CH CL [CR][LF]
variable
If the record length (Record Type + Data Section) exceeds 240 characters the record is divided into
several parts. Each part, except the last, replaces the [ETX] character with [ETB].
122
7A
(decimal)
(hexadecimal)
The two characters 7 and A are transferred as the checksum characters CH and CL
respectively.
64
STA
Download Example:
[STX]1H|\^&|||99^2.00[CR][End-code]
Example
Content
Workl. Request
/ Result
Worklist
max.
Length
ASTM
Spec.
[STX]
Start-of-text
1381
1381
Record Type ID
7.1.1
7.1.2
H = Header record
|\^&
Delimiter definition
| = field delimiter
\ = repeat delimiter
^ = component delimiter
& = escape delimiter
Field 3 and 4 not used
7.1.5
Sender Name or ID
99
^
2.00
Processing ID
7.1.12
7.1.13
14
7.1.14
P = Production
Q = Quality Control
1.00
Version No
ASTM protocol version, currently
1.00
19950112
104500
[CR]
Carriage return
1394
[End-code]
End-of-text, Checksum,
Carriage return,
Line feed
1381
Format: YYYYMMDDHHMMSS
65
STA
STA-R
[STX]1P|1|||Info 1^Info 2^Info 3^Inf4||19941213[CR][End-code]
Example
Content
Result
Worklist
max.
Length
ASTM
Spec.
[STX]
Start-of-text
1381
1381
Record Type ID
8.1.1
8.1.2
P = Patient record
1
Sequence Number
Field 3 and 4 not used
8.1.5
Patient ID No.3
Info 1
^Info 2
^Info 3
^Inf4
16
12
6
4
19941213
BirthDate
Format: YYYYMMDD
only
STA-R
Extended
only
STA-R
Extended
8.1.8
[CR]
Carriage return
1394
[End-code]
1381
Notes:
Field 5: Empty information fields do not overwrite existing information fields at the instrument.
66
STA
[STX]1Q|1|^100001[CR][End-code]
Example
Content
Wl Request
STA > Host
[STX]
max.
Length
ASTM
Spec.
Start-of-text
1381
1381
Record Type ID
12.1.1
12.1.2
Q = Request record
1
Sequence Number
12.1.3
16
Carriage return
1394
1381
67
STA
Download Example
[STX]1O|1|100001||^^^10\^^^11\^^^12|R[CR][End-code]
Example
Content
Result
Worklist
max. ASTM
Length Spec.
[STX]
Start-of-text
1381
1381
Record Type ID
9.4.1
Sequence Number
9.4.2
Specimen ID
16
9.4.3
3 per
rank
9.4.5
9.4.6
O = Order record
1
100001
sample barcode
^Rack ID (only patient result)
^Rack Position (only pat. Res)
^Lot Number (only QC result)
\^^^11
\^^^12
R = Routine
S = STAT
[CR]
Carriage return
1394
[End-code]
End-of-text, Checksum,
Carriage return,
Line feed
1381
68
STA
[STX]1R|1|^^^10|100|%||||F||||19950112134500[CR][End-code]
Example
Content
Result
STA > Host
[STX]
max.
Length
ASTM
Spec.
Start-of-text
1381
1381
Record Type ID
10.1.1
10.1.2
R = Result record
1
Sequence Number
3 per
rank
Universal Test ID
^
^
^10
100
%
10.1.4
10.1.5
Units
Fields 6 to 8 are not used
10.1.9
14
10.1.13
Carriage return
1394
End-of-text, Checksum,
Carriage return,
Line feed
1381
Result Status
F = Final results
Fields 10 to 12 are not used
19950112
134500
[CR]
[End-code]
If STA,
only for control
results
Field 5: Units
Units
Result Format
sec
xxx.x
%, mg/dl
xxxxx
OD, OD/min
x.xxx
xx.xx
0 to 3 decimals
69
STA
Example
Content
Result
STA > Host
[STX]
max.
Length
ASTM
Spec.
Start-of-text
1381
1381
Record Type ID
15.1.1
M = Manufacturer Information
record
1
Sequence Number
15.1.2
Error Code
15.1.3
15.1.4
1394
1381
Alarm Code
@ = no alarm (see tables below)
[CR]
Carriage return
to be confirmed
technical error
> Tmax
< Tmin
margin > tolerance
QNS
R < R min. /colorimetry
confirmed
Notes:
In error case of 'Quantity not sufficient' the STA sends an error code 2.
70
Remark
STA
@
A
B
C
D
E
F
G
H
40 hex
41 hex
42 hex
43 hex
44 hex
45 hex
46 hex
47 hex
48 hex
No alarm:
Result:
Calibration Control:
Quality Control:
Quality Control:
Arm #3:
Arm #2:
Arm #1:
Result:
I
J
K
L
M
N
O
49 hex
4A hex
4B hex
4C hex
4D hex
4E hex
4F hex
Result:
Result:
Reagent drawer:
Syringe Arm #3:
Syringe Arm #2:
Syringe Arm #1:
Tolerance
Remark
Confirmed with T>max.
Overridden
Out of range or not done
Overridden
No level detection
No level detection
No level detection
Value in primary units skewed
(results cut to limit value)
Dilution change (in rerun)
Rerun test
Temperature out of limit
Maintenance date overdue
Maintenance date overdue
Maintenance date overdue
Duplicate measure
Only STA-R Ext.
Notes:
If there are multiple alarms for a result, the highest priority code is transmitted. Alarm codes are
classified from @ to N/O. The highest priority is code @.
71
STA
Example
Content
Wl. Request /
Result
STA>Host
[STX]
Start-of-text
1381
1381
Record Type ID
L = Terminator record
13.1.1
Sequence Number
13.1.2
Terminator Code
N = Normal end of
message
13.1.3
[CR]
Carriage return
1394
[End-code]
End-of-text, Checksum,
Carriage return, Line feed
1381
Meaning
02 hex
Start of Text
[STX]
03 hex
End of Text
[ETX]
04 hex
End of Transmission
[EOT]
05 hex
Enquiry
[ENQ]
06 hex
Acknowledge
[ACK]
0A hex
Line Feed
Mnemonic
[LF]
[CR]
15 hex
Not Acknowledged
[NAK]
17 hex
[ETB]
72
Worklist
max. ASTM
Length Spec.
Host>STA
STA
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Production
Version level of ASTM specs. (E1394-91)
Date (Format: YYYYMMDD)
Time (Format: HHMMSS)
Request record
Request number
Sample Identification
Termination record
Sequence no.
Normal end
73
STA
12:38:43
12:38:43
12:38:43
12:38:44
12:38:44
12:38:44
12:38:45
12:38:45
12:38:45
12:38:45
12:38:45
[ENQ]
[ACK]
[STX]1H|\^&|||99^2.00[CR][ETX]E9[CR][LF]
[ACK]
[STX]2P|1|||Info 1^Info 2^Info 3^Inf4[CR][ETX]B8[CR][LF]
[ACK]
[STX]3O|1|001||^^^6\^^^9|R[CR][ETX]11[CR][LF]
[ACK]
[STX]4L|1|N[CR][ETX]07[CR][LF]
[ACK]
[EOT]
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Patient record
Patient number
Info field 1
Info field 2
Info field 3
Info field 4
Test order record
Test order record number
Sample Identification
Selected methods : 6, 9
Routine sample
Termination record
Sequence no.
Normal end
74
STA
14:21:28,35
14:21:28,37
14:21:28,41
14:21:28,42
14:21:28,48
STA-R
Host
STA-R
Host
STA-R
Host
14:21:28,49
14:21:28,53
14:21:28,54
14:21:28,57
14:21:28,58
14:21:28,59
[ENQ]
[ACK]
[STX]1H|\^&|||99^2.00[CR][ETX]E9[CR][LF]
[ACK]
[STX]2P|1|||Inf1^Inf2^Inf3^Inf4|||19941213[CR][
ETX]1D[CR][LF]
[ACK]
[STX]3O|1|0009||^^^2\|S[CR][ETX]F3[CR][LF]
[ACK]
[STX]4L|1|N[CR][ETX]07[CR][LF]
[ACK]
[EOT]
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Patient record
Patient number
Info field 1
Info field 2
Info field 3
Info field 4
Birthdate 13th of December 1994
Test order record
Test order record number
Sample Identification
Selected method : 2
STAT sample
Termination record
Sequence no.
Normal end
75
STA
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Production
Version level of ASTM specs. (E1394-91)
Date (Format: YYYYMMDD)
Time (Format: HHMMSS)
Patient record
Patient number
Info field 1 (Info fields 2 to 4 are empty)
Test order record
Record number
Sample Identification
Routine
Result record
Result number
Main unit rank
Result for main unit
Unit
Final result
Manufacturer information record
Sequence number
Error code
Alarm code
Result record
Result number
Secondary unit rank
Result for secondary unit
Unit
Final result
Manufacturer information record
Sequence number
Error code
Alarm code
Termination record
Sequence no.
Normal end
76
STA
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Production
Version level of ASTM specs. (E1394-91)
Date (Format: YYYYMMDD)
Time (Format: HHMMSS)
Patient record
Patient number
Info field 1
Info field 2
Info field 3
Info field 4
Birthdate
Test order record
Record number
Sample Identification
Rack no.
Position no.
STAT
Result record
Result number
Main unit rank
Result for main unit
Unit
Final result
Test completed 10th of February 1999, 14:31:24
Manufacturer information record
Sequence numberError code
Alarm code
77
STA
13:37:59
13:37:59
13:37:59
13:38:00
13:38:00
13:38:00
13:38:00
13:38:01
13:38:01
13:38:01
13:38:02
13:38:02
13:38:02
13:38:02
13:38:03
[ENQ]
[ACK]
[STX]1H|\^&|||99^2.00|||||||Q|1.00|19950307133600[CR][ETX]24[CR][LF]
[ACK]
[STX]2P|1|||[CR][ETX]B3[CR][LF]
[ACK]
[STX]3O|1|11073|||R[CR][ETX]7D[CR][LF]
[ACK]
[STX]4R|1|^^^6|50|%||||F||||19950307104300[CR][ETX]81[CR][LF]
[ACK]
[STX]5M|1|A|@[CR][ETX]B8[CR][LF]
[ACK]
[STX]6L|1|N[CR][ETX]09[CR][LF]
[ACK]
[EOT]
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Quality Control
Version level of ASTM specs. (E1394-91)
Date (Format: YYYYMMDD)
Time (Format: HHMMSS)
Patient record
Patient number
Test order record
Record number
Control Identification
Routine
Result record
Result number
Main unit rank : 1
Result for main unit : 50
Unit
Final result
Date
Time
Manufacturer information record
Sequence number
Error code
Alarm code
Termination record
Sequence no.
Normal end
Trace Example 12 : Quality Control Result Transmission (ASTM/STA, STA-C, STA-R Strict)
78
STA
Header record
Delimiter Definition
Station number
Version level of Stage instrument implementation
Quality Control
Version level of ASTM specs. (E1394-91)
Date (Format: YYYYMMDD)
Time (Format: HHMMSS)
Patient record
Patient number
Test order record
Record number
Control Identification
Control Lot Number
Routine
Result record
Result number
Main unit rank : 1
Result for main unit : 50
Unit
Final result
Date
Time
Manufacturer information record
Sequence number
Error code
Alarm code
Termination record
Sequence no.
Normal end
79
STA
80
8
10
12
14
15
16
17
18
19
20
21
22
23
24
25
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
41
42
44
45
50
51
53
54
55
55
56
58
59
60
61
62
STA
8
9
40
40
43
43
43
47
48
49
49
50
53
55
64
64
65
66
67
68
69
69
70
70
71
72
72
42
46
52
52
54
55
73
74
75
76
77
78
79
81
STA
Title
Text
12.01.00
12.02.00
12.03.00
12.03.01
12.04.00
12.05.00
12.06.00
12.07.00
Incorrect checksum
12.08.00
12.09.00
No response
12.09.01
Defective transmission
(NACK response)
12.09.02
12.10.00
12.11.00
12.12.00
12.13.00
12.14.00
Invalid identity
> 8 characters
12.15.00
12.20.00
12.21.00
12.22.00
No response
12.23.00
12.24.00
12.25.00
12.26.00
12.27.00
82
STA
Sub-Category
Message
5120
5120
5120
5120
5120
5120
5120
5120
5120
5120
5120
10
5120
11
83
STA
Char
Char
Char
Char
Char
Char
Char
Hex Dec
Hex Dec
Hex Dec
Hex Dec
Hex Dec
Hex Dec
Hex Dec
Hex Dec
NUL
00
DLE
0
10
11
12
13
14
15
16
17
18
19
10
1A
11
1B
12
1C
13
1D
14
1E
15
1F
SOH
01
84
36
34
37
35
38
36
39
37
40
38
41
39
26
42
3A
2B
43
3B
28
2C
44
3C
29
2D
45
3D
30
2E
46
3E
31
2F
47
3F
42
51
43
52
44
53
45
54
46
55
47
56
48
57
49
58
4A
59
4B
60
4C
61
4D
62
4E
63
4F
66
52
67
53
68
54
69
55
70
56
71
57
72
58
73
59
74
5A
75
5B
76
5C
77
5D
78
5E
79
5F
83
63
84
64
85
65
86
66
87
67
88
68
89
69
90
6A
91
6B
92
6C
93
6D
94
6E
95
6F
72
99
73
100
74
101
102
103
104
^
_
o
111
121
z
7A
122
{
7B
123
|
7C
124
}
7D
n
110
120
y
79
m
109
119
x
78
l
108
118
w
77
k
107
117
v
76
j
106
116
u
75
i
105
115
114
113
98
112
71
97
70
62
>
82
p
96
61
<
81
60
80
51
65
50
US
50
P
64
27
41
*
2A
49
RS
SI
0F
29
GS
SO
0E
25
FS
CR
0D
28
ESC
FF
0C
33
24
SUB
VT
0B
35
40
27
EM
LF
0A
23
32
&
26
CAN
HT
09
22
34
@
48
%
25
ETB
BS
08
21
31
$
24
SYN
BEL
07
20
33
#
23
NAK
ACK
06
19
30
"
22
DC4
ENQ
05
18
32
!
21
DC3
EOT
04
17
DC2
ETX
03
Space
20
DC1
STX
02
16
125
~
7E
126
DEL
7F
127