hl7:segments( nil ) loops through all segments