Free tool · ASTM / LIS2-A2

ASTM message decoder for lab analyzers

Paste what a lab analyzer sends to your LIS. The decoder checks every frame's checksum, joins split frames, names each record field, and pulls the results out into a clean table.

  • Runs entirely in your browser
  • Checksums verified per frame
  • Export results as CSV or JSON
Fictional examples:

Control characters can be real bytes or written as <STX>, <ETX>, <ETB>, <CR>, <LF> (or in square brackets).

Sender
ANALYZER-1 1.0 00000E1394-97
Sent
2026-03-14 10:35:12Production
Frames
8All checksums OK
Records
81 patient · 1 order · 3 result

Results

A technical reading of the message, not a lab report. Never use it for patient care.

SampleTestValueRangeFlagStatusCompleted
S12345GLU142 mg/dL70-100HAbove high normalFinal2026-03-14 10:29:44
S12345CREA0.9 mg/dL0.6-1.1NNormalFinal2026-03-14 10:30:01
S12345HBA1C7.8 %4.0-5.6HAbove high normalFinal2026-03-14 10:31:20
FramesLow-level transport (E1381 / LIS1-A)also saw ENQ, EOT
FrameTextEnds withChecksum
1H|\^&|||ANALYZER-1^1.0^00000|||||||P|E1394-97|20260314103512⏎ETX75 ✓
2P|1||PAT102938||DOE^JANE||19870522|F⏎ETXFB ✓
3O|1|S12345||^^^GLU\^^^CREA\^^^HBA1C|R|20260314083000|20260314084512||||N||||Serum⏎ETXD0 ✓
4R|1|^^^GLU|142|mg/dL|70-100|H||F||LABTECH1||20260314102944|ANALYZER-1⏎ETXC0 ✓
5R|2|^^^CREA|0.9|mg/dL|0.6-1.1|N||F||LABTECH1||20260314103001|ANALYZER-1⏎ETX18 ✓
6R|3|^^^HBA1C|7.8|%|4.0-5.6|H||F||LABTECH1||20260314103120|ANALYZER-1⏎ETXB9 ✓
7C|1|I|Sample slightly hemolyzed|G⏎ETX1E ✓
0L|1|N⏎ETX03 ✓
HHeaderrecord 1

H|\^&|||ANALYZER-1^1.0^00000|||||||P|E1394-97|20260314103512

FieldNameValue
H-1Record TypeH
H-2Delimiter Definition\^&
H-5Sender Name or IDANALYZER-1^1.0^00000
Name
ANALYZER-1
Software Version
1.0
Serial Number
00000
H-12Processing IDPProduction
H-13Version NumberE1394-97
H-14Date and Time of Message202603141035122026-03-14 10:35:12
PPatientrecord 2

P|1||PAT102938||DOE^JANE||19870522|F

FieldNameValue
P-1Record TypeP
P-2Sequence Number1
P-4Laboratory Assigned Patient IDPAT102938
P-6Patient NameDOE^JANE
Last Name
DOE
First Name
JANE
P-8Birthdate198705221987-05-22
P-9Patient SexFFemale
OOrderrecord 3

O|1|S12345||^^^GLU\^^^CREA\^^^HBA1C|R|20260314083000|20260314084512||||N||||Serum

FieldNameValue
O-1Record TypeO
O-2Sequence Number1
O-3Specimen IDS12345
O-5Universal Test ID^^^GLU\^^^CREA\^^^HBA1C

Repetition 1

Manufacturer's Test Code
GLU

Repetition 2

Manufacturer's Test Code
CREA

Repetition 3

Manufacturer's Test Code
HBA1C
O-6PriorityRRoutine
O-7Requested/Ordered Date and Time202603140830002026-03-14 08:30:00
O-8Specimen Collection Date and Time202603140845122026-03-14 08:45:12
O-12Action CodeNNew specimen
O-16Specimen DescriptorSerum
RResultrecord 4

R|1|^^^GLU|142|mg/dL|70-100|H||F||LABTECH1||20260314102944|ANALYZER-1

