ajax call for prescriptionto record