feat: enrich patient record with full profile

GET /api/v1/patient/{uuid} now returns a `profile` object from UserProfile
(demographics, contact, insurance names resolved). Admin record detail shows
a "patient info" section. Empty fields render as "ثبت نشده".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-23 17:21:33 +03:30
co-authored by Claude Opus 4.8
parent af881231d0
commit 2206f02396
5 changed files with 204 additions and 6 deletions
+17
View File
@@ -424,6 +424,22 @@ export interface SmsSettings {
post_visit_text_reject_reason?: string | null;
}
export interface PatientProfile {
full_name?: string | null;
national_code?: string | null;
gender?: string | null;
date_of_birth?: number | null;
blood_type?: string | null;
marital_status?: string | null;
job?: string | null;
address?: string | null;
home_phone?: string | null;
work_phone?: string | null;
mobile?: string | null;
basic_insurance_name?: string | null;
supplementary_insurance_name?: string | null;
}
export interface PatientRecord {
uuid: string;
entity_type: string;
@@ -433,6 +449,7 @@ export interface PatientRecord {
user_mobile?: string | null;
user_national_code?: string | null;
created_at: number;
profile?: PatientProfile | null;
}
export interface PatientSession {