If you chose to donate organs or other anatomical gifts this should be decided during this process.
Donation of body for advancement of medical science, research and education to a specific location is typically done prior to death and agreed upon by the patient and the receiving facility, not the hospital.