|
|
|
|
@ -27,8 +27,11 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
ProfileMedicalInfoWidget(
|
|
|
|
|
{Key key, this.patient, this.patientType, this.from, this.to});
|
|
|
|
|
|
|
|
|
|
String from;
|
|
|
|
|
String to;
|
|
|
|
|
|
|
|
|
|
PatiantInformtion patient;
|
|
|
|
|
String patientType;
|
|
|
|
|
String patientType;
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return BaseView<SOAPViewModel>(
|
|
|
|
|
@ -43,7 +46,8 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
isDisable: patient.episodeNo != 0 ? true : false,nameLine1: TranslationBase.of(context).createNew,
|
|
|
|
|
isDisable: patient.episodeNo != 0 ? true : false,
|
|
|
|
|
nameLine1: TranslationBase.of(context).createNew,
|
|
|
|
|
nameLine2: TranslationBase.of(context).episode,
|
|
|
|
|
route: CREATE_EPISODE,
|
|
|
|
|
onTap: () async {
|
|
|
|
|
@ -55,15 +59,18 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
Navigator.of(context).pushNamed(CREATE_EPISODE,
|
|
|
|
|
arguments: {'patient': patient});
|
|
|
|
|
},
|
|
|
|
|
isLoading: model.state == ViewState.BusyLocal,icon: 'create-episod.png'),
|
|
|
|
|
isLoading: model.state == ViewState.BusyLocal,
|
|
|
|
|
icon: 'create-episod.png'),
|
|
|
|
|
if (int.parse(patientType) == 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
isDisable: patient.episodeNo == 0 ? true : false,nameLine1: TranslationBase.of(context).update,
|
|
|
|
|
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)
|
|
|
|
|
icon: 'modilfy-episode.png'),
|
|
|
|
|
if (int.parse(patientType) == 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
patient: patient,
|
|
|
|
|
@ -71,9 +78,11 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
|
|
|
|
|
to: to,
|
|
|
|
|
nameLine1: TranslationBase.of(context).vital,
|
|
|
|
|
nameLine2: TranslationBase.of(context).signs,
|
|
|
|
|
route: VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
|
|
|
|
|
*/,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
route:
|
|
|
|
|
VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
|
|
|
|
|
*/
|
|
|
|
|
,
|
|
|
|
|
icon: 'heartbeat.png'),
|
|
|
|
|
if (selectedPatientType != 7)
|
|
|
|
|
PatientProfileButton(
|
|
|
|
|
key: key,
|
|
|
|
|
|