-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi, I would like to use elixir-mllp to create an HL7 server, so far I just cloned this repository and created the DemoDispatcher example, then instantiated with:
{:ok, r4090} = MLLP.Receiver.start(port: 4090, dispatcher: DemoDispatcher)
After that, I just send an HL7 file with netcat, this way:
cat test.hl7|nc 127.0.0.1 4090
The contents of this file is:
^KMSH|^~\\&|MegaReg|XYZHospC|SuperOE|XYZImgCtr|20060529090131-0500||ADT^A01^ADT_A01|01052901|P|2.5
EVN||200605290901||||200605290900
PID|||56782445^^^UAReg^PI||KLEINSAMPLE^BARRY^Q^JR||19620910|M||2028-9^^HL70005^RA99113^^XYZ|260 GOODWIN CREST DRIVE^^BIRMINGHAM^AL^35209^^M~NICKELL’S PICKLES^10000 W 100TH AVE^BIRMINGHAM^AL^
PV1||I|W^389^1^UABH^^^^3||||12345^MORGAN^REX^J^^^MD^0010^UAMC^L||67890^GRAINGER^LUCY^X^^^MD^0010^UAMC^L|MED|||||A0||13579^POTTER^SHERMAN^T^^^MD^0010^UAMC^L|||||||||||||||||||||||||||20060529
OBX|1|N^K&M|^Body Height||1.80|m^Meter^ISO+|||||F
OBX|2|NM|^Body Weight||79|kg^Kilogram^ISO+|||||F
AL1|1||^ASPIRIN
DG1|1||786.50^CHEST PAIN, UNSPECIFIED^I9|||A
^\
Note: I tried with MLLP envelope (ascii 11 and 28 to wrap) and without it, obtaining the same results.
The Iex console shows this when I send the message:
12:03:05.876 [debug] Receiver received data: [<<11, 77, 83, 72, 124, 94, 126, 92, 92, 38, 124, 77, 101, 103, 97, 82, 101, 103, 124, 88, 89, 90, 72, 111, 115, 112, 67, 124, 83, 117, 112, 101, 114, 79, 69, 124, 88, 89, 90, 73, 109, 103, 67, 116, 114, 124, 50, 48, 48, 54, ...>>].
12:03:05.876 [debug] MLLP.Receiver tcp_closed.
But I don't see the parsed message nor the ACK.
Am I doing anything wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels