C#
VB
C++
Creates an IHL7MessageItem item for given a name.
Public Overloads Shared Function New( _
ByVal name As String, _
ByVal version As String _
) As Leadtools.Medical.Hl7.V2x.Models.IHL7MessageItem
public static IHL7MessageItem New(
string name,
string version
)
public:
static Leadtools.Medical.Hl7.V2x.Models.IHL7MessageItem^ New(
String^ name,
String^ version
)
name
Name of the message.
version
The HL7 version, for example V26, V231, V251.
Creates an IHL7MessageItem item for given a name.
This example shows how 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
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