update 25 Maret 2026
This commit is contained in:
@@ -96,10 +96,17 @@ function searchTindakan(PostgresDb $db, string $q) {
|
||||
}
|
||||
|
||||
function postLaporanOperasi(PostgresDb $db, $data) {
|
||||
$query = "INSERT into t_operasi ()";
|
||||
$query = "INSERT into t_operasi (tanggal, jammulai, jamselesai, diagnosa, tindakan, jenisanastesi,
|
||||
nip, dokteroperator, dokter_bedah, kode_dokteroperator, dokteranastesi, kode_dokteranastesi,
|
||||
asistenoperator, perawatinstrumen, pembedahan, jaringan, jnsoperasi, lama_operasi,
|
||||
diagnosa_prabedah, kd_billing, sistem_operasi, pembiusan_mulai, pembiusan_selesai, lama_pembiusan,
|
||||
operasi_ke, ket_lahir, ket_tempat_lahir, berat_badan, jumlah_pendarahan, ket_saat_lahir,
|
||||
merek, nama_implant, stiker, nama_pendamping, specimen, jnsdarahmasuk, uraian_operasi,
|
||||
jenis_laporan, ruang_tindakan) VALUES
|
||||
( ".$data["tgl_bedah"].", ".$data["tgl_bedah"].") ";
|
||||
echo json_encode([
|
||||
"message" => "success post laporan operasi",
|
||||
"data" => $data
|
||||
"data" => $data,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
<input type="hidden" name="dpjp_operator" id="dpjp_operator">
|
||||
<input type="hidden" name="nama_dpjp_operator" id="nama_dpjp_operator">
|
||||
<input type="hidden" name="nip_dpjp_operator" id="nip_dpjp_operator">
|
||||
<input type="hidden" name="kode_dpjp_operator" id="kode_dpjp_operator">
|
||||
|
||||
<div
|
||||
id="resultDPJP"
|
||||
@@ -223,7 +224,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
<label>Operasi Mulai</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="datetime-local" id="op_mulai" class="form-control">
|
||||
<input type="datetime-local" name="operasi_mulai" id="op_mulai" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -248,7 +249,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
<label>Operasi Selesai</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="datetime-local" id="op_selesai" class="form-control" disabled>
|
||||
<input type="datetime-local" name="operasi_selesai" id="op_selesai" class="form-control" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -267,7 +268,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
<label>Pembiusan Mulai</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="datetime-local" id="bius_mulai" class="form-control">
|
||||
<input type="datetime-local" name="pembiusan_mulai" id="bius_mulai" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -279,7 +280,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="input-group">
|
||||
<input type="number" id="lama_bius" class="form-control">
|
||||
<input type="number" name="lama_pembiusan" id="lama_bius" class="form-control">
|
||||
<span class="input-group-text">menit</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -292,7 +293,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
<label>Pembiusan Selesai</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="datetime-local" id="bius_selesai" class="form-control" disabled>
|
||||
<input type="datetime-local" name="pembiusan_selesai" id="bius_selesai" class="form-control" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -699,6 +700,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
const hiddenDokter = document.getElementById("dpjp_operator")
|
||||
const hiddenNamaDokter = document.getElementById("nama_dpjp_operator")
|
||||
const hiddenNipDokter = document.getElementById("nip_dpjp_operator")
|
||||
const hiddenKodeDokter = document.getElementById("kode_dpjp_operator")
|
||||
|
||||
let timer = null
|
||||
|
||||
@@ -735,6 +737,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
hiddenDokter.value = d.kddokter
|
||||
hiddenNamaDokter.value = d.namadokter
|
||||
hiddenNipDokter.value = d.nip
|
||||
hiddenKodeDokter.value = d.kode_dpjp
|
||||
|
||||
resultDokter.innerHTML = ""
|
||||
|
||||
@@ -1083,9 +1086,9 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
</td>
|
||||
`
|
||||
|
||||
tbody.appendChild(row)
|
||||
// tbody.appendChild(row)
|
||||
|
||||
tglBedah.value = ""
|
||||
// tglBedah.value = ""
|
||||
})
|
||||
|
||||
// SUBMIT FORM
|
||||
@@ -1094,6 +1097,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
const form = document.getElementById("formLaporanOperasi")
|
||||
|
||||
let formData = new FormData(form)
|
||||
formData.set("uraian", frUraianOperasi.getContents())
|
||||
|
||||
// const plainObject = Object.fromEntries(formData.entries());
|
||||
|
||||
// console.log("form value: ", plainObject)
|
||||
|
||||
Reference in New Issue
Block a user