Добавить колонку отделение. Пока добавлен только МИС #2
This commit is contained in:
@@ -57,6 +57,8 @@ class IndexSttMedicalHistoryResource extends JsonResource
|
||||
? "$archiveInfoMisCardNumber / $archiveInfoFoxproCardNumber"
|
||||
: $archiveInfoMisCardNumber ?? $archiveInfoFoxproCardNumber;
|
||||
|
||||
$department = $historyType === 'mis' ? $model->outcomeMigration->stationarBranch->department : null;
|
||||
|
||||
return [
|
||||
'id' => $id,
|
||||
'history_type' => $historyType,
|
||||
@@ -69,6 +71,7 @@ class IndexSttMedicalHistoryResource extends JsonResource
|
||||
'dr' => $formattedBirthDate,
|
||||
'daterecipient' => $formattedDateRecipient,
|
||||
'dateextract' => $formattedDateExtract,
|
||||
'department' => $department?->DepartmentNAME,
|
||||
|
||||
// Номера карт
|
||||
'medcardnum' => $cardNumber, // MIS номер или FoxPro номер
|
||||
|
||||
Reference in New Issue
Block a user