public function synchronize_patients() { $data['regimens'] = Regimen::getAll(); $data['supporters'] = Supporter::getAll(); $data['service_types'] = Regimen_Service_Type::getAll(); $data['sources'] = Patient_Source::getAll(); $data['drugs'] = Drugcode::getAll(); $data['regimen_change_purpose'] = Regimen_Change_Purpose::getAll(); $data['visit_purpose'] = Visit_Purpose::getAll(); $data['opportunistic_infections'] = Opportunistic_Infection::getAll(); $data['regimen_drugs'] = Regimen_Drug::getAll(); }
public function listing() { $access_level = $this->session->userdata('user_indicator'); $source = 0; if ($access_level == "pharmacist") { $source = $this->session->userdata('facility'); } $data = array(); $data['styles'] = array("jquery-ui.css"); $data['scripts'] = array("jquery-ui.js"); $data['regimens'] = Regimen::getAll($source); $data['regimens_enabled'] = Regimen::getAllEnabled($source); $data['regimen_categories'] = Regimen_Category::getAll(); $data['regimen_service_types'] = Regimen_Service_Type::getAll(); $data['drug_codes'] = Drugcode::getAll($source); $data['drug_codes_enabled'] = Drugcode::getAllEnabled($source); $this->base_params($data); }