literally - to write out (to take an excerpt)

Also, you can be discharged from a hospital - and you can say тебя выписали из больницы. And when doing so the doctor can prescribe you a medicine -...