|
|
|
@ -33,112 +33,60 @@ class ProfileGridForOther extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final List<PatientProfileCardModel> cardsList = [
|
|
|
|
final List<PatientProfileCardModel> cardsList = [
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).vital, TranslationBase.of(context).signs, VITAL_SIGN_DETAILS,
|
|
|
|
TranslationBase.of(context).vital,
|
|
|
|
|
|
|
|
TranslationBase.of(context).signs,
|
|
|
|
|
|
|
|
VITAL_SIGN_DETAILS,
|
|
|
|
|
|
|
|
'patient/vital_signs.png',
|
|
|
|
'patient/vital_signs.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
TranslationBase.of(context).lab, TranslationBase.of(context).result, LAB_RESULT, 'patient/lab_results.png',
|
|
|
|
TranslationBase.of(context).result,
|
|
|
|
|
|
|
|
LAB_RESULT,
|
|
|
|
|
|
|
|
'patient/lab_results.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(
|
|
|
|
TranslationBase.of(context).radiology,
|
|
|
|
TranslationBase.of(context).lab, 'Special Result', ALL_SPECIAL_LAB_RESULT, 'patient/lab_results.png',
|
|
|
|
TranslationBase.of(context).service,
|
|
|
|
|
|
|
|
RADIOLOGY_PATIENT,
|
|
|
|
|
|
|
|
'patient/health_summary.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).radiology, TranslationBase.of(context).service,
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
RADIOLOGY_PATIENT, 'patient/health_summary.png',
|
|
|
|
TranslationBase.of(context).prescription,
|
|
|
|
|
|
|
|
ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
|
|
|
'patient/order_prescription.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).orders, TranslationBase.of(context).prescription,
|
|
|
|
TranslationBase.of(context).health,
|
|
|
|
ORDER_PRESCRIPTION_NEW, 'patient/order_prescription.png',
|
|
|
|
TranslationBase.of(context).summary,
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
HEALTH_SUMMARY,
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).health, TranslationBase.of(context).summary, HEALTH_SUMMARY,
|
|
|
|
'patient/health_summary.png',
|
|
|
|
'patient/health_summary.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patient, "ECG", PATIENT_ECG, 'patient/patient_sick_leave.png',
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
|
|
|
|
"ECG",
|
|
|
|
|
|
|
|
PATIENT_ECG,
|
|
|
|
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).orders, TranslationBase.of(context).procedures,
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
ORDER_PROCEDURE, 'patient/Order_Procedures.png',
|
|
|
|
TranslationBase.of(context).procedures,
|
|
|
|
|
|
|
|
ORDER_PROCEDURE,
|
|
|
|
|
|
|
|
'patient/Order_Procedures.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).insurance, TranslationBase.of(context).service,
|
|
|
|
TranslationBase
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW, 'patient/vital_signs.png',
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.insurance,
|
|
|
|
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.service,
|
|
|
|
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
|
|
|
'patient/vital_signs.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patientSick, TranslationBase.of(context).leave, ADD_SICKLEAVE,
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.patientSick,
|
|
|
|
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.leave,
|
|
|
|
|
|
|
|
ADD_SICKLEAVE,
|
|
|
|
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
if (isFromLiveCare ||
|
|
|
|
if (isFromLiveCare || (patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
(patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patient, TranslationBase.of(context).ucaf,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PATIENT_UCAF_REQUEST, 'patient/ucaf.png',
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.patient,
|
|
|
|
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.ucaf,
|
|
|
|
|
|
|
|
PATIENT_UCAF_REQUEST,
|
|
|
|
|
|
|
|
'patient/ucaf.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isDisable: isFromLiveCare?patient.appointmentNo == null:patient.patientStatusType != 43 ||
|
|
|
|
isDisable: isFromLiveCare
|
|
|
|
patient.appointmentNo == null ),
|
|
|
|
? patient.appointmentNo == null
|
|
|
|
if (isFromLiveCare ||
|
|
|
|
: patient.patientStatusType != 43 || patient.appointmentNo == null),
|
|
|
|
(patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
if (isFromLiveCare || (patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(
|
|
|
|
TranslationBase
|
|
|
|
TranslationBase.of(context).referral,
|
|
|
|
.of(context)
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
.referral,
|
|
|
|
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.patient,
|
|
|
|
|
|
|
|
REFER_PATIENT_TO_DOCTOR,
|
|
|
|
REFER_PATIENT_TO_DOCTOR,
|
|
|
|
'patient/refer_patient.png',
|
|
|
|
'patient/refer_patient.png',
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isDisable: isFromLiveCare?patient.appointmentNo == null:patient.patientStatusType != 43 ||
|
|
|
|
isDisable: isFromLiveCare
|
|
|
|
patient.appointmentNo == null ,
|
|
|
|
? patient.appointmentNo == null
|
|
|
|
|
|
|
|
: patient.patientStatusType != 43 || patient.appointmentNo == null,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (isFromLiveCare ||
|
|
|
|
if (isFromLiveCare || (patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
(patient.appointmentNo != null && patient.appointmentNo != 0))
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).admission, TranslationBase.of(context).request,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PATIENT_ADMISSION_REQUEST, 'patient/admission_req.png',
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.admission,
|
|
|
|
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.request,
|
|
|
|
|
|
|
|
PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
|
|
|
'patient/admission_req.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isDisable: isFromLiveCare?patient.appointmentNo == null:patient.patientStatusType != 43 ||
|
|
|
|
isDisable: isFromLiveCare
|
|
|
|
patient.appointmentNo == null
|
|
|
|
? patient.appointmentNo == null
|
|
|
|
),
|
|
|
|
: patient.patientStatusType != 43 || patient.appointmentNo == null),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
@ -168,9 +116,7 @@ class ProfileGridForOther extends StatelessWidget {
|
|
|
|
isDisable: cardsList[index].isDisable,
|
|
|
|
isDisable: cardsList[index].isDisable,
|
|
|
|
onTap: cardsList[index].onTap,
|
|
|
|
onTap: cardsList[index].onTap,
|
|
|
|
isLoading: cardsList[index].isLoading,
|
|
|
|
isLoading: cardsList[index].isLoading,
|
|
|
|
isFromLiveCare: isFromLiveCare
|
|
|
|
isFromLiveCare: isFromLiveCare),
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|