|
|
|
@ -1,6 +1,4 @@
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
@ -14,23 +12,24 @@ import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/soap_update/subjective/update_subjective_page.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/TextFields.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app-textfield-custom.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app-textfield-custom.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.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';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/new_text_Field.dart';
|
|
|
|
|
|
|
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'SOAP_step_header.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class UpdatePlanPage extends StatefulWidget {
|
|
|
|
class UpdatePlanPage extends StatefulWidget {
|
|
|
|
final Function changePageViewIndex;
|
|
|
|
final Function changePageViewIndex;
|
|
|
|
final PatiantInformtion patientInfo;
|
|
|
|
final PatiantInformtion patientInfo;
|
|
|
|
final Function changeLoadingState;
|
|
|
|
final Function changeLoadingState;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final int currentIndex;
|
|
|
|
GetPatientProgressNoteResModel patientProgressNote;
|
|
|
|
GetPatientProgressNoteResModel patientProgressNote;
|
|
|
|
|
|
|
|
|
|
|
|
UpdatePlanPage(
|
|
|
|
UpdatePlanPage(
|
|
|
|
@ -38,7 +37,8 @@ class UpdatePlanPage extends StatefulWidget {
|
|
|
|
this.changePageViewIndex,
|
|
|
|
this.changePageViewIndex,
|
|
|
|
this.patientInfo,
|
|
|
|
this.patientInfo,
|
|
|
|
this.changeLoadingState,
|
|
|
|
this.changeLoadingState,
|
|
|
|
this.patientProgressNote});
|
|
|
|
this.patientProgressNote,
|
|
|
|
|
|
|
|
this.currentIndex});
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
_UpdatePlanPageState createState() => _UpdatePlanPageState();
|
|
|
|
_UpdatePlanPageState createState() => _UpdatePlanPageState();
|
|
|
|
@ -108,7 +108,12 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
widthFactor: 0.95,
|
|
|
|
widthFactor: 0.95,
|
|
|
|
child: Container(
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
SOAPStepHeader(currentIndex: widget.currentIndex, changePageViewIndex:widget.changePageViewIndex),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 10,),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.all(8.0),
|
|
|
|
margin: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
@ -123,15 +128,20 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
child: Texts(TranslationBase.of(context).progressNote)),
|
|
|
|
child: Texts(TranslationBase
|
|
|
|
if( isAddProgress)
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.progressNote)),
|
|
|
|
|
|
|
|
if(isAddProgress)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
margin:
|
|
|
|
|
|
|
|
EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
|
|
|
|
|
|
|
|
child: AppTextFieldCustom(
|
|
|
|
child: AppTextFieldCustom(
|
|
|
|
hintText: TranslationBase.of(context).progressNote,
|
|
|
|
hintText: TranslationBase.of(context).progressNote,
|
|
|
|
controller: progressNoteController,
|
|
|
|
controller: progressNoteController,
|
|
|
|
@ -146,14 +156,16 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 9,
|
|
|
|
height: 9,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if ( widget.patientProgressNote.planNote != null && !isAddProgress)
|
|
|
|
if ( widget.patientProgressNote.planNote != null&& !isAddProgress)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin:
|
|
|
|
margin:
|
|
|
|
EdgeInsets.only(left: 5, right: 5,),
|
|
|
|
EdgeInsets.only(left: 5, right: 5, ),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
@ -167,20 +179,25 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
widget.patientProgressNote.createdOn !=null?DateUtils.getDayMonthYearDateFormatted(DateTime.parse(widget.patientProgressNote.createdOn)):DateUtils.getDayMonthYearDateFormatted(DateTime.now()),
|
|
|
|
widget.patientProgressNote.createdOn !=null?DateUtils.getDayMonthYearDateFormatted(DateTime.parse(widget.patientProgressNote.createdOn)):DateUtils.getDayMonthYearDateFormatted(DateTime.now()),
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight
|
|
|
|
|
|
|
|
.w600,
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
|
|
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts('Condition: ',fontSize: 12,),
|
|
|
|
Texts('Condition: ',
|
|
|
|
Texts(widget.patientProgressNote.mName??'',fontWeight: FontWeight.w600),
|
|
|
|
fontSize: 12,),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
widget.patientProgressNote.mName??'',fontWeight: FontWeight.w600),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
@ -190,15 +207,16 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 8,),
|
|
|
|
SizedBox(height: 8,
|
|
|
|
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
progressNoteController.text,
|
|
|
|
progressNoteController.text,
|
|
|
|
fontSize: 10,
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -220,6 +238,8 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|