# Extending HL7 messages with new segments

## About this task

If you want to extend the HL7 messages contained in the Specifications provided out-of-the-box, for instance to add new Zxx segments, you can do so in the Structure editor.

For example, to add the ZPI element, do the following.

## Procedure

1. In the Structure editor, add a new Element to the message you want to edit.
2. Name this new element ZPI. It is important that the name matches.
3. Set the EDI Elem Type as Segment.
4. Add any children elements to ZPI as needed.