Doogie Howser, M.D.
Episode 67, February 12, 1992:

The Show Mustn't Go On

DJE is Rick O'Neill, an egotistic actor playing a doctor on a popular TV medical show, "L.A. Med". Rick and his production crew are shooting an episode at the hospital, and decide to use one of Doogie's patient's case history as the basis for the script. Rick's magnetic charm and superstar status has everyone fawning over him, much to Doogie's jealous disgust. When Rick decides to put his show's ratings before the welfare of Doogie's patient, the latter scrambles to find a way to stop the show and save his patient.  Instead, he gives Rick an even better ending which Rick humbly takes credit for.

Here...DJE as Rick O'Neill as Dr. Miles Chambers.... Doogie and the 'gang' watch an episode of 'L.A. Med'.

Doogie's world ...

Filming the episode: