|
|
|
|
@ -16,12 +16,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
final bool isInpatient;
|
|
|
|
|
|
|
|
|
|
ProfileMedicalInfoWidget(
|
|
|
|
|
{Key key,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.patientType,
|
|
|
|
|
this.arrivalType,
|
|
|
|
|
this.from,
|
|
|
|
|
this.to, this.isInpatient});
|
|
|
|
|
{Key key, this.patient, this.patientType, this.arrivalType, this.from, this.to, this.isInpatient});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -35,27 +30,27 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
childAspectRatio: 1 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
from: from,
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route: VITAL_SIGN_DETAILS,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
// if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: HEALTH_SUMMARY,
|
|
|
|
|
nameLine1: "Health" ,//TranslationBase.of(context).medicalReport,
|
|
|
|
|
nameLine2: "Summary",//TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
from: from,
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route: VITAL_SIGN_DETAILS,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
// if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: HEALTH_SUMMARY,
|
|
|
|
|
nameLine1: "Health", //TranslationBase.of(context).medicalReport,
|
|
|
|
|
nameLine2: "Summary", //TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -65,17 +60,26 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
icon: 'patient/lab_results.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ALL_SPECIAL_LAB_RESULT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: 'Special Result',
|
|
|
|
|
icon: 'patient/lab_results.png'),
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
isInPatient:isInpatient,
|
|
|
|
|
route: RADIOLOGY_PATIENT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
route: RADIOLOGY_PATIENT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -94,37 +98,37 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ORDER_PROCEDURE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
icon: 'patient/Order_Procedures.png'),
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ORDER_PROCEDURE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
icon: 'patient/Order_Procedures.png'),
|
|
|
|
|
//if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -135,7 +139,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
icon: 'patient/ucaf.png'),
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -146,7 +150,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -174,7 +178,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: ORDER_NOTE,
|
|
|
|
|
nameLine1:"Order", //"Text",
|
|
|
|
|
nameLine1: "Order", //"Text",
|
|
|
|
|
nameLine2: "Sheet",
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
],
|
|
|
|
|
|