Aller au contenu principal

WP-06 Flutter spec

The API is in place and the store shell does not open this screen. Contract type: Encounter. Wire: exchange/encounter.md.

Usage​

The clinician encounter shell calls EncounterRepository.writeNote and updateNotes. Do not expose write methods to a patient session.

Domain​

  • Encounter at lib/domain/encounter/encounter.dart. Contract Encounter.

Models​

  • EncounterModel at lib/data/encounter/encounter_model.dart. fromJson keys id, appointmentId, notes.

Data sources​

  • EncounterRemoteDataSource at lib/data/encounter/encounter_remote_data_source.dart.
writeNote(appointmentId, notes) -> Encounter
updateNotes(encounterId, notes) -> Encounter

Uses ApiConfig clinician encounters path.

Repositories​

  • EncounterRepository at lib/domain/encounter/encounter_repository.dart.

Presentation under lib/presentation/clinician/encounter/ imports the repository only.

Does not do​

Java types. Appointment persistence. Patient-facing note editors. Invented SOAP forms. A second HTTP client.