If not enough information is filled out on the patient info screen, you won't be able to discharge the patient.  Make sure that the highlighted boxes are filled out in order for the discharge to be completed: