|
|
|
@ -58,10 +58,12 @@ import '../../locator.dart';
|
|
|
|
import '../model/SOAP/allergy/get_patient_allergies_list_vida_plus.dart';
|
|
|
|
import '../model/SOAP/allergy/get_patient_allergies_list_vida_plus.dart';
|
|
|
|
import '../model/SOAP/assessment/patch_assessment_req_model.dart';
|
|
|
|
import '../model/SOAP/assessment/patch_assessment_req_model.dart';
|
|
|
|
import '../model/SOAP/physical_exam/GeneralSpeciality.dart';
|
|
|
|
import '../model/SOAP/physical_exam/GeneralSpeciality.dart';
|
|
|
|
|
|
|
|
import '../service/patient_medical_file/admission_request/patient-admission-request-service.dart';
|
|
|
|
import 'base_view_model.dart';
|
|
|
|
import 'base_view_model.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class SOAPViewModel extends BaseViewModel {
|
|
|
|
class SOAPViewModel extends BaseViewModel {
|
|
|
|
SOAPService _SOAPService = locator<SOAPService>();
|
|
|
|
SOAPService _SOAPService = locator<SOAPService>();
|
|
|
|
|
|
|
|
AdmissionRequestService _admissionRequestService = locator<AdmissionRequestService>();
|
|
|
|
|
|
|
|
|
|
|
|
PrescriptionService _prescriptionService = locator<PrescriptionService>();
|
|
|
|
PrescriptionService _prescriptionService = locator<PrescriptionService>();
|
|
|
|
|
|
|
|
|
|
|
|
@ -1508,7 +1510,9 @@ class SOAPViewModel extends BaseViewModel {
|
|
|
|
Future getMorphologyDiagnosis(String icdCode10) async {
|
|
|
|
Future getMorphologyDiagnosis(String icdCode10) async {
|
|
|
|
setState(ViewState.BusyLocal);
|
|
|
|
setState(ViewState.BusyLocal);
|
|
|
|
await _SOAPService.isMorphology(icdCode10);
|
|
|
|
await _SOAPService.isMorphology(icdCode10);
|
|
|
|
if (_SOAPService.isMorphology_) {
|
|
|
|
await _admissionRequestService.getKSAProjectValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_SOAPService.isMorphology_ && _admissionRequestService.isKSAProject) {
|
|
|
|
await _SOAPService.getMorphologyDiagnosis();
|
|
|
|
await _SOAPService.getMorphologyDiagnosis();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_SOAPService.hasError) {
|
|
|
|
if (_SOAPService.hasError) {
|
|
|
|
|