The heart pacemaker 16 which is provided for implantation into the body of a patient, has a hermetically tight, flat housing 17 formed of an electrically conductive material, for example titanium, this housing 17 surrounding a printed circuit 36 that carries the components of the heart pacemaker 16.