diff --git a/htdocs/app/Services/AstmMessageService.php b/htdocs/app/Services/AstmMessageService.php index 838bf848..041898fd 100644 --- a/htdocs/app/Services/AstmMessageService.php +++ b/htdocs/app/Services/AstmMessageService.php @@ -779,11 +779,13 @@ class AstmMessageService if (isset($cekline[1])){ Log::info('Found F segment: '.$cekline[1]); $f = explode('|', $cekline[1]); - $resultDateTime2 = $this->astmToDateTime($f[4] ?? null); + $resultDateTime2 = $this->astmToDateTime($f[3] ?? null); if ($resultDateTime2){ $parsed['result'] = array_merge($parsed['result'], [ 'result_status_datetime' => $resultDateTime2, - 'test_complete_datetime' => $this->astmToDateTime($f[5] ?? null), + ]); + $parsed['instrument'] = array_merge($parsed['instrument'], [ + 'instrument_type' => $f[4] ?? null, ]); }