|
|
|
@ -43,34 +43,6 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
childAspectRatio: 1 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
/*if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
isDisable: patient.episodeNo != 0 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).createNew,
|
|
|
|
|
nameLine2: TranslationBase.of(context).episode,
|
|
|
|
|
route: CREATE_EPISODE,
|
|
|
|
|
onTap: () async {
|
|
|
|
|
PostEpisodeReqModel postEpisodeReqModel = PostEpisodeReqModel(
|
|
|
|
|
appointmentNo: patient.appointmentNo,
|
|
|
|
|
patientMRN: patient.patientMRN);
|
|
|
|
|
await model.postEpisode(postEpisodeReqModel);
|
|
|
|
|
patient.episodeNo = model.episodeID;
|
|
|
|
|
Navigator.of(context).pushNamed(CREATE_EPISODE,
|
|
|
|
|
arguments: {'patient': patient});
|
|
|
|
|
},
|
|
|
|
|
isLoading: model.state == ViewState.BusyLocal,
|
|
|
|
|
icon: 'create-episod.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
isDisable: patient.episodeNo == 0 ? true : false,
|
|
|
|
|
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,
|
|
|
|
@ -89,61 +61,38 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: LAB_RESULT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
icon: 'patient/lab_results.png'),
|
|
|
|
|
route: MEDICAL_FILE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).previewHealth,
|
|
|
|
|
nameLine2: TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: MEDICAL_FILE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).previewHealth,
|
|
|
|
|
nameLine2: TranslationBase.of(context).summaryReport,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
if (selectedPatientType != 0 &&
|
|
|
|
|
selectedPatientType != 5 &&
|
|
|
|
|
selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
route: LAB_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,
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'patient/admission_req.png'),
|
|
|
|
|
// (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
// ? PatientProfileButton(
|
|
|
|
|
// key: key,
|
|
|
|
|
// patient: patient,
|
|
|
|
|
// patientType: patientType,
|
|
|
|
|
// arrivalType: arrivalType,
|
|
|
|
|
// route: ORDER_PRESCRIPTION,
|
|
|
|
|
// nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
// nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
// icon: 'patient/order_prescription.png')
|
|
|
|
|
// : PatientProfileButton(
|
|
|
|
|
// key: key,
|
|
|
|
|
// patient: patient,
|
|
|
|
|
// patientType: patientType,
|
|
|
|
|
// arrivalType: arrivalType,
|
|
|
|
|
// route: ORDER_PRESCRIPTION_HISTORY,
|
|
|
|
|
// nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
// nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
// icon: 'patient/order_prescription.png'),
|
|
|
|
|
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,
|
|
|
|
|
route: PATIENT_ECG,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: "ECG",
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
@ -169,11 +118,10 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).myReferral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
|
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,
|
|
|
|
@ -201,29 +149,34 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: RADIOLOGY_PATIENT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/health_summary.png'),
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).myReferral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'patient/refer_patient.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'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: PATIENT_ECG,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: "ECG",
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
isDisable: patient.patientStatusType != 43 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'patient/admission_req.png'),
|
|
|
|
|
if (selectedPatientType != 0 &&
|
|
|
|
|
selectedPatientType != 5 &&
|
|
|
|
|
selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|