QOL: Patient Manager overhaul pt1
This commit is contained in:
parent
6542f1c399
commit
4fe544b35f
9 changed files with 399 additions and 987 deletions
|
|
@ -12,6 +12,9 @@ class PatientManagerProvider extends ChangeNotifier {
|
|||
bool personalMode;
|
||||
List<PatientAccess>? myPaitentList;
|
||||
Patient? selectedPatient;
|
||||
String? selectedPatientProfilePictureUrl;
|
||||
ImageProvider<Object>? selectedPatientProfilePicture;
|
||||
bool hidePatientDetails;
|
||||
List<Note>? consultationNotes;
|
||||
List<PFile>? patientDocuments;
|
||||
List<ClaimStatementFile>? patientClaimsDocuments;
|
||||
|
|
@ -22,6 +25,7 @@ class PatientManagerProvider extends ChangeNotifier {
|
|||
this.patientManagerIndex = 0,
|
||||
this.fileViewerIndex = 0,
|
||||
this.personalMode = true,
|
||||
this.hidePatientDetails = true,
|
||||
});
|
||||
|
||||
void reset() {
|
||||
|
|
@ -56,6 +60,17 @@ class PatientManagerProvider extends ChangeNotifier {
|
|||
notifyListeners();
|
||||
}
|
||||
|
||||
void setSelectedPatientProfilePicUrl(String url) {
|
||||
selectedPatientProfilePictureUrl = url;
|
||||
selectedPatientProfilePicture = url.isNotEmpty ? NetworkImage(url) : null;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void setHidePatientDetails(bool hidePatientDetails) {
|
||||
this.hidePatientDetails = hidePatientDetails;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void setMyPatientList({required List<PatientAccess>? myPaitentList}) {
|
||||
this.myPaitentList = myPaitentList ?? [];
|
||||
notifyListeners();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue