Public Class MessageFactory
public class MessageFactory
public ref class MessageFactory
This example shows how to use MessageFactory to create a certain HL7 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 MessageFromStruct(string name, string version)
{
IHL7MessageItem Message = MessageFactory.New(name, version);
MessageConstructor.CreateSegments(Message);
MessageConstructor.FillCommonMSH(Message, version);
return Message;
}
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 Function MessageFromStruct(ByVal name As String, ByVal version As String) As IHL7MessageItem
Dim Message As IHL7MessageItem = MessageFactory.[New](name, version)
MessageConstructor.CreateSegments(Message)
MessageConstructor.FillCommonMSH(Message, version)
Return Message
End Function
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