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
@spec check(HL7v2.TypedMessage.t()) :: [map()]
Returns a list of message-level validation errors.
Checks:
- First segment is
%HL7v2.Segment.MSH{} MSH.message_typeis presentMSH.message_control_idis present