update_flutter_3.24_vida_plus_episode_MDS
Sultan khan 11 months ago
parent f567f191de
commit 9fcef3107f

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

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

@ -465,6 +465,7 @@ class SOAPService extends LookupService {
value.patientID = patientInfo.patientMRN;
value.pomrid = int.parse(patientInfo.pomrId!);
value.allergyReactionMappingID = 1;
value.severity = value.severity ?? 1;
});
}
@ -487,7 +488,6 @@ class SOAPService extends LookupService {
"allergyID": allergy.allergyID,
"allergyName": allergy.allergyName,
"allergyTypeID": allergy.allergyTypeID,
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID)
};
if(isNoKnown){
@ -510,7 +510,8 @@ class SOAPService extends LookupService {
hasError = true;
super.error = error;
}, body: {
"listProgNotePatientAllergyDiseaseVM": [request]
"listProgNotePatientAllergyDiseaseVM": [request],
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID)
});
}
@ -686,9 +687,11 @@ class SOAPService extends LookupService {
"appointmentNo": patient.appointmentNo,
"pomrId": patient.pomrId,
"patientMRN": patient.patientMRN,
"chiefComplaint": cheifComplaint
"chiefComplaint": cheifComplaint,
}
]
],
"setupId":await sharedPref.getString(DOCTOR_SETUP_ID)
};
hasError = false;
await baseAppClient.post(POST_CHIEF_COMPLAINT_VP,
@ -1403,7 +1406,8 @@ class SOAPService extends LookupService {
"PatientMRN": patient.patientMRN,
"PatientName": patient.firstName! + ' ' + patient.lastName!,
"addedChiefComplaintCreateDtos": [],
"removedChiefComplaintIds": [chiefComplaint.chiefComplainId]
"removedChiefComplaintIds": [chiefComplaint.chiefComplainId],
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID),
};
hasError = false;
await baseAppClient.post(UPDATE_CHIEF_COMPLAINT,
@ -1421,6 +1425,7 @@ class SOAPService extends LookupService {
Map<String, dynamic> request = {
"patientId": patient.patientId,
"clinicId": patient.clinicId,
"setupId": await sharedPref.getString(DOCTOR_SETUP_ID),
};
hasError = false;
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/screens/base/base_view.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/widgets/shared/app_scaffold_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
@ -128,7 +129,7 @@ class _ReactionsSelectionAllergiesWidgetState
groupValue: widget
.mySelectedAllergy!
.allergyReactionDTOs![index]
.severity,
.severity ?? 1,
onChanged: (value) {
widget
.mySelectedAllergy!
@ -521,7 +522,7 @@ class _ReactionsSelectionAllergiesWidgetState
allergyReactionMappingID:i.allergyReactionMappingID,
allergyReactionID:i.allergyReactionID,
allergyReactionName: i.allergyReactionName,
severity:i.severity,
severity:i.severity ??1
));
}

Loading…
Cancel
Save