Sta R ANCG218 I

Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

ANCG218

USER INTERFACE
RS232-C

Réf. : 27634
ANCG218


is a trademark registered
by Diagnostica Stago
USER INTERFACE/RS232-C STA-R ANCG218
Table of Contents

TABLE OF CONTENTS
1. Physical Characteristics 1

2. Standards 1

3. Terminology 1

3.1 Global Definitions 1

3.2 Definition of Characters 2

4. Communication Menu and sequence number 3

4.1 Communication Menu 3

4.2 Sequence number 3

5. Exchange Protocol 4

5.1 Definition of Line Modes on the STA-R 4

5.2 Definition of Phases of Communication 4

5.3 Host Computer ➝ STA-R Exchanges 4

5.4 Host Computer ➝ Host Computer Exchanges 4

6. Record Definitions 5

6.1 Message Header Record 5

6.2 Patient Information Record 7

6.3 Test Order Record 9

6.4 Result Record 10

6.5 Request Information Record 13

6.6 Message Terminator Record 14

6.7 Manufacturer Information Record 14

7. Typical Contents of Some Messages 16

7.1 Result Transmission (STA-R → Host) 16

V 1.0 – March 02 I
Table of Contents ANCG218
USER INTERFACE/RS232-C STA-R

7.2 Request for a Working List 16

7.3 Working List Return 16

8. Flowcharts (ASTM) 17

8.1 Sequencing of Reception/Transmission 17

8.2 Acquisition of a Record from the Host Computer 18

8.3 Establishment Phase (STA-R → Host Computer) 19

8.4 Transfer Phase (STA-R → Host Computer) 20

8.5 Termination Phase (STA-R → Host Computer) 21

9. Examples of Traces (ASTM) 22

9.1 Transmission of Patient File (STA-R → Host Computer) 22

9.2 Request for a Working List 24

9.3 Working List Return 24

9.4 Transmission of a Quality Control Result (STA-R → Host Computer) 25

9.5 On-Line Test 26

II V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Revision Table

Revision Table

Manual Date List of Modifications


Version

V 1.A0 August 1997 Preliminary version


V 1.0 February 1999 Original Version
V 1.0 March 2002 Addition of an automatically incremented sequence number (in the
Order frame) transmitted to the host

V 1.0 – March 02 i
ANCG218
USER INTERFACE/RS232-C STA-R ANCG218

1. Physical Characteristics
• Interface: Series type, RS232C standard

• Connections: DB-9: male plug on STA-R


pin 2: reception input
pin 3: transmission output
pin 5: ground

• Exchange no hardware control line is connected;


protocol:

• Baud Rate (*): 300, 600, 1200, 2400, 4800 or 9600 baud;

• Parity (*): even, odd or none;

• Data Bit(*): 7 or 8;

• Stop Bit (*): 1 or 2.

(*) These parameters have to be specified in the "Communications" menu, see § 4 p 3.

2. Standards
The ASTM connection protocol on STA-R is based on the two following standards:
− E 1381-94 : Specification for Low-Level Protocol to transfer messages between Clinical
Laboratory Instruments and Computer Systems,
− E 1394-97 : Standard Specification for transferring information between Clinical Instruments and
Computer Systems.

3. Terminology

3.1 Global Definitions


Sender: The device that has a message to send and that initiates
transmission process.
Upload: Data transmitted from the instrument (STA-R) to the host computer.
Receiver: The device that responds to the sender.
Download: Data transmitted from the host computer to the instrument (STA-R).
Frame: All framing required for transmission of data. This framing will
include:
[STX] [Frame Number] [DATA] [ETB] or [ETX] [C1] [C2] [CR] [LF].
Frame Number: Frame number permits the receiver to distinguish between new and
(Fn) retransmitted frames.
ASCII digit ranging from 0 to 7. The frame number begin at 1 with the
first frame of transfer phase. It is incremented by one for every new
frame transmitted. After 7, the frame number rolls over to 0, and
continue in this fashion.
Message: A group of records that begins with a Header record, and ends with a
Terminator record.

V 1.0 – March 02 1
ANCG218
USER INTERFFACE/RS232-C STA-R

