changed alternativeid and relatedactivity to repeated from optional