Add hl7:get_segments/2