|
|
|
|
@ -22,6 +22,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String patientType;
|
|
|
|
|
final String arrivalType;
|
|
|
|
|
final bool isInpatient;
|
|
|
|
|
|
|
|
|
|
ProfileMedicalInfoWidget(
|
|
|
|
|
{Key key,
|
|
|
|
|
@ -29,7 +30,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
this.patientType,
|
|
|
|
|
this.arrivalType,
|
|
|
|
|
this.from,
|
|
|
|
|
this.to});
|
|
|
|
|
this.to, this.isInpatient});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -43,7 +44,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,
|
|
|
|
|
@ -55,7 +55,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route: VITAL_SIGN_DETAILS,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
if (selectedPatientType != 7)
|
|
|
|
|
// if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -80,6 +80,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
isInPatient:isInpatient,
|
|
|
|
|
route: RADIOLOGY_PATIENT,
|
|
|
|
|
nameLine1: TranslationBase.of(context).radiology,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
@ -102,7 +103,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -112,7 +113,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
|
nameLine2: TranslationBase.of(context).procedures,
|
|
|
|
|
icon: 'patient/Order_Procedures.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
//if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -122,7 +123,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).insurance,
|
|
|
|
|
nameLine2: TranslationBase.of(context).service,
|
|
|
|
|
icon: 'patient/vital_signs.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
// if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -132,7 +133,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).patientSick,
|
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -143,7 +144,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
|
nameLine2: TranslationBase.of(context).ucaf,
|
|
|
|
|
icon: 'patient/ucaf.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -154,7 +155,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
|
if (int.parse(patientType) == 7 || int.parse(patientType) == 6)
|
|
|
|
|
if (patient.appointmentNo!=null && patient.appointmentNo!=0)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -165,7 +166,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).admission,
|
|
|
|
|
nameLine2: TranslationBase.of(context).request,
|
|
|
|
|
icon: 'patient/admission_req.png'),
|
|
|
|
|
if (patientType == "1")
|
|
|
|
|
if (isInpatient)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -175,7 +176,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
nameLine1: TranslationBase.of(context).progress,
|
|
|
|
|
nameLine2: TranslationBase.of(context).note,
|
|
|
|
|
icon: 'patient/Progress_notes.png'),
|
|
|
|
|
if (patientType == "1")
|
|
|
|
|
if (isInpatient)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
|