Record: This is the DATA as described within the frame. If the DATA is longer
than 240 characters, then it must be split into two parts and sent in
two frames. The intermediate frame will use the [ETB] character, and
the ending frame will use the [ETX] character.
For our application:
in download mode, a frame may include several records, indeed a
message;
in upload mode, one frame is used for sending each record.
List of records selected:
− H (Header);
− P (Patient);
− O (Order);
− R (Result);
− Q (Query);
− L (Terminator);
− M (Manufacturer).

3.2 Definition of Characters


[ACK] (06h) acknowledge without error;
[NACK] (15h) acknowledge with error;
[ETX] (03h) end of text transmission;
[STX] (02h) start of text transmission;
[C1] most significant character of checksum;
[C2] least significant character of checksum;
[ENQ] (05h) request for line (enquiry);
[ETB] (17h) end of transmission block;
[EOT] (04h) end of transmission;
[CR] (0Dh) carriage return;
[LF] (0Ah) line feed.

Calculation of Frame Checksum = the checksum is computed by adding the binary values of the
characters (except for [STX], [C1], [C2], [CR] and [LF]), keeping the least significant eight bits of the
result. The checksum is encoded as two characters.
For example a checksum of 122 can be represented as 7A in hexadecimal, 7 [C1] then A [C2]: the
checksum will be transmitted as the ASCII character one after the other one.

2 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
4. Communication Menu and sequence number

4.1 Communication Menu

Access the Communications menu:

− Click on the Setup icon ,


− Click on the Communications tab.

This STA-R menu is used, , amongst other things, to define the communication parameters between
the STA-R and the host computer.

Description of the parameters:


− ASTM protocol type Strict (same as the STA or STA Compact RS232-C Interface
Protocol) or Extended.
− Station number (1..99) Number by which the central site identifies the STA-R.
Maximum = 99.
− Baud Rate (baud) Chosen transmission speed: 300, 600, 1200, 2400, 4800 ou
9600.
− Parity : Type of parity chosen = None, even or odd.
− Number of Data Bits 7 or 8
− Number of Stop Bits 1 or 2
− Number of Retries (1..9) Number of times the STA-R returns the frame when it receives a
character different from [ACK] or [EOT]. In accordance with the
Standard E1381-94, this number has to be set to 6.

4.2 Sequence number

An automatically incremented sequence number is generated by the STA-R® when a new patient file
is created. This number is added to the data transmitted when the STA-R® uploads a result to the
host.
− Location in the message: frame Order, field 4 Instrument Specimen ID
− Value: between 1 through 9999
− Reset: when the value 9999 is reached
− Application : Type 1 for the key SendNumberSequence in the file OptionsGlobales.ini, section
[Communications]

V 1.0 – March 02 3
ANCG218
USER INTERFFACE/RS232-C STA-R

5. Exchange Protocol

5.1 Definition of Line Modes on the STA-R


− Idle = no communication in progress
− Tx = transmission by STA-R
− Rx = reception by STA-R

5.2 Definition of Phases of Communication

ASTM communication is in three stages:


− Establishment phase: line picked up by the host computer or the STA-R;
− Transfer phase: transmission of the different records making up the message;
− Termination phase: the line is released.

5.3 Host Computer ➝ STA-R Exchanges


STA-R responses to characters transmitted by the host computer:
1. Reception of the [ENQ] character transmitted by the host computer:
If the STA-R is in the Idle line mode, it transmits an [ACK] character (06h) and then changes to
reception line mode Rx.
If after 30 seconds, no character is received, then STA-R returns to the Idle line mode.

2. Reception of the [EOT] character transmitted by the host computer:

• If the STA-R is in the Rx reception line mode and a header record has been received, the
STA-R then changes to Idle line mode (releasing the line); the STA-R then analyses the
records received;

• If the STA-R is in Tx transmission line mode, the [EOT] character is regarded as an


acknowledgement.

3. Reception of other characters transmitted by the host computer:


