An implantable electromedical device, having a detection unit for capturing possible device-impairing effects, a control unit, which is connected to the detection unit, a diagnostic and/or treatment unit, and a test unit, of which the test unit is designed to test the diagnostic-treatment unit, and to output test results for storage, of which the diagnostic and/or treatment unit includes sensor units and/or treatment delivery units as components and is designed to record physiological parameters and/or bring about delivery of a treatment, and of which the control unit is designed to actuate the test unit for testing the diagnostic-treatment unit.