An Eastern Panhandle hospital has agreed to join the West Virginia University Health System.