Brexit could hit NHS if economy flatlines