Added Reminder Model and dummy call
This commit is contained in:
@@ -38,10 +38,9 @@ class Patient extends Provider_Controller {
|
||||
$out = array();
|
||||
$ret = $this->mermsemr_api($data, $out);
|
||||
|
||||
if ($ret==0 && $out["member_id"]>0){
|
||||
if ($ret == 0 && $out["member_id"] > 0) {
|
||||
$data["account_message"] = "<span style='color:green; font-size:12px;'>New patient added </span>";
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$data["account_message"] = "<span style='color:red; font-size:12px;'>Error adding new patient </span>";
|
||||
}
|
||||
}
|
||||
@@ -54,23 +53,22 @@ class Patient extends Provider_Controller {
|
||||
$this->renderProviderSecurePage('patient/newpatient', $data);
|
||||
}
|
||||
|
||||
public function selectPatient(){
|
||||
public function selectPatient() {
|
||||
if ($this->uri->segment(3) === FALSE) {
|
||||
$patient_id = 0;
|
||||
} else {
|
||||
$patient_id = $this->uri->segment(3);
|
||||
}
|
||||
|
||||
// echo $patient_id;
|
||||
$this->selectedPatientView($patient_id);
|
||||
// echo $patient_id;
|
||||
$this->selectedPatientView($patient_id);
|
||||
}
|
||||
|
||||
public function findpatient(){
|
||||
$out = array();
|
||||
|
||||
public function findpatient() {
|
||||
$out = array();
|
||||
$out = $this->getPatientList();
|
||||
$data["patient_list"] = $out["patient_list"];
|
||||
$this->renderProviderSecurePage('patient/findpatient', $data);
|
||||
|
||||
$this->renderProviderSecurePage('patient/findpatient', $data);
|
||||
}
|
||||
|
||||
public function patientView() {
|
||||
@@ -78,20 +76,19 @@ class Patient extends Provider_Controller {
|
||||
$this->selectedPatientView($data['patient_id']);
|
||||
}
|
||||
|
||||
private function selectedPatientView($patient_id){
|
||||
$data=[];
|
||||
$data['patient_id'] =$patient_id;
|
||||
$this->load->model('patient_model');
|
||||
$out = $this->patient_model->LoadPatient($_SESSION['practice_id'], $data['patient_id']);
|
||||
private function selectedPatientView($patient_id) {
|
||||
$data = [];
|
||||
$data['patient_id'] = $patient_id;
|
||||
$this->load->model('patient_model');
|
||||
$out = $this->patient_model->LoadPatient($_SESSION['practice_id'], $data['patient_id']);
|
||||
|
||||
// print_r($out);
|
||||
$data['firstname'] = $out["patient_return"][0]->firstname;
|
||||
$data['lastname'] = $out["patient_return"][0]->lastname;
|
||||
$data['email'] = $out["patient_return"][0]->email;
|
||||
// print_r($out);
|
||||
$data['firstname'] = $out["patient_return"][0]->firstname;
|
||||
$data['lastname'] = $out["patient_return"][0]->lastname;
|
||||
$data['email'] = $out["patient_return"][0]->email;
|
||||
|
||||
$this->renderProviderSecurePage('patient/thispatient', $data);
|
||||
|
||||
}
|
||||
$this->renderProviderSecurePage('patient/thispatient', $data);
|
||||
}
|
||||
|
||||
private function getPatientList() {
|
||||
|
||||
@@ -106,6 +103,38 @@ $data=[];
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function selectPatienFetures() {
|
||||
|
||||
$patient_action = $data['patient_action'] = trim($this->input->get('patient_action'));
|
||||
$data['patient_id'] = trim($this->input->get('patient_id'));
|
||||
|
||||
/*
|
||||
create mode 100644 providerwww/application/views/provider/patient/patientActions/view_chart_action.php
|
||||
create mode 100644 providerwww/application/views/provider/patient/patientActions/view_reminder_action.php
|
||||
create mode 100644 providerwww/application/views/provider/patient/patientActions/view_tracking_action.php
|
||||
*/
|
||||
//SELECT description, start_date,end_date WHERE member_id =1 AND practice_id = 0 AND status = 1 ORDER BY added DESC
|
||||
|
||||
|
||||
|
||||
switch ($patient_action) {
|
||||
case "REMINDERS":
|
||||
//Reminder_model
|
||||
$this->load->model('reminder_model');
|
||||
$out = $this->reminder_model->getPatientReminderList($_SESSION['practice_id'], $data['patient_id']);
|
||||
$data["patient_reminder_list"] = $out["patient_reminder_list"];
|
||||
|
||||
$this->load->view('provider/patient/patientActions/view_reminder_action',$data);
|
||||
break;
|
||||
case "TRACKING":
|
||||
$this->load->view('provider/patient/patientActions/view_tracking_action');
|
||||
break;
|
||||
case "CHARTS":
|
||||
$this->load->view('provider/patient/patientActions/view_chart_action');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function report() {
|
||||
$data = array();
|
||||
$this->renderProviderSecurePage('patient/patientreport', $data);
|
||||
@@ -133,33 +162,26 @@ $data=[];
|
||||
$this->renderProviderSecurePage('patient/thispatientChart', $data);
|
||||
}
|
||||
}
|
||||
|
||||
public function linkpatient(){
|
||||
// echo 'Ameye';
|
||||
|
||||
|
||||
|
||||
if ($_GET) {
|
||||
|
||||
public function linkpatient() {
|
||||
// echo 'Ameye';
|
||||
|
||||
|
||||
|
||||
if ($_GET) {
|
||||
$data['patient_link_id'] = trim($this->input->get('patient_link_id'));
|
||||
$data['practice_id'] = $_SESSION['practice_id'];
|
||||
$data['practice_user_id'] = $_SESSION['practice_id'];
|
||||
|
||||
$data['practice_user_id'] = $_SESSION['practice_id'];
|
||||
|
||||
$data["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
$data["action"] = MERMS_PROVIDERS_LINKMEMBER;
|
||||
$out = array();
|
||||
$ret = $this->mermsemr_api($data, $out);
|
||||
//$data["account_message"] = "This is the return " . $ret;
|
||||
echo $out["message"];
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
echo 'Invalid call...';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user