A detained man was accused of threatening a prison officer with metal cutlery while at Craigavon Hospital, a court has heard.