first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-08-17 17:19:25 -04:00
commit 27aeffcfa3
904 changed files with 239087 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
class Reminder_model extends CI_Model {
function __construct() {
}
public function getPatientReminderList($practice_id, $patient_id) {
$mysql = "SELECT r.id, r.description, r.start_date,r.end_date FROM members_reminders r LEFT JOIN patients p ON p.id=r.member_id WHERE p.id = $patient_id AND r.practice_id = 0 AND r.status = 1 ORDER BY r.added DESC LIMIT 5";
$query = $this->db->query($mysql);
$num = $query->num_rows();
$data["patient_reminder_list"] = $query->result();
return $data;
}
}