The HL7TxtRequest class handles HL7 requests made to the TCPServer.
public class HL7TxtRequest : MLPRequest
Public Class HL7TxtRequest
Inherits MLPRequest
public:
ref class HL7TxtRequest : MLPRequest
Use the HL7TxtRequest class to receive low level text messages and parse them yourself.
This example shows how to use HL7Request in an HL7 server. Use the HL7TxtRequest similarly, the only difference being you will have the ability to handle the text message and parse it yourself.
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 HL7Server()
{
TCPServer _server = null;
IPEndPoint EndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 6787);
try
{
using (_server = new TCPServer(EndPoint))
{
_server.RequestHandlerType = typeof(HL7Request);
_server.Start();
}
}
catch
{
Console.WriteLine("crashed");
}
finally
{
_server = null;
}
}
Imports Leadtools
Imports LeadtoolsDocumentsExamples.LeadtoolsExamples.Common
Imports Leadtools.Medical.HL7
Imports Leadtools.Medical.HL7.V2x.Models
Imports Leadtools.Medical.HL7.V2x.Listener
Imports Leadtools.Medical.HL7.V2x.Sender
Imports Leadtools.Medical.HL7.V26.Messages
Public Shared Sub HL7Server()
Dim EndPoint As IPEndPoint = New IPEndPoint(IPAddress.Parse("127.0.0.1"), 6787)
Try
Using _server As TCPServer = New TCPServer(EndPoint)
_server.RequestHandlerType = GetType(HL7Request)
_server.Start()
End Using
Catch
Console.WriteLine("crashed")
End Try
End Sub
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