Under Highly Skilled Worker - Tier 1 (General), you are allowed to do any work, provided you have no recourse to public funds and you don't work as a doctor in training without specific permission. So alongside working in your professional capacity, or instead of, you can be self-employed. There may be other rules and legislation governing setting up a particular business, which you need to adhere to.