The key to better Star Ratings extends beyond the hospital stay.