Federal judge considers changes to state hospital discharge