|
|
|
|
@ -210,61 +210,6 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
// child: AppButton(
|
|
|
|
|
// title: TranslationBase.of(context).refer,
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// color: HexColor("#359846"),
|
|
|
|
|
// onPressed: () async {
|
|
|
|
|
// await locator<AnalyticsService>().logEvent(
|
|
|
|
|
// eventCategory: "Refer Patient",
|
|
|
|
|
// eventAction: "Submit Refer",
|
|
|
|
|
// );
|
|
|
|
|
// if (_referTo == null) {
|
|
|
|
|
// branchError =
|
|
|
|
|
// TranslationBase.of(context).fieldRequired;
|
|
|
|
|
// } else {
|
|
|
|
|
// branchError = null;
|
|
|
|
|
// }
|
|
|
|
|
// if (_selectedBranch == null) {
|
|
|
|
|
// hospitalError =
|
|
|
|
|
// TranslationBase.of(context).fieldRequired;
|
|
|
|
|
// } else {
|
|
|
|
|
// hospitalError = null;
|
|
|
|
|
// }
|
|
|
|
|
// if (_selectedClinic == null) {
|
|
|
|
|
// clinicError =
|
|
|
|
|
// TranslationBase.of(context).fieldRequired;
|
|
|
|
|
// } else {
|
|
|
|
|
// clinicError = null;
|
|
|
|
|
// }
|
|
|
|
|
// if (_selectedDoctor == null) {
|
|
|
|
|
// doctorError =
|
|
|
|
|
// TranslationBase.of(context).fieldRequired;
|
|
|
|
|
// } else {
|
|
|
|
|
// doctorError = null;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// if (appointmentDate == null ||
|
|
|
|
|
// _selectedBranch == null ||
|
|
|
|
|
// _selectedClinic == null ||
|
|
|
|
|
// _selectedDoctor == null ||
|
|
|
|
|
// _remarksController.text == null) return;
|
|
|
|
|
// model
|
|
|
|
|
// .makeReferral(
|
|
|
|
|
// patient,
|
|
|
|
|
// appointmentDate.toIso8601String(),
|
|
|
|
|
// _selectedBranch['facilityId'],
|
|
|
|
|
// _selectedClinic['ClinicID'],
|
|
|
|
|
// _selectedDoctor['DoctorID'],
|
|
|
|
|
// _remarksController.text)
|
|
|
|
|
// .then((_) {
|
|
|
|
|
// DrAppToastMsg.showSuccesToast(
|
|
|
|
|
// TranslationBase.of(context).referralSuccessMsg);
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|