In a medical device with at least one transducer fashioned for generation of high-intensity focused ultrasound and with a magnetic resonance apparatus as well as associated ultrasound transducer, and method for generation of magnetic resonance exposures, at least one shim element is associated with the transducer for compensation of a susceptibility difference caused by the design of the transducer with regard to the transducer environment.