|
|
|
|
@ -40,8 +40,8 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
late List<NoteModel> notesList;
|
|
|
|
|
var filteredNotesList;
|
|
|
|
|
bool isDischargedPatient = false;
|
|
|
|
|
late AuthenticationViewModel authenticationViewModel;
|
|
|
|
|
late ProjectViewModel projectViewModel;
|
|
|
|
|
AuthenticationViewModel? authenticationViewModel;
|
|
|
|
|
ProjectViewModel? projectViewModel;
|
|
|
|
|
|
|
|
|
|
getProgressNoteList(BuildContext context, PatientViewModel model, {bool isLocalBusy = false}) async {
|
|
|
|
|
final routeArgs = ModalRoute.of(context)!.settings.arguments as Map;
|
|
|
|
|
@ -65,8 +65,8 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
authenticationViewModel = Provider.of(context);
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
// authenticationViewModel = Provider.of(context);
|
|
|
|
|
// projectViewModel = Provider.of(context);
|
|
|
|
|
final routeArgs = ModalRoute.of(context)!.settings.arguments as Map;
|
|
|
|
|
PatiantInformtion patient = routeArgs['patient'];
|
|
|
|
|
String arrivalType = routeArgs['arrivalType'];
|
|
|
|
|
@ -117,7 +117,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
bgColor: model.patientProgressNoteList[index].status == 1 &&
|
|
|
|
|
authenticationViewModel.doctorProfile!.doctorID !=
|
|
|
|
|
authenticationViewModel!.doctorProfile!.doctorID !=
|
|
|
|
|
model.patientProgressNoteList[index].createdBy
|
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
|
: model.patientProgressNoteList[index].status == 4
|
|
|
|
|
@ -131,7 +131,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
if (model.patientProgressNoteList[index].status == 1 &&
|
|
|
|
|
authenticationViewModel.doctorProfile!.doctorID !=
|
|
|
|
|
authenticationViewModel!.doctorProfile!.doctorID !=
|
|
|
|
|
model.patientProgressNoteList[index].createdBy)
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).notePending,
|
|
|
|
|
@ -155,7 +155,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
),
|
|
|
|
|
if (model.patientProgressNoteList[index].status != 2 &&
|
|
|
|
|
model.patientProgressNoteList[index].status != 4 &&
|
|
|
|
|
authenticationViewModel.doctorProfile!.doctorID ==
|
|
|
|
|
authenticationViewModel!.doctorProfile!.doctorID ==
|
|
|
|
|
model.patientProgressNoteList[index].createdBy)
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -350,9 +350,9 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
? AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.getDateTimeFromServerFormat(
|
|
|
|
|
model.patientProgressNoteList[index].createdOn ?? ""),
|
|
|
|
|
isArabic: projectViewModel.isArabic)
|
|
|
|
|
isArabic: projectViewModel!.isArabic)
|
|
|
|
|
: AppDateUtils.getDayMonthYearDateFormatted(DateTime.now(),
|
|
|
|
|
isArabic: projectViewModel.isArabic),
|
|
|
|
|
isArabic: projectViewModel!.isArabic),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
@ -442,7 +442,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
padding: EdgeInsets.all(20),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: AppText(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
projectViewModel!.isArabic
|
|
|
|
|
? "هل أنت متأكد أنك تريد تنفيذ $actionName هذا الأمر؟"
|
|
|
|
|
: 'Are you sure you want $actionName this order?',
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
|