I am currently trying to write a script that could conduct an "HL7 Ping" but I am still new to HL7 and not 100% sure how I could do that. I am trying to build out a health check for my HL7 enabled devices and have come up fruitless. I've seen solutions like testing the port and such; however, this does not fulfill my goal. I want to send a message:
MSH|^~\&|MONITORINGPING||||||ADT^A01|
And get some sort of ACK back to confirm whether the service is up and running. Does anybody out there know the answer or know where I could go to get it?
There is no such a thing as "ping" or "health check" on HL7 or MLLP level. Please refer to this answer for more details about MLLP.
The message you are sending
is just one segment of
ADTmessage. This is not a valid message. If you want theACKin response, you should send full and validADT(or any other) message. Although, some HL7 Listeners may sendNAKfor such message; I will recommend do not rely on that.On TCP level, you may simply
pingthe IP or alternatively you cantelnetIP and port.