discharge patient and edit patient