Skip to content

Completed profile pages and also improved UI for the patient profile

Madavarapu Sai Harshavardhan requested to merge role_profiles into develop

Implemented comprehensive profile system with patient/doctor profiles, medical history, vitals tracking, and consultation records.

Key Features

  • Profile Pages: /profile (own profile), /profile/:userId (any user profile)
  • Vitals History: Date filtering dropdown, shows latest vitals by default
  • Consultations: Full consultation records with prescriptions, replacement info, and dispensed timestamps
  • Clickable Doctor Cards: Navigate to doctor profiles from consultations, directory, and patient profiles
  • Role-Based Rendering: Automatic profile type detection (Patient, Doctor, Admin, Volunteer)

Components Added

  • ProfilePage, MyProfilePage, ProfileLayout, ProfileHeader
  • VitalHistory, VisitHistory, Consultations, PersonalInfo
  • ClickableDoctorCard, RoleBasedRenderer
  • profileService.ts (unified profile fetching)

Technical

  • Fixed searchPatients signature changes across codebase
  • Added doctor_id fallback for profile navigation
  • Enhanced prescription display (replacement info, dispensed_at)
  • Mobile-responsive design with consistent spacing

Merge request reports

Loading