Форматирование
This commit is contained in:
@@ -38,7 +38,7 @@ class SnapshotService
|
||||
? $this->getBranchId($department->rf_mis_department_id)
|
||||
: null;
|
||||
|
||||
if (!$department || !$branchId) {
|
||||
if (! $department || ! $branchId) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class SnapshotService
|
||||
$dateRange,
|
||||
$branchId,
|
||||
false,
|
||||
!$fillableAuto,
|
||||
! $fillableAuto,
|
||||
$fillableAuto,
|
||||
true
|
||||
);
|
||||
@@ -81,7 +81,7 @@ class SnapshotService
|
||||
$dateRange,
|
||||
$branchId,
|
||||
false,
|
||||
!$fillableAuto,
|
||||
! $fillableAuto,
|
||||
$fillableAuto,
|
||||
true
|
||||
);
|
||||
@@ -302,7 +302,7 @@ class SnapshotService
|
||||
: [];
|
||||
$operations = collect($misOperations)
|
||||
->merge($manualOperations)
|
||||
->unique(fn (array $operation) => ($operation['code'] ?? '') . '|' . ($operation['name'] ?? ''))
|
||||
->unique(fn (array $operation) => ($operation['code'] ?? '').'|'.($operation['name'] ?? ''))
|
||||
->values()
|
||||
->all();
|
||||
|
||||
@@ -367,7 +367,7 @@ class SnapshotService
|
||||
: [];
|
||||
$operations = collect($misOperations)
|
||||
->merge($manualOperations)
|
||||
->unique(fn (array $operation) => ($operation['code'] ?? '') . '|' . ($operation['name'] ?? ''))
|
||||
->unique(fn (array $operation) => ($operation['code'] ?? '').'|'.($operation['name'] ?? ''))
|
||||
->values()
|
||||
->all();
|
||||
|
||||
@@ -415,7 +415,7 @@ class SnapshotService
|
||||
private function createSnapshotsForType(Report $report, string $type, Collection $patients): void
|
||||
{
|
||||
foreach ($patients as $patient) {
|
||||
if (!$patient instanceof UnifiedPatientData) {
|
||||
if (! $patient instanceof UnifiedPatientData) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -471,7 +471,7 @@ class SnapshotService
|
||||
$history->MedicalHistoryID => $history->surgicalOperations->map(fn ($operation) => [
|
||||
'code' => $operation->serviceMedical?->ServiceMedicalCode,
|
||||
'name' => $operation->serviceMedical?->ServiceMedicalName,
|
||||
])->values()->all()
|
||||
])->values()->all(),
|
||||
];
|
||||
})
|
||||
->all();
|
||||
|
||||
Reference in New Issue
Block a user