User Guide : Integrating Health Care Data : Health Care Components, Connectors, and Schema : HL7 Basic Message Validation Invoker
 
Share this page             
HL7 Basic Message Validation Invoker
The HL7 Basic Message Validation Invoker performs the following actions:
Validates the message header (default)
Checks the syntax (optional)
Message validation is usually done before the message can be subjected to any kind of business processing.
The HL7 Basic Message Validation Invoker performs the following activities on the HL7 message:
Header Validation
This validation applies only to the message header (MSH) segment.
The HL7 Basic Message Validation Invoker performs the following actions:
Searches for the MSH segment
Parses the MSH segment of the message
Validates the required fields of the MSH segment.
Checks for valid field delimiters.
Note:  The field delimiters cannot be an alphabet or a digit.
The HL7 Basic Message Validation Invoker parses the MSH segment of the message, and validates the required fields of the MSH segment.
Syntax Check (Optional)
The Syntax check validation is performed for all the segments of a message.
If syntax check is enabled, it performs the following actions.
Verifies that the segment name does not contain any delimiter.
Checks if the field delimiter specified in the MSH segment, is the same for all the segments.
Verifies that the segment has at least one field.
Returns error code 85, if any of the preceding checks fails.
HL7 Basic Message Validation Invoker Properties
 
Property
Default Value
Description
CheckSyntax
false
Enable or disable syntax check:
True - CheckSyntax validates all the segments of a message.
False - CheckSyntax is disabled. Header validation validates only the MSH segment of the message.
Supported Actions
 
Action
Description
Execute
Runs any expression that you specify.
Supported Action Parameters
 
Action
Parameter
Description
Execute
SourceMessage
The SourceMessage property is used to set the HL7 message and the DJMessage properties. These values are set before they are passed to the acknowledgment component.
Execute
TargetMessage
Contains the generated message.
Supported Action Properties
There are no action properties for this invoker.
Error Conditions
This transformer returns the following error messages.
Error Code
Error Name
Description
Reason
50
ERR_UNSPECIFIED
Unspecified error
Unknown error condition
89
ERR_ HEADERDER_VALIDATION
Error at the time of Header Validation
This error code is returned when an exception is encountered at the time of basic validation of a message.
85
ERR_SYNTAXCHECK
Error at the time of Syntax check
This error code is returned when an exception is encountered at the time of checking the syntax of a message.
0
ERR_OK
On basic Validation
This error code is returned when a HL7 Message is passed against any kind of validation.