Under the Message you created, double-click Message Grammar. The Message Grammar window appears.
Under Segments in the Workspace, click and drag segments into the Segment Grammar panel. They must be in the same order as the original message. Using the original message the order is MSH, SCH, PID, PV1 and AIG.