Update Doctors

This commit is contained in:
R
2022-09-20 10:57:10 +07:00
parent 07bfbaefe0
commit d187b9331d
7 changed files with 88 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ class PractitionerRoleToDoctorResource extends JsonResource
] : null;
return [
'id' => $this->id,
'id' => $this->practitioner->id,
'organization_id' => $this->organization_id,
'full_name' => $this->practitioner->person->full_name,
'name_prefix' => $this->practitioner->person->name_prefix,
@@ -42,11 +42,12 @@ class PractitionerRoleToDoctorResource extends JsonResource
'gender' => $this->practitioner->person->gender,
// 'speciality_name' => !empty($this->speciality->name ?? null) ? 'Spesialis '. $this->speciality->name : 'Spesialis Empty',
'is_online' => false,
'is_insurance_covered' => rand(0,1) == 1,
'price_range' => 'Rp 100.000 - Rp 350.000',
'price_start' => '100000',
'price_end' => '350000',
'avatar_url' => asset('images/default-doctor-avatar.png'),
'organization' => $organization,
'hospital' => $organization,
'speciality' => $speciality,
];
return parent::toArray($request);