The STA-R proceeds to enter the characters received. After entering a complete frame, the STA-
R verifies the checksum. If this is satisfactory, the STA-R acknowledges by returning an [ACK]
character (06h). If not, a [NACK] character (15h) is returned.
Following the upload of the characters [ACK] or [NACK], if after 30 seconds, no character is
received, then STA-R returns to the Idle line mode.

5.4 Host Computer ➝ Host Computer Exchanges

a) Establishment Phase

If the line mode is Idle, the STA-R sends an [ENQ] character (enquiry).

The following are the possible responses from the host computer:

1. Transmission of an [ACK] Character by the Host Computer:


The STA-R changes to Tx transmission line mode and initiates the record transfer phase if it is in
normal mode or the termination phase (transmission of an [EOT] character) if it is in line test
mode.

2. Transmission of an [ENQ] Character by the Host Computer:


The STA-R waits 5 seconds and then returns an [ENQ] character.

3. Transmission of Other Characters by the Host Computer:


The STA-R waits 10 seconds and then returns the [ENQ] character. When the value of the

4 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
"Number of On Error Retries is reached, the STA-R changes to termination phase (transmission
of an [EOT] character) and displays an error message.

4. No Response from the Host Computer:


The STA-R waits 15 seconds, then changes to termination phase (transmission of an [EOT]
character) and displays an error message.

b) Transfer Phase (STA-R ➝ Host Computer)

Transmission of the first record by the STA-R.

The following are the possible responses of the host computer:

1. Transmission of the [ACK] or [EOT] Character by the Host Computer:


The STA-R sends the next record.

☞ Caution! The STA-R regards the [EOT] character as an acknowledgement character and
continues to transmit records.

2. Transmission of Other Characters by the Host Computer:


The STA-R waits 10 seconds before returning the record. If the number of on Error Retries is
reached, the STA-R changes to termination phase (transmission of an [EOT] character) and
displays an error message.

3. No Response from the Host Computer:


The STA-R waits 15 seconds and then changes to termination phase (transmission of an [EOT]
character) and displays an error message.

c) Termination Phase (STA-R ➝ Host Computer)

The STA-R transmits an [EOT] character and does not wait for any return character.

The STA-R changes to Idle line mode.

d) Example of Host Computer → STA-R Exchange

STA-R Host Computer

[ENQ] ---------->
<---------- [ACK] or [EOT]
[STX] 1 [DATA1] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]
[STX] 2 [DATA2] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]
[STX] 3 [DATA3] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]

[EOT] ---------->
No response expected

6. Record Definitions

6.1 Message Header Record

Purpose : To identify the sender.

STA-R implementation example:

V 1.0 – March 02 5
ANCG218
USER INTERFFACE/RS232-C STA-R

H|\^&| | | 99 ^ 2.00 | | | | | | | P | 1.00 | 19990226103432 [CR]


Description of a Message Header Record:

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

7.1.1 Record Type ID


H = header record Yes Yes
7.1.2 Delimiter Definition
| = defined as field delimiter Yes Yes
(7Ch)
\ = defined as repeat field
delimiter (5Ch)
^ = defined as component
delimiter (5Eh)
& = defined as Escape
delimiter (26h)
7.1.3 | Message Control ID No No
7.1.4 | Access Password No No
7.1.5 | Sender Name or ID
99 = Instrument ID ➊ (Numeric Yes Yes
1 to 99)
^
2.00 = Version level of Stago Yes Yes
instrument implementation
7.1.6 | Sender Street Address No No
7.1.7 | Reserved Field No No
7.1.8 | Sender Telephone Number No No
7.1.9 | Characteristics of sender No No
7.1.10 | Receiver ID No No
7.1.11 | Comment or Special No No
Instructions

6 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

7.1.12 | Processing ID
P P = Production Yes No
Q = Quality Control Yes No
T = Training No No
D = Debugging No No
7.1.13 | Version No. Yes No
1.00 = Version level of ASTM
specifications (E 1394-97)
7.1.14 | Date and Time of Message Yes Yes
199902261 Format: yyyymmddhhmmss
03432 yyyy = year
mm = month
dd = day
hh = hour
mm = minutes
ss = seconds
[CR] carriage return

➊ This parameter is defined in the STA-R .

