This commit is contained in:
Duidev Software House
2025-12-05 19:38:39 +07:00
parent fdbe9c2522
commit e63353db3d
6 changed files with 231 additions and 156 deletions
@@ -1677,9 +1677,14 @@ class DokterController extends Controller
]);
}
if ($request->input('isi') == 'updatevaluemic'){
RekapAntibiotik::where('id', $nofoto)->update([
'value' => $request->input('komponen')
$value = (int) $request->input('komponen');
$data = RekapAntibiotik::findOrFail($nofoto);
$interpretation = $this->cekInterpretasi($value, $data);
$data->update([
'value' => $value,
'interpretation' => $interpretation
]);
$pesan = $interpretation;
}
if ($request->input('isi') == 'updateinterpretationmic'){
RekapAntibiotik::where('id', $nofoto)->update([
@@ -2118,8 +2123,8 @@ class DokterController extends Controller
}
}
public function getAdendum(Request $request) {
$nofoto = $request->input('val01');
$arrayfiles = [];
$nofoto = $request->input('val01');
$arrayfiles = [];
$files = Riwayat::where('nofoto', $nofoto)->orderBy('created_at', 'ASC')->get();
foreach ($files as $file) {
$arrayfiles[] = array(