[1952] fixed XML export, removed code attribute on freetext diagnosis