This commit is contained in:
Duidev Software House
2025-09-11 13:45:02 +07:00
parent 89c33c0d5a
commit 1f52717e5c
10 changed files with 248 additions and 17 deletions
+12 -2
View File
@@ -11,6 +11,8 @@ use Exception;
use App\DataListiner;
use App\Periksa;
use App\RekapAntibiotik;
use App\PendaftaranOnListiner;
// Proses untuk Growth and Detection Result
function processGrowthDetectionResult($rawData){
// Format: R|1| ^ ^ ^GND_MGIT^430100001234|INST_POSITIVE ^87| ...
@@ -636,7 +638,11 @@ class AstmMessageService
'status' => 'Data BD di Terima',
]);
Log::info("Data ASTM BD ", $resultSample->toArray());
PendaftaranOnListiner::where('rnoreg', $data->no_id)->update([
'rtglast' => date('Y-m-d'),
'flg_vitek1' => 0,
'flg_vitek2' => 0
]);
} else {
DataListiner::where('urut', $data->urut)->update([
'processed' => 9
@@ -684,7 +690,11 @@ class AstmMessageService
'status' => 'Data BD di Terima',
]);
Log::info("Data ASTM BD ", $resultSample->toArray());
PendaftaranOnListiner::where('rnoreg', $data->no_id)->update([
'rtglast' => date('Y-m-d'),
'flg_vitek1' => 0,
'flg_vitek2' => 0
]);
} else {
DB::table('lis_phoenix')->where('id', $data->id)->update([
'processed' => 9