Apple iPad helps hospital treat patients