|
|
|
@ -6,14 +6,15 @@ import 'package:doctor_app_flutter/models/SOAP/ChiefComplaint/GetChiefComplaintR
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/GeneralGetReqForSOAP.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/GetHistoryReqModel.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/my_selected_allergy.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/my_selected_history.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_history.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/post_allergy_request_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/post_chief_complaint_request_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/post_histories_request_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/doctor/doctor_profile_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/soap_utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
@ -55,8 +56,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
String medicationControllerError = '';
|
|
|
|
|
String illnessControllerError = '';
|
|
|
|
|
final formKey = GlobalKey<FormState>();
|
|
|
|
|
List<MySelectedAllergy> myAllergiesList=List();
|
|
|
|
|
List<MySelectedHistory> myHistoryList=List();
|
|
|
|
|
List<MySelectedAllergy> myAllergiesList = List();
|
|
|
|
|
List<MySelectedHistory> myHistoryList = List();
|
|
|
|
|
|
|
|
|
|
getHistory(SOAPViewModel model) async {
|
|
|
|
|
widget.changeLoadingState(true);
|
|
|
|
@ -84,51 +85,67 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model.patientHistoryList.forEach((element) {
|
|
|
|
|
if (element.historyType == MasterKeysService.HistoryFamily.getMasterKeyService()) {
|
|
|
|
|
if (element.historyType ==
|
|
|
|
|
MasterKeysService.HistoryFamily.getMasterKeyService()) {
|
|
|
|
|
MasterKeyModel history = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.HistoryFamily,
|
|
|
|
|
id: element.historyId,
|
|
|
|
|
);
|
|
|
|
|
if (history != null) {
|
|
|
|
|
MySelectedHistory mySelectedHistory =
|
|
|
|
|
MySelectedHistory(selectedHistory: history, isChecked: element.isChecked, remark: element.remarks,isLocal: false);
|
|
|
|
|
|
|
|
|
|
SoapUtils.generateMySelectedHistory(
|
|
|
|
|
history: history,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal: false);
|
|
|
|
|
myHistoryList.add(mySelectedHistory);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (element.historyType == MasterKeysService.HistoryMedical.getMasterKeyService()) {
|
|
|
|
|
if (element.historyType ==
|
|
|
|
|
MasterKeysService.HistoryMedical.getMasterKeyService()) {
|
|
|
|
|
MasterKeyModel history = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.HistoryMedical,
|
|
|
|
|
id: element.historyId,
|
|
|
|
|
);
|
|
|
|
|
if (history != null) {
|
|
|
|
|
MySelectedHistory mySelectedHistory =
|
|
|
|
|
MySelectedHistory(selectedHistory: history, isChecked: element.isChecked, remark: element.remarks,isLocal: false);
|
|
|
|
|
|
|
|
|
|
SoapUtils.generateMySelectedHistory(
|
|
|
|
|
history: history,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal: false);
|
|
|
|
|
myHistoryList.add(mySelectedHistory);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (element.historyType == MasterKeysService.HistorySports.getMasterKeyService()) {
|
|
|
|
|
if (element.historyType ==
|
|
|
|
|
MasterKeysService.HistorySports.getMasterKeyService()) {
|
|
|
|
|
MasterKeyModel history = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.HistorySports,
|
|
|
|
|
id: element.historyId,
|
|
|
|
|
);
|
|
|
|
|
if (history != null) {
|
|
|
|
|
MySelectedHistory mySelectedHistory =
|
|
|
|
|
MySelectedHistory(selectedHistory: history, isChecked: element.isChecked, remark: element.remarks,isLocal: false);
|
|
|
|
|
|
|
|
|
|
SoapUtils.generateMySelectedHistory(
|
|
|
|
|
history: history,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal: false);
|
|
|
|
|
myHistoryList.add(mySelectedHistory);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (element.historyType == MasterKeysService.HistorySurgical.getMasterKeyService()) {
|
|
|
|
|
if (element.historyType ==
|
|
|
|
|
MasterKeysService.HistorySurgical.getMasterKeyService()) {
|
|
|
|
|
MasterKeyModel history = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.HistorySurgical,
|
|
|
|
|
id: element.historyId,
|
|
|
|
|
);
|
|
|
|
|
if (history != null) {
|
|
|
|
|
MySelectedHistory mySelectedHistory =
|
|
|
|
|
MySelectedHistory(selectedHistory: history, isChecked: element.isChecked, remark: element.remarks,isLocal: false);
|
|
|
|
|
|
|
|
|
|
SoapUtils.generateMySelectedHistory(
|
|
|
|
|
history: history,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal: false);
|
|
|
|
|
myHistoryList.add(mySelectedHistory);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -145,16 +162,23 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
editedBy: '');
|
|
|
|
|
await model.getPatientAllergy(generalGetReqForSOAP);
|
|
|
|
|
if (model.patientAllergiesList.isNotEmpty) {
|
|
|
|
|
if (model.allergiesList.isEmpty) await model.getMasterLookup(MasterKeysService.Allergies);
|
|
|
|
|
if (model.allergySeverityList.isEmpty) await model.getMasterLookup(MasterKeysService.AllergySeverity);
|
|
|
|
|
if (model.allergiesList.isEmpty)
|
|
|
|
|
await model.getMasterLookup(MasterKeysService.Allergies);
|
|
|
|
|
if (model.allergySeverityList.isEmpty)
|
|
|
|
|
await model.getMasterLookup(MasterKeysService.AllergySeverity);
|
|
|
|
|
|
|
|
|
|
model.patientAllergiesList.forEach((element) {
|
|
|
|
|
MasterKeyModel selectedAllergy = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.Allergies, id: element.allergyDiseaseId, typeId: element.allergyDiseaseType);
|
|
|
|
|
masterKeys: MasterKeysService.Allergies,
|
|
|
|
|
id: element.allergyDiseaseId,
|
|
|
|
|
typeId: element.allergyDiseaseType);
|
|
|
|
|
MasterKeyModel selectedAllergySeverity;
|
|
|
|
|
if (element.severity == 0) {
|
|
|
|
|
selectedAllergySeverity = MasterKeyModel(
|
|
|
|
|
id: 0, typeId: MasterKeysService.AllergySeverity.getMasterKeyService(), nameAr: '', nameEn: '');
|
|
|
|
|
id: 0,
|
|
|
|
|
typeId: MasterKeysService.AllergySeverity.getMasterKeyService(),
|
|
|
|
|
nameAr: '',
|
|
|
|
|
nameEn: '');
|
|
|
|
|
} else {
|
|
|
|
|
selectedAllergySeverity = model.getOneMasterKey(
|
|
|
|
|
masterKeys: MasterKeysService.AllergySeverity,
|
|
|
|
@ -162,14 +186,17 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MySelectedAllergy mySelectedAllergy = MySelectedAllergy(
|
|
|
|
|
selectedAllergy: selectedAllergy,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
createdBy: element.createdBy,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal : false,
|
|
|
|
|
selectedAllergySeverity: selectedAllergySeverity);
|
|
|
|
|
if (selectedAllergy != null && selectedAllergySeverity != null) myAllergiesList.add(mySelectedAllergy);
|
|
|
|
|
MySelectedAllergy mySelectedAllergy =
|
|
|
|
|
SoapUtils.generateMySelectedAllergy(
|
|
|
|
|
allergy: selectedAllergy,
|
|
|
|
|
isChecked: element.isChecked,
|
|
|
|
|
createdBy: element.createdBy,
|
|
|
|
|
remark: element.remarks,
|
|
|
|
|
isLocal: false,
|
|
|
|
|
allergySeverity: selectedAllergySeverity);
|
|
|
|
|
|
|
|
|
|
if (selectedAllergy != null && selectedAllergySeverity != null)
|
|
|
|
|
myAllergiesList.add(mySelectedAllergy);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -181,20 +208,25 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
myAllergiesList.clear();
|
|
|
|
|
myHistoryList.clear();
|
|
|
|
|
|
|
|
|
|
GetChiefComplaintReqModel getChiefComplaintReqModel = GetChiefComplaintReqModel(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
appointmentNo: int.parse(widget.patientInfo.appointmentNo.toString()),
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
|
|
doctorID: '');
|
|
|
|
|
GetChiefComplaintReqModel getChiefComplaintReqModel =
|
|
|
|
|
GetChiefComplaintReqModel(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
appointmentNo:
|
|
|
|
|
int.parse(widget.patientInfo.appointmentNo.toString()),
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
|
|
doctorID: '');
|
|
|
|
|
await model.getPatientChiefComplaint(getChiefComplaintReqModel);
|
|
|
|
|
if (model.patientChiefComplaintList.isNotEmpty) {
|
|
|
|
|
isChiefExpand = true;
|
|
|
|
|
complaintsController.text = Helpers.parseHtmlString(model.patientChiefComplaintList[0].chiefComplaint);
|
|
|
|
|
complaintsController.text = Helpers.parseHtmlString(
|
|
|
|
|
model.patientChiefComplaintList[0].chiefComplaint);
|
|
|
|
|
illnessController.text = model.patientChiefComplaintList[0].hopi;
|
|
|
|
|
medicationController.text = !(model.patientChiefComplaintList[0].currentMedication).isNotEmpty
|
|
|
|
|
? model.patientChiefComplaintList[0].currentMedication + '\n \n'
|
|
|
|
|
: model.patientChiefComplaintList[0].currentMedication;
|
|
|
|
|
medicationController.text =
|
|
|
|
|
!(model.patientChiefComplaintList[0].currentMedication).isNotEmpty
|
|
|
|
|
? model.patientChiefComplaintList[0].currentMedication +
|
|
|
|
|
'\n \n'
|
|
|
|
|
: model.patientChiefComplaintList[0].currentMedication;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await getHistory(model);
|
|
|
|
@ -214,7 +246,9 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SOAPStepHeader(currentIndex: widget.currentIndex, changePageViewIndex: widget.changePageViewIndex),
|
|
|
|
|
SOAPStepHeader(
|
|
|
|
|
currentIndex: widget.currentIndex,
|
|
|
|
|
changePageViewIndex: widget.changePageViewIndex),
|
|
|
|
|
ExpandableSOAPWidget(
|
|
|
|
|
headerTitle: TranslationBase.of(context).chiefComplaints,
|
|
|
|
|
onTap: () {
|
|
|
|
@ -245,7 +279,9 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [UpdateHistoryWidget(myHistoryList: myHistoryList)],
|
|
|
|
|
children: [
|
|
|
|
|
UpdateHistoryWidget(myHistoryList: myHistoryList)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
isExpanded: isHistoryExpand,
|
|
|
|
|
),
|
|
|
|
@ -306,7 +342,9 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
// loading: model.state == ViewState.BusyLocal,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
addSubjectiveInfo(
|
|
|
|
|
model: model, myAllergiesList: myAllergiesList, myHistoryList: myHistoryList);
|
|
|
|
|
model: model,
|
|
|
|
|
myAllergiesList: myAllergiesList,
|
|
|
|
|
myHistoryList: myHistoryList);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -323,9 +361,10 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addSubjectiveInfo(
|
|
|
|
|
{SOAPViewModel model, List<MySelectedAllergy> myAllergiesList, List<MySelectedHistory> myHistoryList}) async {
|
|
|
|
|
if(FocusScope.of(context).hasFocus)
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
{SOAPViewModel model,
|
|
|
|
|
List<MySelectedAllergy> myAllergiesList,
|
|
|
|
|
List<MySelectedHistory> myHistoryList}) async {
|
|
|
|
|
if (FocusScope.of(context).hasFocus) FocusScope.of(context).unfocus();
|
|
|
|
|
widget.changeLoadingState(true);
|
|
|
|
|
formKey.currentState.save();
|
|
|
|
|
formKey.currentState.validate();
|
|
|
|
@ -360,7 +399,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
if (complaintsController.text.isEmpty) {
|
|
|
|
|
complaintsControllerError = TranslationBase.of(context).emptyMessage;
|
|
|
|
|
} else if (complaintsController.text.length < 25) {
|
|
|
|
|
complaintsControllerError = TranslationBase.of(context).chiefComplaintLength;
|
|
|
|
|
complaintsControllerError =
|
|
|
|
|
TranslationBase.of(context).chiefComplaintLength;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (illnessController.text.isEmpty) {
|
|
|
|
@ -373,33 +413,38 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
widget.changeLoadingState(false);
|
|
|
|
|
Helpers.showErrorToast(TranslationBase.of(context).chiefComplaintErrorMsg);
|
|
|
|
|
Helpers.showErrorToast(
|
|
|
|
|
TranslationBase.of(context).chiefComplaintErrorMsg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
postAllergy({List<MySelectedAllergy> myAllergiesList, SOAPViewModel model}) async {
|
|
|
|
|
PostAllergyRequestModel postAllergyRequestModel = new PostAllergyRequestModel();
|
|
|
|
|
postAllergy(
|
|
|
|
|
{List<MySelectedAllergy> myAllergiesList, SOAPViewModel model}) async {
|
|
|
|
|
PostAllergyRequestModel postAllergyRequestModel =
|
|
|
|
|
new PostAllergyRequestModel();
|
|
|
|
|
|
|
|
|
|
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
|
|
|
|
|
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
|
|
|
|
|
myAllergiesList.forEach((allergy) {
|
|
|
|
|
if (postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM == null)
|
|
|
|
|
if (postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM ==
|
|
|
|
|
null)
|
|
|
|
|
postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM = [];
|
|
|
|
|
postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM.add(ListHisProgNotePatientAllergyDiseaseVM(
|
|
|
|
|
allergyDiseaseId: allergy.selectedAllergy.id,
|
|
|
|
|
allergyDiseaseType: allergy.selectedAllergy.typeId,
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
|
appointmentNo: widget.patientInfo.appointmentNo,
|
|
|
|
|
severity: allergy.selectedAllergySeverity.id,
|
|
|
|
|
remarks: allergy.remark,
|
|
|
|
|
createdBy: allergy.createdBy ?? doctorProfile.doctorID,
|
|
|
|
|
createdOn: DateTime.now().toIso8601String(),
|
|
|
|
|
editedBy: doctorProfile.doctorID,
|
|
|
|
|
editedOn: DateTime.now().toIso8601String(),
|
|
|
|
|
isChecked: allergy.isChecked,
|
|
|
|
|
isUpdatedByNurse: false));
|
|
|
|
|
postAllergyRequestModel.listHisProgNotePatientAllergyDiseaseVM.add(
|
|
|
|
|
ListHisProgNotePatientAllergyDiseaseVM(
|
|
|
|
|
allergyDiseaseId: allergy.selectedAllergy.id,
|
|
|
|
|
allergyDiseaseType: allergy.selectedAllergy.typeId,
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
|
appointmentNo: widget.patientInfo.appointmentNo,
|
|
|
|
|
severity: allergy.selectedAllergySeverity.id,
|
|
|
|
|
remarks: allergy.remark,
|
|
|
|
|
createdBy: allergy.createdBy ?? doctorProfile.doctorID,
|
|
|
|
|
createdOn: DateTime.now().toIso8601String(),
|
|
|
|
|
editedBy: doctorProfile.doctorID,
|
|
|
|
|
editedOn: DateTime.now().toIso8601String(),
|
|
|
|
|
isChecked: allergy.isChecked,
|
|
|
|
|
isUpdatedByNurse: false));
|
|
|
|
|
});
|
|
|
|
|
if (model.patientAllergiesList.isEmpty) {
|
|
|
|
|
await model.postAllergy(postAllergyRequestModel);
|
|
|
|
@ -423,10 +468,13 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
postHistories({List<MySelectedHistory> myHistoryList, SOAPViewModel model}) async {
|
|
|
|
|
PostHistoriesRequestModel postHistoriesRequestModel = new PostHistoriesRequestModel(doctorID: '');
|
|
|
|
|
postHistories(
|
|
|
|
|
{List<MySelectedHistory> myHistoryList, SOAPViewModel model}) async {
|
|
|
|
|
PostHistoriesRequestModel postHistoriesRequestModel =
|
|
|
|
|
new PostHistoriesRequestModel(doctorID: '');
|
|
|
|
|
myHistoryList.forEach((history) {
|
|
|
|
|
if (postHistoriesRequestModel.listMedicalHistoryVM == null) postHistoriesRequestModel.listMedicalHistoryVM = [];
|
|
|
|
|
if (postHistoriesRequestModel.listMedicalHistoryVM == null)
|
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM = [];
|
|
|
|
|
postHistoriesRequestModel.listMedicalHistoryVM.add(ListMedicalHistoryVM(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
@ -452,17 +500,18 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
|
|
|
|
|
postChiefComplaint({SOAPViewModel model}) async {
|
|
|
|
|
formKey.currentState.save();
|
|
|
|
|
if (formKey.currentState.validate()) {
|
|
|
|
|
PostChiefComplaintRequestModel postChiefComplaintRequestModel = new PostChiefComplaintRequestModel(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
|
|
appointmentNo: widget.patientInfo.appointmentNo,
|
|
|
|
|
chiefComplaint: complaintsController.text,
|
|
|
|
|
currentMedication: medicationController.text,
|
|
|
|
|
hopi: illnessController.text,
|
|
|
|
|
isLactation: false,
|
|
|
|
|
ispregnant: false,
|
|
|
|
|
doctorID: '',
|
|
|
|
|
numberOfWeeks: 0);
|
|
|
|
|
PostChiefComplaintRequestModel postChiefComplaintRequestModel =
|
|
|
|
|
new PostChiefComplaintRequestModel(
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeID: widget.patientInfo.episodeNo,
|
|
|
|
|
appointmentNo: widget.patientInfo.appointmentNo,
|
|
|
|
|
chiefComplaint: complaintsController.text,
|
|
|
|
|
currentMedication: medicationController.text,
|
|
|
|
|
hopi: illnessController.text,
|
|
|
|
|
isLactation: false,
|
|
|
|
|
ispregnant: false,
|
|
|
|
|
doctorID: '',
|
|
|
|
|
numberOfWeeks: 0);
|
|
|
|
|
if (model.patientChiefComplaintList.isEmpty) {
|
|
|
|
|
postChiefComplaintRequestModel.editedBy = '';
|
|
|
|
|
await model.postChiefComplaint(postChiefComplaintRequestModel);
|
|
|
|
|