The University of California at San Francisco Medical Center, the Ronald Reagan UCLA Medical Center and the Montefiore Medical Center in New York are among many hospitals nationwide that have begun “meds to beds” or “meds in hand” programs, in which prescription drugs are given directly to patients just before they are sent home.