749 lines
34 KiB
PHP
749 lines
34 KiB
PHP
<?php include("core/main.php");
|
|
|
|
error_reporting(0);
|
|
echo $easyui_css;
|
|
array_push($form_plugin['ui_plugins_js'], '<script src="' . _LIB_ . 'jquery-easyui-1.6.10/jquery.easyui.min.js"></script>');
|
|
array_push($form_plugin['ui_plugins_js'], $froala_js);
|
|
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
|
echo $add_to_cart_css;
|
|
echo $froala_css;
|
|
|
|
$ket_tmplahir = array('RSSA', 'BIDAN LUAR', 'DOKTER LUAR', 'DUKUN BAYI', 'PUSKESMAS', 'PARAMEDIS LUAR');
|
|
$sql_dokter_bedah = $db->query("SELECT * FROM public.m_dokter WHERE kdsmf LIKE '%BEDAH%'");
|
|
$arr_dokter_bedah = array();
|
|
foreach ($sql_dokter_bedah->fetchAll() as $ds) {
|
|
$arr_dokter_bedah[$ds['kddokter']] = $ds['namadokter'];
|
|
}
|
|
|
|
$sql_dokter_anesthesi = $db->query("SELECT * FROM public.m_dokter WHERE kdsmf LIKE '%ANESTHESI%'");
|
|
$arr_dokter_anesthesi = array();
|
|
foreach ($sql_dokter_anesthesi->fetchAll() as $ds) {
|
|
$arr_dokter_anesthesi[$ds['kddokter']] = $ds['namadokter'];
|
|
}
|
|
|
|
?>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('.format-waktu').datetimepicker({
|
|
format: 'yyyy-mm-dd hh:ii:ss'
|
|
});
|
|
name = 1;
|
|
$("#qtindakan").val(name);
|
|
$("#table_tindakan_operasi").delegate(".btn_add_icd9", "click", function() {
|
|
table_proc = $("#table_tindakan_operasi");
|
|
name++;
|
|
$("#qtindakan").val(name);
|
|
nomor = parseInt($(this).data("no"));
|
|
idx = nomor - 1;
|
|
next = nomor + 1;
|
|
|
|
table_proc.append("<tr id=\"rowicd9-" + nomor + "\"><td>" + next +
|
|
"</td><td><input type=\"text\" name=\"tindakan" + name + "\" id=\"icd9_s" + nomor +
|
|
"\" data-target=\"icd9_s_" + nomor + "\" placeholder=\"Diagnosa Sekunder " + nomor +
|
|
"\" class=\"form-control\" style=\"width:550px\"><button type=\"button\" id=\"btn_add_icd9" +
|
|
nomor + "\" class=\"btn btn-sm btn-success btn_add_icd9\" data-no=\"" + next +
|
|
"\" ><i class=\"fa fa-plus\"></i></button><button type=\"button\" id=\"btn_remove_icd9" +
|
|
nomor + "\" class=\"btn btn-sm btn-danger btn_remove_icd9\" data-no=\"" + nomor +
|
|
"\" ><i class=\"fa fa-trash\"></i></button></td></tr>");
|
|
|
|
$("#btn_add_icd9" + idx + ",#btn_remove_icd9" + idx).prop("disabled", true);
|
|
|
|
$("#icd9_s" + nomor).combobox({
|
|
"mode": "remote",
|
|
"loader": function(param, success, error) {
|
|
query = param.q || "";
|
|
if (query.length < 2) {
|
|
return false;
|
|
}
|
|
$.post("<?php echo _BASE_; ?>include/master.php?cari_prosedur=1", {
|
|
query
|
|
}, function(data) {
|
|
var items = $.map(data.data, function(item, index) {
|
|
return {
|
|
code: item.code,
|
|
name: item.str
|
|
};
|
|
});
|
|
success(items);
|
|
}, "json")
|
|
},
|
|
"valueField": "code",
|
|
"textField": "name",
|
|
"formatter": formatItem,
|
|
"prompt": "Cari Prosedur",
|
|
onClick: function(record) {
|
|
target = $(this).data("target");
|
|
$("#kode_" + target).html(record.code);
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#table_tindakan_operasi").delegate(".btn_remove_icd9", "click", function() {
|
|
name--;
|
|
$("#qtindakan").val(name);
|
|
idx = parseInt($(this).data("no"));
|
|
idx_prev = idx - 1;
|
|
|
|
$("#rowicd9-" + idx + ",#row_txt_icd9-" + idx + ",#row_dasar_icd9-" + idx).remove();
|
|
|
|
$("#btn_add_icd9" + idx_prev + ",#btn_remove_icd9" + idx_prev).prop("disabled", false);
|
|
});
|
|
|
|
// ===========================================================================================================================
|
|
jname = 1;
|
|
$("#qjaringan").val(jname);
|
|
$("#table_ketjaringan").delegate(".btn_add_icd10", "click", function() {
|
|
table_tndk = $("#table_ketjaringan");
|
|
jname++;
|
|
$("#qjaringan").val(jname);
|
|
nomor = parseInt($(this).data("no"));
|
|
idx = nomor - 1;
|
|
next = nomor + 1;
|
|
|
|
table_tndk.append("<tr id=\"rowicd10-" + nomor + "\"><td>" + next +
|
|
"</td><td><input type=\"text\" name=\"jaringan" + jname + "\" id=\"icd10_s" + nomor +
|
|
"\" data-target=\"icd10_s_" + nomor +
|
|
"\" class=\"form-control\" style=\"width:550px\"><button type=\"button\" id=\"btn_add_icd10" +
|
|
nomor + "\" class=\"btn btn-sm btn-success btn_add_icd10\" data-no=\"" + next +
|
|
"\" ><i class=\"fa fa-plus\"></i></button><button type=\"button\" id=\"btn_remove_icd10" +
|
|
nomor + "\" class=\"btn btn-sm btn-danger btn_remove_icd10\" data-no=\"" + nomor +
|
|
"\" ><i class=\"fa fa-trash\"></i></button></td></tr>");
|
|
|
|
$("#btn_add_icd10" + idx + ",#btn_remove_icd10" + idx).prop("disabled", true);
|
|
});
|
|
|
|
$("#table_ketjaringan").delegate(".btn_remove_icd10", "click", function() {
|
|
jname -= 1;
|
|
$("#qjaringan").val(jname);
|
|
idx = parseInt($(this).data("no"));
|
|
idx_prev = idx - 1;
|
|
|
|
$("#rowicd10-" + idx + ",#row_txt_icd10-" + idx + ",#row_dasar_icd10-" + idx).remove();
|
|
|
|
$("#btn_add_icd10" + idx_prev + ",#btn_remove_icd10" + idx_prev).prop("disabled", false);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
<div class="container-fluid">
|
|
<script language="JavaScript" type="text/JavaScript">
|
|
function showKab()
|
|
{
|
|
if (document.daftar.jenisanastesi.value == "UMUM")
|
|
{
|
|
document.getElementById('metodeanastesi').innerHTML="<option value='IV'>IV</option><option value='SUNGKUP MUKA'>SUNGKUP MUKA</option><option value='ETT/LMA'>ETT/LMA</option>";
|
|
}
|
|
else if (document.daftar.jenisanastesi.value == "REGIONAL")
|
|
{
|
|
document.getElementById('metodeanastesi').innerHTML="<option value='SPINAL'>SPINAL</option><option value='EPIDURAL'>EPIDURAL</option>";
|
|
}
|
|
else if (document.daftar.jenisanastesi.value == "BLOG PERIFER")
|
|
{
|
|
document.getElementById('metodeanastesi').innerHTML="<option value='BRAKHIAL'>BRAKHIAL</option><option value='AKSILAR'>AKSILAR</option><option value='FEMORAL'>FEMORAL</option><option value='LAIN-LAIN'>LAIN-LAIN</option>";
|
|
}
|
|
else if (document.daftar.jenisanastesi.value == "LOKAL")
|
|
{
|
|
document.getElementById('metodeanastesi').innerHTML="<option value='NULL'>TIDAK ADA</option>";
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<?php
|
|
$sql_operasi = "SELECT * from t_operasi where idxdaftar = " . $id_admission . "
|
|
order by id_operasi desc limit 1";
|
|
$get_operasi = $db->query($sql_operasi);
|
|
$dat_operasi = $get_operasi->fetchAll()[0];
|
|
|
|
$js_init .= 'let fr_diagnosako = froala4("#diagnosa_ko");';
|
|
|
|
if (array_key_exists('psn', $_GET) && $_GET['psn'] == 'sukses') {
|
|
echo '<div class="alert alert-success alert-dismissible" role="alert"><p>Data telah tersimpan</p><button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button></div>';
|
|
}
|
|
$sql_pendafataran = $db->query('SELECT * FROM t_admission WHERE id_admission = ' . $id_admission);
|
|
$daftar = $sql_pendafataran->fetchAll()[0];
|
|
$poly_ruang = $daftar['noruang'];
|
|
?>
|
|
<h3 class="text-center">FORM LAPORAN TINDAKAN</h3><br>
|
|
<form name="daftar" id="daftar_operasi" method="post" class="text-left">
|
|
<input type="hidden" name="qtindakan" id="qtindakan">
|
|
<input type="hidden" name="qjaringan" id="qjaringan">
|
|
<input type="hidden" name="add_operasi" value="1" />
|
|
<input type="hidden" name="idxdaftar" id="idxdaftar" value="<?= $id_admission ?>" />
|
|
<input type="hidden" name="nomr" id="nomr" value="<?= $nomr ?>" />
|
|
<input type="hidden" name="kdpoly" id="kdpoly" value="<?= $poly_ruang ?>" />
|
|
<input type="hidden" name="kddokter" id="dokter_operasi" value="<?= $daftar['dokter_penanggungjawab'] ?>" />
|
|
<?php
|
|
if ($_REQUEST['tindakan'] != '') {
|
|
$tindakan = $_REQUEST['tindakan'];
|
|
if (preg_match("/,/", $tindakan)) {
|
|
$list_tindakan = explode(",", $tindakan);
|
|
$arr_tindakan = array_combine(array_keys($list_tindakan), array_values($list_tindakan));
|
|
echo '<div class="form-group row">
|
|
<label class="form-control-label col-sm-1">Tindakan :</label>
|
|
<div class="col-sm-2">' . form_dropdown('ruang_tindakan', $arr_tindakan, '', 'class="form-control"') . '</div>
|
|
</div>';
|
|
} else {
|
|
echo '<input type="hidden" name="ruang_tindakan" value="' . $tindakan . '">';
|
|
}
|
|
}
|
|
?>
|
|
<div class="form-group row" style="font-size: 14px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-1">DPJP</label>
|
|
<div class="col-sm-2">
|
|
<?php echo form_dropdown('dpjp_bedah', $arr_dokter, $kddokter, 'class="form-control" style="width:100%"'); ?>
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Operator</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control" name="operator" id="" />
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Asisten Operator</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control" name="asisten_operator" id="" />
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Instrumentir</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" class="form-control" name="instrumentir" id="" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 14px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-1 d-none">DPJP Anastesi</label>
|
|
<div class="col-sm-2 d-none">
|
|
<?php // echo form_dropdown('dpjp_anestesi',$arr_dokter_anesthesi,'','class="form-control" style="width:100%"');
|
|
?>
|
|
</div>
|
|
<label class="form-control-label col-sm-1 d-none">Perawat Anastesi</label>
|
|
<div class="col-sm-2 d-none">
|
|
<input type="text" class="form-control d-none" name="Perawat_anastesi" id="" />
|
|
</div>
|
|
<label class="form-control-label col-sm-1" style="font-size: 12px">Tanggal <br> Pembedahan</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" readonly class="datepicker-default mask-date-default form-control" name="tgl_operasi"
|
|
id="tgl_operasi" value="" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 14px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Diagnosa Tindakan</label>
|
|
<div class="col-sm-2">
|
|
<textarea class="form-control" name="diagnosa_pra_bedah"></textarea>
|
|
</div>
|
|
<label class="form-control-label col-sm-2">Perawat Pasca Bedah</label>
|
|
<div class="col-sm-3">
|
|
<!-- <input type="text" class="form-control" name="" id="" /> -->
|
|
<textarea class="form-control" name="perawat_pasca_bedah"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<div class="form-group">
|
|
<table class="table">
|
|
<tr>
|
|
<td>
|
|
<div class="form-group">
|
|
<label class="">Tindakan Operatif/Non Operatif Lain</label>
|
|
<table class="table" id="table_tindakan_operasi">
|
|
<tr>
|
|
<td>1</td>
|
|
<td><input type="text" name="tindakan1" id="icd9_s0" data-target="icd9_s_0"
|
|
placeholder="Tindakan Operatif/Non Operatif Lain 1"
|
|
class="form-control cari_icd9" style="width:550px"><button type="button"
|
|
id="btn_add_icd90" class="btn btn-sm btn-success btn_add_icd9"
|
|
data-no="1"><i class="fa fa-plus"></i></button></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Jenis Operasi</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_jenis_operasi = ['Kecil', 'Besar', 'Sedang', 'Khusus'];
|
|
$arr_jenis_operasi = array_combine(array_keys($list_jenis_operasi), array_values($list_jenis_operasi));
|
|
echo form_input_radio('jenisoperasi', $arr_jenis_operasi, 'Kecil', 'jenisoperasi');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Kode Billing</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_kode_billing = ['General', 'Regional', 'Local'];
|
|
$arr_kode_billing = array_combine(array_keys($list_kode_billing), array_values($list_kode_billing));
|
|
echo form_input_radio('kodebilling', $arr_kode_billing, 'General', 'kodebilling');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Sistem Operasi</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_sistem_operasi = ['Cito', 'Urgent', 'Elektif', 'Khusus'];
|
|
$arr_sistem_operasi = array_combine(array_keys($list_sistem_operasi), array_values($list_sistem_operasi));
|
|
echo form_input_radio('sistemoperasi', $arr_sistem_operasi, 'Elektif', 'sistemoperasi');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 14px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-1">Operasi Mulai</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" name="operasi_mulai" readonly
|
|
class="format-waktu mask-date-time form-control form-control-sm"
|
|
value="<?= date("Y-m-d") . date("h:i:sa") ?>">
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Operasi Selesai</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" name="operasi_selesai" readonly
|
|
class="format-waktu mask-date-time form-control form-control-sm"
|
|
value="<?= date("Y-m-d") . date("h:i:sa") ?>">
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Lama Operasi</label>
|
|
<div class="col-sm-2">
|
|
<input type="number" name="lama_operasi" placeholder="Menit" class="form-control">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 14px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-1">Pembiusan Mulai</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" name="pembiusan_mulai" readonly
|
|
class="format-waktu mask-date-time form-control form-control-sm"
|
|
value="<?= date("Y-m-d") . date("h:i:sa") ?>">
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Pembiusan Selesai</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" name="pembiusan_selesai" readonly
|
|
class="format-waktu mask-date-time form-control form-control-sm"
|
|
value="<?= date("Y-m-d") . date("h:i:sa") ?>">
|
|
</div>
|
|
<label class="form-control-label col-sm-1">Lama Pembiusan</label>
|
|
<div class="col-sm-2">
|
|
<input type="number" name="lama_pembiusan" placeholder="Menit" class="form-control">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Jenis Pembedahan</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_jenis_bedah = ['Bersih', 'Bersih Terkontaminasi', 'Terkontaminasi Kotor', 'Kotor'];
|
|
$arr_jenis_bedah = array_combine(array_keys($list_jenis_bedah), array_values($list_jenis_bedah));
|
|
echo form_input_radio('jenispembedahan', $arr_jenis_bedah, 'Bersih', 'jenispembedahan');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Operasi Ke</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_operasi_ke = ['1(Satu)', 'Ulangan'];
|
|
$arr_operasi_ke = array_combine(array_keys($list_operasi_ke), array_values($list_operasi_ke));
|
|
echo form_input_radio('operasike', $arr_operasi_ke, '1(Satu)', 'operasike');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Keterangan Lahir</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_ketlahir = ['Lahir Hidup', 'Lahir Mati'];
|
|
$arr_ketlahir = array_combine(array_keys($list_ketlahir), array_values($list_ketlahir));
|
|
echo form_input_radio('ketlahir', $arr_ketlahir, 'Lahir Hidup', 'ketlahir');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Ket Tempat Lahir</label>
|
|
<div class="input-group col-sm-5">
|
|
<?php echo form_dropdown('ket_tmptlahir', $ket_tmplahir, $ket_tmplahir[1], 'class="form-control" id="tmp" style="width:100%"'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Berat Badan</label>
|
|
<div class="input-group col-sm-2">
|
|
<input type="number" name="beratbadan" class="form-control">
|
|
<div class="input-group-append">
|
|
<span class="input-group-text " id="basic-addon2">gram</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Ket Saat Lahir</label>
|
|
<div class="input-group col-sm-5">
|
|
<input type="text" name="ket_saat_lahir" class="form-control">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="form-control-label col-sm-2">Uraian Operasi</label>
|
|
<div class="col-sm-10">
|
|
<textarea name="uraian_operasi" id="diagnosa_ko"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Jumlah Perdarahan</label>
|
|
<div class="input-group col-sm-2">
|
|
<input type="number" name="jumlah_pendarahan" class="form-control" width="20px">
|
|
<div class="input-group-append">
|
|
<span class="input-group-text " id="basic-addon2">cc</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Jenis & Jumlah Darah Masuk</label>
|
|
<div class="col-sm-8">
|
|
<table style="" class="table">
|
|
<tr>
|
|
<div class="form-check form-check">
|
|
<td>
|
|
<div class="form-group row">
|
|
<input class="form-check-input" type="radio" name="darahmasuk" id="PRC" value="PRC">
|
|
<label class="form-check-label" for="PRC">
|
|
PRC
|
|
</label>
|
|
<div class="col-xs-2">
|
|
<input class="form-control input-sm" placeholder="CC" name="CC1" id="PRC_txt"
|
|
type="number">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="form-group row">
|
|
<input class="form-check-input" type="radio" name="darahmasuk" id="FFP" value="FFP">
|
|
<label class="form-check-label" for="FFP">
|
|
FFP
|
|
</label>
|
|
<div class="col-xs-2">
|
|
<input class="form-control input-sm" placeholder="CC" name="CC2" id="FFP_txt"
|
|
type="number">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</div>
|
|
</tr>
|
|
<tr>
|
|
<div class="form-check form-check">
|
|
<td>
|
|
<div class="form-group row">
|
|
<input class="form-check-input" type="radio" name="darahmasuk" id="WB" value="WB">
|
|
<label class="form-check-label" for="WB">
|
|
WB
|
|
</label>
|
|
<div class="col-xs-2">
|
|
<input class="form-control input-sm" placeholder="CC" name="CC3" id="WB_txt"
|
|
type="number">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="form-group row">
|
|
|
|
<input class="form-check-input" type="radio" name="darahmasuk" id="TC" value="TC">
|
|
<label class="form-check-label" for="TC">
|
|
TC
|
|
</label>
|
|
<div class="col-xs-2">
|
|
<input class="form-control input-sm" placeholder="CC" name="CC4" id="TC_txt"
|
|
type="number">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</div>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#PRC_txt").prop("disabled", true);
|
|
$("#FFP_txt").prop("disabled", true);
|
|
$("#WB_txt").prop("disabled", true);
|
|
$("#TC_txt").prop("disabled", true);
|
|
|
|
$("#PRC").click(function() {
|
|
$("#PRC_txt").prop("disabled", false);
|
|
$("#FFP_txt").prop("disabled", true);
|
|
$("#WB_txt").prop("disabled", true);
|
|
$("#TC_txt").prop("disabled", true);
|
|
});
|
|
|
|
$("#FFP").click(function() {
|
|
$("#PRC_txt").prop("disabled", true);
|
|
$("#FFP_txt").prop("disabled", false);
|
|
$("#WB_txt").prop("disabled", true);
|
|
$("#TC_txt").prop("disabled", true);
|
|
});
|
|
|
|
$("#WB").click(function() {
|
|
$("#PRC_txt").prop("disabled", true);
|
|
$("#FFP_txt").prop("disabled", true);
|
|
$("#WB_txt").prop("disabled", false);
|
|
$("#TC_txt").prop("disabled", true);
|
|
});
|
|
|
|
$("#TC").click(function() {
|
|
$("#PRC_txt").prop("disabled", true);
|
|
$("#FFP_txt").prop("disabled", true);
|
|
$("#WB_txt").prop("disabled", true);
|
|
$("#TC_txt").prop("disabled", false);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Merek</label>
|
|
<div class="input-group col-sm-5">
|
|
<input type="text" class="form-control" name="merek" width="20px">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Nama Implant</label>
|
|
<div class="input-group col-sm-5">
|
|
<input type="text" class="form-control" name="nama_implant" width="20px">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Stiker / Nomor Register implant</label>
|
|
<div class="input-group col-sm-5">
|
|
<input type="text" class="form-control" name="no_regis_implant" width="20px">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Nama Pendamping implant</label>
|
|
<div class="input-group col-sm-5">
|
|
<input type="text" class="form-control" name="nama_pendamping_implant" width="20px">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<label class="form-control-label col-sm-2">Specimen / Jaringan dikirim ke :</label>
|
|
<div class="col-sm-8">
|
|
<?php
|
|
$list_specimen = ['PA', 'Mikrobiologi', 'Laborat', 'Tidak Perlu'];
|
|
$arr_specimen = array_combine(array_keys($list_specimen), array_values($list_specimen));
|
|
echo form_input_radio('specimen', $arr_specimen, 'Lahir Hidup', 'specimen');
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row" style="font-size: 16px; background: #F7F7F7">
|
|
<div class="form-group">
|
|
<table class="table">
|
|
<tr>
|
|
<td>
|
|
<div class="form-group">
|
|
<label class="">Keterangan Jaringan</label>
|
|
<table class="table" id="table_ketjaringan">
|
|
<tr>
|
|
<td>1</td>
|
|
<td><input type="text" name="jaringan1" id="icd10_s0" data-target="icd10_s_0"
|
|
class="form-control cari_icd10" style="width:550px"><button
|
|
type="button" id="btn_add_icd100"
|
|
class="btn btn-sm btn-success btn_add_icd10" data-no="1"><i
|
|
class="fa fa-plus"></i></button></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
/***Todo Pembatasan Access menurut unit pelayanan */
|
|
if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
|
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
|
echo '
|
|
<div class="form-group row">
|
|
<!-- <label class="form-control-label col-sm-2"> </label> -->
|
|
<div class="col-sm-2">
|
|
<button type="button" id="history_tindakan" class="btn btn-secondary">History Laporan Operasi</button>
|
|
</div>
|
|
</div>
|
|
';
|
|
} else {
|
|
|
|
echo '
|
|
<div class="form-group row">
|
|
<!-- <label class="form-control-label col-sm-2"> </label> -->
|
|
<div class="col-sm-2">
|
|
<button type="button" id="history_tindakan" class="btn btn-secondary">History Laporan Operasi</button>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<input type="button" name="Submit" id="simpan_ko" class="btn btn-primary"
|
|
value="SIMPAN LAPORAN TINDAKAN" />
|
|
</div>
|
|
</div>
|
|
';
|
|
}
|
|
?>
|
|
<!-- <div class="form-group row">
|
|
<div class="col-sm-2">
|
|
<button type="button" id="history_tindakan" class="btn btn-secondary">History Laporan Tindakan</button>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<input type="button" name="Submit" id="simpan_ko" class="btn btn-primary"
|
|
value="Simpan Laporan Tindakan" />
|
|
</div>
|
|
</div> -->
|
|
</form>
|
|
</div>
|
|
<div class="table-responsive" style="overflow: auto;" id="list_daftar_operasi"></div>
|
|
<template id="histoperasi-template">
|
|
<div class="modal fade histoperasi-modal-lg" id="histoperasi-modal" tabindex="-1" role="dialog"
|
|
aria-labelledby="histoperasitasi" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg" style="max-width: 98%">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">History Laporan Tindakan</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body"></div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$histoperasi = $("#histoperasi-template").html();
|
|
$("body").append($histoperasi);
|
|
|
|
$('#history_tindakan').click(function() {
|
|
var idx = $('#idxdaftar').val();
|
|
var nomr = $('#nomr').val();
|
|
|
|
let tbl_id = "tbl_hist_operasi";
|
|
$.post('<?php echo _BASE_; ?>rajal/history_operasi.php?<?php echo http_build_query($_REQUEST); ?>', {
|
|
idxdaftar: idx,
|
|
nomr,
|
|
tbl_id,
|
|
tindakan: 1
|
|
}, function(data) {
|
|
$("#histoperasi-modal .modal-body").html("");
|
|
$("#histoperasi-modal .modal-body").html(data);
|
|
$("#histoperasi-modal").modal("show");
|
|
|
|
$("#" + tbl_id + " thead tr").clone(true).appendTo("#" + tbl_id + " thead");
|
|
$("#" + tbl_id + " thead tr:eq(1) th").each(function(i) {
|
|
if (i == 2 || i == 3 || i == 5) {
|
|
var title = $(this).text();
|
|
$(this).html(
|
|
"<input type=\"text\" class=\"form-control form-control-sm\" placeholder=\"Cari " +
|
|
title + "\" />");
|
|
|
|
$("input", this).typing({
|
|
stop: function(e, elm) {
|
|
tbl_hist_operasi.column(i).search(elm[0].value)
|
|
.draw();
|
|
},
|
|
delay: 400
|
|
});
|
|
|
|
$("input", this).on("click", function(e) {
|
|
e.stopPropagation();
|
|
});
|
|
} else {
|
|
var title = $(this).text();
|
|
$(this).html(" ");
|
|
return true;
|
|
}
|
|
});
|
|
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<?php
|
|
echo $datetimepicker_css;
|
|
echo $jquery_validation_js;
|
|
echo $datetimepicker_js;
|
|
echo $sweetalert_js;
|
|
$js_init .= '
|
|
function load_list_operasi() {
|
|
var idx = $("#idxdaftar").val();
|
|
var nomr = $("#nomr").val();
|
|
var kdunit = $("#kdpoly").val();
|
|
|
|
$("#list_daftar_operasi").load("' . _BASE_ . 'ranap/operasi/tambah_daftar_tindakan.php?idxdaftar="+idx+"&nomr="+nomr+"&kdunit="+kdunit);
|
|
}
|
|
|
|
|
|
$("#simpan_ko").click(function(){
|
|
form_operasi = $("#daftar_operasi").serialize();
|
|
|
|
tgl_operasi = $("#tgl_operasi").val();
|
|
if(tgl_operasi == "") {
|
|
Toast.fire({title:"Isikan taggal pembedahan",type:"error"});
|
|
}
|
|
else {
|
|
$.post("' . _BASE_ . 'ranap/operasi/tambah_daftar_tindakan.php",form_operasi,function(data){
|
|
Toast.fire({title:data.message,type:data.type,onClose : function() {
|
|
if(data.type == "success")
|
|
{
|
|
$("#daftar_operasi").trigger("reset");
|
|
}
|
|
}});
|
|
|
|
load_list_operasi();
|
|
},"json");
|
|
}
|
|
});
|
|
load_list_operasi();
|
|
|
|
$(".cari_icd9").combobox({
|
|
"mode" : "remote",
|
|
"loader" : function(param,success,error) {
|
|
query = param.q || "";
|
|
if(query.length < 2){ return false; }
|
|
$.post("' . _BASE_ . 'include/master.php?cari_prosedur=1",{query},function(data){
|
|
var items = $.map(data.data, function(item,index){
|
|
return {
|
|
code: item.code,
|
|
name: item.str
|
|
};
|
|
});
|
|
success(items);
|
|
},"json")
|
|
},
|
|
"valueField" : "code",
|
|
"textField" : "name",
|
|
"formatter" : formatItem,
|
|
"prompt" : "Cari Prosedur",
|
|
onClick : function(record) {
|
|
target = $(this).data("target");
|
|
$("#kode_"+target).html(record.code);
|
|
}
|
|
});
|
|
function formatItem(row){
|
|
var s = \'<div class="d-flex flex-row"><div class="flex-fill text-left">\' + row.name + \'</div>\' +
|
|
\'<div class="flex-fill text-right">\' + row.code + \'</div></div>\';
|
|
return s;
|
|
}
|
|
';
|
|
?>
|