To build an HL7 server create an HL7.V2x.Listener.TCPServer, assign a request handler, and start listening at an IPEndPoint.
To use the server, implement your own inherited class from HL7Request and override the OnHl7Message method.
When you override the OnHl7Message method, you will receive an incoming HL7 message in the form of a parsed object. Use the object to re-send it , save it elsewhere, or extract information from it.
To process incoming messages, implement your own inherited class from HL7Request and override the OnHl7Message method. When you override the OnHl7Message method, you will receive an incoming HL7 message in the form of a parsed object. Use the object to re-send the message, save it elsewhere, or extract information from it.
The HL7Request takes care of acknowledgment messages for you so it is not necessary to send them manually. In the class that has your implementation of the HL7Request , you typically will override HL7Request.OnHl7Message method. If you use this method you can simply throw an exception to indicate an error, and the base class will take care of sending an appropriate acknowledgment message.
Of course you can override the HL7Request.IssueGenericErrorACK and HL7Request.IssueRejectedACK messages to provide your own implementation of acknowledgment messages.
Currently the re-try mechanism is not supported automatically. The re-try mechanism must be initiated manually.
Building an HL7 Network Client
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET