←Select platform

MessageToPipe Method

Summary

Serializes the message object into an HL7 pipe text message. The text pipe message.

Syntax

C#
VB
C++
Public Shared Function MessageToPipe( _ 
   ByVal hl7Msg As Leadtools.Medical.Hl7.V2x.Models.IHL7MessageItem _ 
) As String 
public static string MessageToPipe( 
   IHL7MessageItem hl7Msg 
) 
public: 
static String^ MessageToPipe(  
   Leadtools.Medical.Hl7.V2x.Models.IHL7MessageItem^ hl7Msg 
)  

Parameters

hl7Msg
The message object into an HL7 pipe text message

Return Value

The text pipe message.

Example

This example shows how to serialize a message into a pipe text message.

C#
VB
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 string MessageSerialize(IHL7MessageItem hl7Msg) 
{ 
   string msg = SegmentStructureConverter.MessageToPipe(hl7Msg); 
   return msg; 
} 
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 MessageSerialize(ByVal hl7Msg As IHL7MessageItem) As String 
   Dim msg As String = SegmentStructureConverter.MessageToPipe(hl7Msg) 
   Return msg 
End Function 

Requirements

Target Platforms

Help Version 19.0.2017.10.30
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.HL7 Assembly