BUG: Set up patient flow
This commit is contained in:
parent
429e91b638
commit
a561f4fa5f
2 changed files with 8 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue