From 98d6b688e9ee1bfb72e5e0c32ea3f42fcdc4f849 Mon Sep 17 00:00:00 2001 From: Duidev Software Date: Fri, 2 Jan 2026 13:25:45 +0700 Subject: [PATCH] Update --- .../app/Http/Controllers/DokterController.php | 116 +- .../Http/Controllers/FrontpageController.php | 5 +- .../views/dokter/pemeriksaan.blade.php | 1479 +++++++++++++---- htdocs/resources/views/dokter/ppds.blade.php | 30 +- .../views/dokter/ppdsdeveloper.blade.php | 29 +- 5 files changed, 1230 insertions(+), 429 deletions(-) diff --git a/htdocs/app/Http/Controllers/DokterController.php b/htdocs/app/Http/Controllers/DokterController.php index ec49336e..d3fc5f85 100644 --- a/htdocs/app/Http/Controllers/DokterController.php +++ b/htdocs/app/Http/Controllers/DokterController.php @@ -1325,62 +1325,7 @@ class DokterController extends Controller ]; return response()->json($response, 500); } else if ($worklist == 'kumanmanual'){ - try { - $kuman = $request->input('isi'); - $komponen = $request->input('komponen'); - $astmanual = $request->input('astmanual'); - if ($kuman == 'Pilih Salah Satu' OR $kuman == 'undefined' OR $kuman == '' OR is_null($kuman)){ - KomponenJawaban::where('accnumber', $nofoto)->where('template', $dlp)->where('komponen', $komponen)->delete(); - Riwayat::create([ - 'nofoto' => $nofoto, - 'jawaban' => $kuman, - 'inputor' => Session('nama'), - 'keterangan' => 'Delete Kuman Manual ('.$komponen.')', - 'verifikasi' => '', - ]); - return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => 'Data Kuman Manual Dihapus']); - } else { - KomponenJawaban::updateOrCreate( - [ - 'accnumber' => $nofoto, - 'template' => $dlp, - 'komponen' => $komponen, - ], - [ - 'isidata' => $kuman, - 'created_by' => Session('nama') - ] - ); - if (isset($astmanual) AND $astmanual != 'default'){ - $getsirab = SiraB::where('setmanual', 'LIKE', $astmanual.'%')->get(); - - $jumlah = count($getsirab); - foreach($getsirab as $rsira){ - $ceksudah = RekapAntibiotik::where('orderid', $idperiksa)->where('kuman', $kuman)->where('antibiotic', $rsira->subantibiotik)->count(); - if ($ceksudah == 0){ - RekapAntibiotik::create([ - 'orderid' => $idperiksa, - 'kuman' => $kuman, - 'antibiotic' => $rsira->subantibiotik, - 'resistance' => null, - 'value' => null, - 'interpretation' => null, - 'glassreportname' => in_array($rsira->subantibiotik, $jsonantibiotik), - 'printrow' => false, - 'printcol' => false, - 'batasatas' => $rsira->batasatas, - 'midrange' => $rsira->midrange, - 'batasbawah' => $rsira->batasbawah, - 'created_at' => date('Y-m-d H:i:s'), - 'updated_at' => date('Y-m-d H:i:s'), - ] - ); - $jumlah++; - } - } - } else { - $jumlah = 0; - $jsonantibiotikmanual = array( + $jsonantibiotikmanual = array( 'Amoxycillin', 'Amoxycillin and Clavulanic Acid', 'Ampicillin', @@ -1424,6 +1369,65 @@ class DokterController extends Controller 'Caspofungin', 'Flucytosine' ); + try { + $kuman = $request->input('isi'); + $komponen = $request->input('komponen'); + $astmanual = $request->input('astmanual'); + if ($kuman == 'Pilih Salah Satu' OR $kuman == 'undefined' OR $kuman == '' OR is_null($kuman)){ + KomponenJawaban::where('accnumber', $nofoto)->where('template', $dlp)->where('komponen', $komponen)->delete(); + Riwayat::create([ + 'nofoto' => $nofoto, + 'jawaban' => $kuman, + 'inputor' => Session('nama'), + 'keterangan' => 'Delete Kuman Manual ('.$komponen.')', + 'verifikasi' => '', + ]); + return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => 'Data Kuman Manual Dihapus']); + } else { + KomponenJawaban::updateOrCreate( + [ + 'accnumber' => $nofoto, + 'template' => $dlp, + 'komponen' => $komponen, + ], + [ + 'isidata' => $kuman, + 'created_by' => Session('nama') + ] + ); + if (isset($astmanual) AND $astmanual != 'default'){ + $getsirab = SiraB::where('setmanual', 'LIKE', $astmanual.'%')->get(); + + $jumlah = count($getsirab); + foreach($getsirab as $rsira){ + $ceksudah = RekapAntibiotik::where('orderid', $idperiksa)->where('kuman', $kuman)->where('antibiotic', $rsira->subantibiotik)->count(); + if ($ceksudah == 0){ + if (in_array($rsira->subantibiotik, $jsonantibiotikmanual)){ + RekapAntibiotik::create([ + 'orderid' => $idperiksa, + 'kuman' => $kuman, + 'antibiotic' => $rsira->subantibiotik, + 'resistance' => null, + 'value' => null, + 'interpretation' => null, + 'glassreportname' => in_array($rsira->subantibiotik, $jsonantibiotik), + 'printrow' => false, + 'printcol' => false, + 'batasatas' => $rsira->batasatas, + 'midrange' => $rsira->midrange, + 'batasbawah' => $rsira->batasbawah, + 'created_at' => date('Y-m-d H:i:s'), + 'updated_at' => date('Y-m-d H:i:s'), + ]); + $jumlah++; + } + + + } + } + } else { + $jumlah = 0; + foreach($jsonantibiotikmanual as $antibiotic_name){ $ceksudah = RekapAntibiotik::where('orderid', $idperiksa)->where('kuman', $kuman)->where('antibiotic', $antibiotic_name)->count(); if ($ceksudah == 0){ diff --git a/htdocs/app/Http/Controllers/FrontpageController.php b/htdocs/app/Http/Controllers/FrontpageController.php index 641a6a21..c70f6893 100644 --- a/htdocs/app/Http/Controllers/FrontpageController.php +++ b/htdocs/app/Http/Controllers/FrontpageController.php @@ -537,7 +537,6 @@ class FrontpageController extends Controller 'categories' => $categories, ]; }; - $biakankulturData = $groupOrganisms('biakankultur'); $mikroorganismeData = $groupOrganisms('mikroorganisme'); $data = array_merge($data, [ @@ -545,7 +544,7 @@ class FrontpageController extends Controller 'bacterycateggories' => $biakankulturData['categories'], 'mikroorganismes' => $mikroorganismeData['organismes'], 'mikroorganismestlist' => $mikroorganismeData['categories'], - ]); + ]); $kelompokMapping = [ 'jsonsputum' => 'Sputum', 'jsonswabtenggorok' => 'Swab Tenggorok', @@ -566,7 +565,7 @@ class FrontpageController extends Controller 'jsonmediamcconkey' => 'Media Mc Conkey', 'jsonpemeriksaantl' => 'Pemeriksaan Tambahan Lainnya', 'jsonbiakankultur' => 'Biakan Kultur', - ]; + ]; foreach ($kelompokMapping as $key => $kelompok) { $data[$key] = $allOrganisms->where('kelompok', $kelompok)->values(); } diff --git a/htdocs/resources/views/dokter/pemeriksaan.blade.php b/htdocs/resources/views/dokter/pemeriksaan.blade.php index a1133e6c..01e80b02 100644 --- a/htdocs/resources/views/dokter/pemeriksaan.blade.php +++ b/htdocs/resources/views/dokter/pemeriksaan.blade.php @@ -185,6 +185,10 @@
+
+ + +
@@ -523,6 +527,7 @@ B. Biakan Kultur
+ Khusus Kultur Darah dan Cairan Steril
@@ -537,126 +542,6 @@
-
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
@@ -782,6 +667,145 @@ +
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
@@ -1574,10 +1685,11 @@ +
-
+
+
+ + +
-
+
+
+ + +
- @if(isset($antibiotics) && count($antibiotics) > 0) @foreach($antibiotics as $antibiotic) - + @endforeach @endif @@ -1925,11 +2045,11 @@
- @if(isset($antibiotics) && count($antibiotics) > 0) @foreach($antibiotics as $antibiotic) - + @endforeach @endif @@ -2002,6 +2122,10 @@
+
+ + +
@@ -2118,38 +2242,50 @@
@@ -2477,9 +2650,11 @@ - - - + + + + +
@@ -2509,23 +2684,34 @@
- - - - - - - - - - - - - - - -
+
+
+ +
+
+ +
+
+ +
@@ -2566,21 +2752,31 @@
+ + + + + + + + + + + + + + + + @endsection - @push('script')