update_flutter_3.24_vida_plus_episode_MDS
Sultan khan 1 year ago
parent f567f191de
commit 9fcef3107f

@ -94,7 +94,7 @@ class AllergyReactionDTOs {
this.pomrid, this.pomrid,
this.patientID, this.patientID,
this.allergyReactionMappingID, this.allergyReactionMappingID,
this.severity this.severity =1
}); });
AllergyReactionDTOs.fromJson(Map<String, dynamic> json) { AllergyReactionDTOs.fromJson(Map<String, dynamic> json) {

@ -91,7 +91,7 @@ class PatientsAllergyReactionsDTOs {
this.patientID, this.patientID,
this.patientsAllergyReactionRevisionID, this.patientsAllergyReactionRevisionID,
this.pomrId, this.pomrId,
this.severity, this.severity =1,
this.isSelected, this.isSelected,
this.reactionSelection this.reactionSelection
}); });

@ -465,6 +465,7 @@ class SOAPService extends LookupService {
value.patientID = patientInfo.patientMRN; value.patientID = patientInfo.patientMRN;
value.pomrid = int.parse(patientInfo.pomrId!); value.pomrid = int.parse(patientInfo.pomrId!);
value.allergyReactionMappingID = 1; value.allergyReactionMappingID = 1;
value.severity = value.severity ?? 1;
}); });
} }
@ -487,7 +488,6 @@ class SOAPService extends LookupService {
"allergyID": allergy.allergyID, "allergyID": allergy.allergyID,
"allergyName": allergy.allergyName, "allergyName": allergy.allergyName,
"allergyTypeID": allergy.allergyTypeID, "allergyTypeID": allergy.allergyTypeID,
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID)
}; };
if(isNoKnown){ if(isNoKnown){
@ -510,7 +510,8 @@ class SOAPService extends LookupService {
hasError = true; hasError = true;
super.error = error; super.error = error;
}, body: { }, body: {
"listProgNotePatientAllergyDiseaseVM": [request] "listProgNotePatientAllergyDiseaseVM": [request],
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID)
}); });
} }
@ -686,9 +687,11 @@ class SOAPService extends LookupService {
"appointmentNo": patient.appointmentNo, "appointmentNo": patient.appointmentNo,
"pomrId": patient.pomrId, "pomrId": patient.pomrId,
"patientMRN": patient.patientMRN, "patientMRN": patient.patientMRN,
"chiefComplaint": cheifComplaint "chiefComplaint": cheifComplaint,
} }
] ],
"setupId":await sharedPref.getString(DOCTOR_SETUP_ID)
}; };
hasError = false; hasError = false;
await baseAppClient.post(POST_CHIEF_COMPLAINT_VP, await baseAppClient.post(POST_CHIEF_COMPLAINT_VP,
@ -1403,7 +1406,8 @@ class SOAPService extends LookupService {
"PatientMRN": patient.patientMRN, "PatientMRN": patient.patientMRN,
"PatientName": patient.firstName! + ' ' + patient.lastName!, "PatientName": patient.firstName! + ' ' + patient.lastName!,
"addedChiefComplaintCreateDtos": [], "addedChiefComplaintCreateDtos": [],
"removedChiefComplaintIds": [chiefComplaint.chiefComplainId] "removedChiefComplaintIds": [chiefComplaint.chiefComplainId],
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID),
}; };
hasError = false; hasError = false;
await baseAppClient.post(UPDATE_CHIEF_COMPLAINT, await baseAppClient.post(UPDATE_CHIEF_COMPLAINT,
@ -1421,6 +1425,7 @@ class SOAPService extends LookupService {
Map<String, dynamic> request = { Map<String, dynamic> request = {
"patientId": patient.patientId, "patientId": patient.patientId,
"clinicId": patient.clinicId, "clinicId": patient.clinicId,
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID),
}; };
hasError = false; hasError = false;
await baseAppClient.post(EPISODE_BY_CHIEF_COMPLAINT, await baseAppClient.post(EPISODE_BY_CHIEF_COMPLAINT,

@ -6,6 +6,7 @@ import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.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/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart'; import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart';
import 'package:doctor_app_flutter/utils/extenstions_utils.dart';
import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.dart'; import 'package:doctor_app_flutter/utils/translations_delegate_base_utils.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';
@ -128,7 +129,7 @@ class _ReactionsSelectionAllergiesWidgetState
groupValue: widget groupValue: widget
.mySelectedAllergy! .mySelectedAllergy!
.allergyReactionDTOs![index] .allergyReactionDTOs![index]
.severity, .severity ?? 1,
onChanged: (value) { onChanged: (value) {
widget widget
.mySelectedAllergy! .mySelectedAllergy!
@ -521,7 +522,7 @@ class _ReactionsSelectionAllergiesWidgetState
allergyReactionMappingID:i.allergyReactionMappingID, allergyReactionMappingID:i.allergyReactionMappingID,
allergyReactionID:i.allergyReactionID, allergyReactionID:i.allergyReactionID,
allergyReactionName: i.allergyReactionName, allergyReactionName: i.allergyReactionName,
severity:i.severity, severity:i.severity ??1
)); ));
} }

Loading…
Cancel
Save