|
|
|
@ -29,13 +29,15 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return BaseView<SOAPViewModel>(
|
|
|
|
|
onModelReady: (model) async {},
|
|
|
|
|
builder: (_, model, w) => SliverGrid.count(
|
|
|
|
|
builder: (_, model, w) => GridView.count(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
|
mainAxisSpacing: 20,
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: 1.5,
|
|
|
|
|
mainAxisSpacing: 10,
|
|
|
|
|
childAspectRatio: 1 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
/*if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
@ -62,23 +64,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).update,
|
|
|
|
|
nameLine2: TranslationBase.of(context).episode,
|
|
|
|
|
route: UPDATE_EPISODE,
|
|
|
|
|
icon: 'modilfy-episode.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: RADIOLOGY,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'radiology-1.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
icon: 'modilfy-episode.png'),*/
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -87,11 +73,8 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route:
|
|
|
|
|
VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
|
|
|
|
|
*/
|
|
|
|
|
,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
route: VITAL_SIGN_DETAILS,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -99,14 +82,14 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: LAB_ORDERS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
icon: 'patient/lab_results.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: MEDICAL_FILE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).previewHealth,
|
|
|
|
|
nameLine2: TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'radiology-1.png'),
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
if (selectedPatientType != 0 &&
|
|
|
|
|
selectedPatientType != 5 &&
|
|
|
|
|
selectedPatientType != 7)
|
|
|
|
@ -116,7 +99,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -124,7 +107,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
icon: 'patient/admission_req.png'),
|
|
|
|
|
(int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
? PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -132,14 +115,14 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: ORDER_PRESCRIPTION,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
icon: 'lab.png')
|
|
|
|
|
icon: 'patient/order_prescription.png')
|
|
|
|
|
: PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: ORDER_PRESCRIPTION_HISTORY,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -147,7 +130,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: ORDER_PROCEDURE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
icon: 'patient/Order_Procedures.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -155,7 +138,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
nameLine1: TranslationBase.of(context).myReferral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'note.png'),
|
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -163,7 +146,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'sick_leaves_icons.png'),
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
@ -171,7 +154,23 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
route: PATIENT_UCAF_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
icon: 'patient/ucaf.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: RADIOLOGY,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|