WP-02 Flutter spec
The store shell is in afia-app and is smaller than the design. Contract type: PatientProfile. Wire: exchange/patient-profile.md.
Usage
The patient profile shell calls PatientProfileRepository.get and update.
Domain
PatientProfileatlib/domain/patient/profile/patient_profile.dart. ContractPatientProfile.
Models
PatientProfileModelatlib/data/patient/profile/patient_profile_model.dart.fromJsonkeysaccountId,displayName.
Data sources
PatientProfileRemoteDataSourceatlib/data/patient/profile/patient_profile_remote_data_source.dart.
get() -> PatientProfile
update(displayName) -> PatientProfile
Uses ApiConfig patient profile path.
Repositories
PatientProfileRepositoryatlib/domain/patient/profile/patient_profile_repository.dart.
Presentation under lib/presentation/patient/profile/ imports the repository only.
Does not do
Java types. Booking or results widgets. Invented screens. A second HTTP client.