Refactor doctor name handling across the application
- Removed the "دکتر" prefix from doctor names in various components and API responses to ensure consistency and clarity. - Updated the AppointmentDetailPage, CommentsPage, DashboardPage, RatingsPage, SecretariesPage, and other relevant files to reflect the changes in doctor name formatting. - Adjusted API documentation to align with the new naming conventions. - Implemented validation to prevent the creation of clinics without a name and restricted users to a single clinic. - Added tests to verify that doctor names are stored without titles and that clinic creation adheres to the new validation rules.
This commit is contained in:
@@ -34,7 +34,7 @@ Send an invitation to a doctor (by mobile number) to join a clinic.
|
||||
```json
|
||||
{
|
||||
"mobile": "09123456789",
|
||||
"name": "دکتر علی احمدی",
|
||||
"name": "علی احمدی",
|
||||
"specialty": "قلب و عروق"
|
||||
}
|
||||
```
|
||||
@@ -58,7 +58,7 @@ Send an invitation to a doctor (by mobile number) to join a clinic.
|
||||
"invited_at": 1717000000,
|
||||
"expires_at": 1717259200,
|
||||
"token_used": false,
|
||||
"doctor": { "uuid": "...", "name": "دکتر علی احمدی" },
|
||||
"doctor": { "uuid": "...", "name": "علی احمدی" },
|
||||
"clinic": { "uuid": "...", "name": "کلینیک الوند" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user