|
|
|
|
@ -140,8 +140,9 @@ class SOAPViewModel extends BaseViewModel {
|
|
|
|
|
Future getMasterLookup(MasterKeysService masterKeys, {bool isBusyLocal = false, String searchKey = ""}) async {
|
|
|
|
|
if (isBusyLocal) {
|
|
|
|
|
setState(ViewState.Busy);
|
|
|
|
|
} else
|
|
|
|
|
} else {
|
|
|
|
|
setState(ViewState.Busy);
|
|
|
|
|
}
|
|
|
|
|
await _SOAPService.getMasterLookup(masterKeys, searchKey: searchKey);
|
|
|
|
|
if (_SOAPService.hasError) {
|
|
|
|
|
error = _SOAPService.error;
|
|
|
|
|
@ -255,9 +256,7 @@ class SOAPViewModel extends BaseViewModel {
|
|
|
|
|
return allergiesString;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientPhysicalExam(
|
|
|
|
|
PatiantInformtion patientInfo,
|
|
|
|
|
) async {
|
|
|
|
|
Future getPatientPhysicalExam(PatiantInformtion patientInfo, {required bool allowSetState}) async {
|
|
|
|
|
GetPhysicalExamReqModel getPhysicalExamReqModel = GetPhysicalExamReqModel(
|
|
|
|
|
patientMRN: patientInfo.patientMRN,
|
|
|
|
|
episodeID: patientInfo.episodeNo == null ? "0" : patientInfo.episodeNo.toString(),
|
|
|
|
|
@ -271,13 +270,12 @@ class SOAPViewModel extends BaseViewModel {
|
|
|
|
|
getPhysicalExamReqModel.admissionNo = int.parse(patientInfo.admissionNo!);
|
|
|
|
|
else
|
|
|
|
|
getPhysicalExamReqModel.admissionNo = 0;
|
|
|
|
|
setState(ViewState.Busy);
|
|
|
|
|
if (allowSetState) setState(ViewState.Busy);
|
|
|
|
|
await _SOAPService.getPatientPhysicalExam(getPhysicalExamReqModel);
|
|
|
|
|
if (_SOAPService.hasError) {
|
|
|
|
|
error = _SOAPService.error;
|
|
|
|
|
setState(ViewState.Error);
|
|
|
|
|
} else
|
|
|
|
|
setState(ViewState.Idle);
|
|
|
|
|
if (allowSetState) setState(ViewState.Error);
|
|
|
|
|
} else if (allowSetState) setState(ViewState.Idle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getPatientProgressNote(GetProgressNoteReqModel getGetProgressNoteReqModel) async {
|
|
|
|
|
|