Pharmaceutical cost management in an ambulatory