An all-star cast, brave writers, and a catchy theme made St. Eleswhere a phenomenal medical drama. In the final moments of the series finale, however, a twist was introduced wherein a minor character, the autistic son of one of the lead doctors, imagined the events of the entire series.
https://youtu.be/ZdNXBgces1Q
Starting with a cross-over on Homicide, it turns out Tommy Westphall likely imagined vast amounts of our television landscape. As of August 2016 there were 49 shows airing with connections to St. Elsewhere.
The folks at Tommy Westphall Universe track it all.