Профиль хирургии
This commit is contained in:
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user