BUG: Set up patient flow

This commit is contained in:
2025-11-03 19:28:52 +02:00
parent ea25598144
commit 821cbc0a0d
2 changed files with 8 additions and 7 deletions

View File

@@ -31,9 +31,13 @@ class _PatientProfileTileState extends State<PatientProfileTile> {
PatientManagerProvider patientManagerProvider =
context.read<PatientManagerProvider>();
patientManagerProvider.setPersonalMode(true);
context.goNamed(
'patientProfile',
);
if (patientManagerProvider.selectedPatient != null) {
context.goNamed(
'patientProfile',
);
} else {
context.goNamed("patientProfileSetup");
}
// Navigator.of(context).pushNamed(
// '/patient-profile',
// arguments: widget.arguments,

View File

@@ -39,10 +39,7 @@ class _PatientProfileState extends State<PatientProfile> {
await MihPatientServices()
.getPatientDetails(app_id, patientManagerProvider);
}
if (patientManagerProvider.selectedPatient == null) {
// go to set up patient package
context.goNamed("patientProfileSetup");
} else {
if (patientManagerProvider.selectedPatient != null) {
await MihPatientServices()
.getPatientConsultationNotes(patientManagerProvider);
await MihPatientServices().getPatientDocuments(patientManagerProvider);