HL7Response is used by a client connected to the TCPServer mainly to handle acknowledgment responses.
Public Class HL7ResponseInherits Leadtools.Medical.Hl7.V2x.Sender.MLPResponse
public class HL7Response : Leadtools.Medical.Hl7.V2x.Sender.MLPResponse  public ref class HL7Response : public Leadtools.Medical.Hl7.V2x.Sender.MLPResponse  This example shows how to use HL7Response in an HL7 client.
This other example shows how to prepare a message for sending.
using Leadtools;using LeadtoolsExamples.Common;using Leadtools.Medical.HL7;using Leadtools.Medical.HL7.V2x.Models;using Leadtools.Medical.HL7.V2x.Listener;using Leadtools.Medical.HL7.V2x.Sender;using Leadtools.Medical.HL7.V26.Messages;public static void HL7Client(){IPEndPoint EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 6787);using (TcpClient _client = new TcpClient()){_client.Connect(EndPoint);string msg = @"MSH|^~\&|MESA_ADT|XYZ_ADMITTING|MESA_IS|XYZ_HOSPITAL|||ADT^A04|101160|P|2.5||||||||EVN||200004230800||||200004230800PID|||583220^^^ADT1||PANZA^SANCHO||16050601121520|M||AI||||||||20-98-3210|981276345|||||||||||NK1|1|QUIXOTE^DON|MASTER|16 WINDMILL WAY^^LA MANCHA^SPAIN^12587|(157)383-6446PV1||E||||||5101^NELL^FREDERICK^P^^DR|||||||||||V1102^^^ADT1|||||||||||||||||||||||||200004230800||||||||";using (HL7Response rsp = new HL7Response(_client)){rsp.Send(msg);Console.WriteLine("--- sent ");}}}
Imports LeadtoolsImports LeadtoolsDocumentsExamples.LeadtoolsExamples.CommonImports Leadtools.Medical.HL7Imports Leadtools.Medical.HL7.V2x.ModelsImports Leadtools.Medical.HL7.V2x.ListenerImports Leadtools.Medical.HL7.V2x.SenderImports Leadtools.Medical.HL7.V26.MessagesPublic Shared Sub HL7Client()Dim EndPoint As IPEndPoint = New IPEndPoint(IPAddress.Parse("127.0.0.1"), 6787)Using _client As TcpClient = New TcpClient()_client.Connect(EndPoint)Dim msg As String = "MSH|^~\&|MESA_ADT|XYZ_ADMITTING|MESA_IS|XYZ_HOSPITAL|||ADT^A04|101160|P|2.5||||||||" & ControlChars.CrLf & "EVN||200004230800||||200004230800" & ControlChars.CrLf & " _PID|||583220^^^ADT1||PANZA^SANCHO||16050601121520|M||AI||||||||20-98-3210|981276345|||||||||||" & ControlChars.CrLf & " NK1|1|QUIXOTE^DON|MASTER|16 WINDMILL WAY^^LA MANCHA^SPAIN^12587|(157)383-6446" _& ControlChars.CrLf & "PV1||E||||||5101^NELL^FREDERICK^P^^DR|||||||||||V1102^^^ADT1|||||||||||||||||||||||||200004230800||||||||"Using rsp As HL7Response = New HL7Response(_client)rsp.Send(msg)Console.WriteLine("--- sent ")End UsingEnd UsingEnd Sub


|   | 
                            Products |
                            Support |
                            Feedback: HL7Response Class - Leadtools.Medical.HL7  |
                            Introduction |
                            Help Version 19.0.2017.6.16
                         | 






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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.