6.2 Patient Information Record

Purpose : To give information on the Patient.

STA-R implementation example:

P|1| | | Item 2.^ Item 3.^ Item 4.^ Item 5. [CR]


The contents of the Item 2 to 5 is defined in the Global Option menu, "Patient File Acquisition" area.

Description of a Patient Information Record:

V 1.0 – March 02 7
ANCG218
USER INTERFFACE/RS232-C STA-R

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

8.1.1 Record Type ID Yes Yes


P = Patient record (50h)
8.1.2 | Sequence Number Yes Yes
1
8.1.3 | Practice Assigned Patient ID No No
8.1.4 | Laboratory Assigned No No
Patient ID
8.1.5 | Patient ID No.3 Yes Yes
Item 2. = 16 Alphanumeric
Characters Max.
^
Item 3. = 12 Alphanumeric
Characters Max.
^
Item 4. = 6 Alphanumeric
Characters Max.
^
Item 5. = 4 Alphanumeric
Characters Max.

[CR] Carriage Return

Note: Fields 8.1.9 to 8.1.35 as defined in the ASTM Specifications E 1394-97 are not supported. In
downloading (Host → STA-R), if these fields exist, they are ignored. In uploading (STA-R →
Host), we use the short record format described above.

8 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
6.3 Test Order Record

Purpose:
− In downloading (Host → STA-R), this record is used by the host computer to give orders to the
instrument (STA-R): list of tests to be run;
− In uploading (STA-R → Host), this record is used by STA-R to give the sample identification.

STA-R implementation example for download:

O | 1 | 00120025 | | ^^^10 \ ^^^11 \ ^^^12 | R [CR]


STA-R implementation example for upload:

O | 1 | 00120025 | | | R [CR]
Description of a Test Order Record:

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

9.4.1 Record Type ID Yes Yes


O = Order record
9.4.2 | Sequence Number Yes Yes
1
9.4.3 | Specimen ID Yes Yes
00120025 = 16 Alphanumeric
Characters Max.
9.4.4 | Instrument Specimen ID
SendSequenceNumber
(in the OptionsGlobales.ini
file) =1 Yes No
≠1 No No
9.4.5 | Universal Test ID No Yes
Universal Test ID Part 1
^
Universal Test ID Name
^
Universal Test ID Type
^
Manufacturer's or Local Code
10 = ID of the first requested
test ➊
\ = Repeat field delimiter

^
^
^

V 1.0 – March 02 9
ANCG218
USER INTERFFACE/RS232-C STA-R

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

11 = ID of the second
requested test ➊
\ = Repeat field delimiter

^
^
^
12 = ID of the third requested
test ➊
9.4.6 | Priority
R R = Routine Yes Yes
S = Stat Yes Yes
A = As soon as possible No No
C = Callback No No
P = Preoperative No No
[CR] Carriage Return

➊ For STA-R, these identifications are the transmission test numbers defined for each test main
units.

Note: Field 9.4.7 to 9.4.31 as defined in the ASTM Specifications E 1394-97 are not
supported. In downloading (Host → STA-R), if these fields exist, they are ignored. In
uploading (STA-R → Host), we use the short record format described above.

6.4 Result Record

Purpose: To transmit Results to the host computer.

STA-R implementation example:

R | 1 | ^^^10 | 100 | % | | | | F | | | | 19990226103109 [CR]


Description of a Result Record:

10 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

10.1.1 Record Type -ID Yes No


R = Result Record (52h)
10.1.2 | Sequence Number Yes No
1
10.1.3 | Universal Test ID Yes No
Universal Test ID Part 1
^
Universal Test ID Name
^
Universal Test ID Type
^
Manufacter's or Local Code
10 = ID of the test ➊
10.1.4 | Data or Measurement Value Yes No
100 = Test result
10.1.5 | Units Yes No
% = Unit of the test result ➋
10.1.6 | Reference Ranges No No
10.1.7 | Result Abnormal Flags No No
10.1.8 | Nature of Abnormality No No
Testing

V 1.0 – March 02 11
ANCG218
USER INTERFFACE/RS232-C STA-R

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

