|
|
|
|
@ -17,95 +17,53 @@ class ProfileGridForSearch extends StatelessWidget {
|
|
|
|
|
String to;
|
|
|
|
|
|
|
|
|
|
ProfileGridForSearch(
|
|
|
|
|
{Key key,
|
|
|
|
|
this.patient,
|
|
|
|
|
this.patientType,
|
|
|
|
|
this.arrivalType,
|
|
|
|
|
this.height,
|
|
|
|
|
this.isInpatient, this.from,this.to})
|
|
|
|
|
{Key key, this.patient, this.patientType, this.arrivalType, this.height, this.isInpatient, this.from, this.to})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
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',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
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),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).radiology,
|
|
|
|
|
TranslationBase.of(context).service,
|
|
|
|
|
RADIOLOGY_PATIENT,
|
|
|
|
|
'patient/health_summary.png',
|
|
|
|
|
TranslationBase.of(context).lab, 'Special Result', ALL_SPECIAL_LAB_RESULT, 'patient/lab_results.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
|
TranslationBase.of(context).prescription,
|
|
|
|
|
ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
'patient/order_prescription.png',
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).radiology, TranslationBase.of(context).service,
|
|
|
|
|
RADIOLOGY_PATIENT, 'patient/health_summary.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).health,
|
|
|
|
|
TranslationBase.of(context).summary,
|
|
|
|
|
HEALTH_SUMMARY,
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).orders, TranslationBase.of(context).prescription,
|
|
|
|
|
ORDER_PRESCRIPTION_NEW, 'patient/order_prescription.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).health, TranslationBase.of(context).summary, HEALTH_SUMMARY,
|
|
|
|
|
'patient/health_summary.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
|
"ECG",
|
|
|
|
|
PATIENT_ECG,
|
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patient, "ECG", PATIENT_ECG, 'patient/patient_sick_leave.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).orders,
|
|
|
|
|
TranslationBase.of(context).procedures,
|
|
|
|
|
ORDER_PROCEDURE,
|
|
|
|
|
'patient/Order_Procedures.png',
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).orders, TranslationBase.of(context).procedures,
|
|
|
|
|
ORDER_PROCEDURE, 'patient/Order_Procedures.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).insurance,
|
|
|
|
|
TranslationBase.of(context).service,
|
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW,
|
|
|
|
|
'patient/vital_signs.png',
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).insurance, TranslationBase.of(context).service,
|
|
|
|
|
PATIENT_INSURANCE_APPROVALS_NEW, 'patient/vital_signs.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).patientSick,
|
|
|
|
|
TranslationBase.of(context).leave,
|
|
|
|
|
ADD_SICKLEAVE,
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patientSick, TranslationBase.of(context).leave, ADD_SICKLEAVE,
|
|
|
|
|
'patient/patient_sick_leave.png',
|
|
|
|
|
isInPatient: isInpatient),
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
|
TranslationBase.of(context).ucaf,
|
|
|
|
|
PATIENT_UCAF_REQUEST,
|
|
|
|
|
'patient/ucaf.png',
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).patient, TranslationBase.of(context).ucaf,
|
|
|
|
|
PATIENT_UCAF_REQUEST, 'patient/ucaf.png',
|
|
|
|
|
isInPatient: isInpatient, isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).referral,
|
|
|
|
|
TranslationBase.of(context).patient,
|
|
|
|
|
REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
'patient/refer_patient.png',
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).referral, TranslationBase.of(context).patient,
|
|
|
|
|
REFER_PATIENT_TO_DOCTOR, 'patient/refer_patient.png',
|
|
|
|
|
isInPatient: isInpatient, isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
if (patient.appointmentNo != null && patient.appointmentNo != 0)
|
|
|
|
|
PatientProfileCardModel(
|
|
|
|
|
TranslationBase.of(context).admission,
|
|
|
|
|
TranslationBase.of(context).request,
|
|
|
|
|
PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
'patient/admission_req.png',
|
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
PatientProfileCardModel(TranslationBase.of(context).admission, TranslationBase.of(context).request,
|
|
|
|
|
PATIENT_ADMISSION_REQUEST, 'patient/admission_req.png',
|
|
|
|
|
isInPatient: isInpatient, isDisable: patient.patientStatusType != 43 ? true : false),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return Column(
|
|
|
|
|
|