FieldNameValue
R-1Record TypeR
R-2Sequence Number1
R-3Universal Test ID^^^GLU
Manufacturer's Test Code
GLU
R-4Data or Measurement Value142
R-5Unitsmg/dL
R-6Reference Ranges70-100
R-7Result Abnormal FlagsHAbove high normal
R-9Result StatusFFinal
R-11Operator IdentificationLABTECH1
R-13Date/Time Test Completed202603141029442026-03-14 10:29:44
R-14Instrument IdentificationANALYZER-1
RResultrecord 5

R|2|^^^CREA|0.9|mg/dL|0.6-1.1|N||F||LABTECH1||20260314103001|ANALYZER-1

FieldNameValue
R-1Record TypeR
R-2Sequence Number2
R-3Universal Test ID^^^CREA
Manufacturer's Test Code
CREA
R-4Data or Measurement Value0.9
R-5Unitsmg/dL
R-6Reference Ranges0.6-1.1
R-7Result Abnormal FlagsNNormal
R-9Result StatusFFinal
R-11Operator IdentificationLABTECH1
R-13Date/Time Test Completed202603141030012026-03-14 10:30:01
R-14Instrument IdentificationANALYZER-1
RResultrecord 6

R|3|^^^HBA1C|7.8|%|4.0-5.6|H||F||LABTECH1||20260314103120|ANALYZER-1

FieldNameValue
R-1Record TypeR
R-2Sequence Number3
R-3Universal Test ID^^^HBA1C
Manufacturer's Test Code
HBA1C
R-4Data or Measurement Value7.8
R-5Units%
R-6Reference Ranges4.0-5.6
R-7Result Abnormal FlagsHAbove high normal
R-9Result StatusFFinal
R-11Operator IdentificationLABTECH1
R-13Date/Time Test Completed202603141031202026-03-14 10:31:20
R-14Instrument IdentificationANALYZER-1
CCommentrecord 7

C|1|I|Sample slightly hemolyzed|G

FieldNameValue
C-1Record TypeC
C-2Sequence Number1
C-3Comment SourceIClinical instrument
C-4Comment TextSample slightly hemolyzed
C-5Comment TypeGGeneric
LTerminatorrecord 8

L|1|N

FieldNameValue
L-1Record TypeL
L-2Sequence Number1
L-3Termination CodeNNormal termination

How analyzers send results

Most lab analyzers talk to a laboratory information system (LIS) using two ASTM standards, now maintained by CLSI. The low-level one, E1381 / LIS1-A, moves data in frames: the sender asks to transmit with ENQ, sends each frame as STX, a frame number from 0 to 7, the text, ETX (or ETB if the record continues in the next frame), a two-character checksum and CR LF, and finishes with EOT. The receiver answers each frame with ACK or NAK.

The message itself follows E1394 / LIS2-A2: a series of records, each on its own line and starting with a letter. The header record H|\^& sets the delimiters: fields are split by |, repeats by \, components by ^, and & starts an escape sequence.

Reading a result record

In R|1|^^^GLU|142|mg/dL|70-100|H||F, field 3 is the test (the analyzer's own code is usually the fourth component, GLU), field 4 the value, 5 the units, 6 the reference range, 7 the abnormal flag (H for high) and 9 the result status (F for final). The order record before it carries the specimen ID, which is how a result is matched to the right patient sample.

Frequently asked questions

What can I paste in?

A whole transmission as the analyzer sends it (ENQ, framed records, EOT), a capture from a serial or TCP log, or just the records, one per line. Control characters can be real bytes or written out as <STX>, <ETX>, <ETB>, <CR> and <LF>, or in square brackets, as most analyzer logs and manuals show them.

How is the frame checksum calculated?

Under ASTM E1381 / CLSI LIS1-A, the checksum is the sum of every byte after STX, from the frame number up to and including ETX or ETB, modulo 256, sent as two uppercase hex characters. The decoder recalculates it for each frame and shows the expected value when the sent one is wrong.

Why does my log show checksum errors that the analyzer doesn't?

Copying a log often turns the CR at the end of each record into a newline, which changes the checksum. The decoder retries with CR restored and marks such frames as OK after restoring line endings.

What do the record types mean?

H is the header with the delimiters and sender, P the patient, O the order or specimen, R one result, C a comment, Q a query from the analyzer asking the host for orders, L the terminator, and M and S manufacturer and scientific records.

Does the message leave my computer?

No. Decoding happens in your browser, and nothing in the message is uploaded. Only paste data you are allowed to handle, and prefer test messages over live patient results.