74 lines
2.3 KiB
PHP
74 lines
2.3 KiB
PHP
<?php
|
|
|
|
use App\Controllers\BaseController;
|
|
|
|
//class Provider extends Provider_Controller {
|
|
class Provider extends SecureBaseController
|
|
{
|
|
//var $patient_model;
|
|
public function index() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
$_SESSION['patient_count'] = 5;
|
|
$this->load->model('encounter_model');
|
|
$out = $this->encounter_model->getEncounterList();
|
|
$data["encounter_list"] = $out["encounter_list"];
|
|
$this->renderProviderSecurePage('dash', $data);
|
|
// print_r($_SESSION);
|
|
}
|
|
|
|
public function alerts() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
$this->renderProviderSecurePage('dash', $data);
|
|
}
|
|
|
|
public function todo() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
$this->renderProviderSecurePage('dash', $data);
|
|
}
|
|
|
|
public function tasks() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
$this->renderProviderSecurePage('dash', $data);
|
|
}
|
|
|
|
public function calendar() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
$this->renderProviderSecurePage('calendar', $data);
|
|
}
|
|
|
|
public function encounters() {
|
|
$data = array();
|
|
$out = array();
|
|
$this->load->model('patient_model');
|
|
$out = $this->patient_model->getPatientList();
|
|
$data["patient_list"] = $out["patient_list"];
|
|
|
|
$this->load->model('encounter_model');
|
|
$out = $this->encounter_model->getEncounterList();
|
|
$data["encounter_list"] = $out["encounter_list"];
|
|
|
|
$this->renderProviderSecurePage('dash', $data);
|
|
}
|
|
|
|
}
|