change check to see if access is not "approved" & add access experation date to view
This commit is contained in:
@@ -56,7 +56,7 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||||||
widget.patientQueue[index].date_time.split('T')[1].substring(0, 5);
|
widget.patientQueue[index].date_time.split('T')[1].substring(0, 5);
|
||||||
String subtitle = "";
|
String subtitle = "";
|
||||||
|
|
||||||
if (widget.patientQueue[index].access == "pending") {
|
if (widget.patientQueue[index].access != "approved") {
|
||||||
subtitle +=
|
subtitle +=
|
||||||
"Name: $fname $lname\nID No.: ${widget.patientQueue[index].id_no}\nMedical Aid No: ";
|
"Name: $fname $lname\nID No.: ${widget.patientQueue[index].id_no}\nMedical Aid No: ";
|
||||||
subtitle += "********";
|
subtitle += "********";
|
||||||
@@ -73,6 +73,8 @@ class _BuildPatientsListState extends State<BuildPatientQueueList> {
|
|||||||
}
|
}
|
||||||
subtitle +=
|
subtitle +=
|
||||||
"\nAccess Request: ${widget.patientQueue[index].access.toUpperCase()}";
|
"\nAccess Request: ${widget.patientQueue[index].access.toUpperCase()}";
|
||||||
|
subtitle +=
|
||||||
|
"\nAccess Expiration date: ${widget.patientQueue[index].revoke_date.substring(0, 16).replaceAll("T", " ")}";
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
"Appointment: $title",
|
"Appointment: $title",
|
||||||
|
|||||||
Reference in New Issue
Block a user