|
|
|
|
@ -10,6 +10,7 @@ import 'package:doctor_app_flutter/util/dr_app_toast_msg.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-page-header-widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_loader_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/dialogs/dailog-list-select.dart';
|
|
|
|
|
@ -55,7 +56,8 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
|
|
|
|
|
|
return BaseView<PatientReferralViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getMasterLookup(MasterKeysService.physiotherapyGoals),
|
|
|
|
|
onModelReady: (model) =>
|
|
|
|
|
model.getMasterLookup(MasterKeysService.physiotherapyGoals),
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBarTitle: TranslationBase.of(context).referPatient,
|
|
|
|
|
@ -64,6 +66,14 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
|
|
|
|
children: [
|
|
|
|
|
if (model.state == ViewState.BusyLocal)
|
|
|
|
|
Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 50,
|
|
|
|
|
child: AppLoaderWidget(
|
|
|
|
|
containerColor: Colors.white,
|
|
|
|
|
)),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
PatientPageHeaderWidget(patient),
|
|
|
|
|
@ -333,14 +343,15 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
|
|
|
|
|
_remarksController.text == null) return;
|
|
|
|
|
model
|
|
|
|
|
.makeReferral(
|
|
|
|
|
patient,
|
|
|
|
|
patient,
|
|
|
|
|
appointmentDate.toIso8601String(),
|
|
|
|
|
_selectedBranch['ID'],
|
|
|
|
|
_selectedClinic['ClinicID'],
|
|
|
|
|
_selectedDoctor['DoctorID'],
|
|
|
|
|
_remarksController.text)
|
|
|
|
|
.then((_) {
|
|
|
|
|
DrAppToastMsg.showSuccesToast(TranslationBase.of(context).referralSuccessMsg);
|
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
|
TranslationBase.of(context).referralSuccessMsg);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
@ -368,7 +379,7 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
|
|
|
|
|
setState(() {
|
|
|
|
|
appointmentDate = picked;
|
|
|
|
|
});
|
|
|
|
|
/* model
|
|
|
|
|
/* model
|
|
|
|
|
.getPatientArrivalList(DateUtils.convertStringToDateFormat(
|
|
|
|
|
appointmentDate.toString(), "yyyy-MM-dd"))
|
|
|
|
|
.then((_) {
|
|
|
|
|
|