util_hl7
HL7 v2 message parser — Parse an HL7 v2.x message (text= the message; segments separated by carriage returns or new lines) into JSON offline. Detects delimiters from MSH, unescapes HL7 escape sequences, names fields for common segments (MSH EVN PID PD1 PV1 PV2 NK1 ORC OBR OBX AL1 DG1 NTE MSA ERR IN1 SCH TXA FT1 RXE RXA), splits components and repetitions, and summarizes message type and trigger event (ADT^A01 admit, ORU^R01 results, ORM, SIU, MDM, DFT, VXU, ACK), version, control id, sending/receiving apps, patient (id, name, DOB, sex), visit, observations (LOINC code, value, units, reference range, abnormal flag, computed out-of-range), acknowledgment code, and validation warnings (missing MSH-9/10/12, non-numeric NM values, Z-segments, unknown segments). Nothing is stored; use test or de-identified messages where possible. Price: $0.003 USDC (Base, via x402).
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": {
"text": "<text>"
},
"name": "util_hl7"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | MSH|^~&|LAB|HOSP|EHR|CLINIC|20261121083000||ORU^R01|MSG00001|P|2.5.1 PID|1||123456^^^HOSP^MR||DOE^JANE||19800215|F OBX|1|NM|2345-7^Glucose^LN||182|mg/dL|70-99|H|||F |