Professional Documents
Culture Documents
Astm Ibm PDF
Astm Ibm PDF
protocol
QUANTA Link™
ASTM communication protocol
Index
1. INTRODUCTION ..................................................................................................................... 3
2. REFERENCES .......................................................................................................................... 3
3. LOW LEVEL PROTOCOL .......................................................................................................... 3
4. PHYSICAL LAYER ................................................................................................................... 3
4.1. DATA LINK LAYER.........................................................................................................................3
4.1.1. Establishment Phase .........................................................................................................4
4.1.2. Transfer Phase .................................................................................................................5
4.1.3. Termination Phase ............................................................................................................5
4.1.4. Error Recovery ..................................................................................................................5
4.1.5. Restrictions ......................................................................................................................6
5. HIGH LEVEL PROTOCOL........................................................................................................ 6
5.1. MESSAGE SPECIAL CHARACTERS ........................................................................................................7
5.2. DATA RECORD USAGE .....................................................................................................................7
5.2.1. Message Header Record ....................................................................................................7
5.2.2. Patient Identifying Record..................................................................................................8
5.2.3. Test Order Record........................................................................................................... 10
5.2.4. Result Record ................................................................................................................. 11
5.2.5. Comment Record ............................................................................................................ 12
5.2.6. Scientific Record ............................................................................................................. 13
5.2.7. Manufacturer Information Record ..................................................................................... 13
5.2.8. Message Terminator Record ............................................................................................. 13
ANEX I. MESSAGES EXAMPLES .............................................................................................. 14
Page 2 of 15
ASTM communication protocol
1. Introduction
This document describes the standard Instrument Interface for Quanta Link. The interface is based in ASTM
standards E 1381 91 and E 1394 91. Covers low level protocol (physical and data link layer) and high level
protocol.
The following lines are all the available messages between Quanta Link and the instrument:
New Requests from HOST to Quanta Link. (T requests)
Results from Quanta Link to HOST.
2. References
Low level Protocol: As specified in ASTM standard E 1381 91
High level Protocol: As specified in ASTM standard E 1394 91
4. Physical Layer
Quanta Link allows asynchronous Network connections via TCP/IP Sockets, acting as a server. The
communication is permanent and not only established when there are messages to send.
Quanta Link will be listening in a specific IP address and Port. The IP address and Port will be defined during
the phase of implantation of the system in the specific customer. It is possible to test the system via Internet.
Page 3 of 15
ASTM communication protocol
Page 4 of 15
ASTM communication protocol
Each frame starts with the <STX> character and a frame number that is a digit ranging from 0 to
7. The frame number begins with 1 with the first frame and it is incremented by one for every new
frame, rolling over to 0 after 7. This number permits the receiver to distinguish between new and
retransmitted frames.
The checksum permits the receiver to detect a defective frame, and is encoded as two characters
that are sent after the <ETB> or <ETX>. The computation for the checksum does not include
<STX>, the checksum characters, or the trailing <CR> and <LF>. Each other characters are
added to the checksum modulo 256. The checksum is an integer represented by eight bits that can
be considered as two groups of four bits. Each group is converted to the ASCII character of the
hexadecimal representation. The two characters are transmitted as the checksum.
After a frame is sent, the sender stops the transmission until a reply is received. The receiver can
reply with:
<ACK> that signifies that the last frame was received successfully
<NAK> that signifies that the last frame was not successfully
<EOT> that signifies that the last frame was received successfully but the receiver is requesting to
stop the transmitting. Its not mandatory to stop the transmission, but if the sender chooses to honor
the receiver interrupt request, it must first enter the termination phase to return the data link to the
neutral state, giving the receiver an opportunity to enter the establishment phase and become a
sender. The original sender must not enter the establishment phase for at least 15 seconds or until
the receiver has sent a message and returned the data link to the neutral state.
4.1.4.2. Timeouts
Timers provide a method for recovery if the communication line or other device fails to respond.
Timeouts during the establishment phase:
Page 5 of 15
ASTM communication protocol
The sender sets a timer when transmitting the <ENQ>. If a reply of <ACK>, <NAK>, or <ENQ> is
not received within 15 seconds, a timeout occurs. After a timeout, the sender enters the termination
phase.
In case of contention (both systems simultaneously transmit an <ENQ>), if the computer (as
receiver) sets a timer. If an <ENQ> is not received within 20 seconds, a timeout occurs. After a
timeout, the receiver regards the line to be in neutral state.
Timeouts during the transfer phase:
The sender sets a timer when transmitting the last character of a frame. If a reply is not received
within 15 seconds a timeout occurs. After a timeout, the sender enters the termination phase.
The receiver sets a timer when first entering the transfer phase or when replying to a frame. If a
frame or <EOT> is not received within 30 seconds, a timeout occurs. After a timeout, the receiver
regards the line to be in neutral state.
4.1.5. Restrictions
The data link protocol is designed for sending character based message text. Restrictions are placed on which
characters may appear in the message text. The restrictions make it simpler for senders and receivers to
recognize replies and frame delimiters. Additional characters are restricted to avoid interfering with software
controls for devices such as multiplexes.
A <LF> character is not permitted to appear in the message text; it can appear only as the last character of a
frame.
None of the ten transmission control characters, the <LF> format effect or control character, or four device
control characters may appear in message text. The restricted characters are: <SOH>, <STX>, <ETX>,
<EOT>, <ENQ>, <ACK>, <DLE>, <NAK>, <SYN>, <ETB>, <LF>, <DC1>, <DC2>, <DC3>, and <DC4>.
Delimiter Character
A null value for a field does not overwrite existing data in the receiving system. A field containing only a pair
of double quotes (ASCII 32) should be treated as an instruction to the receiver that the existing contents
pertaining to that field definition should be deleted.
1 Record Type * * H
2 Delimiters Definition * * Always the standard "|\^&"
3 Message Control ID Ignored
4 Access Password Ignored
5 Sender Name or ID Ignored when received.
Quanta Link always sends
Page 7 of 15
ASTM communication protocol
"Quanta Link"
6 Sender Street Address Ignored
7 Reserved Field Ignored
8 Sender Phone Number Ignored
9 Characteristics of Sender Ignored
10 Receiver ID Ignored when received.
Quanta Link always sends the
text "DMS"
11 Comment or Special Ins Ignored
12 Processing ID * * Always assumed "P" when
received. Quanta Link always
sends "P"
13 Version Number * * Ignored when received.
Quanta Link always sends the
text "1.0"
14 Message Date and Time * * In standard format
YYYYMMDDHHMMSS
Example:
H|\^&|||Quanta Link|||||DMS||P|1.0|19990213134530<CR>
Page 8 of 15
ASTM communication protocol
Example:
P|1|00095020|28269|123456^1234567^12345678|SURNAME^NAME||19701010120000|M||ADRESS^CITY^
STATE||6297471 71|Doctor 1|ICU||||d1||||comments|||Location|||||||Service 1||<CR>
Page 9 of 15
ASTM communication protocol
Page 10 of 15
ASTM communication protocol
Examples:
O|1|90015041||^^^AFOL|R|20071127111010|20071127120000||||A|||||Doctor1||Collection
center|||||||F||||Service1|<CR>
O|2|90015041||^^^C1^1:20|R|20071127111010|20071127120000||||A|||||Doctor1||Collection center
2|||||||F||||Service1|<CR>
1 Record Type * R
2 Sequence Number * Sequence number of the result record transmitted.
3 Universal Test ID * For ELISA and IFA global results:
^^^TESTCODE
For dilutions results:
^^^DILLUTION^^^DILLUTION_INDEX
For dilutions patterns:
^^^PATTERN CODE^PATTERN DESCRIPTION^^^
4 Data Measurement * For ELISA and IFA global results:
Result
For Dilutions:
RESULTCODE^RESULTDESC
(Ignored for Dilution patterns)
5 Units * For ELISA and IFA global results:
Interpretation
(Ignored for Dilution patterns)
6 Reference Ranges Ignored
7 Result Abnormal Flags * Defines the pathology status of the result (used for
ELISA and IFA global results). Values shall be:
L for below low normal.
H for above high normal.
Page 11 of 15
ASTM communication protocol
Examples:
Sending an ELISA result:
R|1|^^^ELISA|result 2|Interpretation||||F|20091126155243|admin|
Sending an IFA result with dilutions. Note the Order Test record to identify dilution results belonging to the
same test:
R|1|^^^HEP2|result 2|Interpretation||||F|20091126155243|admin|
O|2|12345677^1^||^^^HEP2|R|20091125120000|||||A|||||||99|||||||F|||||
R|1|^^^Dillution^^^1:80|2^dilution_res 2|||||F|20091126155243|admin|||
R|2|^^^HOM^Homogeneous^^^||||||F|20091126155243|admin|||
R|3|^^^SPE^Speckled^^^||||||F|20091126155243|admin|||
O|3|12345677^2^||^^^HEP2|R|20091125120000|||||A|||||||99|||||||F|||||
R|1|^^^Dillution^^^1:160|4^dilution_res 4|||||F|20091126155243|admin|||
R|2|^^^SPE^Speckled^^^||||||F|20091126155243|admin|||
Page 12 of 15
ASTM communication protocol
Example:
C|1||Comments||<CR>
Example:
L|1|N<CR>
Page 13 of 15
ASTM communication protocol
Page 14 of 15
ASTM communication protocol
Page 15 of 15