As a matter of course hospitals allow continued dosing of medications a patient is on prior to admission, presumably a modification by the same doctor would not be an issue regardless of their relationship to the hospital.
Question is, what about after the person goes in hospital, and spouse wants to have them give meds such as Ivermectin.