Commit 07fe0424 authored by Deddy Vita Kurniawan's avatar Deddy Vita Kurniawan

* tambah field NAMA_NAKES_SATSET, simpan nama pegawai di function get_data_satu_sehat()

parent 56ee75da
......@@ -493,7 +493,7 @@ if ( ! function_exists('get_data_satu_sehat'))
$ci->db->where('NO_KTP', $nik)->update('PASIEN', $data);
}
else if($tipe == 'pegawai'){
$data = array('ID_NAKES_SATSET'=>$array_response['entry'][0]['resource']['id'], 'LASTUPDATE'=>date('d.m.Y.H.i.s', strtotime($array_response['entry'][0]['resource']['meta']['lastUpdated'])));
$data = array('ID_NAKES_SATSET'=>$array_response['entry'][0]['resource']['id'], 'NAMA_NAKES_SATSET'=>$array_response['entry'][0]['resource']['name'][0]['text'], 'LASTUPDATE'=>date('d.m.Y.H.i.s', strtotime($array_response['entry'][0]['resource']['meta']['lastUpdated'])));
$ci->db->where('NIK', $nik)->update('PEGAWAI', $data);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment