HL7v2.Validation.MessageRules (HL7v2 v3.10.1)

Copy Markdown View Source

Message-level validation rules for HL7v2 typed messages.

Checks structural invariants that apply to the message as a whole: first segment must be MSH, and critical MSH fields must be present.

Summary

Functions

Returns a list of message-level validation errors.

Functions

check(typed_message)

@spec check(HL7v2.TypedMessage.t()) :: [map()]

Returns a list of message-level validation errors.

Checks:

  • First segment is %HL7v2.Segment.MSH{}
  • MSH.message_type is present
  • MSH.message_control_id is present