WP-13 exchange
Screen flow over the existing wire. Envelope: envelope.md. Wire shapes: api-enrichment.md.
Workflow
- The patient shell opens the home, visits, record, billing, and health tabs.
- Each screen asks a repository for data.
- The repository calls the endpoint and returns domain types.
- The screen renders kit widgets with
AppLocalizationslabels. - A write goes through the owner repository. The screen then reloads.
Wire
No new wire. The screens use:
GET /api/v1/afia/patient/homefor home.GET /api/v1/afia/notificationsfor home badge.GET /api/v1/afia/appointmentsfor visits.POST /api/v1/afia/appointments/{id}/ratingfor end of visit.GET /api/v1/afia/resultsfor record.GET /api/v1/afia/patient/profilefor 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.