ASTM to HL7 Converter

Convert ASTM E1394/LIS2-A2 laboratory messages into HL7 v2.x (ORU^R01) segments.

This tool runs entirely in your browser. Your files are never uploaded to a server.

HL7 v2.x (ORU^R01) output

MSH|^~\&|SyntheticInstrument||||20240101120000||ORU^R01|1|P|2.3.1
PID|1||SYNTHETIC-001||Example^Patient
OBR|1|SAMPLE-001||^^^GLU|R
OBX|1|NM|^^^GLU||98|mg/dL|70-99|N|||F

Maps the fields both standards use for header, patient, order, result, and comment data (H/P/O/R/C ↔ MSH/PID/OBR/OBX/NTE). Unmapped segments or records (ORC, PV1, NK1, ASTM Q/M, etc.) are dropped and listed above rather than silently lost. This is a structural bridge for common lab-result fields, not a certified interface engine — verify field positions against the exact sending/receiving system profile before production use.

What this tool does

Converts an ASTM E1394/LIS2-A2-style message into an HL7 v2.x ORU^R01 result message: the H (Header) record becomes MSH, the P (Patient Information) record becomes PID, each O (Order) record becomes an OBR, each R (Result) record under it becomes an OBX, and each C (Comment) record becomes an NTE attached to the result it followed.

How to use it

Paste an ASTM message (records separated by line breaks, either raw or with the usual STX/ETX framing already stripped) into the input box. The tool converts recognized H/P/O/R/C records field by field into HL7 segments and lists anything it had to drop or default underneath the output.

Worked example

The bundled sample converts a single-result glucose message — H/P/O/R/L — into MSH/PID/OBR/OBX segments, carrying the universal test ID, value, units, reference range, abnormal flag, and result status straight across into the matching OBX fields.

Field mapping

P-4 maps to PID-3 (patient ID) and P-6 to PID-5 (name). O-5 maps to OBR-4 (universal test ID) and O-17 to OBR-16 (ordering provider). R-3/4/5/6/7/9 map to OBX-3/5/6/7/8/11 (test ID, value, units, reference range, abnormal flag, result status), and C-4 maps to NTE-3 (comment text). H-3/12/14 map to MSH-10/11/7, and MSH-9 is always set to ORU^R01.

What gets dropped

ASTM records this converter doesn't map — Q (Query) and M (Manufacturer Information) — are removed from the output and named in a warning list rather than silently disappearing, so you always know what a receiving HL7 system won't see. The ASTM L (Terminator) record has no HL7 equivalent and is dropped without a warning, since it carries no data of its own.

Important limitations

This is a structural field mapper for common lab-result messages, not a certified interface engine or a substitute for the exact profile your LIS/EMR vendor documents — the framing checksum and control characters the ASTM Message Parser tool checks separately aren't re-verified here, and any record content beyond H/P/O/R/C needs manual handling.

Privacy and sources

Conversion runs entirely in your browser; nothing you paste is uploaded. Field correspondences are based on the archived CLSI LIS01-A2/LIS02-A2 (formerly ASTM E1381/E1394) record layouts and the published HL7 v2.3+ segment definitions; content reviewed September 2026.

Frequently Asked Questions

Do I need to strip STX/ETX framing before pasting?
No — paste the message as-is; unframed record text (one record per line) works directly, and framed messages are unwrapped the same way the ASTM Message Parser tool handles them.
Which ASTM records does the converter read?
H, P, O, R, and C. Q (Query) and M (Manufacturer Information) records are dropped and listed as a warning under the output rather than silently ignored.
Can I convert the result back to ASTM afterward?
Yes — the companion HL7 to ASTM Converter tool performs the reverse mapping, so you can round-trip a message between the two formats to check what survives the conversion.