Updated script to view prescriptions of patients with permission from other doctors