|
|
@ -21,11 +21,11 @@ import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../SOAP_step_header.dart';
|
|
|
|
import '../shared_soap_widgets/SOAP_step_header.dart';
|
|
|
|
import '../expandable_SOAP_widget.dart';
|
|
|
|
import '../shared_soap_widgets/expandable_SOAP_widget.dart';
|
|
|
|
import 'allergies/update_allergies_widget.dart';
|
|
|
|
import 'allergies/update_allergies_widget.dart';
|
|
|
|
import 'history/update_history_widget.dart';
|
|
|
|
import 'history/update_history_widget.dart';
|
|
|
|
import 'update_Chief_complaints.dart';
|
|
|
|
import 'cheif_complaints/update_Chief_complaints.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class UpdateSubjectivePage extends StatefulWidget {
|
|
|
|
class UpdateSubjectivePage extends StatefulWidget {
|
|
|
|
final Function changePageViewIndex;
|
|
|
|
final Function changePageViewIndex;
|
|
|
@ -225,7 +225,6 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
backgroundColor: Theme
|
|
|
|
backgroundColor: Theme
|
|
|
|
.of(context)
|
|
|
|
.of(context)
|
|
|
|
.scaffoldBackgroundColor,
|
|
|
|
.scaffoldBackgroundColor,
|
|
|
|
// baseViewModel: model,
|
|
|
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
@ -482,7 +481,6 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
widget.myHistoryList.forEach((history) {
|
|
|
|
widget.myHistoryList.forEach((history) {
|
|
|
|
if (postHistoriesRequestModel.listMedicalHistoryVM == null)
|
|
|
|
if (postHistoriesRequestModel.listMedicalHistoryVM == null)
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM = [];
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM = [];
|
|
|
|
//TODO: make static value dynamic
|
|
|
|
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM.add(ListMedicalHistoryVM(
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM.add(ListMedicalHistoryVM(
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
@ -511,7 +509,6 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
formKey.currentState.save();
|
|
|
|
formKey.currentState.save();
|
|
|
|
if(formKey.currentState.validate()){
|
|
|
|
if(formKey.currentState.validate()){
|
|
|
|
PostChiefComplaintRequestModel postChiefComplaintRequestModel =
|
|
|
|
PostChiefComplaintRequestModel postChiefComplaintRequestModel =
|
|
|
|
//TODO: make static value dynamic
|
|
|
|
|
|
|
|
new PostChiefComplaintRequestModel(
|
|
|
|
new PostChiefComplaintRequestModel(
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
@ -525,7 +522,6 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
|
|
|
|
|
|
|
numberOfWeeks: 0);
|
|
|
|
numberOfWeeks: 0);
|
|
|
|
if (model.patientChiefComplaintList.isEmpty) {
|
|
|
|
if (model.patientChiefComplaintList.isEmpty) {
|
|
|
|
// TODO: make it postChiefComplaint after it start to work
|
|
|
|
|
|
|
|
postChiefComplaintRequestModel.editedBy = '';
|
|
|
|
postChiefComplaintRequestModel.editedBy = '';
|
|
|
|
await model.postChiefComplaint(postChiefComplaintRequestModel);
|
|
|
|
await model.postChiefComplaint(postChiefComplaintRequestModel);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|