HL7 V 2.x communication utilizes pipe-messages to communicate. To send a message it must be in the form of a pipe-message in text. If you have a message object instead, save it to a pipe-message using SegmentStructureConverter.MessageToPipe.
Next, establish a standard TCP/IP connection to the server. In .NET, use the TcpClient.Connect method to do so.
If connecting is successful, proceed to actually sending the message. Start by creating an instance of an HL7Response. Then call HL7Response.Send. The HL7Response.Send method blocks until the transaction is completed. To check for the communication results, call HL7Response.IsFailureCode and HL7Response.TextMessage.
Now that the transaction is complete, close the TCP/IP connection (or reuse it for another transaction).
Note that the HL7Response automatically processes acknowledgment messages for you -- you do not need to do anything related to acknowledgment.
Building an HL7 Network Server
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document