إنتقل إلى المحتوى الرئيسي

WP-02 Patient profile

Load AGENTS.md, contracts.md, and this file. Tech specs: api/patient-profile.md, app/patient-profile.md, exchange/patient-profile.md. Implement only when the user asks and WP-00 has landed.

Group G1. May run beside WP-01, WP-03, and WP-04.

Owns​

  • afia-api/src/main/java/health/afia/app/patient/profile/
  • afia-api/src/test/java/health/afia/app/patient/profile/
  • afia-app/lib/presentation/patient/profile/
  • afia-app/lib/data/patient/profile/
  • afia-app/lib/domain/patient/profile/

Feature: F-03 patient profile.

Reserved path: /api/v1/afia/patient/profile.

Must not write​

  • EndpointUri.java, api_config.dart, docs/api-map.md
  • health.afia.app.patient.appointment or health.afia.app.patient.results
  • Booking, agenda, or diagnostics packages
  • Identity Account persistence

Depends on​

WP-00. Reads Account.id from identity once WP-01 exists. Until then, accept accountId as an input on the profile resource.

Done when​

  1. PatientProfile has accountId and displayName only.
  2. A patient can read and update their own profile on /api/v1/afia/patient/profile.
  3. Tests cover the HTTP resource. They do not create appointments or results.
  4. cd afia-api && mvn test passes.
  5. cd afia-app && flutter test passes.

Do not invent screens​

Landing copy is "suivez votre santé". That is not a screen name. Do not add consult or booking widgets here.