The next step is to set up the message's segment grammar. The segment grammar is the
order of the segments in the generated message.
To set up the segment grammar:
In the Workspace, in the PatientRegister message definition, double-click Message Grammar. The Message Grammar window appears.
Drag the MSH and PID segment from the Workspace to the Segment Grammar panel. Position
these segments under the existing Message entry, as shown below.
Dragging and Dropping the Segments into the Segment Grammar Panel