|
|
|
|
@ -2,16 +2,16 @@ import 'package:doctor_app_flutter/config/config.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/model/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/note/CreateNoteModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/note/note_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/note/update_note_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient/progress_note_request.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/provider/robot_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient/progress_note_request.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_title.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
@ -26,6 +26,8 @@ import 'package:permission_handler/permission_handler.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:speech_to_text/speech_recognition_error.dart';
|
|
|
|
|
import 'package:speech_to_text/speech_to_text.dart' as stt;
|
|
|
|
|
import '../../../../../widgets/shared/dialogs/dailog-list-select.dart';
|
|
|
|
|
import '../../../../base/base_view.dart';
|
|
|
|
|
|
|
|
|
|
class UpdateNoteOrder extends StatefulWidget {
|
|
|
|
|
final NoteModel note;
|
|
|
|
|
@ -33,6 +35,8 @@ class UpdateNoteOrder extends StatefulWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final int visitType;
|
|
|
|
|
final bool isUpdate;
|
|
|
|
|
final List<dynamic> elementList;
|
|
|
|
|
final Function(dynamic) okFunction;
|
|
|
|
|
|
|
|
|
|
const UpdateNoteOrder(
|
|
|
|
|
{Key key,
|
|
|
|
|
@ -40,7 +44,9 @@ class UpdateNoteOrder extends StatefulWidget {
|
|
|
|
|
this.patientModel,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.visitType,
|
|
|
|
|
this.isUpdate})
|
|
|
|
|
this.isUpdate,
|
|
|
|
|
this.elementList,
|
|
|
|
|
this.okFunction})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -48,6 +54,7 @@ class UpdateNoteOrder extends StatefulWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
|
|
|
|
|
dynamic selectValue;
|
|
|
|
|
int selectedType;
|
|
|
|
|
bool isSubmitted = false;
|
|
|
|
|
stt.SpeechToText speech = stt.SpeechToText();
|
|
|
|
|
@ -78,120 +85,35 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
String keyId = 'ParameterCode';
|
|
|
|
|
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
|
|
|
|
|
if (widget.note != null) {
|
|
|
|
|
progressNoteController.text = widget.note.notes;
|
|
|
|
|
}
|
|
|
|
|
if(selectValue==null)
|
|
|
|
|
selectValue={};
|
|
|
|
|
selectValue['parameterCode'] = widget.note.condition;
|
|
|
|
|
selectValue['description'] = widget.note.conditionDescription;
|
|
|
|
|
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 1.0,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(0.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
BottomSheetTitle(
|
|
|
|
|
title: widget.visitType == 3
|
|
|
|
|
? (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
: TranslationBase.of(context).noteAdd) +
|
|
|
|
|
TranslationBase.of(context).orderSheet
|
|
|
|
|
: (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
: TranslationBase.of(context).noteAdd) +
|
|
|
|
|
TranslationBase.of(context).progressNote,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
Center(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
|
children: [
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
hintText: widget.visitType == 3
|
|
|
|
|
? (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.noteUpdate
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.noteAdd) +
|
|
|
|
|
TranslationBase.of(context).orderSheet
|
|
|
|
|
: (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.noteUpdate
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.noteAdd) +
|
|
|
|
|
TranslationBase.of(context).progressNote,
|
|
|
|
|
//TranslationBase.of(context).addProgressNote,
|
|
|
|
|
controller: progressNoteController,
|
|
|
|
|
maxLines: 35,
|
|
|
|
|
minLines: 25,
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// isTextFieldHasSuffix: true,
|
|
|
|
|
validationError:
|
|
|
|
|
progressNoteController.text.isEmpty &&
|
|
|
|
|
isSubmitted
|
|
|
|
|
? TranslationBase.of(context).emptyMessage
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
top:
|
|
|
|
|
-2, //MediaQuery.of(context).size.height * 0,
|
|
|
|
|
right: projectViewModel.isArabic
|
|
|
|
|
? MediaQuery.of(context).size.width * 0.75
|
|
|
|
|
: 15,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(DoctorApp.speechtotext,
|
|
|
|
|
color: Colors.black, size: 35),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
initSpeechState()
|
|
|
|
|
.then((value) => {onVoiceText()});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
height: progressNoteController.text.isNotEmpty ? 130 : 70,
|
|
|
|
|
margin: EdgeInsets.all(SizeConfig.widthMultiplier * 5),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if (progressNoteController.text.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: AppButton(
|
|
|
|
|
title: TranslationBase.of(context).clearText,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
progressNoteController.text = '';
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: AppButton(
|
|
|
|
|
return BaseView<PatientViewModel>(
|
|
|
|
|
onModelReady: (model) {
|
|
|
|
|
model.getStpMasterList(isLocalBusy: false);
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 1.0,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(0.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
BottomSheetTitle(
|
|
|
|
|
title: widget.visitType == 3
|
|
|
|
|
? (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
@ -201,73 +123,220 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
: TranslationBase.of(context).noteAdd) +
|
|
|
|
|
TranslationBase.of(context).progressNote,
|
|
|
|
|
color: AppGlobal.appGreenColor,
|
|
|
|
|
// disabled: progressNoteController.text.isEmpty,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.only(right: 20, left: 20),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: model.stpMasterList != null
|
|
|
|
|
? () {
|
|
|
|
|
Helpers.hideKeyboard(context);
|
|
|
|
|
ListSelectDialog dialog = ListSelectDialog(
|
|
|
|
|
list: model.stpMasterList,
|
|
|
|
|
attributeName: 'Description',
|
|
|
|
|
attributeValueId:
|
|
|
|
|
model.stpMasterList.length == 1
|
|
|
|
|
? model.stpMasterList[0]['${keyId}']
|
|
|
|
|
.toString()
|
|
|
|
|
: '${keyId}',
|
|
|
|
|
okText: TranslationBase.of(context).ok,
|
|
|
|
|
okFunction: (selectedValue) => {
|
|
|
|
|
setState(() {
|
|
|
|
|
selectValue = selectedValue;
|
|
|
|
|
selectValue['isDefault'] = true;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
showDialog(
|
|
|
|
|
barrierDismissible: false,
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return dialog;
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: AppTextFieldCustom(
|
|
|
|
|
hintText: TranslationBase.of(context).selectCondition,//'Select Condition',
|
|
|
|
|
dropDownText: model.stpMasterList.length == 1
|
|
|
|
|
? model.stpMasterList[0]['Description']
|
|
|
|
|
: selectValue == null
|
|
|
|
|
? null
|
|
|
|
|
: selectValue['Description'],
|
|
|
|
|
enabled: false,
|
|
|
|
|
isTextFieldHasSuffix: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
Center(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(
|
|
|
|
|
children: [
|
|
|
|
|
AppTextFieldCustom(
|
|
|
|
|
hintText: widget.visitType == 3
|
|
|
|
|
? (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.noteUpdate
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.noteAdd) +
|
|
|
|
|
TranslationBase.of(context).orderSheet
|
|
|
|
|
: (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.noteUpdate
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.noteAdd) +
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.progressNote,
|
|
|
|
|
//TranslationBase.of(context).addProgressNote,
|
|
|
|
|
controller: progressNoteController,
|
|
|
|
|
maxLines: 35,
|
|
|
|
|
minLines: 25,
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
|
|
|
|
|
// isTextFieldHasSuffix: true,
|
|
|
|
|
validationError: progressNoteController
|
|
|
|
|
.text.isEmpty &&
|
|
|
|
|
isSubmitted
|
|
|
|
|
? TranslationBase.of(context).emptyMessage
|
|
|
|
|
: null,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
top: -2,
|
|
|
|
|
//MediaQuery.of(context).size.height * 0,
|
|
|
|
|
right: projectViewModel.isArabic
|
|
|
|
|
? MediaQuery.of(context).size.width * 0.75
|
|
|
|
|
: 15,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(DoctorApp.speechtotext,
|
|
|
|
|
color: Colors.black, size: 35),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
initSpeechState()
|
|
|
|
|
.then((value) => {onVoiceText()});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: Container(
|
|
|
|
|
height: progressNoteController.text.isNotEmpty ? 130 : 70,
|
|
|
|
|
margin: EdgeInsets.all(SizeConfig.widthMultiplier * 5),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if (progressNoteController.text.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: AppButton(
|
|
|
|
|
title: TranslationBase.of(context).clearText,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
isSubmitted = true;
|
|
|
|
|
progressNoteController.text = '';
|
|
|
|
|
});
|
|
|
|
|
if (progressNoteController.text.trim().isNotEmpty) {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
child: AppButton(
|
|
|
|
|
title: widget.visitType == 3
|
|
|
|
|
? (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
: TranslationBase.of(context).noteAdd) +
|
|
|
|
|
TranslationBase.of(context).orderSheet
|
|
|
|
|
: (widget.isUpdate
|
|
|
|
|
? TranslationBase.of(context).noteUpdate
|
|
|
|
|
: TranslationBase.of(context).noteAdd) +
|
|
|
|
|
TranslationBase.of(context).progressNote,
|
|
|
|
|
color: AppGlobal.appGreenColor,
|
|
|
|
|
// disabled: progressNoteController.text.isEmpty,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
setState(() {
|
|
|
|
|
isSubmitted = true;
|
|
|
|
|
});
|
|
|
|
|
if (progressNoteController.text.trim().isNotEmpty) {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
|
|
|
|
|
DoctorProfileModel doctorProfile =
|
|
|
|
|
DoctorProfileModel.fromJson(profile);
|
|
|
|
|
DoctorProfileModel doctorProfile =
|
|
|
|
|
DoctorProfileModel.fromJson(profile);
|
|
|
|
|
|
|
|
|
|
if (widget.isUpdate) {
|
|
|
|
|
UpdateNoteReqModel reqModel = UpdateNoteReqModel(
|
|
|
|
|
admissionNo: int.parse(widget.patient.admissionNo),
|
|
|
|
|
cancelledNote: false,
|
|
|
|
|
lineItemNo: widget.note.lineItemNo,
|
|
|
|
|
createdBy: widget.note.createdBy,
|
|
|
|
|
notes: progressNoteController.text,
|
|
|
|
|
verifiedNote: false,
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
);
|
|
|
|
|
await widget.patientModel
|
|
|
|
|
.updatePatientProgressNote(reqModel);
|
|
|
|
|
} else {
|
|
|
|
|
CreateNoteModel reqModel = CreateNoteModel(
|
|
|
|
|
admissionNo:
|
|
|
|
|
int.parse(widget.patient.admissionNo),
|
|
|
|
|
createdBy: doctorProfile.doctorID,
|
|
|
|
|
visitType: widget.visitType,
|
|
|
|
|
patientID: widget.patient.patientId,
|
|
|
|
|
nursingRemarks: ' ',
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
notes: progressNoteController.text);
|
|
|
|
|
if (widget.isUpdate) {
|
|
|
|
|
UpdateNoteReqModel reqModel = UpdateNoteReqModel(
|
|
|
|
|
admissionNo:
|
|
|
|
|
int.parse(widget.patient.admissionNo),
|
|
|
|
|
cancelledNote: false,
|
|
|
|
|
lineItemNo: widget.note.lineItemNo,
|
|
|
|
|
createdBy: widget.note.createdBy,
|
|
|
|
|
notes: progressNoteController.text,
|
|
|
|
|
verifiedNote: false,
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
conditionId: selectValue['ParameterCode']);
|
|
|
|
|
await widget.patientModel
|
|
|
|
|
.updatePatientProgressNote(reqModel);
|
|
|
|
|
} else {
|
|
|
|
|
CreateNoteModel reqModel = CreateNoteModel(
|
|
|
|
|
admissionNo:
|
|
|
|
|
int.parse(widget.patient.admissionNo),
|
|
|
|
|
createdBy: doctorProfile.doctorID,
|
|
|
|
|
visitType: widget.visitType,
|
|
|
|
|
patientID: widget.patient.patientId,
|
|
|
|
|
nursingRemarks: ' ',
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
notes: progressNoteController.text,
|
|
|
|
|
conditionId: selectValue['ParameterCode']);
|
|
|
|
|
|
|
|
|
|
await widget.patientModel
|
|
|
|
|
.createPatientProgressNote(reqModel);
|
|
|
|
|
}
|
|
|
|
|
await widget.patientModel
|
|
|
|
|
.createPatientProgressNote(reqModel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (widget.patientModel.state == ViewState.ErrorLocal) {
|
|
|
|
|
Helpers.showErrorToast(widget.patientModel.error);
|
|
|
|
|
if (widget.patientModel.state ==
|
|
|
|
|
ViewState.ErrorLocal) {
|
|
|
|
|
Helpers.showErrorToast(widget.patientModel.error);
|
|
|
|
|
} else {
|
|
|
|
|
ProgressNoteRequest progressNoteRequest =
|
|
|
|
|
ProgressNoteRequest(
|
|
|
|
|
visitType: widget.visitType,
|
|
|
|
|
// if equal 5 then this will return progress note
|
|
|
|
|
admissionNo:
|
|
|
|
|
int.parse(widget.patient.admissionNo),
|
|
|
|
|
projectID: widget.patient.projectId,
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
languageID: 2);
|
|
|
|
|
await widget.patientModel.getPatientProgressNote(
|
|
|
|
|
progressNoteRequest.toJson());
|
|
|
|
|
}
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
TranslationBase.of(context).yourOrderAddedSuccessfully);
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
} else {
|
|
|
|
|
ProgressNoteRequest progressNoteRequest =
|
|
|
|
|
ProgressNoteRequest(
|
|
|
|
|
visitType: widget.visitType,
|
|
|
|
|
// if equal 5 then this will return progress note
|
|
|
|
|
admissionNo:
|
|
|
|
|
int.parse(widget.patient.admissionNo),
|
|
|
|
|
projectID: widget.patient.projectId,
|
|
|
|
|
patientTypeID: widget.patient.patientType,
|
|
|
|
|
languageID: 2);
|
|
|
|
|
await widget.patientModel.getPatientProgressNote(
|
|
|
|
|
progressNoteRequest.toJson());
|
|
|
|
|
Helpers.showErrorToast(TranslationBase.of(context).youCannotAddOnlySpaces);
|
|
|
|
|
}
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
"Your Order added Successfully");
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
} else {
|
|
|
|
|
Helpers.showErrorToast("You cant add only spaces");
|
|
|
|
|
}
|
|
|
|
|
})),
|
|
|
|
|
],
|
|
|
|
|
})),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|