|
|
|
@ -11,7 +11,7 @@ import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/plan/plan_call_back.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/plan/plan_call_back.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/date-utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/date-utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/helpers.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/utils/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
@ -91,7 +91,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
|
|
|
|
|
|
|
|
///TODO set progressNote in model;
|
|
|
|
///TODO set progressNote in model;
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
progressNoteController.text = Helpers.parseHtmlString(
|
|
|
|
progressNoteController.text = TabUtil.parseHtmlString(
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
|
|
|
|
|
|
|
|
@ -130,7 +130,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
.getPatientProgressNote(getGetProgressNoteReqModel);
|
|
|
|
.getPatientProgressNote(getGetProgressNoteReqModel);
|
|
|
|
|
|
|
|
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
progressNoteController.text = Helpers.parseHtmlString(
|
|
|
|
progressNoteController.text = TabUtil.parseHtmlString(
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
patientProgressNote.createdByName =
|
|
|
|
patientProgressNote.createdByName =
|
|
|
|
@ -376,7 +376,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (widget.sOAPViewModel.state == ViewState.ErrorLocal) {
|
|
|
|
if (widget.sOAPViewModel.state == ViewState.ErrorLocal) {
|
|
|
|
Helpers.showErrorToast(widget.sOAPViewModel.error);
|
|
|
|
TabUtil.showErrorToast(widget.sOAPViewModel.error);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
GetGetProgressNoteReqModel getGetProgressNoteReqModel =
|
|
|
|
GetGetProgressNoteReqModel getGetProgressNoteReqModel =
|
|
|
|
GetGetProgressNoteReqModel(
|
|
|
|
GetGetProgressNoteReqModel(
|
|
|
|
@ -389,7 +389,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
await widget.sOAPViewModel
|
|
|
|
await widget.sOAPViewModel
|
|
|
|
.getPatientProgressNote(getGetProgressNoteReqModel);
|
|
|
|
.getPatientProgressNote(getGetProgressNoteReqModel);
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
if (widget.sOAPViewModel.patientProgressNoteList.isNotEmpty) {
|
|
|
|
progressNoteController.text = Helpers.parseHtmlString(
|
|
|
|
progressNoteController.text = TabUtil.parseHtmlString(
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
widget.sOAPViewModel.patientProgressNoteList[0].planNote);
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
patientProgressNote.createdByName =
|
|
|
|
patientProgressNote.createdByName =
|
|
|
|
@ -411,7 +411,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
widget.changeLoadingState(false);
|
|
|
|
widget.changeLoadingState(false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Helpers.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);
|
|
|
|
TabUtil.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -424,7 +424,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage>
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Helpers.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);
|
|
|
|
TabUtil.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|