Gerardo Barea
2007-12-28 12:40:01 UTC
Hi All:
I am trying to call the BTAHL7ReceivePipeline inside an orchestration
to create and HL7 message from a string variable with the content of
an HL7 file.
I am trying to make this:
HL7Request = string;
BTAHL7ReceivePipeline =
Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(BTAHL72XPipelines.BTAHL72XReceivePipeline),
HL7Request);
HL7Request2.MSHSegment = new System.Xml.XmlDocument();
HL7Request2.BodySegments = new System.Xml.XmlDocument();
HL7Request2.ZSegments = new System.Xml.XmlDocument();
BTAHL7ReceivePipeline.MoveNext();
BTAHL7ReceivePipeline.GetCurrent(HL7Request2);
Where ’string’ represents the HL7 content, ‘HL7Request’ is a
System.String message and ‘HL7Request2′ is a BTAHL7 message.
When i try to make this, it gives me the following error:
“Message has an invalid header, it could be due to error in 1st/2nd
field or the segment name is neither MSH nor FHS
”
I have checked the hl7 content and is ok, it seems that the pipeline
is not receiving the content correctly and it fails, i don´t know how
to make this work…
Does anyone have any idea?
I am trying to call the BTAHL7ReceivePipeline inside an orchestration
to create and HL7 message from a string variable with the content of
an HL7 file.
I am trying to make this:
HL7Request = string;
BTAHL7ReceivePipeline =
Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(BTAHL72XPipelines.BTAHL72XReceivePipeline),
HL7Request);
HL7Request2.MSHSegment = new System.Xml.XmlDocument();
HL7Request2.BodySegments = new System.Xml.XmlDocument();
HL7Request2.ZSegments = new System.Xml.XmlDocument();
BTAHL7ReceivePipeline.MoveNext();
BTAHL7ReceivePipeline.GetCurrent(HL7Request2);
Where ’string’ represents the HL7 content, ‘HL7Request’ is a
System.String message and ‘HL7Request2′ is a BTAHL7 message.
When i try to make this, it gives me the following error:
“Message has an invalid header, it could be due to error in 1st/2nd
field or the segment name is neither MSH nor FHS
”
I have checked the hl7 content and is ok, it seems that the pipeline
is not receiving the content correctly and it fails, i don´t know how
to make this work…
Does anyone have any idea?