feat(patient): edit patient basic info (doctor/clinic/secretary)

Add PATCH /api/v1/patient/{uuid} to update User.realName + UserProfile
demographic/insurance fields (mobile stays immutable, national_code
uniqueness enforced). Expose name/family separately in profile payload.
Add edit modal in my-patients. Update patient.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-12 22:00:33 +03:30
co-authored by Claude Opus 4.8
parent d3d09fe0f4
commit fdce888e0e
4 changed files with 304 additions and 1 deletions
+4
View File
@@ -459,6 +459,8 @@ export interface SmsSettings {
export interface PatientProfile {
full_name?: string | null;
name?: string | null;
family?: string | null;
national_code?: string | null;
gender?: string | null;
date_of_birth?: number | null;
@@ -469,7 +471,9 @@ export interface PatientProfile {
home_phone?: string | null;
work_phone?: string | null;
mobile?: string | null;
basic_insurance_id?: number | null;
basic_insurance_name?: string | null;
supplementary_insurance_id?: number | null;
supplementary_insurance_name?: string | null;
}