This commit is contained in:
Olusesan Ameye
2021-02-20 22:09:42 -05:00
parent 77255bba83
commit 67f744c1f2
7 changed files with 47 additions and 18 deletions
@@ -8,7 +8,7 @@ class Patient_model extends CI_Model {
public function getPatientList() {
$mysql = "SELECT p.practice_id,p.id AS patient_id,p.member_id,p.long_id,m.firstname,m.lastname,m.phone,p.added::date "
$mysql = "SELECT p.practice_id,p.id AS patient_id,p.member_id,p.long_id,m.firstname,m.lastname,m.phone,p.added::date ,m.gender,m.dob::date AS dob"
. " FROM patients p LEFT JOIN members m ON m.id=p.member_id WHERE p.practice_id=" . $_SESSION['practice_id'] . " ORDER BY p.added DESC";
$query = $this->db->query($mysql);
$num = $query->num_rows();