 The joke about a "horse hospital for humans" in which the doctors  walk around the wards with shotguns, is taken from a well known "Far  Side" cartoon by Gary Larson (I) (qv). This is an acknowledged  homage because J.D. calls the patient hes about to shoot "Mr.  Larson".