Validate
Task to validate Hl7v2 message
Task version: 1.1.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Task Parameters
Hl7v2Message : String
The input string containing a message in Hl7v2 format.
Default: -
Example: MSH|^~&|SendingApp|SendingFac|ReceivingApp|ReceivingFac|20060228155525||ADT^A01|123|P|2.3
ThrowErrorOnFailure : Boolean
Whether to throw an error on failure.
Default: True
Example: true
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Custom error message
Task Result
Success : Boolean
Indicates if the task completed successfully.
Example: true
IsValid : Boolean
Indicates if the HL7v2 message is valid.
Example: true
ValidationErrors : String[]
List of validation errors found in the message. Empty if the message is valid.
Example: [ "MSH-9 is missing", "PID-3 is required" ]
Error : Error
Error that occurred during task execution.
Example: object { string Message, Exception AdditionalInfo }
Error.Message : String
Summary of the error.
Example: Unable to validate HL7v2 message.
Error.AdditionalInfo : Exception
Additional information about the error.
Example: object { Exception AdditionalInfo }
Task Changelog
Changelog for Task Frends.Hl7v2.Validate.
[1.1.0] - 2026-08-06
Changed
Updated copyright to comply with Frends platform standards.
[1.0.0] - 2026-07-10
Added
Initial implementation
Last updated
Was this helpful?

