Israel has ordered the evacuation of hundreds of displaced Palestinians sheltering at one of Gaza's largest remaining hospitals.