%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php class Finddoctor extends CI_Controller { function __construct(){ parent::__construct(); $this->load->model(array('Common_Model')); } public function index () { $head = array(); $data = array(); //$head['title'] = PORTAL_NAME; //$data['title'] = PORTAL_NAME; $record_num = @end($this->uri->segment_array()); $specializationId = '71';//base64_decode($record_num); //$doctorListArray = $this->getDoctorList('GetDoctorList', $specializationId); $drCond = array('specialisationid'=>$specializationId,'status'=>'1'); if($_GET['department_filter']<>''){ $drCond['departmentname'] = trim($_GET['department_filter']); } if($_GET['gender_filter']<>''){ $drCond['gender'] = trim($_GET['gender_filter']); } $doctorListArray = $this->Common_Model->getAllRecords('tbl_doctor_master', 'id as ID, fullname as FullName ,Designation as designation,doctorfee as DoctorFee, departmentname as DepartmentName, specialisationname as SpecialisationName, languagelist as LanguageList', $drCond); //print_r($doctorListArray); die; $data['recordsArray'] = $doctorListArray; $departmentList = array(); foreach($doctorListArray as $row){ $departmentList[$row->DepartmentName] = $row->DepartmentName; } $data['departmentListArray'] = $departmentList; // Get Dr Slots //$drslots = $this->getDoctorSlots(); //print_r($drslots); ///die; $this->load->view('_parts/header',$head); $this->load->view('find-a-doctor',$data); $this->load->view('_parts/footer'); } /* * Function : getDoctorList * */ public function getDoctorList($api, $specializationId) { $post = ["SpecializationId"=> $specializationId,"FacilityCode"=> FACILITY_ID,"DoctorId"=> 0]; //print_r($post); //die; $response = postExistingRequest($api,json_encode($post)); // print_r($response); die; return json_decode($response); } /* * Function : getDoctorSlots * */ public function getDoctorSlots($api='GetDoctorSlots') { $post = ["AppointmentStartDate"=> "2022-05-20","AppointmentEndDate"=> "2022-05-20","FacilityCode"=> '2',"DoctorId"=> '3430',"isTeleConsultation"=> false]; //print_r($post); //die; $response = postExistingRequest($api,json_encode($post)); //print_r($response); die; return json_decode($response); } } ?>