Исрправление возраста
This commit is contained in:
@@ -90,7 +90,7 @@ class DutyReportExport
|
||||
private function presentPatient(array $patient, bool $withDiagnosis = true): array
|
||||
{
|
||||
$age = ! empty($patient['birth_date'])
|
||||
? Carbon::parse($patient['birth_date'])->diffInYears(Carbon::parse($this->dateRange[1]))
|
||||
? (int) Carbon::parse($patient['birth_date'])->diffInYears(Carbon::parse($this->dateRange[1]))
|
||||
: null;
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user