10.1.9 | Result Status


F F = Final results Yes No
C = Correction of previously No No
transmitted results
P = Preliminary results No No
X = Results cannot be done, No No
request will not be
honored
I= In instrument, results No No
pending
S = Partial results No No
M =This result is a MIC No No
level
R = This result was No No
previously transmitted
N = This result record No No
contains necessary
information to run a new
order
Q = This result is a response No No
to an outstanding query
V = Operator verified / No No
approved result
10.1.10 | Date of Change in No No
Instrument Normative
Values or Units
10.1.11 | Operator Identification No No
10.1.12 | Date/Time Test Started No No
10.1.13 | Date/Time Test Completed Yes ➌ No
199902261 Format: yyyymmddhhmmss
03109 yyyy = year
mm = month
dd = day
hh = hour
mm = minutes
ss = seconds
[CR] Carriage return

✟ Caution! One record is used for each result. If for a requested test, result can be expressed in 3
different units, then there will be 3 records.

➊ For STA-R, this identification is the transmission test number defined for each related test unit

12 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
➋ List of units available on STA-R:

Units Result Format

sec., Reference Time xxx.x


%, mg/dl xxxxx
OD, OD/min x.xxx
Ratio, g/l, ng/ml, U/ml, IU/ml, µg/ml xx.xx
UA1, UA2, UA3 0 to 3 decimal

➌ Is only used while uploading quality control results.

✟ Caution! A Result Record is always followed by a Manufacturer Information Record, see § 6.7
p 14.

✟ Caution! The field "date and time" was used for the QC results only for the STA and the STA
Compact.

Note: Field 10.1.14 as defined in the ASTM Specifications E 1394-97 is not supported. In
downloading (Host → STA-R), if this field exist, it is ignored. In uploading (STA-R → Host),
we use the short record format described above.

6.5 Request Information Record

Purpose: For instrument (STA-R), to request the working list (tests to be run).

STA-R implementation example:

Q | 1 | ^ 00120025 [CR]

Description of a Request Information Record:

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

12.1.1 Record Type ID Yes No


Q = Request record
12.1.2 | Sequence Number Yes No
1
12.1.3 | Starting Range ID Number Yes No
Computer System Patient ID
^
Speciment ID
00120025 = 16 Alphanumeric
Characters Max.
[CR] Carriage return

Note: Field 12.1.4 to 12.1.13 as defined in the ASTM Specifications E 1394-97 are not supported.
In downloading (Host → STA-R), if these fields exist, they are ignored. In uplaoding (STA-R
→ Host), we use the short record format described above.

V 1.0 – March 02 13
ANCG218
USER INTERFFACE/RS232-C STA-R

6.6 Message Terminator Record

Purpose: Last record of message.

STA-R implementation example:

L | 1 | N [CR]

Description of a Terminator Record:

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

13.1.1 Record Type ID Yes Yes


L = Terminator record
13.1.2 | Sequence Number Yes Yes
1
13.1.3 | Terminator Code
N N = Normal termination Yes No
T = Sender aborted No No
R = Receiver requested abort No No
E = Unknow system error No No
Q = Error in last request for No No
information
I= No information available No No
from last query
F = Last request for No No
information processed
[CR] Carriage return

6.7 Manufacturer Information Record

Purpose: To transmit result error code and result alarm code.

STA-R implementation example:

M | 1 | A | @ [CR]

Description of a Manufacturer Information Record:

Paragraph's Character Field Description Supported


Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

15.1.1 Record Type ID Yes No


M = Manufacturer Information
Record
15.1.2 | Sequence Number Yes No
1

14 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of

E 1394-97 Upload Download


Standard (STA-R → Host) (Host → STA-R)

15.1.3 | Error Code Yes No


A A = Validated (see error code
list below)
15.1.4 | Alarm Code Yes No
@ @ = No alarm ( see alarm
code list below)
[CR] Carriage return

✟ Caution! A Manufacturer Information Record always follows a Result Record to indicate


the Error and the Alarm Codes of the result.

Examples:

R | 1 | ^^^10 | 100 | % | | | | F | | | | 19990226103109 [CR]

