Skip to main content

WP-13 exchange

Screen flow over the existing wire. Envelope: envelope.md. Wire shapes: api-enrichment.md.

Workflow​

  1. The patient shell opens the home, visits, record, billing, and health tabs.
  2. Each screen asks a repository for data.
  3. The repository calls the endpoint and returns domain types.
  4. The screen renders kit widgets with AppLocalizations labels.
  5. A write goes through the owner repository. The screen then reloads.

Wire​

No new wire. The screens use:

  • GET /api/v1/afia/patient/home for home.
  • GET /api/v1/afia/notifications for home badge.
  • GET /api/v1/afia/appointments for visits.
  • POST /api/v1/afia/appointments/{id}/rating for end of visit.
  • GET /api/v1/afia/results for record.
  • GET /api/v1/afia/patient/profile for health and profile.

Ownership​

WP-13 writes lib/presentation/patient/home/, lib/presentation/patient/visits/, lib/presentation/patient/record/, lib/presentation/patient/billing/, lib/presentation/patient/health/ and l10n-src/patient.json. WP-12 owns the wire. WP-11 owns the kit.

Does not do​

New endpoints. Nni, charts, the follow-up programme, video controls, ai assistants, voice, and forums.