In the UK you can refer to section 3.4 of the MHRA guidance on managing medical devices:
https://www.gov.uk/government/publications/managing-medical-devicesMost medical device instructions for use (IFU) will state modifications are not allowed and that only accessories that are approved should be used with the device.