update prod

This commit is contained in:
Linksehat Staging Server
2024-05-20 08:46:04 +07:00
parent 6c4317b800
commit 15cc88403f
5 changed files with 37 additions and 28 deletions

View File

@@ -23,11 +23,11 @@ class DataServiceMonitoring extends JsonResource
$filesFinalLogKondisi = [];
if (count($this->files)>0){
foreach ($this->files as $key => $value) {
/*
Sementara di buat satu dulu, jangan di hapus..
/*
Sementara di buat satu dulu, jangan di hapus..
karena suka labil client nya, tiba2 hide tiba2 munculin fitur :D
*/
// if($value->type == 'final-log-result'){
array_push($filesFinalLogResult, $value);
// };
@@ -71,7 +71,7 @@ class DataServiceMonitoring extends JsonResource
$main_diagnosis = $d;
}
$diagnosis = '-';
}
}
if ($key > 0){
if ($icd) {
@@ -121,7 +121,7 @@ class DataServiceMonitoring extends JsonResource
$arr_document = [];
$document = DB::table('files')
->where([
'fileable_type' => 'App\Models\LaboratoriumResult',
'fileable_type' => 'App\Models\LaboratoriumResult',
'fileable_id' => $requestLogDailyMonitoring->id,
'deleted_at' => null
])
@@ -138,7 +138,7 @@ class DataServiceMonitoring extends JsonResource
}
}
return [
'time' => Carbon::parse($requestLogDailyMonitoring->submission_date)->format('H:i') ?? null,
'status' => 'Done' ?? null,
@@ -180,12 +180,12 @@ class DataServiceMonitoring extends JsonResource
})
->map(function ($groupedItems) {
return collect($groupedItems)
->map(function ($test) {
$arr_document = [];
$document = DB::table('files')
->where([
'fileable_type' => 'App\Models\LaboratoriumResult',
'fileable_type' => 'App\Models\LaboratoriumResult',
'fileable_id' => $test->id,
'deleted_at' => null
])
@@ -201,7 +201,7 @@ class DataServiceMonitoring extends JsonResource
];
}
}
return [
'code' => $test->code,
'date' => Carbon::parse($test->lab_date)->format('d M Y') ?? null,