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:
+6
-6
@@ -356,7 +356,7 @@ List all doctors with pagination.
|
||||
"data": [
|
||||
{
|
||||
"uuid": "...",
|
||||
"title": "دکتر علی احمدی",
|
||||
"title": "علی احمدی",
|
||||
"degree": "متخصص",
|
||||
"gender": "male",
|
||||
"doctor_rate": 4.5,
|
||||
@@ -565,7 +565,7 @@ List appointments filtered by date and/or doctor. Sorted by `slot_start ASC`.
|
||||
"patient_name": "محمد رضایی",
|
||||
"patient_mobile": "09123456789",
|
||||
"doctor_uuid": "doctor-uuid",
|
||||
"doctor_name": "دکتر علی احمدی",
|
||||
"doctor_name": "علی احمدی",
|
||||
"slot_start": 1718438400,
|
||||
"slot_end": 1718439600,
|
||||
"appointment_date": "2025-06-15",
|
||||
@@ -764,7 +764,7 @@ List all settlement requests.
|
||||
"data": [
|
||||
{
|
||||
"uuid": "...",
|
||||
"user": { "uuid": "...", "real_name": "دکتر علی احمدی" },
|
||||
"user": { "uuid": "...", "real_name": "علی احمدی" },
|
||||
"amount_rials": 1000000,
|
||||
"status": "pending",
|
||||
"bank_account": { "bank_name": "بانک ملت", "owner_name": "..." },
|
||||
@@ -845,7 +845,7 @@ Paginated. Each item:
|
||||
{
|
||||
"uuid": "...",
|
||||
"id": 45,
|
||||
"name": "دکتر علی احمدی",
|
||||
"name": "علی احمدی",
|
||||
"gender": "man",
|
||||
"medical_code": "12345",
|
||||
"is_active": true,
|
||||
@@ -912,7 +912,7 @@ Paginated. Each item:
|
||||
"status": "confirmed",
|
||||
"patient_name": "علی رضایی",
|
||||
"doctor_uuid": "...",
|
||||
"doctor_name": "دکتر علی احمدی"
|
||||
"doctor_name": "علی احمدی"
|
||||
}
|
||||
```
|
||||
> `slot_start`/`slot_end` Unix timestamp (ثانیه).
|
||||
@@ -1160,7 +1160,7 @@ List pre-registration requests. **Permission:** `ROLE_ADMIN`
|
||||
{
|
||||
"uuid": "...",
|
||||
"type": "independent_doctor",
|
||||
"name": "دکتر احمدی",
|
||||
"name": "احمدی",
|
||||
"mobile": "09121234567",
|
||||
"info": "متخصص داخلی",
|
||||
"status": "pending",
|
||||
|
||||
Reference in New Issue
Block a user