73 lines
2.3 KiB
PHP
73 lines
2.3 KiB
PHP
<?php
|
|
namespace App\Controllers;
|
|
//use App\Controllers\BaseController;
|
|
|
|
//class Provider extends Provider_Controller {
|
|
class Provider extends SecureBaseController
|
|
{
|
|
//var $patient_model;
|
|
protected \App\Models\Product_model $product_model;
|
|
public function StartProviders() {
|
|
$this->product_model = new \App\Models\Product_model();
|
|
$data = array();
|
|
$data['product_array'] = $this->product_model->getProducts(); // $product_array;
|
|
return $this->renderProviderSecurePage('dash', $data);
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
|
|
public function ProviderProduct($productID){
|
|
$data = array();
|
|
return $this->providerSecurePage('product', $data);
|
|
}
|
|
}
|