CreateSegments Method

Summary
Creates empty segments for all Message items.
Syntax
C#
C++/CLI
public static void CreateSegments( 
   INodeItem nodeItem 
) 
public: 
static void CreateSegments(  
   INodeItem^ nodeItem 
)  

Parameters

nodeItem
The INodeItem node.

Example

This example shows how to create a certain HL7 message.

This other example shows how to create an ADT_A01 message.

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 IHL7MessageItem MessageFromStruct(string name, string version) 
{ 
   IHL7MessageItem Message = MessageFactory.New(name, version); 
 
   MessageConstructor.CreateSegments(Message); 
   MessageConstructor.FillCommonMSH(Message, version); 
 
   return Message; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.2.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.