MSH Validation

PreviousNext

Validate your incoming HL7 messages!

(c) 2007-2010 Hermetech International Ltd.

With the UltraPort HL7 Listeners you can control which HL7 messages are accepted by your listener based on values in the MSH (Message Header) segment by checking 'Enable MSH Validation' in your primary profile settings. When checked you click the 'Edit MSH Validation' button to open this window.

 

MSH Validation Settings

MSH Validation Settings

 

In this window you simply click on the MSH field you wish to validate and choose one of the options available. Then you can enter a custom Error Message which the listener will send back to the client in  an HL7 NAK. Validation Options are:

 

N/A (No Validation). There will be no validation done on this field. NOTE: When looking at this window fields which are highlighted in BLUE have some type of validation.
Required. Simple validation. The field must NOT be blank.
Required (In validation list). The field not only must contain a value but the value MUST be in the validation list (click the 'Edit' button to add/remove items).
Required (Not in List). The field MUST contain a value (ie not blank) AND the value MUST NOT be in the validation list.

 

Further information. When an inbound HL7 message fails your validation instructions a NAK is sent back to the client and the message is discarded UNLESS you have checked the 'Save Nak Messages' button in your Primary Profile Settings. If you have chosen this option the failed message will be saved in the data folder with a .NAK file extension.

 

To view/edit a validation list click the 'Edit' button next to the validation list drop down list. Type your entries into the data entry space provided pressing 'Enter' after each entry. NOTE: The validation is NOT case sensitive (ie Labcorp and LABCORP are identical).

 

Editing a Validation List

Editing a Validation List