A transformer includes a substrate having an input and an output, the input being connectable to one section of a medical electrical device, the output being connectable to another section of the medical electrical device. An input ground system and an output ground system, which is electrically isolated from the input ground system, provide continuous return paths for an input signal and an output signal, respectively. The transformer includes a primary winding electrically connected to the input, a secondary winding electrically connected to the output, and a core transferring data from the primary winding to the secondary winding using magnetic field coupling. A middle portion of the primary winding and a middle portion of the secondary winding wrap around the core and are twisted together. Other portions of the primary winding are twisted with one another, while other portions of the secondary winding are twisted with one another.