Decode an HL7, ASTM or POCT1-A2 lab message
decode_lab_messageUse when someone pastes a message from a lab analyzer, LIS, middleware or EHR interface and wants to know what it says, what a field means, or why the receiving system rejects it (e.g. 'what does this HL7 ORU mean?', 'why is my EHR rejecting this result message?', 'decode this ASTM output from my analyzer', 'is this POCT1-A2 OBS message valid?'). Accepts HL7 v2 (ORU, ORM, ACK, ADT and others), ASTM E1394 / LIS2-A2 records (H, P, O, R, C, Q, L, with or without E1381 framing and checksums) and POCT1-A2 XML. Returns a field-by-field breakdown (segment or record, field number, name, value, meaning, what an EHR or LIS usually expects) and flags common problems: wrong delimiters or segment terminators, missing MSH-9 or OBX-3 codes, numeric results without units, non-standard abnormal flags, non-LOINC codes, bad checksums. Likely patient identifiers (HL7 PID-3, PID-5, PID-7, PID-11, PID-13 and similar, ASTM patient ID, name and birthdate, POCT1-A2 patient elements) are masked in the output. Tell the user to paste only test or de-identified messages. Nothing is stored or logged. Does not interpret results.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "decode_lab_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Leave as auto unless the user says which format it is. | |
| message | Yes | The message text exactly as pasted (max 20 KB). Test or de-identified messages only. |