added process patient_orders method