|
|
|
@ -13,7 +13,7 @@ class ProfileMedicalInfoWidgetSearch extends StatefulWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String patientType;
|
|
|
|
|
final String? arrivalType;
|
|
|
|
|
final bool? isInpatient;
|
|
|
|
|
final bool isInpatient;
|
|
|
|
|
final bool? isDischargedPatient;
|
|
|
|
|
|
|
|
|
|
ProfileMedicalInfoWidgetSearch(
|
|
|
|
@ -23,7 +23,7 @@ class ProfileMedicalInfoWidgetSearch extends StatefulWidget {
|
|
|
|
|
this.arrivalType,
|
|
|
|
|
required this.from,
|
|
|
|
|
required this.to,
|
|
|
|
|
this.isInpatient,
|
|
|
|
|
this.isInpatient = false,
|
|
|
|
|
this.isDischargedPatient});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@ -62,22 +62,21 @@ class _ProfileMedicalInfoWidgetSearchState extends State<ProfileMedicalInfoWidge
|
|
|
|
|
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,
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
from: widget.from,
|
|
|
|
|
to: widget.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,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: HEALTH_SUMMARY,
|
|
|
|
|
nameLine1:
|
|
|
|
|
"Health", //TranslationBase.of(context).medicalReport,
|
|
|
|
@ -85,128 +84,128 @@ class _ProfileMedicalInfoWidgetSearchState extends State<ProfileMedicalInfoWidge
|
|
|
|
|
"Summary", //TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: LAB_RESULT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).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,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
isInPatient: widget.isInpatient,
|
|
|
|
|
route: RADIOLOGY_PATIENT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).service??'',
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: PATIENT_ECG,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient??'',
|
|
|
|
|
nameLine2: "ECG",
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
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,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: ORDER_PROCEDURE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
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,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
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,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave??'',
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
if (patient.appointmentNo != null &&
|
|
|
|
|
patient.appointmentNo != 0)
|
|
|
|
|
if (widget.patient.appointmentNo != null &&
|
|
|
|
|
widget.patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: PATIENT_UCAF_REQUEST,
|
|
|
|
|
isDisable:
|
|
|
|
|
patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
widget.patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf??'',
|
|
|
|
|
icon: 'patient/ucaf.png'),
|
|
|
|
|
if (patient.appointmentNo != null &&
|
|
|
|
|
patient.appointmentNo != 0)
|
|
|
|
|
if (widget.patient.appointmentNo != null &&
|
|
|
|
|
widget.patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
isDisable:
|
|
|
|
|
patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
widget.patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).referral??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient??'',
|
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
|
if (patient.appointmentNo != null &&
|
|
|
|
|
patient.appointmentNo != 0)
|
|
|
|
|
if (widget.patient.appointmentNo != null &&
|
|
|
|
|
widget.patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
isDisable:
|
|
|
|
|
patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
widget.patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).request??'',
|
|
|
|
|
icon: 'patient/admission_req.png'),
|
|
|
|
|
if (isInpatient)
|
|
|
|
|
if (widget.isInpatient)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress??'',
|
|
|
|
|
nameLine2: TranslationBase.of(context).note??'',
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
if (isInpatient)
|
|
|
|
|
if (widget.isInpatient)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
patientType: widget.patientType,
|
|
|
|
|
arrivalType: widget.arrivalType??"",
|
|
|
|
|
route: ORDER_NOTE,
|
|
|
|
|
nameLine1: "Order", //"Text",
|
|
|
|
|
nameLine2: "Sheet",
|
|
|
|
|