i am try to creat hl7 flat file ADT^A08
using hl7sendpipe line
my msh headre code as follow
HeaderInfo.LoadXml(System.String.Concat("<ns0:MSH_24_GLO_DEF
xmlns:ns0=\"http://microsoft.com/HealthCare/HL7/2X\"><MSH><MSH.
2_EncodingCharacters>^~\\\\&</MSH.2_EncodingCharacters><MSH.
7_DateTimeOfMessage><TS.1>",System.String.Format("{0:yyyyMMddHHmm}",System.
DateTime.Now),"</TS.1></MSH.7_DateTimeOfMessage><MSH.9_MessageType><CM_MSG.
0_MessageType>ADT</CM_MSG.0_MessageType><CM_MSG.1_TriggerEvent>A08</CM_MSG.
1_TriggerEvent></MSH.9_MessageType><MSH.11_ProcessingId><PT.
0_ProcessingId>P</PT.0_ProcessingId></MSH.11_ProcessingId><MSH.
12_VersionId><VID.0_VersionId>2.3</VID.0_VersionId></MSH.12_VersionId><MSH.
15_AcceptAcknowledgmentType>AL</MSH.15_AcceptAcknowledgmentType><MSH.
16_ApplicationAcknowledgmentType>NE</MSH.
16_ApplicationAcknowledgmentType></MSH></ns0:MSH_24_GLO_DEF>"));
FinalHl7Msg.Header = HeaderInfo;
FinalHl7Msg.Body = Hl7_MSG;
FinalHl7Msg.Zsegment = "";
FinalHl7Msg(BTAHL7Schemas.MSH1) = 124 ;
FinalHl7Msg(BTAHL7Schemas.MSH2) = "^~\\&";
FinalHl7Msg(BTAHL7Schemas.MSH3_1)="HIS";
FinalHl7Msg(BTAHL7Schemas.MSH5_1)="Varian";
//////////////////Error /////////////////////
Event Type: Error
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5754
Date: 3/12/2008
Time: 1:45:17 PM
User: N/A
Computer: BTAHL7
Description:
A message sent to adapter "FILE" on send ****t "HL7MessagesSend****t" with
URI
"C:\files\out\%MESSAGEID%.txt" is suspended.
Error details: There was a failure executing the send pipeline:
"BTAHL72XPipelines.BTAHL72XSendPipeline, BTAHL72XPipelines,
Version=1.3.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "BTAHL7 2.X
Assembler" Send ****t: "HL7MessagesSend****t" URI:
"C:\files\out\%MESSAGEID%.
txt" Reason: Message does not contain a part with name MSHSegment
MessageId: {EFD41977-08FD-4868-B364-389A7833141F}
InstanceID: {823165CE-0B56-46CA-AA35-D33E751CCBA7}
For more information, see Help and Sup****t Center at http://go.microsoft.
com/fwlink/events.asp.
///////////////////////////////////////////////
url:http://www.ureader.com/gp/1202-1.aspx


|