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

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​

  • PatientProfile at lib/domain/patient/profile/patient_profile.dart. Contract PatientProfile.

Models​

  • PatientProfileModel at lib/data/patient/profile/patient_profile_model.dart. fromJson keys accountId, displayName.

Data sources​

  • PatientProfileRemoteDataSource at lib/data/patient/profile/patient_profile_remote_data_source.dart.
get() -> PatientProfile
update(displayName) -> PatientProfile

Uses ApiConfig patient profile path.

Repositories​

  • PatientProfileRepository at lib/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.