M | 1 | A | @ [CR]

R | 2 | ^^^11 | 13.2 | sec. | | | | F | | | | 19990226103109 [CR]

M | 2 | A | @ [CR]

R | 3 | ^^^12 | 1.23 | INR | | | | F | | | | 19990226103109 [CR]

M | 3 | A | @ [CR]

Definition of Error Codes:

Characters ASCII Code Error Code Definition

'1' 31h "to be validated"


'2' 32h "tech error"
'3' 33h "> Mmax"
'4' 34h "< Mmin"
'5' 35h "diff > tol"
'6' 36h "QNS" (insufficient quantity of plasma)
'8' 38h "linearity"
'A' 41h "Validated"

Definition of Alarm Codes:

Characters ASCII Code Alarm Description

'@' 40h No alarm


'A' 41h Result : Confirmed with T>max.
'B' 42h Not used
'C' 43h Quality Control : out of range or not done
'D' 44h Quality Control : overridden
'E' 45h Arm #3 : no level detection

V 1.0 – March 02 15
ANCG218
USER INTERFFACE/RS232-C STA-R

Characters ASCII Code Alarm Description

'F' 46h Arm #2 : no level detection


'G' 47h Arm #1 : no level detection
'H' 48h Result : value in primary units skewed
'I' 49h Result : dilution change
'J' 4Ah Result : rerun test
'K' 4Bh Reagent drawer : temperature out of limit
'L' 4Ch Syringe Arm #3 : maintenance date overdue
'M' 4Dh Syringe Arm #2 : maintenance date overdue
'N' 4Eh Syringe Arm #1 : maintenance date overdue

Note: If there are several alarm codes for a result, then the most priority one is transmitted. Alarm
codes are classified from '@' to 'N' with highest priority for code '@'.

7. Typical Contents of Some Messages

7.1 Result Transmission (STA-R → Host)

Each message refers to only one sample:

• Header record;
• Patient record;
• Test Order record;
• Result record;
• Manufacturer Information record;
• Message Terminator record.

7.2 Request for a Working List

Only one sample is dealt with per message:

• Header record;
• Request Information record;
• Message Terminator record.

7.3 Working List Return

Only one sample is dealt with per message:

• Header record;
• Patient record;
• Test Order record;
• Message Terminator record.

16 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8. Flowcharts (ASTM)

8.1 Sequencing of Reception/Transmission

Fig. 1 - Sequencing of Reception/Transmission

Message to be Yes
Transmitted Building of C
Records to Send

STA-R in Tx Line Mode


No

No
Character
on Line ?

Yes

No

<ENQ>?

Yes

Send <ACK>

STA-R in Idle Line Mode

STA-R in Rx Line Mode

V 1.0 – March 02 17
USER INTERFFACE/RS232-C STA-R ANCG218
8.2 Acquisition of a Record from the Host Computer

Fig. 2 - Acquisition of a Record from the Host Computer

Start Timer

Read RS232

Record Yes Yes Yes


CheckSum Frame Num.
Received ?
OK ? OK ?

No No No

Yes

<EOT> ?

Error:
No Error:"Frame Num.
"Record CheckSum
Incorrect"
Incorrect"

No Time Out
(30 sec.) ?

Yes

Dispatch in Database Send <Nak> Send <ACK>

18 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8.3 Establishment Phase (STA-R → Host Computer)

Fig. 3 - Establishment Phase (STA-R → Host Computer)

Reset Retry Counter

Send <ENQ>

Start Timer

Read RS232

Yes Yes
Character
Received ?
<ACK>? F
No
No
Yes
<ENQ> ? Wait 5 Sec C
Time Out
No
(15 sec.)? Wait 10 Sec
No

Yes
Retry Num. + 1

Error:"No Answer from


Host Computer"
Yes
Error: "Answer Different
Retry Counter > n* ?
Error:"Impossible to Get on from <ACK>"
Line"

No
Error: "Impossible to Get
On-Line"
E D

* n : Number of on Error Retries.

V 1.0 – March 02 19
ANCG218
USER INTERFFACE/RS232-C STA-R

