PipeMessageConverter converts a text pipe message into a MessageStructure.
public class PipeMessageConverter
public ref class PipeMessageConverter
This example shows how to use PipeMessageConverter to read a pipe message.
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 IHL7MessageItem ParsePipeMessage(string pipe)
{
PipeMessageConverter pmc = new PipeMessageConverter();
MessageStructure ms = pmc.PipeMessageToMessageStructure(pipe);
MessageStructureConverter msc = new MessageStructureConverter();
Exception exParse = null;
try
{
IHL7MessageItem msg = msc.MessageStructureToMessage(ms, new MessageStructureConverter.Options() { Parse_RepeatableParentGroupFirst = true, Forgive_IncompleteMessage = true }).Message;
return msg;
}
catch (Exception e)
{
exParse = e;
}
try
{
IHL7MessageItem msg = msc.MessageStructureToMessage(ms, new MessageStructureConverter.Options() { Parse_RepeatableParentGroupFirst = false, Forgive_IncompleteMessage = true }).Message;
return msg;
}
catch
{
throw exParse;
}
}
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