|
|
|
@ -12,7 +12,9 @@ import 'package:doctor_app_flutter/core/model/SOAP/chief_complaint/search_chief_
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/general_get_req_for_SOAP.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/general_get_req_for_SOAP.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/Assessment/get_assessment_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/get_hopi_details.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/get_hopi_details.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/physical_exam/GeneralSpeciality.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/physical_exam/patient_physical_examination.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/physical_exam/patient_physical_examination.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/physical_exam/post_physical_examination_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/post_episode_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/post_episode_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/chief_complaint/get_chief_complaint_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/chief_complaint/get_chief_complaint_req_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/chief_complaint/get_chief_complaint_res_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/model/SOAP/chief_complaint/get_chief_complaint_res_model.dart';
|
|
|
|
@ -55,6 +57,7 @@ class SOAPService extends LookupService {
|
|
|
|
List<AuditDiagnosis> auditDiagnosislist = [];
|
|
|
|
List<AuditDiagnosis> auditDiagnosislist = [];
|
|
|
|
List<SearchDiagnosis> searchDiagnosisList = [];
|
|
|
|
List<SearchDiagnosis> searchDiagnosisList = [];
|
|
|
|
List<PatientPhysicalExamination> patientPhysicalExaminationList = [];
|
|
|
|
List<PatientPhysicalExamination> patientPhysicalExaminationList = [];
|
|
|
|
|
|
|
|
List<GeneralSpeciality> generalSpeciality = [];
|
|
|
|
Map<String, dynamic> diagnosisTypeList = {};
|
|
|
|
Map<String, dynamic> diagnosisTypeList = {};
|
|
|
|
Map<String, dynamic> conditionTypeList = {};
|
|
|
|
Map<String, dynamic> conditionTypeList = {};
|
|
|
|
List<String> icdVersionList = [];
|
|
|
|
List<String> icdVersionList = [];
|
|
|
|
@ -77,8 +80,7 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: postEpisodeReqModel.toJson());
|
|
|
|
}, body: postEpisodeReqModel.toJson());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future postEpisodeForInPatient(
|
|
|
|
Future postEpisodeForInPatient(PostEpisodeForInpatientRequestModel
|
|
|
|
PostEpisodeForInpatientRequestModel
|
|
|
|
|
|
|
|
postEpisodeForInpatientRequestModel) async {
|
|
|
|
postEpisodeForInpatientRequestModel) async {
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
|
|
@ -279,7 +281,8 @@ class SOAPService extends LookupService {
|
|
|
|
print("Success");
|
|
|
|
print("Success");
|
|
|
|
patientChiefComplaintList.clear();
|
|
|
|
patientChiefComplaintList.clear();
|
|
|
|
response['List_ChiefComplaint']['entityList'].forEach((v) {
|
|
|
|
response['List_ChiefComplaint']['entityList'].forEach((v) {
|
|
|
|
patientChiefComplaintList.add(GetChiefComplaintResModel.fromJson(v));
|
|
|
|
patientChiefComplaintList.add(
|
|
|
|
|
|
|
|
GetChiefComplaintResModel.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
@ -310,7 +313,8 @@ class SOAPService extends LookupService {
|
|
|
|
print("Success");
|
|
|
|
print("Success");
|
|
|
|
patientProgressNoteList.clear();
|
|
|
|
patientProgressNoteList.clear();
|
|
|
|
response['ProgressNoteList']['entityList'].forEach((v) {
|
|
|
|
response['ProgressNoteList']['entityList'].forEach((v) {
|
|
|
|
patientProgressNoteList.add(GetPatientProgressNoteResModel.fromJson(v));
|
|
|
|
patientProgressNoteList.add(
|
|
|
|
|
|
|
|
GetPatientProgressNoteResModel.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
@ -405,8 +409,8 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: {"AllergyName": searchKey});
|
|
|
|
}, body: {"AllergyName": searchKey});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future addAllergies(
|
|
|
|
Future addAllergies(AllergiesListVidaPlus allergy,
|
|
|
|
AllergiesListVidaPlus allergy, PatiantInformtion patientInfo) async {
|
|
|
|
PatiantInformtion patientInfo) async {
|
|
|
|
allergy.allergyReactionDTOs!.forEach((value) {
|
|
|
|
allergy.allergyReactionDTOs!.forEach((value) {
|
|
|
|
value.patientID = patientInfo.patientMRN;
|
|
|
|
value.patientID = patientInfo.patientMRN;
|
|
|
|
value.pomrid = int.parse(patientInfo.pomrId!);
|
|
|
|
value.pomrid = int.parse(patientInfo.pomrId!);
|
|
|
|
@ -447,8 +451,8 @@ class SOAPService extends LookupService {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future resolveAllergies(
|
|
|
|
Future resolveAllergies(PatientAllergiesVidaPlus allergy,
|
|
|
|
PatientAllergiesVidaPlus allergy, PatiantInformtion patientInfo) async {
|
|
|
|
PatiantInformtion patientInfo) async {
|
|
|
|
/*changed request parameters based on the vida plus requested */
|
|
|
|
/*changed request parameters based on the vida plus requested */
|
|
|
|
|
|
|
|
|
|
|
|
var doctorProfile = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
var doctorProfile = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
@ -496,8 +500,8 @@ class SOAPService extends LookupService {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future updateAllergies(
|
|
|
|
Future updateAllergies(AllergiesListVidaPlus allergy,
|
|
|
|
AllergiesListVidaPlus allergy, PatiantInformtion patientInfo) async {
|
|
|
|
PatiantInformtion patientInfo) async {
|
|
|
|
allergy.allergyReactionDTOs!.forEach((value) {
|
|
|
|
allergy.allergyReactionDTOs!.forEach((value) {
|
|
|
|
value.patientID = patientInfo.patientMRN;
|
|
|
|
value.patientID = patientInfo.patientMRN;
|
|
|
|
value.pomrid = patientInfo.episodeNo;
|
|
|
|
value.pomrid = patientInfo.episodeNo;
|
|
|
|
@ -548,9 +552,7 @@ class SOAPService extends LookupService {
|
|
|
|
"patientId": patient.patientMRN,
|
|
|
|
"patientId": patient.patientMRN,
|
|
|
|
"patientPomrId": patient.pomrId,
|
|
|
|
"patientPomrId": patient.pomrId,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Map<String, dynamic> finalRequest = {}
|
|
|
|
Map<String, dynamic> finalRequest = {}..addAll(request)..addAll(req);
|
|
|
|
..addAll(request)
|
|
|
|
|
|
|
|
..addAll(req);
|
|
|
|
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
await baseAppClient.post(CREATE_HOPI,
|
|
|
|
await baseAppClient.post(CREATE_HOPI,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
@ -600,8 +602,8 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
postChiefComplaintVidaPlus(
|
|
|
|
postChiefComplaintVidaPlus(PatiantInformtion patient,
|
|
|
|
PatiantInformtion patient, String cheifComplaint) async {
|
|
|
|
String cheifComplaint) async {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
"ListCreateChiefComplaint": [
|
|
|
|
"ListCreateChiefComplaint": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -634,7 +636,8 @@ class SOAPService extends LookupService {
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
//
|
|
|
|
//
|
|
|
|
response['List_SearchChiefComplaint']['resultData'].forEach((v) {
|
|
|
|
response['List_SearchChiefComplaint']['resultData'].forEach((v) {
|
|
|
|
searchChiefComplaintListVidaPlus.add(SearchChiefComplaint.fromJson(v));
|
|
|
|
searchChiefComplaintListVidaPlus.add(
|
|
|
|
|
|
|
|
SearchChiefComplaint.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
@ -653,7 +656,8 @@ class SOAPService extends LookupService {
|
|
|
|
await baseAppClient.post(SEARCH_DIAGNOSIS,
|
|
|
|
await baseAppClient.post(SEARCH_DIAGNOSIS,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
response['List_Diagnosis']['resultData']
|
|
|
|
response['List_Diagnosis']['resultData']
|
|
|
|
.forEach((v) => searchDiagnosisList.add(SearchDiagnosis.fromJson(v)));
|
|
|
|
.forEach((v) =>
|
|
|
|
|
|
|
|
searchDiagnosisList.add(SearchDiagnosis.fromJson(v)));
|
|
|
|
_processData();
|
|
|
|
_processData();
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
@ -689,7 +693,8 @@ class SOAPService extends LookupService {
|
|
|
|
await baseAppClient.post(DIAGNOSIS_TYPE,
|
|
|
|
await baseAppClient.post(DIAGNOSIS_TYPE,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
response['ListDiagnosisTypeModel']['resultData']
|
|
|
|
response['ListDiagnosisTypeModel']['resultData']
|
|
|
|
.forEach((v) => diagnosisTypeList[v['name']] = v['diagnosisType']);
|
|
|
|
.forEach((v) =>
|
|
|
|
|
|
|
|
diagnosisTypeList[v['name']] = v['diagnosisType']);
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
searchChiefComplaintListVidaPlus.clear();
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
@ -713,10 +718,8 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
auditDiagnosis(
|
|
|
|
auditDiagnosis(PatiantInformtion patient,
|
|
|
|
PatiantInformtion patient,
|
|
|
|
String patientProblemRevisionID,) async {
|
|
|
|
String patientProblemRevisionID,
|
|
|
|
|
|
|
|
) async {
|
|
|
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
"patientProblemRevisionId": patientProblemRevisionID,
|
|
|
|
"patientProblemRevisionId": patientProblemRevisionID,
|
|
|
|
"ProjectID": patient.projectId
|
|
|
|
"ProjectID": patient.projectId
|
|
|
|
@ -726,7 +729,8 @@ class SOAPService extends LookupService {
|
|
|
|
await baseAppClient.post(AUDIT_DIAGNOSIS,
|
|
|
|
await baseAppClient.post(AUDIT_DIAGNOSIS,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
response['ListDaignosisAudit']['resultData']
|
|
|
|
response['ListDaignosisAudit']['resultData']
|
|
|
|
.forEach((v) => auditDiagnosislist.add(AuditDiagnosis.fromJson(v)));
|
|
|
|
.forEach((v) =>
|
|
|
|
|
|
|
|
auditDiagnosislist.add(AuditDiagnosis.fromJson(v)));
|
|
|
|
showAuditBottomSheet = auditDiagnosislist.isNotEmpty;
|
|
|
|
showAuditBottomSheet = auditDiagnosislist.isNotEmpty;
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
auditDiagnosislist.clear();
|
|
|
|
auditDiagnosislist.clear();
|
|
|
|
@ -786,7 +790,8 @@ class SOAPService extends LookupService {
|
|
|
|
patientPreviousDiagnosisList.clear();
|
|
|
|
patientPreviousDiagnosisList.clear();
|
|
|
|
await baseAppClient.post(REMOVE_DIAGNOSIS,
|
|
|
|
await baseAppClient.post(REMOVE_DIAGNOSIS,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
DrAppToastMsg.showSuccesToast(response['ListDiagnosisRemove']['message']);
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
|
|
|
response['ListDiagnosisRemove']['message']);
|
|
|
|
//todo get the current diagnosis after the delete if it is successful
|
|
|
|
//todo get the current diagnosis after the delete if it is successful
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
patientPreviousDiagnosisList.clear();
|
|
|
|
patientPreviousDiagnosisList.clear();
|
|
|
|
@ -795,9 +800,7 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
favoriteDiagnosis(
|
|
|
|
favoriteDiagnosis(PatiantInformtion patientInfo,) async {
|
|
|
|
PatiantInformtion patientInfo,
|
|
|
|
|
|
|
|
) async {
|
|
|
|
|
|
|
|
Map<String, dynamic>? user = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
Map<String, dynamic>? user = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
@ -813,7 +816,8 @@ class SOAPService extends LookupService {
|
|
|
|
await baseAppClient.post(FAVORITE_DIAGNOSIS,
|
|
|
|
await baseAppClient.post(FAVORITE_DIAGNOSIS,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
response['ListDiagnosisGetFavourite']['resultData'].forEach((v) =>
|
|
|
|
response['ListDiagnosisGetFavourite']['resultData'].forEach((v) =>
|
|
|
|
favoriteDiagnosisDetailsList.add(FavoriteDiseaseDetails.fromJson(v)));
|
|
|
|
favoriteDiagnosisDetailsList.add(
|
|
|
|
|
|
|
|
FavoriteDiseaseDetails.fromJson(v)));
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
favoriteDiagnosisDetailsList.clear();
|
|
|
|
favoriteDiagnosisDetailsList.clear();
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
@ -821,9 +825,7 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getPhysicalExamination(
|
|
|
|
getPhysicalExamination(PatiantInformtion patientInfo,) async {
|
|
|
|
PatiantInformtion patientInfo,
|
|
|
|
|
|
|
|
) async {
|
|
|
|
|
|
|
|
Map<String, dynamic>? user = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
Map<String, dynamic>? user = await sharedPref.getObj(LOGGED_IN_USER);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
@ -831,14 +833,15 @@ class SOAPService extends LookupService {
|
|
|
|
"pomrId": patientInfo.pomrId,
|
|
|
|
"pomrId": patientInfo.pomrId,
|
|
|
|
"hospitalId": patientInfo.projectId,
|
|
|
|
"hospitalId": patientInfo.projectId,
|
|
|
|
"hospitalGroupId": await sharedPref.getString(DOCTOR_SETUP_ID),
|
|
|
|
"hospitalGroupId": await sharedPref.getString(DOCTOR_SETUP_ID),
|
|
|
|
"ProjectID":patientInfo.projectId
|
|
|
|
"ProjectID": patientInfo.projectId
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
patientPhysicalExaminationList.clear();
|
|
|
|
patientPhysicalExaminationList.clear();
|
|
|
|
await baseAppClient.post(FAVORITE_DIAGNOSIS,
|
|
|
|
await baseAppClient.post(SEARCH_PHYSICAL_EXAMINATION,
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
response['ListPhysicalExam']['resultData'].forEach((v) =>
|
|
|
|
response['ListPhysicalExam']['resultData'].forEach((v) =>
|
|
|
|
patientPhysicalExaminationList.add(PatientPhysicalExamination.fromJson(v)));
|
|
|
|
patientPhysicalExaminationList.add(
|
|
|
|
|
|
|
|
PatientPhysicalExamination.fromJson(v)));
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
physicalExaminationList.clear();
|
|
|
|
physicalExaminationList.clear();
|
|
|
|
hasError = true;
|
|
|
|
hasError = true;
|
|
|
|
@ -846,6 +849,45 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postPhysicalExamination(PatiantInformtion patientInfo,List<PostPhysicalExaminationModel> physicalExamination) async {
|
|
|
|
|
|
|
|
var jsonListOfPhysicalExamination = [];
|
|
|
|
|
|
|
|
physicalExamination.forEach((value)=>jsonListOfPhysicalExamination.add(value.toJson()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
|
|
|
|
"ProjectID": patientInfo.patientId,
|
|
|
|
|
|
|
|
"listCreatPhysicalExam": jsonListOfPhysicalExamination
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
await baseAppClient.post(SEARCH_PHYSICAL_EXAMINATION,
|
|
|
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
|
|
|
response['ListPhysicalExam']['message']);
|
|
|
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
|
|
|
hasError = true;
|
|
|
|
|
|
|
|
super.error = error;
|
|
|
|
|
|
|
|
}, body: request);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getGeneralSpeciality(PatiantInformtion patientInfo) async {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
|
|
|
|
"ProjectID": patientInfo.patientId,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
generalSpeciality.clear();
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_GENERAL_SPECIALITY,
|
|
|
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
|
|
|
response['ListGeneralSpeciality']['resultData'].forEach((v) =>
|
|
|
|
|
|
|
|
generalSpeciality.add(
|
|
|
|
|
|
|
|
GeneralSpeciality.fromJson(v)));
|
|
|
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
|
|
|
hasError = true;
|
|
|
|
|
|
|
|
generalSpeciality.clear();
|
|
|
|
|
|
|
|
super.error = error;
|
|
|
|
|
|
|
|
}, body: request);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
addToFavoriteDiagnosis(PatiantInformtion paitientInfo, String doctorName,
|
|
|
|
addToFavoriteDiagnosis(PatiantInformtion paitientInfo, String doctorName,
|
|
|
|
String subFavoriteCode, String? userId) async {
|
|
|
|
String subFavoriteCode, String? userId) async {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
@ -882,7 +924,8 @@ class SOAPService extends LookupService {
|
|
|
|
}, body: request);
|
|
|
|
}, body: request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
convertPreviousDiagnosisCurrent(PatiantInformtion paitientInfo, PatientPreviousDiagnosis diagnosis) async {
|
|
|
|
convertPreviousDiagnosisCurrent(PatiantInformtion paitientInfo,
|
|
|
|
|
|
|
|
PatientPreviousDiagnosis diagnosis) async {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
Map<String, dynamic> request = {
|
|
|
|
"patientProblemRevisionId": diagnosis.patientProblemRevisionId,
|
|
|
|
"patientProblemRevisionId": diagnosis.patientProblemRevisionId,
|
|
|
|
"patientId": paitientInfo.patientId,
|
|
|
|
"patientId": paitientInfo.patientId,
|
|
|
|
@ -895,7 +938,7 @@ class SOAPService extends LookupService {
|
|
|
|
"clinicGroupId": diagnosis.clinicGroupId,
|
|
|
|
"clinicGroupId": diagnosis.clinicGroupId,
|
|
|
|
"clinicId": diagnosis.clinicId,
|
|
|
|
"clinicId": diagnosis.clinicId,
|
|
|
|
"isSelected": true,
|
|
|
|
"isSelected": true,
|
|
|
|
"ProjectID":paitientInfo.projectId
|
|
|
|
"ProjectID": paitientInfo.projectId
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
addedToFavorite = false;
|
|
|
|
addedToFavorite = false;
|
|
|
|
|