Форматирование

This commit is contained in:
brusnitsyn
2026-04-24 16:46:10 +09:00
parent fd0e6ee817
commit 63daa62888
87 changed files with 1380 additions and 791 deletions

View File

@@ -24,7 +24,7 @@ class DepartmentPatientOperationResource extends JsonResource
'id' => $operation->rf_kl_service_medical_id,
'code' => $serviceCode,
'name' => $serviceName,
'label' => trim(($serviceCode ? "{$serviceCode} " : '') . ($serviceName ?? '')),
'label' => trim(($serviceCode ? "{$serviceCode} " : '').($serviceName ?? '')),
],
'startAt' => $operation->started_at?->toIso8601String(),
'endAt' => $operation->ended_at?->toIso8601String(),

View File

@@ -36,6 +36,9 @@ class FormattedPatientResource extends JsonResource
'outcome_type' => $this->outcomeType,
'outcome_date' => $this->outcomeDate,
'comment' => $this->comment,
'reanimation_indicator' => $this->reanimation_indicator ?? null,
'reanimation_comment' => $this->reanimation_comment ?? null,
'reanimation_is_complete' => $this->reanimationIsComplete,
'is_recipient_today' => $this->isRecipientToday,
'is_manual' => $this->isManual,
'can_manage_manual' => $this->canManageManual,
@@ -46,7 +49,7 @@ class FormattedPatientResource extends JsonResource
'id' => $this->MedicalHistoryID,
'mkb' => [
'ds' => $this->outcomeMigration->first()->mainDiagnosis?->mkb?->DS,
'name' => $this->outcomeMigration->first()->mainDiagnosis?->mkb?->NAME
'name' => $this->outcomeMigration->first()->mainDiagnosis?->mkb?->NAME,
],
'operations' => $this->surgicalOperations->map(function ($operation) {
return [
@@ -61,6 +64,9 @@ class FormattedPatientResource extends JsonResource
'outcome_type' => $this->when($this->outcome_type, $this->outcome_type),
'outcome_date' => $this->when($this->outcome_date, $this->outcome_date),
'comment' => $this->when($this->comment, $this->comment),
'reanimation_indicator' => $this->when($this->reanimation_indicator, $this->reanimation_indicator),
'reanimation_comment' => $this->when($this->reanimation_comment, $this->reanimation_comment),
'reanimation_is_complete' => (bool) ($this->reanimation_is_complete ?? false),
'is_recipient_today' => (bool) ($this->is_recipient_today ?? false),
'is_manual' => false,
'can_manage_manual' => false,