Legislation and rules for research collaboration with external parties