|
|
|
@ -35,36 +35,69 @@ class ProfileGridForInPatient extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final List<PatientProfileCardModel> cardsList = [
|
|
|
|
final List<PatientProfileCardModel> cardsList = [
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).vital, TranslationBase.of(context).signs, VITAL_SIGN_DETAILS,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
|
|
|
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).result, LAB_RESULT, 'patient/lab_results.png',
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
|
|
|
|
TranslationBase.of(context).result,
|
|
|
|
|
|
|
|
LAB_RESULT,
|
|
|
|
|
|
|
|
'patient/lab_results.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).lab, TranslationBase.of(context).specialResult,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
ALL_SPECIAL_LAB_RESULT, 'patient/lab_results.png',
|
|
|
|
TranslationBase.of(context).lab,
|
|
|
|
|
|
|
|
TranslationBase.of(context).specialResult,
|
|
|
|
|
|
|
|
ALL_SPECIAL_LAB_RESULT,
|
|
|
|
|
|
|
|
'patient/lab_results.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).radiology, TranslationBase.of(context).result,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
RADIOLOGY_PATIENT, 'patient/health_summary.png',
|
|
|
|
TranslationBase.of(context).radiology,
|
|
|
|
|
|
|
|
TranslationBase.of(context).result,
|
|
|
|
|
|
|
|
RADIOLOGY_PATIENT,
|
|
|
|
|
|
|
|
'patient/health_summary.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patient, TranslationBase.of(context).prescription,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
ORDER_PRESCRIPTION_NEW, 'patient/order_prescription.png',
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
|
|
|
|
TranslationBase.of(context).prescription,
|
|
|
|
|
|
|
|
ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
|
|
|
'patient/order_prescription.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).progress, TranslationBase.of(context).note, PROGRESS_NOTE,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
|
|
|
TranslationBase.of(context).progress,
|
|
|
|
|
|
|
|
TranslationBase.of(context).note,
|
|
|
|
|
|
|
|
PROGRESS_NOTE,
|
|
|
|
'patient/Progress_notes.png',
|
|
|
|
'patient/Progress_notes.png',
|
|
|
|
isInPatient: isInpatient, isDischargedPatient: isDischargedPatient),
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).order, TranslationBase.of(context).sheet, ORDER_NOTE,
|
|
|
|
isDischargedPatient: isDischargedPatient),
|
|
|
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
|
|
|
TranslationBase.of(context).order,
|
|
|
|
|
|
|
|
TranslationBase.of(context).sheet,
|
|
|
|
|
|
|
|
ORDER_NOTE,
|
|
|
|
'patient/Progress_notes.png',
|
|
|
|
'patient/Progress_notes.png',
|
|
|
|
isInPatient: isInpatient, isDischargedPatient: isDischargedPatient),
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).orders, TranslationBase.of(context).procedures,
|
|
|
|
isDischargedPatient: isDischargedPatient),
|
|
|
|
ORDER_PROCEDURE, 'patient/Order_Procedures.png',
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
|
|
|
|
TranslationBase.of(context).procedures,
|
|
|
|
|
|
|
|
ORDER_PROCEDURE,
|
|
|
|
|
|
|
|
'patient/Order_Procedures.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).health, TranslationBase.of(context).summary, 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(TranslationBase.of(context).medical, TranslationBase.of(context).report,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PATIENT_MEDICAL_REPORT, 'patient/health_summary.png',
|
|
|
|
TranslationBase.of(context).medical,
|
|
|
|
isInPatient: isInpatient, isDisable: false),
|
|
|
|
TranslationBase.of(context).report,
|
|
|
|
|
|
|
|
PATIENT_MEDICAL_REPORT,
|
|
|
|
|
|
|
|
'patient/health_summary.png',
|
|
|
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
|
|
|
isDisable: false),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(
|
|
|
|
TranslationBase.of(context).referral,
|
|
|
|
TranslationBase.of(context).referral,
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
@ -73,12 +106,19 @@ class ProfileGridForInPatient extends StatelessWidget {
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isDisable: isDischargedPatient || isFromSearch,
|
|
|
|
isDisable: isDischargedPatient || isFromSearch,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).insurance, TranslationBase.of(context).approvals,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW, 'patient/vital_signs.png',
|
|
|
|
TranslationBase.of(context).insurance,
|
|
|
|
|
|
|
|
TranslationBase.of(context).approvals,
|
|
|
|
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
|
|
|
'patient/vital_signs.png',
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).discharge, TranslationBase.of(context).report, null,
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
|
|
|
TranslationBase.of(context).discharge,
|
|
|
|
|
|
|
|
TranslationBase.of(context).report,
|
|
|
|
|
|
|
|
null,
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
isInPatient: isInpatient, isDisable: true),
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
|
|
|
isDisable: true),
|
|
|
|
PatientProfileCardModel(
|
|
|
|
PatientProfileCardModel(
|
|
|
|
TranslationBase.of(context).patientSick,
|
|
|
|
TranslationBase.of(context).patientSick,
|
|
|
|
TranslationBase.of(context).leave,
|
|
|
|
TranslationBase.of(context).leave,
|
|
|
|
@ -90,30 +130,35 @@ class ProfileGridForInPatient extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15),
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 15),
|
|
|
|
child: StaggeredGridView.countBuilder(
|
|
|
|
child: GridView(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
mainAxisSpacing: 10,
|
|
|
|
// if you want IOS bouncing effect, otherwise remove this line
|
|
|
|
crossAxisCount: 3,
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
itemCount: cardsList.length,
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
staggeredTileBuilder: (int index) => StaggeredTile.fit(1),
|
|
|
|
mainAxisSpacing: 10,
|
|
|
|
itemBuilder: (BuildContext context, int index) => PatientProfileButton(
|
|
|
|
crossAxisCount: 3,
|
|
|
|
patient: patient,
|
|
|
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
from: from,
|
|
|
|
|
|
|
|
to: to,
|
|
|
|
|
|
|
|
nameLine1: cardsList[index].nameLine1,
|
|
|
|
|
|
|
|
nameLine2: cardsList[index].nameLine2,
|
|
|
|
|
|
|
|
route: cardsList[index].route,
|
|
|
|
|
|
|
|
icon: cardsList[index].icon,
|
|
|
|
|
|
|
|
isInPatient: cardsList[index].isInPatient,
|
|
|
|
|
|
|
|
isDischargedPatient: cardsList[index].isDischargedPatient,
|
|
|
|
|
|
|
|
isDisable: cardsList[index].isDisable,
|
|
|
|
|
|
|
|
onTap: cardsList[index].onTap,
|
|
|
|
|
|
|
|
isLoading: cardsList[index].isLoading,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
//change the number as you want
|
|
|
|
|
|
|
|
children: cardsList.map((item) {
|
|
|
|
|
|
|
|
return PatientProfileButton(
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
from: from,
|
|
|
|
|
|
|
|
to: to,
|
|
|
|
|
|
|
|
nameLine1: item.nameLine1,
|
|
|
|
|
|
|
|
nameLine2: item.nameLine2,
|
|
|
|
|
|
|
|
route: item.route,
|
|
|
|
|
|
|
|
icon: item.icon,
|
|
|
|
|
|
|
|
isInPatient: item.isInPatient,
|
|
|
|
|
|
|
|
isDischargedPatient: item.isDischargedPatient,
|
|
|
|
|
|
|
|
isDisable: item.isDisable,
|
|
|
|
|
|
|
|
onTap: item.onTap,
|
|
|
|
|
|
|
|
isLoading: item.isLoading,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}).toList(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|