function SegmentQuery(query : String) : List(IHL7Segment);
Retrieve a set of segments
If the query is empty, all the segments in the message are returned.
The query specifies which set of segments to retrieve:
XXX: a three letter code means all segments with the specified code
X* : the asterisk is a wild card - all segments whose code starts with the specified letter