BUG: Set up patient flow
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user