示例#1
0
文件: interna.php 项目: ibnoe/rsudapp
                                <td>
                                    <?php 
    echo $dataPasien->nama_lengkap;
    ?>
<br/>
                                    <small><strong>NORM : <?php 
    echo $dataPasien->norm;
    ?>
</strong></small>
                                </td>
                                <td class="text-center"><?php 
    echo $dataPasien->jenis_kelamin;
    ?>
</td>
                                <td class="text-right"><?php 
    echo umur($dataPasien->tgl_lahir);
    ?>
 Thn</td>
                                <td>
                                    <small>
                                        <?php 
    echo $dataPasien->jalan_1;
    ?>
                                        <?php 
    if ($dataPasien->jalan_2) {
        echo $dataPasien->jalan_2;
    }
    ?>
                                        <?php 
    if ($dataPasien->kelurahan) {
        echo '<br/>Kel. ' . $dataPasien->kelurahan;
示例#2
0
             <th align="right" style="font-size: 6px;border-bottom: 1px solid #000;">Serui - Papua 98212</th>
         </tr>
 </table>
 <table cellpadding="1">
         <tr>
             <th align="center" colspan="3" style="font-size: 5px;"><strong>LABORATORIUM</strong><br/><em>HASIL PEMERIKSAAN URINE</em></th>
         </tr>
         <tr style="font-size: 5px;">
             <th width="13%"><strong>Nama Pasien</strong></th>
             <td width="2%">:</td>
             <td width="85%">' . $hasil->nama_lengkap . '</td>
         </tr>
         <tr style="font-size: 5px;">
             <th><strong>Umur</strong></th>
             <td>:</td>
             <td>' . umur($hasil->tgl_lahir) . ' Thn</td>
         </tr>
         <tr style="font-size: 5px;">
             <th><strong>Poli / Bangsal</strong></th>
             <td>:</td>
             <td>' . $hasil->poli_bangsal . '</td>
         </tr>
         <tr style="font-size: 5px;">
             <th><strong>Diagnosis</strong></th>
             <td>:</td>
             <td>' . $hasil->diagnosa . '</td>
         </tr>
         <tr style="font-size: 5px;">
             <th><strong>Status Pasien</strong></th>
             <td>:</td>
             <td>' . $hasil->pembayaran . '</td>
 public function simpan()
 {
     if ($this->session->userdata("logged_in") != "" && $this->session->userdata("level") == "perawat") {
         $this->load->helper("umur");
         $tipe = $this->input->post("tipe");
         $id['id_pasien'] = $this->input->post("id_param");
         if ($tipe == "tambah") {
             $split = explode("-", $this->input->post("id_ruang"));
             $d['id_ruang'] = $split[0];
             $d['id_dokter'] = $this->input->post("id_dokter");
             $d['id_tunjangan'] = $this->input->post("id_tunjangan");
             $d['nama_pasien'] = $this->input->post("nama_pasien");
             $d['tgl_lahir'] = $this->input->post("tgl_lahir");
             $d['tempat_lahir'] = $this->input->post("tempat_lahir");
             $d['jk'] = $this->input->post("jk");
             $d['usia'] = umur($this->input->post("tgl_lahir"));
             $d['alamat'] = $this->input->post("alamat");
             $d['jenis_penyakit'] = $this->input->post("jenis_penyakit");
             $d['tgl_masuk'] = $this->input->post("tgl_masuk");
             $d['tgl_keluar'] = $this->input->post("tgl_keluar");
             $d['biaya_kerusakan'] = $this->input->post("biaya_kerusakan");
             $get_id_kat['id_kategori_ruang'] = $split[1];
             $get = $this->db->get_where("dlmbg_kategori_ruang", $get_id_kat)->row();
             $get_id_tunjangan['id_tunjangan'] = $d['id_tunjangan'];
             $get_tunjangan = $this->db->get_where("dlmbg_tunjangan", $get_id_tunjangan)->row();
             $biaya_ruang = $get->biaya_ruang;
             $masuk = new DateTime($d['tgl_masuk']);
             $keluar = new DateTime($d['tgl_keluar']);
             $jarak = $masuk->diff($keluar);
             $lama = $jarak->format('%a') + 1;
             $potongan = $lama * $biaya_ruang * ($get_tunjangan->besaran / 100);
             $d['biaya'] = $lama * $biaya_ruang - $potongan + $d['biaya_kerusakan'];
             $this->db->insert("dlmbg_pasien", $d);
             $id_ur['id_ruang'] = $d['id_ruang'];
             $this->db->update("dlmbg_ruang", array("status_ruangan" => "Terisi"), $id_ur);
         } else {
             if ($tipe == "edit") {
                 $id_p['id_ruang'] = $this->input->post("id_ruang_temp");
                 $this->db->update("dlmbg_ruang", array("status_ruangan" => "Kosong"), $id_p);
                 $split = explode("-", $this->input->post("id_ruang"));
                 $d['id_ruang'] = $split[0];
                 $d['id_dokter'] = $this->input->post("id_dokter");
                 $d['id_tunjangan'] = $this->input->post("id_tunjangan");
                 $d['nama_pasien'] = $this->input->post("nama_pasien");
                 $d['tgl_lahir'] = $this->input->post("tgl_lahir");
                 $d['tempat_lahir'] = $this->input->post("tempat_lahir");
                 $d['jk'] = $this->input->post("jk");
                 $d['usia'] = umur($this->input->post("tgl_lahir"));
                 $d['alamat'] = $this->input->post("alamat");
                 $d['jenis_penyakit'] = $this->input->post("jenis_penyakit");
                 $d['tgl_masuk'] = $this->input->post("tgl_masuk");
                 $d['tgl_keluar'] = $this->input->post("tgl_keluar");
                 $d['biaya_kerusakan'] = $this->input->post("biaya_kerusakan");
                 $get_id_kat['id_kategori_ruang'] = $split[1];
                 $get = $this->db->get_where("dlmbg_kategori_ruang", $get_id_kat)->row();
                 $get_id_tunjangan['id_tunjangan'] = $d['id_tunjangan'];
                 $get_tunjangan = $this->db->get_where("dlmbg_tunjangan", $get_id_tunjangan)->row();
                 $biaya_ruang = $get->biaya_ruang;
                 $masuk = new DateTime($d['tgl_masuk']);
                 $keluar = new DateTime($d['tgl_keluar']);
                 $jarak = $masuk->diff($keluar);
                 $lama = $jarak->format('%a') + 1;
                 $potongan = $lama * $biaya_ruang * ($get_tunjangan->besaran / 100);
                 $d['biaya'] = $lama * $biaya_ruang - $potongan + $d['biaya_kerusakan'];
                 $this->db->update("dlmbg_pasien", $d, $id);
                 $id_ur['id_ruang'] = $d['id_ruang'];
                 $this->db->update("dlmbg_ruang", array("status_ruangan" => "Terisi"), $id_ur);
             }
         }
         redirect("perawat/data_pasien");
     } else {
         redirect(base_url());
     }
 }
示例#4
0
文件: index.php 项目: pthamura/SIMRS
         <th width="5%" class="text-center">L/P</th>
         <th width="5%" class="text-center">Umur</th>
         <th class="text-center">Alamat</th>
         <th width="5%" class="text-center">#</th>
     </tr>
 </thead>
 <tbody>
     <?php $no=0; foreach ($pasien as $dataPasien) { $no++; ?>
     <tr>
         <td class="text-center"><?php echo $no;?></td>
         <td>
             <?php echo $dataPasien->nama_lengkap;?><br/>
             <small><strong>NORM : <?php echo $dataPasien->norm;?></strong></small>
         </td>
         <td class="text-center"><?php echo $dataPasien->jenis_kelamin;?></td>
         <td class="text-right"><?php echo umur($dataPasien->tgl_lahir);?> Thn</td>
         <td>
             <small>
                 <?php echo $dataPasien->jalan_1;?>
                 <?php if($dataPasien->jalan_2){echo $dataPasien->jalan_2;}?>
                 <?php if($dataPasien->kelurahan){echo '<br/>Kel. '.$dataPasien->kelurahan;}?>
                 <?php if($dataPasien->kecamatan){echo 'Kec. '.$dataPasien->kecamatan;}?>
                 <?php if($dataPasien->kota){echo '<br/>'.$dataPasien->kota;}?>
             </small>
         </td>
         <td class="text-center">
             <a data-toggle="tooltip" data-placement="top" title="Lihat Detail" href="<?php echo base_url('pembayaran/detail/'.$dataPasien->id_pasien.'/'.$dataPasien->id_pendaftaran);?>" class="btn btn-info btn-sm btn-flat"><i class="fa fa-eye"></i> LIHAT DETAIL</button>
         </td>
     </tr>
     <?php } ?>
 </tbody>
示例#5
0
                            <tr>
                                <th width="17%">No. Rekam Medis</th>
                                <td width="1%">:</td>
                                <td><?php 
echo $pasien->norm;
?>
</td>
                            </tr>
                            <tr>
                                <th width="17%">Nama Lengkap</th>
                                <td width="1%">:</td>
                                <td><?php 
echo $pasien->nama_lengkap;
?>
 (<?php 
echo umur($pasien->tgl_lahir);
?>
 Tahun)</td>
                            </tr>
                            <tr>
                                <th width="17%">Tempat, Tanggal Lahir</th>
                                <td width="1%">:</td>
                                <td><?php 
echo ucwords($pasien->tpt_lahir);
?>
, <?php 
echo tgl_indo($pasien->tgl_lahir);
?>
</td>
                            </tr>
                            <tr>
示例#6
0
 </tr>
 <tr>
     <th align="center" colspan="4" style="font-size: 11px;border: 1px solid #000;">Alamat : Jln Dr Samratulangi Telp. (0983) 31132 - 31132 - 33489 Serui - Papua</th>
 </tr><br/>
 <tr>
     <th align="center" colspan="4" style="font-size: 11px"><strong>HASIL PEMERIKSAAN LABORATORIUM KLINIS</strong><br/></th>
 </tr>
 <tr>
     <th width="10%"><strong>NAMA</strong></th>
     <td width="2%">:</td>
     <td width="66%">' . ucwords($hasil->nama_lengkap) . '</td>
 </tr>
 <tr>
     <th width="10%"><strong>UMUR</strong></th>
     <td width="2%">:</td>
     <td width="6%">' . umur($hasil->tgl_lahir) . ' Thn</td>
     <th width="13%"><strong>JENIS KEL</strong></th>
     <td width="67%">' . $hasil->jenis_kelamin . '</td>
 </tr>
 <tr>
     <th><strong>ALAMAT</strong></th>
     <td>:</td>
     <td>' . $hasil->jalan_1 . '</td>
 </tr>
 <tr>
     <th width="10%"><strong>PENGIRIM</strong></th>
     <td width="2%">:</td>
     <td width="66%">.....................................................................</td>
 </tr>
 <tr>
     <th width="10%"><strong>NO</strong></th>