←Select platform

HL7TxtRequest Class

Summary

The HL7TxtRequest class handles HL7 requests made to the TCPServer.

Syntax
C#
C++/CLI
public class HL7TxtRequest : MLPRequest 
public: 
   ref class HL7TxtRequest : MLPRequest 
Remarks

Use the HL7TxtRequest class to receive low level text messages and parse them yourself.

Example

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.

C#
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; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.HL7 Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.