Профиль хирургии

This commit is contained in:
brusnitsyn
2026-03-25 17:37:32 +09:00
parent 52a80ccd3b
commit f566ab96df
75 changed files with 3841 additions and 1009 deletions

View File

@@ -20,10 +20,14 @@ class FormattedPatientResource extends JsonResource
return [
'id' => $this->MedicalHistoryID,
'num' => $this->num,
'mkb.ds' => $this->migrations->first()->diagnosis->first()?->mkb?->DS,
'mkb' => [
'ds' => $this->outcomeMigration->first()->mainDiagnosis?->mkb?->DS,
'name' => $this->outcomeMigration->first()->mainDiagnosis?->mkb?->NAME
],
'operations' => $this->surgicalOperations->map(function ($operation) {
return [
'code' => $operation->serviceMedical->ServiceMedicalCode
'code' => $operation->serviceMedical->ServiceMedicalCode,
'name' => $operation->serviceMedical->ServiceMedicalName,
];
}),
'fullname' => Str::ucwords(Str::lower("$this->FAMILY $this->Name $this->OT")),