Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HL7 messages

Hi,

I'm trying to capture an HL7 message and validate it.

I'm running the following:

# tshark -i eth0 -l -Y hl7 -T ek -e hl7.field

I'm getting data such as:

{"timestamp":"1699963629656","layers":{"hl7_field":["MSH","^~\\&","115","HGN","65","HGN","20231114130709","ADT^A31^ADT_A05","42868463","P","2.7","AL","NE","UNICODE UTF-8","EVN","A31","20231114130702","HL7_sip^^^^^^^^^^^^^^^10.0.1.9","PID","1","14474681^^^041^PI~38535869499^^^001~14474681^^^041~07/00700190-91^^^015","MY^NAME^NAME","&&NAME","20230827000000","F","&AV/ STREET^^7046^7^07820^724^^14","^^PH^^^^123456789~^^CP^^^^123456789","SOME PLACE","N","00000000000000","PV1","N"]}}

I am unable to validate the HL7 data with online validation tools.

I take it I need to use the | separator for each field value.

How can I make sure the captured HL7 message data is "correct"?

Regards

HL7 messages

Hi,

I'm trying to capture an HL7 message and validate it.

I'm running the following:

# tshark -i eth0 -l -Y hl7 -T ek -e hl7.field

I'm getting data such as:

{"timestamp":"1699963629656","layers":{"hl7_field":["MSH","^~\\&","115","HGN","65","HGN","20231114130709","ADT^A31^ADT_A05","42868463","P","2.7","AL","NE","UNICODE UTF-8","EVN","A31","20231114130702","HL7_sip^^^^^^^^^^^^^^^10.0.1.9","PID","1","14474681^^^041^PI~38535869499^^^001~14474681^^^041~07/00700190-91^^^015","MY^NAME^NAME","&&NAME","20230827000000","F","&AV/ STREET^^7046^7^07820^724^^14","^^PH^^^^123456789~^^CP^^^^123456789","SOME {"timestamp":"1699963629656","layers":{"hl7_field":["MSH","^~\\&","111","XXX","11","XXX","1223345","ADT^A31^ADT_A05","3434634","P","2.7","AL","NE","UNICODE UTF-8","EVN","A31","1223345","HL7_sip^^^^^^^^^^^^^^^10.0.1.9","PID","1","346643^^^041^PI~457647657^^^001~3464564565^^^041~07/34564574676-91^^^015","MY^NAME^NAME","&&NAME","567567676345","F","&AV/ STREET^^7046^7^5464565^724^^14","^^PH^^^^123456789~^^CP^^^^123456789","SOME PLACE","N","00000000000000","PV1","N"]}}

I am unable to validate the HL7 data with online validation tools.

I take it I need to use the | separator for each field value.

How can I make sure the captured HL7 message data is "correct"?

Regards