<?php
class Referensi_model extends CI_Model {
  public function list_poli(){
    return $this->db->order_by('nama_poli','ASC')->get_where('tb_poli',['status_aktif'=>1])->result();
  }
  public function dokter_by_poli($poli_id){
    return $this->db->order_by('nama_dokter','ASC')->get_where('tb_dokter',[
      'id_poli'=>$poli_id, 'status_aktif'=>1
    ])->result();
  }
}
