|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
import 'package:doctor_app_flutter/client/base_app_client.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/master_lookup_key.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/auth_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/GetPhysicalExamReqModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/my_selected_examination.dart';
|
|
|
|
@ -24,6 +25,7 @@ import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart';
|
|
|
|
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class UpdateObjectivePage extends StatefulWidget {
|
|
|
|
|
final Function changePageViewIndex;
|
|
|
|
@ -38,7 +40,6 @@ class UpdateObjectivePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
bool isSysExaminationExpand = false;
|
|
|
|
|
TextEditingController remarksController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
BoxDecoration containerBorderDecoration(
|
|
|
|
|
Color containerColor, Color borderColor) {
|
|
|
|
@ -55,9 +56,11 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
return BaseView<SOAPViewModel>(
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
widget.mySelectedExamination.clear();
|
|
|
|
|
GetPhysicalExamReqModel getPhysicalExamReqModel =
|
|
|
|
|
GetPhysicalExamReqModel(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
@ -165,7 +168,9 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
Column(
|
|
|
|
|
children:
|
|
|
|
|
widget.mySelectedExamination.map((examination) {
|
|
|
|
|
return Container(
|
|
|
|
|
TextEditingController remarksController= TextEditingController(text :examination.remark);
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: 15, right: 15, top: 15),
|
|
|
|
|
child: Column(children: [
|
|
|
|
@ -174,8 +179,8 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Texts(
|
|
|
|
|
examination
|
|
|
|
|
.selectedExamination.nameEn
|
|
|
|
|
( examination
|
|
|
|
|
.selectedExamination.nameEn )
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
variant: "bodyText",
|
|
|
|
|
bold: true,
|
|
|
|
@ -212,7 +217,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
const EdgeInsets
|
|
|
|
|
.all(8.0),
|
|
|
|
|
child: Text(
|
|
|
|
|
"Normal",
|
|
|
|
|
TranslationBase.of(context).normal,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color:
|
|
|
|
@ -262,7 +267,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
const EdgeInsets
|
|
|
|
|
.all(8.0),
|
|
|
|
|
child: Text(
|
|
|
|
|
"Abnormal",
|
|
|
|
|
TranslationBase.of(context).abnormal,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color:
|
|
|
|
@ -315,7 +320,10 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 25,
|
|
|
|
|
minLines: 4,
|
|
|
|
|
// controller: remarksController,
|
|
|
|
|
controller: remarksController,
|
|
|
|
|
onChanged: (val) {
|
|
|
|
|
examination.remark = val;
|
|
|
|
|
},
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value == null)
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|