Aller au contenu principal

WP-08 Flutter spec

The API is in place and the store shell does not open this screen. Reads projected results. Wire: exchange/patient-results.md.

Usage​

The patient results shell calls PatientResultsRepository.listMine. It does not submit results.

Domain​

  • Reuse DiagnosticResult and DiagnosticKind from lib/domain/diagnostics/ if that package has landed. Otherwise a local PatientResult at lib/domain/patient/results/patient_result.dart with summary, kind, orderId. It is a read model, not a store.

Models​

  • PatientResultModel at lib/data/patient/results/patient_result_model.dart. fromJson keys summary, kind, orderId, artifactUri.

Data sources​

  • PatientResultsRemoteDataSource at lib/data/patient/results/patient_results_remote_data_source.dart.
listMine() -> DiagnosticResult[]

Uses ApiConfig results path. GET only.

Repositories​

  • PatientResultsRepository at lib/domain/patient/results/patient_results_repository.dart.

Presentation under lib/presentation/patient/results/ imports the repository only.

Does not do​

Java types. Submit-result calls. A local cache that pretends to be the store of truth. Invented timelines. A second HTTP client.