|
|
|
|
@ -32,7 +32,7 @@ class SOAPService extends LookupService {
|
|
|
|
|
List<GetPatientProgressNoteResModel> patientProgressNoteList = [];
|
|
|
|
|
List<GetAssessmentResModel> patientAssessmentList = [];
|
|
|
|
|
|
|
|
|
|
int episodeID;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
Future getAllergies(GetAllergiesRequestModel getAllergiesRequestModel) async {
|
|
|
|
|
await baseAppClient.post(
|
|
|
|
|
GET_ALLERGIES,
|
|
|
|
|
@ -53,8 +53,7 @@ class SOAPService extends LookupService {
|
|
|
|
|
Future postEpisode(PostEpisodeReqModel postEpisodeReqModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(POST_EPISODE,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_EPISODE, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
episodeID = response['EpisodeID'];
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
@ -66,8 +65,7 @@ class SOAPService extends LookupService {
|
|
|
|
|
Future postAllergy(PostAllergyRequestModel postAllergyRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(POST_ALLERGY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_ALLERGY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -75,11 +73,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: postAllergyRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future postHistories(
|
|
|
|
|
PostHistoriesRequestModel postHistoriesRequestModel) async {
|
|
|
|
|
Future postHistories(PostHistoriesRequestModel postHistoriesRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(POST_HISTORY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_HISTORY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -87,11 +83,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: postHistoriesRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future postChiefComplaint(
|
|
|
|
|
PostChiefComplaintRequestModel postChiefComplaintRequestModel) async {
|
|
|
|
|
Future postChiefComplaint(PostChiefComplaintRequestModel postChiefComplaintRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(POST_CHIEF_COMPLAINT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -99,11 +93,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: postChiefComplaintRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future postPhysicalExam(
|
|
|
|
|
PostPhysicalExamRequestModel postPhysicalExamRequestModel) async {
|
|
|
|
|
Future postPhysicalExam(PostPhysicalExamRequestModel postPhysicalExamRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(POST_PHYSICAL_EXAM,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_PHYSICAL_EXAM, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -111,11 +103,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: postPhysicalExamRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future postProgressNote(
|
|
|
|
|
PostProgressNoteRequestModel postProgressNoteRequestModel) async {
|
|
|
|
|
Future postProgressNote(PostProgressNoteRequestModel postProgressNoteRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(POST_PROGRESS_NOTE,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_PROGRESS_NOTE, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -123,11 +113,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: postProgressNoteRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future postAssessment(
|
|
|
|
|
PostAssessmentRequestModel postAssessmentRequestModel) async {
|
|
|
|
|
Future postAssessment(PostAssessmentRequestModel postAssessmentRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(POST_ASSESSMENT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(POST_ASSESSMENT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -138,8 +126,7 @@ class SOAPService extends LookupService {
|
|
|
|
|
Future patchAllergy(PostAllergyRequestModel patchAllergyRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(PATCH_ALLERGY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_ALLERGY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -147,11 +134,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: patchAllergyRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future patchHistories(
|
|
|
|
|
PostHistoriesRequestModel patchHistoriesRequestModel) async {
|
|
|
|
|
Future patchHistories(PostHistoriesRequestModel patchHistoriesRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(PATCH_HISTORY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_HISTORY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -159,11 +144,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: patchHistoriesRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future patchChiefComplaint(
|
|
|
|
|
PostChiefComplaintRequestModel patchChiefComplaintRequestModel) async {
|
|
|
|
|
Future patchChiefComplaint(PostChiefComplaintRequestModel patchChiefComplaintRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(PATCH_CHIEF_COMPLAINT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -171,11 +154,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: patchChiefComplaintRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future patchPhysicalExam(
|
|
|
|
|
PostPhysicalExamRequestModel patchPhysicalExamRequestModel) async {
|
|
|
|
|
Future patchPhysicalExam(PostPhysicalExamRequestModel patchPhysicalExamRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(PATCH_PHYSICAL_EXAM,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_PHYSICAL_EXAM, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -183,11 +164,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: patchPhysicalExamRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future patchProgressNote(
|
|
|
|
|
PostProgressNoteRequestModel patchProgressNoteRequestModel) async {
|
|
|
|
|
Future patchProgressNote(PostProgressNoteRequestModel patchProgressNoteRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(PATCH_PROGRESS_NOTE,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_PROGRESS_NOTE, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -195,11 +174,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: patchProgressNoteRequestModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future patchAssessment(
|
|
|
|
|
PatchAssessmentReqModel patchAssessmentRequestModel) async {
|
|
|
|
|
Future patchAssessment(PatchAssessmentReqModel patchAssessmentRequestModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(PATCH_ASSESSMENT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(PATCH_ASSESSMENT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
@ -210,8 +187,7 @@ class SOAPService extends LookupService {
|
|
|
|
|
Future getPatientAllergy(GeneralGetReqForSOAP generalGetReqForSOAP) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
|
|
|
|
|
await baseAppClient.post(GET_ALLERGY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_ALLERGY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
patientAllergiesList.clear();
|
|
|
|
|
|
|
|
|
|
@ -224,11 +200,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: generalGetReqForSOAP.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientHistories(GetHistoryReqModel getHistoryReqModel,
|
|
|
|
|
{bool isFirst = false}) async {
|
|
|
|
|
Future getPatientHistories(GetHistoryReqModel getHistoryReqModel, {bool isFirst = false}) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(GET_HISTORY,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_HISTORY, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
if (isFirst) patientHistoryList.clear();
|
|
|
|
|
response['List_History']['entityList'].forEach((v) {
|
|
|
|
|
@ -240,11 +214,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: getHistoryReqModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientChiefComplaint(
|
|
|
|
|
GetChiefComplaintReqModel getChiefComplaintReqModel) async {
|
|
|
|
|
Future getPatientChiefComplaint(GetChiefComplaintReqModel getChiefComplaintReqModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(GET_CHIEF_COMPLAINT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_CHIEF_COMPLAINT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
patientChiefComplaintList.clear();
|
|
|
|
|
response['List_ChiefComplaint']['entityList'].forEach((v) {
|
|
|
|
|
@ -256,11 +228,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: getChiefComplaintReqModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientPhysicalExam(
|
|
|
|
|
GetPhysicalExamReqModel getPhysicalExamReqModel) async {
|
|
|
|
|
Future getPatientPhysicalExam(GetPhysicalExamReqModel getPhysicalExamReqModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(GET_PHYSICAL_EXAM,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_PHYSICAL_EXAM, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patientPhysicalExamList.clear();
|
|
|
|
|
response['PhysicalExamList']['entityList'].forEach((v) {
|
|
|
|
|
patientPhysicalExamList.add(GetPhysicalExamResModel.fromJson(v));
|
|
|
|
|
@ -271,11 +241,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: getPhysicalExamReqModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientProgressNote(
|
|
|
|
|
GetGetProgressNoteReqModel getGetProgressNoteReqModel) async {
|
|
|
|
|
Future getPatientProgressNote(GetGetProgressNoteReqModel getGetProgressNoteReqModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(GET_PROGRESS_NOTE,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_PROGRESS_NOTE, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
patientProgressNoteList.clear();
|
|
|
|
|
response['ProgressNoteList']['entityList'].forEach((v) {
|
|
|
|
|
@ -287,11 +255,9 @@ class SOAPService extends LookupService {
|
|
|
|
|
}, body: getGetProgressNoteReqModel.toJson());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientAssessment(
|
|
|
|
|
GetAssessmentReqModel getAssessmentReqModel) async {
|
|
|
|
|
Future getPatientAssessment(GetAssessmentReqModel getAssessmentReqModel) async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
await baseAppClient.post(GET_ASSESSMENT,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
await baseAppClient.post(GET_ASSESSMENT, onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
print("Success");
|
|
|
|
|
patientAssessmentList.clear();
|
|
|
|
|
response['AssessmentList']['entityList'].forEach((v) {
|
|
|
|
|
|