Hospital failures contributed to teen's death