8.4 Transfer Phase (STA-R → Host Computer)

Fig. 4 - Transfer Phase (STA-R → Host Computer)

Reset Retry Counter

Send Record

Start Timer

Read RS232

Yes Yes
Character <ACK> Send Next Record
Received ? or <EOT> ?

No No Yes
Last Record ? E
No Wait 10 Sec
Time Out
(15 sec.) ?
No
Retry Num. + 1
Yes
F
Error:"No Answer from
Host Computer" Yes
Retry
Counter
> n* ?
E No Error:"Answer Different
from <ACK>"

* n : Number of on Error Retries.

20 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8.5 Termination Phase (STA-R → Host Computer)

Fig. 5 - Termination Phase (STA-R → Host Computer)

Send <EOT>

V 1.0 – March 02 21
ANCG218
USER INTERFFACE/RS232-C STA-R

9. Examples of Traces (ASTM)

9.1 Transmission of Patient File (STA-R → Host Computer)

Example No.1:

STAR 2/26/99 10:31:09 AM STA-R requests connection.


[ENQ]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM The STA-R sends the Header record.
[STX]1H|\^&|||99^2.00|||||||P|1.00|1999
0226103109 [CR] [ETX] 28 [CR][LF]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Patient record.
[STX]2P|1|||ESSAI^JOHN^0003^56[CR]
[ETX]9F[CR] [LF]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Test Order record.
[STX]3O|1|00003103|||R[CR][ETX]08[C
R][LF]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the first Result record:
[STX]4R|1|^^^1 |55|%||||F||||1999022610 TP = 55% the 26th of February 99 at 10h 31mn
3109[CR] [ETX] 8B [CR] [LF] and 9 s.

HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).


[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Manufacturer Information
[STX]5M|1|A|C[CR][ETX]BB[CR][LF] record for the first result.
Error code = Validated,
Alarm code = Quality Control: out of range or not
done
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the second Result record:
[STX]6R|2|^^^2|1.61|INR||||F||||199902 TP with INR = 1.61 the 26th of February 99 at
26103109[CR][ETX]AF[CR][LF] 10h 31mn and 9 s.

HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).


[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Manufacturer Information
[STX]7M|2|A|C[CR][ETX]BE[CR][LF] record for the second result.
Error code = Validated,
Alarm code = Quality Control: out of range or not
done
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]

22 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
STAR 2/26/99 10:31:09 AM STA-R sends the third Result record:
[STX]0R|3|^^^3|16.3|Sec.||||F||||199902 TP = 16.3 sec. the 26th of February 99 at 10h
26103109[CR][ETX]0D [CR][LF] 31mn and 9 s.
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Manufacturer Information
[STX]1M|3|A|C[CR][ETX]B9[CR][LF] record for the third result.
Error code = Validated,
Alarm code = Quality Control: out of range or not
done
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Message Terminator record.
[STX]2L|1|N[CR][ETX]05[CR][LF]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends an END of Transmission.
[EOT]

Example No.2 (Fibrinogen, measure performs in double mode: diff > tol):

STAR 2/26/99 10:45:45 AM STA-R requests connection.


[ENQ]
HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:45:45 AM The STA-R sends the Header record.
[ST X]1H|\^&|||99^2.00|||||||P|1.00|19990
226104545 [CR] [ET X] 2D [CR][LF]
HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends the Patient record.
[ST X]2P|1|||ESSAI^JOHN^0003^56[CR][
ET X]9 F[CR][LF]
HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends the Test Order record.
[ST X]3O|1|00003103|||R[CR][ET X]08[C
R][LF]
HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends the first Result record:
[ST X]4 R|1 |^^^4 |0 .0 0 |g /l||||F||||19990226 Fibrinogen = 0 g/l the 26th of February 99 at 10h
104545[CR][ET X]C4[CR] [LF] 45mn and 45s.

HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).


[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends the Manufacturer Information
[ST X]5M|1|5|@[CR][ET X]AC[CR][LF] record for the first result.
Error code = diff > tol
Alarm code = no alarm code

V 1.0 – March 02 23
ANCG218
USER INTERFFACE/RS232-C STA-R

HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).


