|
|
|
|
@ -663,10 +663,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
"pomrId": patient.pomrId,
|
|
|
|
|
};
|
|
|
|
|
hasError = false;
|
|
|
|
|
patientChiefComplaintListVidaPlus.clear();
|
|
|
|
|
await baseAppClient.post(GET_CHIEF_COMPLAINT_VP,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patientChiefComplaintListVidaPlus.clear();
|
|
|
|
|
|
|
|
|
|
response['ListChiefComplaintDetails']['resultData'].forEach((v) {
|
|
|
|
|
patientChiefComplaintListVidaPlus
|
|
|
|
|
.add(GetChiefComplaintVidaPlus.fromJson(v));
|
|
|
|
|
@ -1068,40 +1067,25 @@ class SOAPService extends LookupService {
|
|
|
|
|
PatiantInformtion patient, PatientPreviousDiagnosis diagnosis) async {
|
|
|
|
|
Map<String, dynamic>? user = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
|
"pomrId": patient.pomrId,
|
|
|
|
|
"appointmentId": patient.appointmentNo,
|
|
|
|
|
"clinicGroupId": patient.clinicGroupId,
|
|
|
|
|
"clinicId": patient.clinicId,
|
|
|
|
|
"patientProblemRevisionId": diagnosis.patientProblemRevisionId,
|
|
|
|
|
"patientId": patient.patientId,
|
|
|
|
|
"hospitalId": patient.projectId,
|
|
|
|
|
"hospitalGroupId": await sharedPref.getString(DOCTOR_SETUP_ID),
|
|
|
|
|
"diagnosisType": diagnosis.diagnosisType,
|
|
|
|
|
"condition": diagnosis.condition,
|
|
|
|
|
"remarks": diagnosis.remarks,
|
|
|
|
|
"icdType": diagnosis.icdType,
|
|
|
|
|
// "icdVersion": searchDiagnosis.icdVersion,
|
|
|
|
|
"icdSubVersion": diagnosis.icdSubVersion,
|
|
|
|
|
"isNew": false,
|
|
|
|
|
"specificationId": diagnosis.problemId,
|
|
|
|
|
"selectedDisease": diagnosis.selectedDisease,
|
|
|
|
|
// "diseasesCode": diagnosis.visitWisePatientDiagnoses?.last.diseasesCode,
|
|
|
|
|
// "diseasesId": searchDiagnosis.diseasesId,
|
|
|
|
|
"selectedIcdCode": diagnosis.selectedIcdCode,
|
|
|
|
|
"selectedCategoryCode": diagnosis.selectedCategoryCode,
|
|
|
|
|
"selectedSectionCode": diagnosis.selectedSectionCode,
|
|
|
|
|
"selectedChapterCode": diagnosis.selectedChapterCode,
|
|
|
|
|
// "selectedNandaCode": diagnosis.selectedNandaCode,
|
|
|
|
|
"isResolved": false,
|
|
|
|
|
"doctorId": patient.doctorId,
|
|
|
|
|
"doctorCode": user?['List_MemberInformation'][0]['MemberID'],
|
|
|
|
|
"ProjectID": patient.projectId,
|
|
|
|
|
// "codeRange": searchDiagnosis.codeRange
|
|
|
|
|
"pomrId": patient.pomrId,
|
|
|
|
|
"appointmentId": diagnosis.appointmentId,
|
|
|
|
|
"createdBy": patient.doctorId,
|
|
|
|
|
"hospitalId": patient.projectId,
|
|
|
|
|
"hospitalGroupId": diagnosis.hospitalGroupId,
|
|
|
|
|
"clinicGroupId": diagnosis.clinicGroupId ?? patient.clinicGroupId,
|
|
|
|
|
"clinicId": diagnosis.clinicId,
|
|
|
|
|
"isSelected": true,
|
|
|
|
|
"ProjectID": patient.projectId
|
|
|
|
|
};
|
|
|
|
|
hasError = false;
|
|
|
|
|
var success = false;
|
|
|
|
|
await baseAppClient.post(MAKE_PREVIOUS_AS_CURRENT_DIAGNOSIS,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) async {
|
|
|
|
|
DrAppToastMsg.showSuccesToast(response['CreatDiagnosis']['message']);
|
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
response['ContinuePreviousEpisode']['message']);
|
|
|
|
|
success = true;
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
|