HL7 ACK or NAK configuration

A recent post was asking how to set up a two-way port with an orchestration to create acknowledgements.

  • What we did is in the configuration tool, we set the properties for the MSH 3.1 to the following:
    mllp config
    so that the pipeline component will only auto generate a NAK in case of a bad message.
  • We did not want a CA generated stated that we got the message (with or without data errors), we just wanted to know if it was valid or not, hence MSH15=NE.
  • The MSH 16=ER, we only wanted it to create an NAK if there were errors.
  • Then in the orchestration we have a filter only looking for BTAHL7Schemas.ParseError==false (so only good HL7 messages trigger the orchestration).
  • Then in the orchestration we create our positive ACK (setting MSA 2 to AA) and send it back; completing our two-way port in the orchestration.
  • We also have a Dump send port that is filtered on BTAHL7Schemas.ParseError==true and the pipeline is set to DefaultPipelines.PassThruTransmit (since the HL7 DASM could not successfully parse it, it still resides in its text blob form), where the original HL7 message could be looked at futher for troubleshooting purposes and not have a suspended message in the message box.
  • We also promoted the MSA 2 and created a filter where we could capture the autogenerated NAK (MSA_2!=”AA”). This allowed us to look at both the bad message and a copy of the NAK that was sent back to the originating system.

This fulfills our requirements to send back an ack, but then the ack gets generated either by the pipeline component (NAK) or by our orchestration (ACK).

I want to thank my friends in Portugal for encouraging me to clarify this blog entry.

posted @ Tuesday, August 15, 2006 12:00 PM

Print

Comments on this entry:

 re: HL7 ACK or NAK configuration

Left by Balaji at 12/5/2006 4:09 PM

What is the message type that you have in your receive shape for that error handling orchestration with the filter BTAHL7Schemas.ParseError==true.

Balaji
tbalaji_mcsd(at)hotmail.com


# re: HL7 ACK or NAK configuration

Left by Eric at 12/5/2006 4:19 PM

I don't; the pipeline, if it fails to parse the message and creates the NAK, will submit a text message to the message box with a context message of ParseError of true, so I have a seperate port with a passThru pipeline.

 re: HL7 ACK or NAK configuration

Left by Balaji at 12/5/2006 4:41 PM

If I need to subscribe this message thro an orchestration, what would be the message type that I should use? I tried string but it didn't work, then I used xmldocument and it worked. But I cannot expect all the error messages can parse as xml.

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 3 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789