There is no single cheat to disable illness permanently, but you can drastically reduce sickness frequency through gameplay and limited cheats.
Warning: testingCheatsEnabled can corrupt saves if used carelessly (e.g., deleting NPCs, forcing errors). Always backup your neighborhood folder (Documents/EA Games/The Sims 2/Neighborhoods) before heavy cheat use.