|
|
|
@ -307,21 +307,23 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
: lItems == null || lItems.length == 0
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
if (int.parse(patientType) == 7)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 70),
|
|
|
|
|
child: ClinicList(clinicId: clinicId,onClinicChange: (newValue) {
|
|
|
|
|
margin: EdgeInsets.only(top: 10),
|
|
|
|
|
child: ClinicList(
|
|
|
|
|
clinicId: clinicId,
|
|
|
|
|
onClinicChange: (newValue) {
|
|
|
|
|
clinicId = newValue;
|
|
|
|
|
changeClinic(newValue, context, model);
|
|
|
|
|
},),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: MediaQuery.of(context).size.height*0.35),
|
|
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
top: MediaQuery.of(context).size.height * 0.35),
|
|
|
|
|
child: DrAppEmbeddedError(
|
|
|
|
|
error:
|
|
|
|
|
TranslationBase.of(context).youDontHaveAnyPatient),
|
|
|
|
|
error: TranslationBase.of(context)
|
|
|
|
|
.youDontHaveAnyPatient),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
@ -369,10 +371,14 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
if (int.parse(patientType) == 7)
|
|
|
|
|
ClinicList(clinicId: clinicId,onClinicChange: (newValue) {
|
|
|
|
|
ClinicList(
|
|
|
|
|
clinicId: clinicId,
|
|
|
|
|
onClinicChange: (newValue) {
|
|
|
|
|
clinicId = newValue;
|
|
|
|
|
changeClinic(newValue, context, model);
|
|
|
|
|
},),
|
|
|
|
|
changeClinic(
|
|
|
|
|
newValue, context, model);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: MediaQuery.of(context)
|
|
|
|
@ -522,27 +528,26 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
tokenID: '',
|
|
|
|
|
languageID: 2);
|
|
|
|
|
|
|
|
|
|
authProvider.getDocProfiles(docInfo.toJson(), allowChangeProfile: false)
|
|
|
|
|
authProvider
|
|
|
|
|
.getDocProfiles(docInfo.toJson(), allowChangeProfile: false)
|
|
|
|
|
.then((profileList) async {
|
|
|
|
|
print(profileList['DoctorProfileList'][0]);
|
|
|
|
|
int val2 = int.parse(patientType);
|
|
|
|
|
|
|
|
|
|
GetPatientArrivalListRequestModel
|
|
|
|
|
|
|
|
|
|
getPatientArrivalListRequestModel = GetPatientArrivalListRequestModel(
|
|
|
|
|
GetPatientArrivalListRequestModel getPatientArrivalListRequestModel =
|
|
|
|
|
GetPatientArrivalListRequestModel(
|
|
|
|
|
from: patient.From,
|
|
|
|
|
to: patient.To,
|
|
|
|
|
clinicID: profileList['DoctorProfileList'][0]['ClinicID'],
|
|
|
|
|
doctorID: profileList['DoctorProfileList'][0]['DoctorID'].toString(),
|
|
|
|
|
doctorID:
|
|
|
|
|
profileList['DoctorProfileList'][0]['DoctorID'].toString(),
|
|
|
|
|
patientMRN: patient.getPatientID,
|
|
|
|
|
pageIndex: 0,
|
|
|
|
|
pageSize: 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model
|
|
|
|
|
.getPatientList(
|
|
|
|
|
getPatientArrivalListRequestModel.toJson(),
|
|
|
|
|
patientType)
|
|
|
|
|
getPatientArrivalListRequestModel.toJson(), patientType)
|
|
|
|
|
.then((res) {
|
|
|
|
|
setState(() {
|
|
|
|
|
if (res != null && res['MessageStatus'] == 1) {
|
|
|
|
@ -572,20 +577,18 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
_isError = false;
|
|
|
|
|
} else {
|
|
|
|
|
_isError = true;
|
|
|
|
|
error = model.error ?? res['ErrorEndUserMessage'] ??
|
|
|
|
|
error = model.error ??
|
|
|
|
|
res['ErrorEndUserMessage'] ??
|
|
|
|
|
res['ErrorMessage'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_isLoading = false;
|
|
|
|
|
});
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
}).catchError((error) {
|
|
|
|
|
helpers.showErrorToast(error.toString());
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
helpers.showErrorToast(err);
|
|
|
|
@ -684,6 +687,3 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|