The nurse enters the room of a client who is awaiting surgery for appendicitis. The unlicensed assistive personnel (UAP) has helped the client to a position of comfort with the right leg flexed and has applied a heating pad to the client's abdomen to relieve the client's pain. Which action should the nurse implement first?