At the hospital, Homer sees a candy machine and, while trying to get chocolate, accidentally tips it on himself.
Homer sees a candy machine. This is at the hospital. Homer tips it on himself. This was at the hospital.