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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user