Update
This commit is contained in:
@@ -419,6 +419,20 @@ class DokterController extends Controller
|
||||
$otheras = $request->input('val20');
|
||||
$otherppds = $request->input('val21');
|
||||
$analis = $request->input('analis');
|
||||
if ($keterangan != ''){
|
||||
KomponenJawaban::updateOrCreate(
|
||||
[
|
||||
'accnumber' => $nofoto,
|
||||
'template' => $dlp,
|
||||
'komponen' => 'keterangan',
|
||||
],
|
||||
[
|
||||
'isidata' => $keterangan,
|
||||
'created_by' => Session('nama')
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$today = date('Y-m-d H:i:s');
|
||||
$periksa = Periksa::with(['getPasien', 'getPoli'])->find($idperiksa);
|
||||
$cekdokter = optional(User::find($iddokter));
|
||||
@@ -1213,7 +1227,7 @@ class DokterController extends Controller
|
||||
$isidata .= '</table>';
|
||||
|
||||
if ($organism != ''){
|
||||
$isidata = 'Organisme yang ditemukan <strong>'.$organism.'</strong><br />'.$isidata;
|
||||
$isidata = 'Organisme yang ditemukan <strong style="font-style: italic;">'.$organism.'</strong><br />'.$isidata;
|
||||
}
|
||||
}
|
||||
if ($isidata == '' OR is_null($isidata)){
|
||||
@@ -1549,7 +1563,7 @@ class DokterController extends Controller
|
||||
$iddokter = $request->input('dokter');
|
||||
$keterangan = $request->input('keterangan');
|
||||
$kesimpulan = $request->input('kesimpulan');
|
||||
$dlp = $request->input('val01');
|
||||
//$dlp = $request->input('val01');
|
||||
$val02 = $request->input('val02');
|
||||
$jenisfont = $request->input('val07');
|
||||
$modality = $request->input('val09');
|
||||
@@ -1564,6 +1578,19 @@ class DokterController extends Controller
|
||||
$otheras = $request->input('val20');
|
||||
$otherppds = $request->input('val21');
|
||||
$analis = $request->input('analis');
|
||||
if ($keterangan != ''){
|
||||
KomponenJawaban::updateOrCreate(
|
||||
[
|
||||
'accnumber' => $nofoto,
|
||||
'template' => $dlp,
|
||||
'komponen' => 'keterangan',
|
||||
],
|
||||
[
|
||||
'isidata' => $keterangan,
|
||||
'created_by' => Session('nama')
|
||||
]
|
||||
);
|
||||
}
|
||||
$junior2 = 0;
|
||||
$middle2 = 0;
|
||||
if ($otherppds != ''){
|
||||
|
||||
@@ -246,6 +246,7 @@ class TemplateController extends Controller
|
||||
try {
|
||||
$id = $request->id;
|
||||
$tabel = $request->tabel;
|
||||
$data = null;
|
||||
$pesan = 'Unkown Error';
|
||||
if ($tabel == 'Organisme'){
|
||||
if ($id == 'new'){
|
||||
@@ -312,7 +313,6 @@ class TemplateController extends Controller
|
||||
} else if ($tabel == 'Parameter'){
|
||||
$getdatalama = Organisms::where('kelompok', $request->kelompok)->first();
|
||||
$category = $getdatalama->category ?? $request->kelompok;
|
||||
|
||||
if ($id == 'new'){
|
||||
$ceksudah = Organisms::where('name', $request->name)->where('category', $category)->where('kelompok', $request->kelompok)->count();
|
||||
if ($ceksudah == 0){
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
<td width="5%">:</td>
|
||||
<td width="75%">
|
||||
@if (isset($data['id_bakteri01']))
|
||||
{!! $data['id_bakteri01'] !!}
|
||||
<i>{!! $data['id_bakteri01'] !!}</i>
|
||||
@endif
|
||||
@if (isset($data['id_bakterisir01']))
|
||||
( {!! $data['id_bakterisir01'] !!} )
|
||||
@@ -309,7 +309,7 @@
|
||||
<td>:</td>
|
||||
<td>
|
||||
@if (isset($data['id_bakteri02']))
|
||||
{!! $data['id_bakteri02'] !!}
|
||||
<i>{!! $data['id_bakteri02'] !!}</i>
|
||||
@endif
|
||||
@if (isset($data['id_bakterisir02']))
|
||||
( {!! $data['id_bakterisir02'] !!} )
|
||||
@@ -335,20 +335,77 @@
|
||||
</table>
|
||||
@if (isset($data['keterangan']))
|
||||
@php
|
||||
if (isset($data['id_kbamc'])){
|
||||
$id_kbamc = $data['id_kbamc'];
|
||||
} else {
|
||||
$id_kbamc = '';
|
||||
}
|
||||
if (isset($data['id_kblef'])){
|
||||
$id_kblef = $data['id_kblef'];
|
||||
} else {
|
||||
$id_kblef = '';
|
||||
}
|
||||
if (isset($data['id_kbfos'])){
|
||||
$id_kbfos = $data['id_kbfos'];
|
||||
} else {
|
||||
$id_kbfos = '';
|
||||
}
|
||||
if (isset($data['id_kbscf'])){
|
||||
$id_kbscf = $data['id_kbscf'];
|
||||
} else {
|
||||
$id_kbscf = '';
|
||||
}
|
||||
if (isset($data['id_sirkbamc'])){
|
||||
$id_sirkbamc = $data['id_sirkbamc'];
|
||||
} else {
|
||||
$id_sirkbamc = '';
|
||||
}
|
||||
if (isset($data['id_sirkblef'])){
|
||||
$id_sirkblef = $data['id_sirkblef'];
|
||||
} else {
|
||||
$id_sirkblef = '';
|
||||
}
|
||||
if (isset($data['id_sirkbfos'])){
|
||||
$id_sirkbfos = $data['id_sirkbfos'];
|
||||
} else {
|
||||
$id_sirkbfos = '';
|
||||
}
|
||||
if (isset($data['id_sirkbscf'])){
|
||||
$id_sirkbscf = $data['id_sirkbscf'];
|
||||
} else {
|
||||
$id_sirkbscf = '';
|
||||
}
|
||||
$keterangan = $data['keterangan'];
|
||||
$cekadatabel = explode('table', $keterangan);
|
||||
if (isset($cekadatabel[1])) {
|
||||
$keterangan = str_replace('</table>', '', $keterangan);
|
||||
$keterangan = str_replace('</tbody>', '', $keterangan);
|
||||
$keterangan .= '<tr><td> </td><td>AMC</td><td style="text-align:center;">' . ($data['id_kbamc'] ?? '') . '</td><td style="text-align:center;">' . ($data['id_sirkbamc'] ?? '') . '</td></tr>';
|
||||
$keterangan .= '<tr><td> </td><td>LEV</td><td style="text-align:center;">' . ($data['id_kblef'] ?? '') . '</td><td style="text-align:center;">' . ($data['id_sirkblef'] ?? '') . '</td></tr>';
|
||||
$keterangan .= '<tr><td> </td><td>FOS</td><td style="text-align:center;">' . ($data['id_kbfos'] ?? '') . '</td><td style="text-align:center;">' . ($data['id_sirkbfos'] ?? '') . '</td></tr>';
|
||||
$keterangan .= '<tr><td> </td><td>SCF</td><td style="text-align:center;">' . ($data['id_kbscf'] ?? '') . '</td><td style="text-align:center;">' . ($data['id_sirkbscf'] ?? '') . '</td></tr></tbody></table>';
|
||||
if ($id_kbamc != '' AND $id_sirkbamc != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Amoxicillin - clavulanic acid</td><td style="text-align:center;">'.$id_kbamc.'</td><td style="text-align:center;">'.$id_sirkbamc.'</td></tr>';
|
||||
}
|
||||
if ($id_kblef != '' AND $id_sirkblef != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Levofloxacin</td><td style="text-align:center;">'.$id_kblef.'</td><td style="text-align:center;">'.$id_sirkblef.'</td></tr>';
|
||||
}
|
||||
if ($id_kbfos != '' AND $id_sirkbfos != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Fosfomycin</td><td style="text-align:center;">'.$id_kbfos.'</td><td style="text-align:center;">'.$id_sirkbfos.'</td></tr>';
|
||||
}
|
||||
if ($id_kbscf != '' AND $id_sirkbscf != ''){
|
||||
$keterangan .= '<tr><td> </td><td>Cefoperazone - Sulbactam</td><td style="text-align:center;">'.$id_kbscf.'</td><td style="text-align:center;">'.$id_sirkbscf.'</td></tr>';
|
||||
}
|
||||
$keterangan .= '</tbody></table>';
|
||||
} else {
|
||||
$keterangan = $keterangan.'AMC : '.$data['id_kbamc'] ?? ''.' ('.$data['id_sirkbamc'] ?? ''.')<br />';
|
||||
$keterangan = $keterangan.'LEV : '.$data['id_kblef'] ?? ''.' ('.$data['id_sirkblef'] ?? ''.')<br />';
|
||||
$keterangan = $keterangan.'FOS : '.$data['id_kbfos'] ?? ''.' ('.$data['id_sirkbfos'] ?? ''.')<br />';
|
||||
$keterangan = $keterangan.'SCF : '.$data['id_kbscf'] ?? ''.' ('.$data['id_sirkbscf'] ?? ''.')<br />';
|
||||
if ($id_kbamc != '' AND $id_sirkbamc != ''){
|
||||
$keterangan = $keterangan.'<br />Amoxicillin - clavulanic acid : '.$id_kbamc.' ('.$id_sirkbamc.')';
|
||||
}
|
||||
if ($id_kblef != '' AND $id_sirkblef != ''){
|
||||
$keterangan = $keterangan.'<br />Levofloxacin : '.$id_kblef.' ('.$id_sirkblef.')';
|
||||
}
|
||||
if ($id_kbfos != '' AND $id_sirkbfos != ''){
|
||||
$keterangan = $keterangan.'<br />Fosfomycin : '.$id_kbfos.' ('.$id_sirkbfos.')';
|
||||
}
|
||||
if ($id_kbscf != '' AND $id_sirkbscf != ''){
|
||||
$keterangan = $keterangan.'<br />Cefoperazone - Sulbactam : '.$id_kbscf.' ('.$id_sirkbscf.')';
|
||||
}
|
||||
}
|
||||
echo $keterangan;
|
||||
@endphp
|
||||
|
||||
@@ -715,9 +715,12 @@
|
||||
<label for="id_bakterisir01" class="col-form-label">S/I/R I</label>
|
||||
<select class="form-control ekspertiseseletc" id="id_bakterisir01" name="id_bakterisir01">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
<option value="S">S</option>
|
||||
<option value="I">I</option>
|
||||
<option value="R">R</option>
|
||||
<option value="MDR">MDR</option>
|
||||
<option value="XDR">XDR</option>
|
||||
<option value="PDR">PDR</option>
|
||||
<option value="Carbapenem Resistant">Carbapenem Resistant</option>
|
||||
<option value="MDR Carbapenem Resistant">MDR Carbapenem Resistant</option>
|
||||
<option value="XDR Carbapenem Resistant">XDR Carbapenem Resistant</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-4" id="id_bakterihitungkol01select">
|
||||
@@ -764,9 +767,12 @@
|
||||
<label for="id_bakterisir02" class="col-form-label">S/I/R II</label>
|
||||
<select class="form-control ekspertiseseletc" id="id_bakterisir02" name="id_bakterisir02">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
<option value="S">S</option>
|
||||
<option value="I">I</option>
|
||||
<option value="R">R</option>
|
||||
<option value="MDR">MDR</option>
|
||||
<option value="XDR">XDR</option>
|
||||
<option value="PDR">PDR</option>
|
||||
<option value="Carbapenem Resistant">Carbapenem Resistant</option>
|
||||
<option value="MDR Carbapenem Resistant">MDR Carbapenem Resistant</option>
|
||||
<option value="XDR Carbapenem Resistant">XDR Carbapenem Resistant</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-4" id="id_bakterihitungkol02select">
|
||||
|
||||
@@ -760,12 +760,15 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<label for="id_bakterisir01" class="col-form-label">S/I/R I</label>
|
||||
<label for="id_bakterisir01" class="col-form-label">Resistensi I</label>
|
||||
<select class="form-control ekspertiseseletc" id="id_bakterisir01" name="id_bakterisir01">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
<option value="S">S</option>
|
||||
<option value="I">I</option>
|
||||
<option value="R">R</option>
|
||||
<option value="MDR">MDR</option>
|
||||
<option value="XDR">XDR</option>
|
||||
<option value="PDR">PDR</option>
|
||||
<option value="Carbapenem Resistant">Carbapenem Resistant</option>
|
||||
<option value="MDR Carbapenem Resistant">MDR Carbapenem Resistant</option>
|
||||
<option value="XDR Carbapenem Resistant">XDR Carbapenem Resistant</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-4" id="id_bakterihitungkol01select">
|
||||
@@ -809,12 +812,15 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<label for="id_bakterisir02" class="col-form-label">S/I/R II</label>
|
||||
<label for="id_bakterisir02" class="col-form-label">Resistant II</label>
|
||||
<select class="form-control ekspertiseseletc" id="id_bakterisir02" name="id_bakterisir02">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
<option value="S">S</option>
|
||||
<option value="I">I</option>
|
||||
<option value="R">R</option>
|
||||
<option value="MDR">MDR</option>
|
||||
<option value="XDR">XDR</option>
|
||||
<option value="PDR">PDR</option>
|
||||
<option value="Carbapenem Resistant">Carbapenem Resistant</option>
|
||||
<option value="MDR Carbapenem Resistant">MDR Carbapenem Resistant</option>
|
||||
<option value="XDR Carbapenem Resistant">XDR Carbapenem Resistant</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-4" id="id_bakterihitungkol02select">
|
||||
@@ -1943,10 +1949,10 @@
|
||||
<div class="form-group setelahdipilihtemplate">
|
||||
<input type="hidden" id="periksa_id" name="periksa_id">
|
||||
<button type="button" id="btnkembali" class="btn btn-primary">Back</button>
|
||||
@if (Session('previlage') == 'supervisor' || Session('previlage') == 'developer')
|
||||
@if (Session('previlage') == 'supervisor' OR Session('previlage') == 'developer')
|
||||
<button type="button" id="btnsendexpertisetopacs" class="btn btn-warning pull-right">Save Final Result</button>
|
||||
@else
|
||||
<button type="button" id="btnSavePeriksa" class="btn btn-warning pull-right" style="display: none;">Save and Send To SPV</button>
|
||||
<button type="button" id="btnSavePeriksa" class="btn btn-warning pull-right">Save and Send To SPV</button>
|
||||
@endif
|
||||
<button type="button" id="btnsavedraft" class="btn btn-success pull-right">Save as Draft</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user