Embodiments include a temporarily or permanently implantable medical device, wherein the medical device includes a housing connected to at least one elongate electrical function conductor to transmit therapy signals or diagnosis signals or both. The medical device includes at least one electrode pole connected to the at least one elongate electrical function conductor, via which electrode pole electric current is delivered to adjacent bodily, or electrode pole electrical potentials are sensed in surrounding tissue, or both. The medical device includes, in the housing, an electrical component as a line extension, wherein the electrical component is connected to the at least one elongate electrical function conductor and includes an electric length that is at least a quarter of a wavelength λ (lambda) of electromagnetic waves in a radio frequency range, such as of MRI scanners.