|
|
|
@ -36,72 +36,70 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
childAspectRatio: 1.5,
|
|
|
|
|
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'),
|
|
|
|
|
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'),
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: RADIOLOGY,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'radiology-1.png'),
|
|
|
|
|
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'),
|
|
|
|
|
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_INSURANCE_APPROVALS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
from: from,
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route:
|
|
|
|
|
VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
from: from,
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route:
|
|
|
|
|
VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
|
|
|
|
|
*/
|
|
|
|
|
,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: LAB_ORDERS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: LAB_ORDERS,
|
|
|
|
|
nameLine1: TranslationBase.of(context).lab,
|
|
|
|
|
nameLine2: TranslationBase.of(context).result,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
@ -112,26 +110,26 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
if (selectedPatientType != 0 &&
|
|
|
|
|
selectedPatientType != 5 &&
|
|
|
|
|
selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PROGRESS_NOTE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_ADMISSION_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
(int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
? PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: ORDER_PRESCRIPTION_HISTORY,
|
|
|
|
|
route: ORDER_PRESCRIPTION,
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
icon: 'lab.png')
|
|
|
|
@ -151,29 +149,29 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
nameLine1: TranslationBase.of(context).myReferral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'note.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: REFER_PATIENT_TO_DOCTOR,
|
|
|
|
|
nameLine1: TranslationBase.of(context).myReferral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'note.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'sick_leaves_icons.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: ADD_SICKLEAVE,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'sick_leaves_icons.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_UCAF_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
route: PATIENT_UCAF_REQUEST,
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
icon: 'lab.png'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|