diff --git a/htdocs/app/Http/Controllers/DokterController.php b/htdocs/app/Http/Controllers/DokterController.php index 721af67f..ba838825 100644 --- a/htdocs/app/Http/Controllers/DokterController.php +++ b/htdocs/app/Http/Controllers/DokterController.php @@ -1313,85 +1313,127 @@ class DokterController extends Controller try { $kuman = $request->input('isi'); $komponen = $request->input('komponen'); - KomponenJawaban::updateOrCreate( - [ - 'accnumber' => $nofoto, - 'template' => $dlp, - 'komponen' => $komponen, - ], - [ - 'isidata' => $kuman, - 'created_by' => Session('nama') - ] - ); + $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 { - $jumlah = 0; - $jsonantibiotikmanual = array( - 'Amoxycillin', - 'Amoxycillin and Clavulanic Acid', - 'Ampicillin', - 'Ampicillin/ Sulbactam', - 'Benzilpenicillin', - 'Piperacillin/ Tazobactam', - 'Cloxacillin', - 'Cefadroxil', - 'Cefotaxim', - 'Ceftriaxone', - 'Cefuroxime', - 'Cefazoline', - 'Cefixime', - 'Ceftazidime', - 'Cefoxitin', - 'Cefepime', - 'Cefoperazone/ sulbactam', - 'Aztreonam', - 'Meropenem', - 'Imipenem', - 'Ertapenem', - 'Gentamicin', - 'Amikacin', - 'Ciprofloxacin', - 'Levofloxacin', - 'Moxifloxacin', - 'Tetracyline', - 'Erythomycin', - 'Clindamycin', - 'Chloramphenicol', - 'Nitrofurantoin', - 'Colistine', - 'Co-trimoxazole', - 'Vancomycin', - 'Linezolid', - 'Tigecycline', - 'Fluconazole', - 'Voriconazole', - 'Micafungin', - 'Amphothericin B', - 'Caspofungin', - 'Flucytosine' + KomponenJawaban::updateOrCreate( + [ + 'accnumber' => $nofoto, + 'template' => $dlp, + 'komponen' => $komponen, + ], + [ + 'isidata' => $kuman, + 'created_by' => Session('nama') + ] ); - foreach($jsonantibiotikmanual as $antibiotic_name){ - $ceksudah = RekapAntibiotik::where('orderid', $idperiksa)->where('kuman', $kuman)->where('antibiotic', $antibiotic_name)->count(); - if ($ceksudah == 0){ - RekapAntibiotik::create([ - 'orderid' => $idperiksa, - 'kuman' => $kuman, - 'antibiotic' => $antibiotic_name, - 'resistance' => null, - 'value' => null, - 'interpretation' => null, - 'glassreportname' => in_array($antibiotic_name, $jsonantibiotik), - 'printrow' => false, - 'printcol' => false, - 'created_at' => date('Y-m-d H:i:s'), - 'updated_at' => date('Y-m-d H:i:s'), - ] - ); - $jumlah++; + 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( + 'Amoxycillin', + 'Amoxycillin and Clavulanic Acid', + 'Ampicillin', + 'Ampicillin/ Sulbactam', + 'Benzilpenicillin', + 'Piperacillin/ Tazobactam', + 'Cloxacillin', + 'Cefadroxil', + 'Cefotaxim', + 'Ceftriaxone', + 'Cefuroxime', + 'Cefazoline', + 'Cefixime', + 'Ceftazidime', + 'Cefoxitin', + 'Cefepime', + 'Cefoperazone/ sulbactam', + 'Aztreonam', + 'Meropenem', + 'Imipenem', + 'Ertapenem', + 'Gentamicin', + 'Amikacin', + 'Ciprofloxacin', + 'Levofloxacin', + 'Moxifloxacin', + 'Tetracyline', + 'Erythomycin', + 'Clindamycin', + 'Chloramphenicol', + 'Nitrofurantoin', + 'Colistine', + 'Co-trimoxazole', + 'Vancomycin', + 'Linezolid', + 'Tigecycline', + 'Fluconazole', + 'Voriconazole', + 'Micafungin', + 'Amphothericin B', + 'Caspofungin', + 'Flucytosine' + ); + foreach($jsonantibiotikmanual as $antibiotic_name){ + $ceksudah = RekapAntibiotik::where('orderid', $idperiksa)->where('kuman', $kuman)->where('antibiotic', $antibiotic_name)->count(); + if ($ceksudah == 0){ + RekapAntibiotik::create([ + 'orderid' => $idperiksa, + 'kuman' => $kuman, + 'antibiotic' => $antibiotic_name, + 'resistance' => null, + 'value' => null, + 'interpretation' => null, + 'glassreportname' => in_array($antibiotic_name, $jsonantibiotik), + 'printrow' => false, + 'printcol' => false, + 'batasatas' => null, + 'midrange' => null, + 'batasbawah' => null, + 'created_at' => date('Y-m-d H:i:s'), + 'updated_at' => date('Y-m-d H:i:s'), + ] + ); + $jumlah++; + } } } + if ($jumlah != 0){ $update = Riwayat::create([ 'nofoto' => $nofoto, @@ -1401,7 +1443,7 @@ class DokterController extends Controller 'verifikasi'=> '', ]); } - return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => 'Data Kuman Manual Disimpan dengan '.$jumlah.' Antibiotik']); + return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => 'Data Kuman Manual Disimpan dengan '.$jumlah.' Antibiotik '.$astmanual]); } } catch (Exception $e) { $pesan = $e->getMessage(); @@ -1416,7 +1458,7 @@ class DokterController extends Controller $idtabel = $request->input('isi'); if ($idtabel == 'new'){ DB::table('pertumkolomni')->insert([ - 'orderid' => $idperiksa, + 'orderid' => $nofoto, 'tglpenyimpanan' => date('Y-m-d'), 'media' => $request->input('komponen') ?? '', 'kuman' => $request->input('kuman') ?? '', @@ -1424,7 +1466,7 @@ class DokterController extends Controller 'katalase' => $request->input('katalase') ?? '', 'koagulase' => $request->input('koagulase') ?? '', 'oksidase' => $request->input('oksidase') ?? '', - 'ujilainnya' => $request->input('ujilainnya') ?? '', + 'lainnya' => $request->input('ujilainnya') ?? '', 'status' => $request->input('status') ?? '', 'tindaklanjut' => $request->input('tindaklanjut') ?? '', 'created_by' => Session('nama'), @@ -1436,7 +1478,7 @@ class DokterController extends Controller 'katalase' => $request->input('katalase') ?? '', 'koagulase' => $request->input('koagulase') ?? '', 'oksidase' => $request->input('oksidase') ?? '', - 'ujilainnya' => $request->input('ujilainnya') ?? '', + 'lainnya' => $request->input('ujilainnya') ?? '', 'status' => $request->input('status') ?? '', 'tindaklanjut' => $request->input('tindaklanjut') ?? '', 'created_by' => Session('nama'), @@ -1629,6 +1671,17 @@ class DokterController extends Controller RekapAntibiotik::where('id', $nofoto)->delete(); } if ($request->input('isi') == 'updatemic'){ + RekapAntibiotik::where('id', $nofoto)->update([ + 'interpretation' => $request->input('komponen'), + 'value' => $request->input('micval') + ]); + } + if ($request->input('isi') == 'updatevaluemic'){ + RekapAntibiotik::where('id', $nofoto)->update([ + 'value' => $request->input('komponen') + ]); + } + if ($request->input('isi') == 'updateinterpretationmic'){ RekapAntibiotik::where('id', $nofoto)->update([ 'interpretation' => $request->input('komponen') ]); @@ -1891,6 +1944,11 @@ class DokterController extends Controller $norm = $request->input('norm'); $sql = ResultSample::where('accession_number', 'NOT LIKE', $nofoto.'%')->where('patient_id', $norm)->get(); return $sql; + } else if ($worklist == 'generatetblpertumbuhankoloni'){ + $orderid = $request->input('nofoto'); + $media = $request->input('komponen'); + $sql = DB::table('pertumkolomni')->where('orderid', $orderid)->where('media', $media)->get(); + return $sql; } else { $periksa = Periksa::where('id', $idperiksa)->first(); if (isset($periksa->id)){ diff --git a/htdocs/app/Http/Controllers/FrontpageController.php b/htdocs/app/Http/Controllers/FrontpageController.php index df7f4c57..cca4c425 100644 --- a/htdocs/app/Http/Controllers/FrontpageController.php +++ b/htdocs/app/Http/Controllers/FrontpageController.php @@ -194,7 +194,7 @@ class FrontpageController extends Controller 'antrkrmsitu' => 0, ]; $allOrganisms = Organisms::orderBy('name', 'ASC')->get(); - $allASTManual = SiraB::whereNotNull('setmanual')->select('setmanual')->orderBy('setmanual', 'ASC')->get(); + $allASTManual = SiraB::whereNotNull('setmanual')->select('setmanual')->groupBy('setmanual')->get(); $groupOrganisms = function ($kelompok) use ($allOrganisms) { $organisms = $allOrganisms->where('kelompok', $kelompok); if ($organisms->isEmpty()) { diff --git a/htdocs/database/seeders/JawabanSeeder.php b/htdocs/database/seeders/JawabanSeeder.php index e68e5c66..934b0e23 100644 --- a/htdocs/database/seeders/JawabanSeeder.php +++ b/htdocs/database/seeders/JawabanSeeder.php @@ -23,7 +23,7 @@ class JawabanSeeder extends Seeder ['kategori' => '1', 'judul' => 'TBC', 'subjawaban' => '', 'kesimpulan' => ''], ['kategori' => '1', 'judul' => 'Viral Load', 'subjawaban' => '', 'kesimpulan' => ''], ['kategori' => '1', 'judul' => 'PCR COVID', 'subjawaban' => '', 'kesimpulan' => ''], - ['kategori' => '1', 'judul' => 'IgM/IgG Leptospira', 'subjawaban' => '', 'kesimpulan' => ''] + ['kategori' => '1', 'judul' => 'IgM IgG Leptospira', 'subjawaban' => '', 'kesimpulan' => ''] ]); DB::table('dokter')->insert([ [ 'id' => 2, 'nama' => 'NON DOKTER', 'jk' => '', 'tgl_lahir' => null, 'kota' => 'ND', 'alamat' => 'UMUM', 'created_at' => '2025-08-02 07:14:51', 'updated_at' => '2025-08-02 07:14:51'], diff --git a/htdocs/resources/views/dokter/pemeriksaan.blade.php b/htdocs/resources/views/dokter/pemeriksaan.blade.php index 86864302..c1af27f5 100644 --- a/htdocs/resources/views/dokter/pemeriksaan.blade.php +++ b/htdocs/resources/views/dokter/pemeriksaan.blade.php @@ -522,274 +522,138 @@
B. Biakan Kultur
+
+
+
+ + +
+
+ + +
+
+
-
-
- - +
+
+ +
+
+
+
+
+ +
+
+
+
+
+
-
- - +
+
+
+
+ +
+
+
+
+
+
-
- - +
+
+
+
+ +
+
+
+
+
+
-
- - +
+
+
+
+ +
+
+
+
+
+
-
- - +
+
+
+
+ +
+
+
+
+
+
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - +
+
+
+
+ +
+
+
+
+
+
@@ -1159,7 +1023,6 @@ -
@@ -1284,7 +1147,7 @@ - + @@ -1410,19 +1273,27 @@
-
Neg
+
TCM XDR
- - - - - + +
+
+
MTB
+
+ +
+
H Low
@@ -1475,21 +1346,9 @@
-
-
Invalid
-
- -
-
+
Amk
@@ -1542,33 +1401,6 @@
-
-
Error
-
- -
-
-
-
No Result
-
- -
-
@@ -1593,16 +1425,24 @@
-
Neg
+
TCM XDR
- - - - + - + + +
+
+
+
MTB
+
+
@@ -1662,20 +1502,6 @@
-
-
Invalid
-
- -
-
@@ -1734,34 +1560,6 @@
-
-
Error
-
- -
-
-
-
No Result
-
- -
-
@@ -1870,13 +1668,30 @@
+
+
+ + +
+
+ + +
+
+ + +
+
- @@ -1990,7 +1805,7 @@
-
+
-
+
+ +
+
-
+
-
+
+
+ +
@@ -2050,8 +1880,10 @@ + + + - @@ -2070,7 +1902,7 @@
-
+
-
+
+ +
+
-
+
-
+
+
+ +
Antibiotik Value InterpretationSIR Print Value.?Edit Delete
@@ -2130,8 +1977,10 @@ + + + - @@ -2153,36 +2002,13 @@ -

Isian Khusus SPV

-
-
- - -
-
- - -
-
- @if (Session('previlage') == 'supervisor' OR Session('previlage') == 'developer') - - @else - - @endif +
@@ -2195,27 +2021,8 @@ - - + + + + + + + + + + + + @@ -2292,166 +2519,12 @@ + + -
-
- - -
-
- - -
-
Antibiotik Value InterpretationSIR Print Value.?Edit Delete
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Kv
mAs
DLP
Weight
Rooms Update - -
Kv
mAs
DLP
Modality
Stase / Disease - -
Stase Sistem Organ
Weight
Rooms
Device - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- -
-
- -
-
-
- -
- - -
-
- - -
@@ -2483,8 +2556,7 @@
- - +
`; + } + }, + { + data: 'interpretation', + render: function (data, type, full) { + + let options = ['','S','I','R']; + let html = ``; + return html; + } + }, + { data: 'batasatas' }, + { data: 'midrange' }, + { data: 'batasbawah' }, { data: null, render: function (data, type, full) { @@ -2627,12 +2756,6 @@ } } }, - { - data: null, - render: function (data, type, full) { - return ``; - } - }, { data: null, render: function (data, type, full) { @@ -2698,8 +2821,33 @@ } }, { data: 'antibiotic' }, - { data: 'value' }, - { data: 'interpretation' }, + { + data: 'value', + render: function (data, type, full) { + return ``; + } + }, + { + data: 'interpretation', + render: function (data, type, full) { + + let options = ['','S','I','R']; + let html = ``; + return html; + } + }, + { data: 'batasatas' }, + { data: 'midrange' }, + { data: 'batasbawah' }, { data: null, render: function (data, type, full) { @@ -2712,12 +2860,6 @@ } } }, - { - data: null, - render: function (data, type, full) { - return ``; - } - }, { data: null, render: function (data, type, full) { @@ -2823,9 +2965,355 @@ } }); } + function jQueryCreateTabelPertumbuhanKoloni(jQuery){ + var idne = document.getElementById('periksa_id').value; + var srcjsonbap = { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media BAP', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + var srcjsoncap = { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media CAP', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + var srcjsonmcconkey = { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media Mc Conkey', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + var srcjsonsda = { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media SDA', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + var srcjsonselainnya= { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media Selektif lainnya', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + var srcjsontalainnya= { + datatype: "json", + datafields: [ + { name: 'id',type: 'text'}, + { name: 'orderid',type: 'text'}, + { name: 'tglpenyimpanan',type: 'text'}, + { name: 'media',type: 'text'}, + { name: 'kuman',type: 'text'}, + { name: 'hemolisa',type: 'text'}, + { name: 'katalase',type: 'text'}, + { name: 'koagulase',type: 'text'}, + { name: 'oksidase',type: 'text'}, + { name: 'lainnya',type: 'text'}, + { name: 'status',type: 'text'}, + { name: 'tindaklanjut',type: 'text'}, + { name: 'created_by',type: 'text'}, + { name: 'updated_at',type: 'text'}, + ], + type: 'POST', + data: { nofoto: idne, komponen: 'Media Tambahan Lainnya', keterangan:'generatetblpertumbuhankoloni', _token: '{{csrf_token()}}' }, + url: '{{ route("getResult") }}', + }; + $("#gridmediabap").jqxGrid({ + width : '100%', + source : srcjsonbap, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '15%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Hemolisa', datafield: 'hemolisa', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Katalase', datafield: 'katalase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Koagulase', datafield: 'koagulase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Lainnya', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '15%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediabap").offset(); + var dataRecord = $("#gridmediabap").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_mediabap').val(dataRecord.kuman); + $('#id_pemeriksaanhemolisa').val(dataRecord.hemolisa); + $('#id_pemeriksaankatalase').val(dataRecord.katalase); + $('#id_pemeriksaankabulase').val(dataRecord.koagulase); + $('#id_ujialainnyabap').val(dataRecord.lainnya); + $('#id_statusmediabap').val(dataRecord.status); + $('#modalgridmediabap').modal('show'); + } + }, + ] + }); + $("#gridmediacap").jqxGrid({ + width : '100%', + source : srcjsoncap, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '20%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '20%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Katalase', datafield: 'katalase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Koagulase', datafield: 'koagulase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Lainnya', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediacap").offset(); + var dataRecord = $("#gridmediacap").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_mediacap').val(dataRecord.kuman); + $('#cap_pemeriksaankatalase').val(dataRecord.katalase); + $('#cap_pemeriksaankabulase').val(dataRecord.koagulase); + $('#id_ujialainnyacap').val(dataRecord.lainnya); + $('#id_statusmediacap').val(dataRecord.status); + $('#modalgridmediacap').modal('show'); + } + }, + ] + }); + $("#gridmediamcconkey").jqxGrid({ + width : '100%', + source : srcjsonmcconkey, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '20%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '20%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Oksidase', datafield: 'oksidase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Lainnya', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '20%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediamcconkey").offset(); + var dataRecord = $("#gridmediamcconkey").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_mediamcconkey').val(dataRecord.kuman); + $('#id_ujialainnyamcconkey').val(dataRecord.lainnya); + $('#id_ujioksidasemcconkey').val(dataRecord.oksidase); + $('#id_statusmediamcconkey').val(dataRecord.status); + $('#modalgridmediamcconkey').modal('show'); + } + }, + ] + }); + $("#gridmediasda").jqxGrid({ + width : '100%', + source : srcjsonsda, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'R1', datafield: 'hemolisa', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'R2', datafield: 'katalase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'I1', datafield: 'koagulase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'I2', datafield: 'oksidase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Inokulasi', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediasda").offset(); + var dataRecord = $("#gridmediasda").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_mediasda').val(dataRecord.kuman); + $('#sda_pemeriksaanhemolisa').val(dataRecord.hemolisa); + $('#sda_pemeriksaankatalase').val(dataRecord.katalase); + $('#sda_pemeriksaankabulase').val(dataRecord.koagulase); + $('#id_ujialainnyasda').val(dataRecord.lainnya); + $('#id_ujioksidasesda').val(dataRecord.oksidase); + $('#id_statusmediasda').val(dataRecord.status); + $('#modalgridmediasda').modal('show'); + } + }, + ] + }); + $("#gridmediasellainnya").jqxGrid({ + width : '100%', + source : srcjsonselainnya, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Hemolisa', datafield: 'hemolisa', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Katalase', datafield: 'katalase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Koagulase', datafield: 'koagulase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Oksidase', datafield: 'oksidase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Lainnya', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediasellainnya").offset(); + var dataRecord = $("#gridmediasellainnya").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_mediaselektif').val(dataRecord.kuman); + $('#sellainnya_pemeriksaanhemolisa').val(dataRecord.hemolisa); + $('#sellainnya_pemeriksaankatalase').val(dataRecord.katalase); + $('#sellainnya_pemeriksaankabulase').val(dataRecord.koagulase); + $('#id_ujialainnyasellainnya').val(dataRecord.lainnya); + $('#id_ujioksidasesellainnya').val(dataRecord.oksidase); + $('#id_statusmediasellainnya').val(dataRecord.status); + $('#modalgridmediaselektif').modal('show'); + } + }, + ] + }); + $("#gridmediatamlainnya").jqxGrid({ + width : '100%', + source : srcjsontalainnya, + columnsresize : true, + theme : "energyblue", + autoheight : true, + pageable : true, + altrows : true, + columns : [ + { text: 'Tanggal', datafield: 'tglpenyimpanan', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Petugas', datafield: 'created_by', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Kuman', datafield: 'kuman', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Hemolisa', datafield: 'hemolisa', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Katalase', datafield: 'katalase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Koagulase', datafield: 'koagulase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Oksidase', datafield: 'oksidase', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Lainnya', datafield: 'lainnya', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Status', datafield: 'status', width: '10%', cellsalign: 'left', align: 'center' }, + { text: 'Edit', filterable: false, columntype: 'button', align: 'center', width: '10%', cellsrenderer: function () { + return "Edit"; + }, buttonclick: function (row) { + editrowjabatan = row; + var offset = $("#gridmediatamlainnya").offset(); + var dataRecord = $("#gridmediatamlainnya").jqxGrid('getrowdata', editrowjabatan); + $('#idpertumbuhankoloni').val(dataRecord.id); + $('#id_pemeriksaantl').val(dataRecord.kuman); + $('#tamlainnya_pemeriksaanhemolisa').val(dataRecord.hemolisa); + $('#tamlainnya_pemeriksaankatalase').val(dataRecord.katalase); + $('#tamlainnya_pemeriksaankabulase').val(dataRecord.koagulase); + $('#id_ujialainnyatamlainnya').val(dataRecord.lainnya); + $('#id_ujioksidasetamlainnya').val(dataRecord.oksidase); + $('#id_statusmediatamlainnya').val(dataRecord.status); + $('#modalgridmediatamlainnya').modal('show'); + } + }, + ] + }); + } function openlamanekpertise( jQuery ){ var dlp = document.getElementById('dlp').value; var nofoto = document.getElementById('nofoto').value; + var idne = document.getElementById('periksa_id').value; $('#template_jenis').val(dlp); $('#divtemplate').hide(); $('.templatejawaban').hide(); @@ -2836,6 +3324,7 @@ $('#id_bakterihitungkol01teks').hide(); $('#id_bakterihitungkol02select').show(); $('#id_bakterihitungkol02teks').hide(); + $('input[type="checkbox"]').prop('disabled', false); if (dlp == 'CCI'){ $('#templatecci').show(); @@ -2845,6 +3334,7 @@ $('#pewarnaangiemsateks').hide(); $('#pewarnaankohselect').show(); $('#pewarnaankohteks').hide(); + jQueryCreateTabelPertumbuhanKoloni(); } else if (dlp == 'Pewarna Langsung'){ $('#lsg_pewarnaankohselect').show(); $('#lsg_pewarnaankohteks').hide(); @@ -2856,6 +3346,8 @@ $('.hasilpemeriksaantb').hide(); } else if (dlp == 'Viral Load'){ $('#templateviralload').show(); + } else if (dlp == 'IgM IgG Leptospira'){ + $('#templateleptospira').show(); } var form_data = new FormData(); form_data.append('nofoto', nofoto); @@ -2869,7 +3361,6 @@ contentType : false, processData : false, success : function (response) { - var komponens = response.komponens || JSON.parse(response); komponens.forEach(function(rows) { if (rows.komponen === 'lsg_pewarnaanlain') { @@ -3534,6 +4025,9 @@ CKEDITOR.replace( 'lsg_ditemukanmorfologi'); CKEDITOR.replace( 'lsg_pewarnaanlain'); CKEDITOR.replace( 'viralload'); + CKEDITOR.replace( 'iggigm_interpretasi'); + $("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true}); + $("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true}); $("#id_tanggalpengambilancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true}); $("#id_tanggalpengirimancontohuji").datepicker({format: 'yyyy-mm-dd', autoclose: true}); $("#hasilpemeriksaantbbiakan_tgl").datepicker({format: 'yyyy-mm-dd', autoclose: true}); @@ -3547,13 +4041,205 @@ }); $(document).ready(function () { $('.select2').select2(); - $("#mulai").datepicker({format: 'yyyy-mm-dd', autoclose: true}); - $("#akhir").datepicker({format: 'yyyy-mm-dd', autoclose: true}); $('#divviewpacs').hide(); $('#divtemplate').hide(); $('#divperiksa').hide(); $('#divreadonly').hide(); $('#divharibytanggal').hide(); + $("#btnuntukgridmediabap").click(function() { + $('#modalgridmediabap').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnuntukgridmediacap").click(function() { + $('#modalgridmediacap').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnuntukgridmediamcconkey").click(function() { + $('#modalgridmediamcconkey').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnuntukgridmediasda").click(function() { + $('#modalgridmediasda').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnuntukgridmediasellainnya").click(function() { + $('#modalgridmediaselektif').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnuntukgridmediatamlainnya").click(function() { + $('#modalgridmediatamlainnya').modal('show'); + $('#idpertumbuhankoloni').val('new'); + }); + $("#btnsimpanpertumbuhankolonibap").click(function() { + $('#modalgridmediabap').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media BAP'; + var kuman = document.getElementById('id_mediabap').value; + var hemolisa = document.getElementById('id_pemeriksaanhemolisa').value; + var katalase = document.getElementById('id_pemeriksaankatalase').value; + var koagulase = document.getElementById('id_pemeriksaankabulase').value; + var ujilainnya = document.getElementById('id_ujialainnyabap').value; + var status = document.getElementById('id_statusmediabap').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediabap").jqxGrid('updatebounddata','filter'); + }); + }); + $("#btnsimpanpertumbuhankolonicap").click(function() { + $('#modalgridmediacap').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media CAP'; + var kuman = document.getElementById('id_mediacap').value; + var hemolisa = ''; + var katalase = document.getElementById('cap_pemeriksaankatalase').value; + var koagulase = document.getElementById('cap_pemeriksaankabulase').value; + var ujilainnya = document.getElementById('id_ujialainnyacap').value; + var status = document.getElementById('id_statusmediacap').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediacap").jqxGrid('updatebounddata','filter'); + }); + }); + $("#btnsimpanpertumbuhankolonimcconkey").click(function() { + $('#modalgridmediamcconkey').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media Mc Conkey'; + var kuman = document.getElementById('id_mediamcconkey').value; + var hemolisa = ''; + var katalase = ''; + var koagulase = ''; + var ujilainnya = document.getElementById('id_ujialainnyamcconkey').value; + var oksidase = document.getElementById('id_ujioksidasemcconkey').value; + var status = document.getElementById('id_statusmediamcconkey').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + oksidase: oksidase, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediamcconkey").jqxGrid('updatebounddata','filter'); + }); + }); + $("#btnsimpanpertumbuhankolonisda").click(function() { + $('#modalgridmediasda').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media SDA'; + var kuman = document.getElementById('id_mediasda').value; + var hemolisa = document.getElementById('sda_pemeriksaanhemolisa').value; + var katalase = document.getElementById('sda_pemeriksaankatalase').value; + var koagulase = document.getElementById('sda_pemeriksaankabulase').value; + var ujilainnya = document.getElementById('id_ujialainnyasda').value; + var oksidase = document.getElementById('id_ujioksidasesda').value; + var status = document.getElementById('id_statusmediasda').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + oksidase: oksidase, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediasda").jqxGrid('updatebounddata','filter'); + }); + }); + $("#btnsimpanpertumbuhankolonisellainnya").click(function() { + $('#modalgridmediaselektif').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media Selektif lainnya'; + var kuman = document.getElementById('id_mediaselektif').value; + var hemolisa = document.getElementById('sellainnya_pemeriksaanhemolisa').value; + var katalase = document.getElementById('sellainnya_pemeriksaankatalase').value; + var koagulase = document.getElementById('sellainnya_pemeriksaankabulase').value; + var ujilainnya = document.getElementById('id_ujialainnyasellainnya').value; + var oksidase = document.getElementById('id_ujioksidasesellainnya').value; + var status = document.getElementById('id_statusmediasellainnya').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + oksidase: oksidase, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediasellainnya").jqxGrid('updatebounddata','filter'); + }); + }); + $("#btnsimpanpertumbuhankolonitamlainnya").click(function() { + $('#modalgridmediatamlainnya').modal('hide'); + var id = document.getElementById('periksa_id').value; + var idtabel = document.getElementById('idpertumbuhankoloni').value; + var media = 'Media Tambahan Lainnya'; + var kuman = document.getElementById('id_pemeriksaantl').value; + var hemolisa = document.getElementById('tamlainnya_pemeriksaanhemolisa').value; + var katalase = document.getElementById('tamlainnya_pemeriksaankatalase').value; + var koagulase = document.getElementById('tamlainnya_pemeriksaankabulase').value; + var ujilainnya = document.getElementById('id_ujialainnyatamlainnya').value; + var oksidase = document.getElementById('id_ujioksidasetamlainnya').value; + var status = document.getElementById('id_statusmediatamlainnya').value; + $.post('{{ route("getResult") }}', { + nofoto: id, + komponen: media, + isi: idtabel, + kuman: kuman, + hemolisa: hemolisa, + katalase: katalase, + koagulase: koagulase, + ujilainnya: ujilainnya, + oksidase: oksidase, + status: status, + keterangan: 'pertumbuhankoloni', + _token: '{{ csrf_token() }}' }, + function(data){ + $("#gridmediatamlainnya").jqxGrid('updatebounddata','filter'); + }); + }); $("#btnopenviteklain").click(function() { var norm = document.getElementById('norm').value; var nofoto = document.getElementById('nofoto').value; @@ -3608,11 +4294,15 @@ }); $("#btneditmicvalue").click(function() { $('#modaleditormic').modal('hide'); - var id = document.getElementById('micvalue_id').value; - var isi = document.getElementById('micvalue_editor').value; - $.post('{{ route("getResult") }}', { nofoto: id, komponen: isi, isi: 'updatemic', keterangan: 'printunprinttblantibiotik', _token: '{{ csrf_token() }}' }, + var id = document.getElementById('micvalue_id').value; + var micval = document.getElementById('micvalue_editor').value; + var isi = document.getElementById('micinterpretatition_editor').value; + + $.post('{{ route("getResult") }}', { nofoto: id, komponen: isi, micval: micval, isi: 'updatemic', keterangan: 'printunprinttblantibiotik', _token: '{{ csrf_token() }}' }, function(data){ $("#tblvitek").DataTable().ajax.reload(); + $("#tblkumanmanual1").DataTable().ajax.reload(); + $("#tblkumanmanual2").DataTable().ajax.reload(); }); return false; }); @@ -3625,12 +4315,40 @@ }); return false; }); - $("#btnpunyaku").click(function() { - $("#master_userid").val("{{ Session('id') }}"); + $("#btnhariinidoank").click(function() { + $("#master_set01").val('ThisDay'); + $("#master_set02").val(''); + $("#master_set03").val(''); + $("#master_set04").val(''); + var set01=document.getElementById('master_judul').value; + var judul='Patient Queue This Day on '+set01; + $("#judul").html(judul); + $("#valcari").val(''); + $("#mulai").val(''); + $("#akhir").val(''); + $("#valjenis").val('searchbydate'); openedpage(); }); - $("#btnallspv").click(function() { - $("#master_userid").val('allspv'); + $("#btnmundur2").click(function() { + $("#master_set01").val('mundur2'); + $("#master_set02").val(''); + $("#master_set03").val(''); + $("#master_set04").val(''); + $("#valcari").val(''); + $("#mulai").val(''); + $("#akhir").val(''); + $("#valjenis").val('searchbydate'); + openedpage(); + }); + $("#btnmundur3").click(function() { + $("#master_set01").val('mundur3'); + $("#master_set02").val(''); + $("#master_set03").val(''); + $("#master_set04").val(''); + $("#valcari").val(''); + $("#mulai").val(''); + $("#akhir").val(''); + $("#valjenis").val('searchbydate'); openedpage(); }); $("#btnkembali").click(function() { @@ -3638,96 +4356,43 @@ $('#divreadonly').hide(); $('#divawal').show(); }); + $("#btncancel").click(function() { + var set01 = document.getElementById('id_alasanpembatan').value; + var set05 = document.getElementById('periksa_id').value; + var token = document.getElementById('token').value; + if (set01 == ''){ + swal({ + title : 'Mohon Di Isi?', + text : "Alasan Wajib di Isi", + type : 'warning', + }); + } else { + $("#modalpembatalan").modal('hide'); + $.post('{{ route("cancelPACSorder") }}', { val01: set01, val05: set05, _token: '{{csrf_token()}}' }, + function(data){ + var status = data.status; + var message = data.message; + $('#divperiksa').hide(); + $('#divawal').show(); + $("#gridpemeriksaan").jqxGrid('updatebounddata', 'filter'); + $.toast({ + heading : status, + text : message, + position : 'top-right', + loaderBg : warna, + icon : icon, + hideAfter : 5000, + stack : 1 + }); + }); + } + }); + $("#btnopenmodalcancel").click(function() { + $("#modalpembatalan").modal('show'); + }); $("#btnshowtemplate").click(function() { $('#divtemplate').show(); }); - $("#btngetbyaccnum").click(function(){ - var nofoto = document.getElementById('nofoto').value; - var ruangan = document.getElementById('ruangan').value; - var dokter = document.getElementById('dokter').value; - var keterangan = CKEDITOR.instances['keterangan'].getData(); - var kesimpulan = CKEDITOR.instances['kesimpulan'].getData(); - var periksa_id = document.getElementById('periksa_id').value; - var set01 = ''; - var set07 = ''; - var set09 = document.getElementById('modaliti').value; - var set10 = document.getElementById('template_jenis').value; - var set11 = document.getElementById('berat').value; - var set12 = ''; - var set13 = document.getElementById('klinis').value; - var set14 = document.getElementById('kave').value; - var set15 = document.getElementById('mas').value; - var token = document.getElementById('token').value; - if (dokter == 'Pilih' || dokter == '' || dokter == '0' || dokter == null){ - swal({ - title : 'Stop', - text : 'Please Select SPV', - type : 'warning', - }) - } else if (set09 == '' || set09 == 'OT'){ - swal({ - title : 'Stop', - text : 'Please Select Device', - type : 'warning', - }) - } else { - var form_data = new FormData(); - form_data.append('nofoto', nofoto); - form_data.append('ruangan', ruangan); - form_data.append('dokter', dokter); - form_data.append('keterangan', keterangan); - form_data.append('kesimpulan', kesimpulan); - form_data.append('periksa_id', periksa_id); - form_data.append('val01', set01); - form_data.append('val07', set07); - form_data.append('val09', set09); - form_data.append('val10', set10); - form_data.append('val11', set11); - form_data.append('val12', set12); - form_data.append('val13', set13); - form_data.append('val14', set14); - form_data.append('val15', set15); - form_data.append('_token', '{{csrf_token()}}'); - var btn = $(this); - btn.addClass('fa fa-spinner fa-spin orange bigger-125').attr('disabled', true); - $.ajax({ - url : '{{ route("getResult") }}', - data : form_data, - type : 'POST', - contentType : false, - processData : false, - success : function (data) { - var ketlama = CKEDITOR.instances['keterangan'].getData(); - var status = data.status; - var message = data.message; - var warna = data.warna; - var icon = data.icon; - $.toast({ - heading : status, - text : message, - position : 'top-right', - loaderBg : warna, - icon : icon, - hideAfter : 5000, - stack : 1 - }); - CKEDITOR.instances['keterangan'].setData(ketlama+'
'+message) - btn.removeClass('fa fa-spinner fa-spin orange bigger-125').attr('disabled', false); - return false; - }, - error: function (xhr, status, error) { - btn.removeClass('fa fa-spinner fa-spin orange bigger-125').attr('disabled', false); - var response = xhr.responseJSON || {}; - var traceText = response.trace ? JSON.stringify(response.trace) : null; - swal({ - title : response.message || 'Terjadi kesalahan', - text : traceText || xhr.responseText, - type : 'error', - }) - } - }); - } - }); $("#btnsendexpertisetopacs").click(function(){ var keterangan = CKEDITOR.instances['keterangan'].getData(); var lsg_pewarnaanlain = CKEDITOR.instances['lsg_pewarnaanlain'].getData(); @@ -3793,7 +4458,7 @@ hideAfter : 5000, stack : 1 }); - window.location.href = "{{ url('/reportppds') }}"; + //window.location.href = "{{ url('/mikro') }}"; return false; }, error: function (xhr, status, error) { @@ -3805,7 +4470,6 @@ } }); } - }); $("#btnsavedraft").click(function(){ var keterangan = CKEDITOR.instances['keterangan'].getData(); @@ -3863,7 +4527,6 @@ stack : 1 }); $("#gridadendum").jqxGrid('updatebounddata','filter'); - return false; }, error: function (xhr, status, error) { @@ -3920,6 +4583,43 @@ }, ] }); + $("#btnmultisendsitu").click(function(){ + var rowsgridcetak = $("#gridpemeriksaan").jqxGrid('selectedrowindexes'); + var selectedRecords = new Array(); + for (var m = 0; m < rowsgridcetak.length; m++) { + var row = $("#gridpemeriksaan").jqxGrid('getrowdata', rowsgridcetak[m]); + selectedRecords.push(row.id); + } + if (m == '0'){ + swal({ + title: 'Stop', + text: 'Please Select Patient First', + type: 'warning', + }) + } else { + var token = document.getElementById('token').value; + $.post('{{ route("exsendtoinsitu") }}', { set01: selectedRecords, _token: '{{csrf_token()}}' }, + function(data){ + var status = data.status; + var message = data.message; + var warna = data.warna; + var icon = data.icon; + $.toast({ + heading: status, + text: message, + position: 'top-right', + loaderBg: warna, + icon: icon, + hideAfter: 3000, + stack: 1 + }); + setTimeout(function () { + location.reload(); + }, 3000); + return false; + }); + } + }); $("#btnviewcustom").click(function() { var mulai=document.getElementById('mulai').value; var akhir=document.getElementById('akhir').value; @@ -3947,8 +4647,8 @@ $("#err_text").val('Start Date Cannot Empty'); $("#modalerror").modal('show'); } else if (akhir == ''){ - $("#err_text").val('End Date Cannot Empty'); - $("#modalerror").modal('show'); + $("#err_text").val('End Date Cannot Empty'); + $("#modalerror").modal('show'); } else { if (set03 == 'inisaja'){ var judul='Search Result by key: '+set01+' Patient From '+mulai+' until '+akhir+' on '+set04; @@ -4188,66 +4888,6 @@ } }); - $("#id_bakteri01").on('change', function() { - var komponen = $(this).attr('id'); - var isi = document.getElementById('id_bakteri01').value; - var jenis = document.getElementById('dlp').value; - var idne = document.getElementById('periksa_id').value; - var form_data = new FormData(); - form_data.append('nofoto', document.getElementById('nofoto').value); - form_data.append('val10', jenis); - form_data.append('komponen', komponen); - form_data.append('isi', isi); - form_data.append('periksa_id', idne); - form_data.append('keterangan', 'kumanmanual'); - form_data.append('_token', '{{csrf_token()}}'); - $.ajax({ - url : '{{ route("getResult") }}', - data : form_data, - type : 'POST', - contentType : false, - processData : false, - success : function (response) { - console.log(response); - btncreateantibiotikkumanmanual1(); - }, - error: function (xhr, status, error) { - var response = xhr.responseJSON || {}; - var traceText = response.trace ? JSON.stringify(response.trace) : null; - console.log(traceText); - } - }); - }); - $("#id_bakteri02").on('change', function() { - var komponen = $(this).attr('id'); - var isi = document.getElementById('id_bakteri02').value; - var jenis = document.getElementById('dlp').value; - var idne = document.getElementById('periksa_id').value; - var form_data = new FormData(); - form_data.append('nofoto', document.getElementById('nofoto').value); - form_data.append('val10', jenis); - form_data.append('komponen', komponen); - form_data.append('isi', isi); - form_data.append('periksa_id', idne); - form_data.append('keterangan', 'kumanmanual'); - form_data.append('_token', '{{csrf_token()}}'); - $.ajax({ - url : '{{ route("getResult") }}', - data : form_data, - type : 'POST', - contentType : false, - processData : false, - success : function (response) { - console.log(response); - btncreateantibiotikkumanmanual2(); - }, - error: function (xhr, status, error) { - var response = xhr.responseJSON || {}; - var traceText = response.trace ? JSON.stringify(response.trace) : null; - console.log(traceText); - } - }); - }); $(".pilihankirby").on('change', function() { var komponen = $(this).attr('id'); var isi = $(this).val(); @@ -4279,6 +4919,94 @@ } }); }); + $("#btnsimpannewkumanmanual1").click(function() { + var komponen = 'id_bakteri01'; + var isi = document.getElementById('id_bakteri01').value; + var jenis = document.getElementById('dlp').value; + var idne = document.getElementById('periksa_id').value; + var astmanual = document.getElementById('id_antibiotikmanual1').value; + var form_data = new FormData(); + form_data.append('nofoto', document.getElementById('nofoto').value); + form_data.append('val10', jenis); + form_data.append('komponen', komponen); + form_data.append('isi', isi); + form_data.append('periksa_id', idne); + form_data.append('astmanual', astmanual); + form_data.append('keterangan', 'kumanmanual'); + form_data.append('_token', '{{csrf_token()}}'); + $.ajax({ + url : '{{ route("getResult") }}', + data : form_data, + type : 'POST', + contentType : false, + processData : false, + success : function (response) { + var status = response.status; + var message = response.message; + var warna = response.warna; + var icon = response.icon; + $.toast({ + heading: status, + text: message, + position: 'top-right', + loaderBg: warna, + icon: icon, + hideAfter: 3000, + stack: 1 + }); + btncreateantibiotikkumanmanual1(); + }, + error: function (xhr, status, error) { + var response = xhr.responseJSON || {}; + var traceText = response.trace ? JSON.stringify(response.trace) : null; + console.log(traceText); + } + }); + }); + $("#btnsimpannewkumanmanual2").click(function() { + var komponen = 'id_bakteri02'; + var isi = document.getElementById('id_bakteri02').value; + var jenis = document.getElementById('dlp').value; + var idne = document.getElementById('periksa_id').value; + var astmanual = document.getElementById('id_antibiotikmanual2').value; + var form_data = new FormData(); + form_data.append('nofoto', document.getElementById('nofoto').value); + form_data.append('val10', jenis); + form_data.append('komponen', komponen); + form_data.append('isi', isi); + form_data.append('periksa_id', idne); + form_data.append('astmanual', astmanual); + form_data.append('keterangan', 'kumanmanual'); + form_data.append('_token', '{{csrf_token()}}'); + $.ajax({ + url : '{{ route("getResult") }}', + data : form_data, + type : 'POST', + contentType : false, + processData : false, + success : function (response) { + var status = response.status; + var message = response.message; + var warna = response.warna; + var icon = response.icon; + $.toast({ + heading: status, + text: message, + position: 'top-right', + loaderBg: warna, + icon: icon, + hideAfter: 3000, + stack: 1 + }); + btncreateantibiotikkumanmanual2(); + }, + error: function (xhr, status, error) { + var response = xhr.responseJSON || {}; + var traceText = response.trace ? JSON.stringify(response.trace) : null; + console.log(traceText); + } + }); + }); }); @endpush diff --git a/htdocs/resources/views/dokter/ppds.blade.php b/htdocs/resources/views/dokter/ppds.blade.php index 253483cb..2629fa65 100644 --- a/htdocs/resources/views/dokter/ppds.blade.php +++ b/htdocs/resources/views/dokter/ppds.blade.php @@ -1724,6 +1724,28 @@
+
+
+ + +
+
+ + +
+
+ + +
+
@@ -1899,8 +1936,10 @@ + + + - @@ -1919,7 +1958,7 @@
-
+
-
+
+ +
+
-
+
-
+
+
+ +
Antibiotik Value InterpretationSIR Print Value.?Edit Delete
@@ -1979,8 +2033,10 @@ + + + - @@ -1998,6 +2054,7 @@
+
@@ -2090,7 +2147,10 @@ + + + - @@ -1956,7 +1958,7 @@
-
+
-
+
+ +
+
-
+
-
+
+
+ +
Antibiotik Value InterpretationSIR Print Value.?Edit Delete
Antibiotik Value InterpretationSIR Print Value.?Edit Delete
@@ -2016,8 +2033,10 @@ + + + - @@ -2128,7 +2147,10 @@
Antibiotik Value InterpretationSIR Print Value.?Edit Delete