[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends the Message Terminator record.
[ST X]6L|1|N[CR][ET X]09[CR][LF]
HOST 2/26/99 10:45:45 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:45:45 AM STA-R sends an END of Transmission.
[EOT]

9.2 Request for a Working List


STA-R 16:11:52 STA-R requests connection.
[ENQ]
Site central 16:11:52 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:52 STA-R sends the Header record.

[STX]1H|\^&|||99^2.00|||||||P|1.00|
19950227160953[CR][ETX]2F[CR][LF]
Site central 16:11:52 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:52 STA-R sends the Request Information record for
patient "ESSAI".
[STX]2Q|1|^ESSAI[CR][ETX]8F[CR][LF]
Site central 16:11:52 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:53 STA-R sends the Message Terminator record.

[STX]3L|1|N[CR][ETX]06[CR][LF]
Site central 16:11:53 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:53 STA-R sends an END of Transmission.
[EOT]

✟ Caution! The STA-R can transmit several messages: "Request for a Working List" one after the
other without allowing the intermediate return of those (see § 7.2 p 16 and standard E
1381-91).

9.3 Working List Return


HOST 2/26/99 11:22:59 AM Host requests connection.
[ENQ]
STAR 2/26/99 11:22:59 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:22:59 AM Host sends the Header record.
[STX]1H|\^&|||99^2.00[CR][ETX]E9[CR][
L F]
STAR 2/26/99 11:22:59 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM
Host sends the Patient record for patient
[STX]2P|1|||Essa i^john^003^56|||[CR][E "ESSAI".
TX]E3[CR][LF]

24 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends the Test Order record for patient
[STX]3O|1|00003109||^^^1|R[CR][ETX] "0 0 0 0 3 1 0 9 " .
59[CR][LF]
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends the Message Terminator record.
[STX]4L|1|N[CR][ETX]07[CR][LF]
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends an END of Transmission.
[EOT]

Note: This message "Working List Return" can also be used to add tests, to rerun tests or to
modify the priority code.
To add tests, Test Order record has to include the local codes of tests to be added.

To rerun tests, it has to include the local codes of the tests to be rerun.

And, to modify only the priority code for a patient file already present in the STA-R Working
File, short Test Order records can be used:

Example to modify priority code from "Routine" to "Stat":


O|1|ESSAI|||S[CR].

9.4 Transmission of a Quality Control Result (STA-R → Host Computer)


STAR 2/26/99 11:32:00 AM STA-R requests connection.
[ENQ]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM STA-R sends the Header record with
[STX]1H|\^&|||99^2.00|||||||Q|1.00|1999 Processing ID=Q for quality control.
0226113200[CR][ETX]22[CR][LF]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM STA-R sends the Patient record.
➊ [STX]2 P|1 |||^^^[CR][ETX]CD[CR][L F]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM
STA-R sends the Test Order record for the
[STX]3O|1|12355|||R[CR][ETX]81[CR][L STA-SYST CONT P (12355).
F]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM Le STA-R sends the Result record:
[STX]4R|1|^^^1 |32|%||||F||||1999022611 TP = 32% the 26th of February 99 at 11h 31mn
3159[CR][ETX]8C[CR][LF] 59s.
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]

V 1.0 – March 02 25
ANCG218
USER INTERFFACE/RS232-C STA-R

STAR 2/26/99 11:32:00 AM STA-R sends the Manufacturer Information


[STX]5M|1|1|@[CR][ETX]A8[CR][LF] record.
Error code = Validated,
Alarm code = none.
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM STA-R sends the Message Terminator record.
[STX]6L|1|N[CR][ETX]09[CR][LF]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM STA-R sends an END of transmission.
[EOT]

➊ The characters ^^^ we re n o t tra n smitte d fo r th e STA and the STA Compact.

9.5 On-Line Test


STAR 2/26/99 11:32:00 AM STA-R requests connection.
[ENQ]
HOST 2/26/99 11:32:00 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 11:32:00 AM STA-R sends an END of transmission.
[EOT]

26 V 1.0 – March 02

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy