public function edit()
 {
     $drugcode_id = $this->input->post('drugcode_id');
     $data['generic_names'] = Generic_Name::getAllActive();
     $data['drug_units'] = Drug_Unit::getThemAll();
     $data['doses'] = Dose::getAllActive();
     $data['supporters'] = Supporter::getAllActive();
     $data['doses'] = Dose::getAllActive();
     $data['drugcodes'] = Drugcode::getDrugCodeHydrated($drugcode_id);
     echo json_encode($data);
 }