From a9ea401f6516b97a76e9b92d56501defc612690c Mon Sep 17 00:00:00 2001 From: Dwi Swandhana Date: Fri, 30 Jan 2026 09:45:38 +0700 Subject: [PATCH] push --- htdocs/app/Services/AstmMessageService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/app/Services/AstmMessageService.php b/htdocs/app/Services/AstmMessageService.php index b0d685f5..e7b9169e 100644 --- a/htdocs/app/Services/AstmMessageService.php +++ b/htdocs/app/Services/AstmMessageService.php @@ -764,7 +764,8 @@ class AstmMessageService elseif (str_starts_with($line, 'R|')) { $f = explode('|', $line); $test = explode('^', $f[2] ?? ''); - $resultDateTime = $this->astmToDateTime($f[11] ?? null); + $resultDateTime = $this->astmToDateTime($f[9] ?? null); + $updated_date = $this->parseUpdatedDate($f[10] ?? null); // Instrument detail di akhir baris preg_match('/(MGIT960|BACTECFX)[^|]*/', $line, $inst); @@ -772,7 +773,8 @@ class AstmMessageService $parsed['result'] = [ 'organism' => $test[2] ?? null, 'test_status' => explode('^', $f[3] ?? '')[0], - 'result_status_datetime' => $this->astmToDateTime($f[11] ?? null), + 'result_status_datetime' => $resultDateTime, + 'updated_date' => $updated_date ]; $parsed['instrument'] = [