Fix add medication button

merge-requests/967/head
RoaaGhali98 4 years ago
parent d5e3a79f85
commit ce978db2dd

@ -229,19 +229,6 @@ class MedicineViewModel extends BaseViewModel {
} }
Future getPrescription({int mrn}) async {
//hasError = false;
//_insuranceCardService.clearInsuranceCard();
setState(ViewState.Busy);
await _prescriptionService.getPrescription(mrn: mrn);
if (_prescriptionService.hasError) {
error = _prescriptionService.error;
setState(ViewState.ErrorLocal);
} else
setState(ViewState.Idle);
}
Future getMedicineItem(String itemName) async { Future getMedicineItem(String itemName) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _medicineService.getMedicineItem(itemName); await _medicineService.getMedicineItem(itemName);

@ -11,6 +11,7 @@ import 'package:doctor_app_flutter/widgets/patients/patient_service_title.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/add-order/addNewOrder.dart'; import 'package:doctor_app_flutter/widgets/patients/profile/add-order/addNewOrder.dart';
import 'package:doctor_app_flutter/widgets/patients/profile/app_bar/patient-profile-app-bar.dart'; import 'package:doctor_app_flutter/widgets/patients/profile/app_bar/patient-profile-app-bar.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_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/doctor_card.dart'; import 'package:doctor_app_flutter/widgets/shared/doctor_card.dart';
import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart'; import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart';
import 'package:doctor_app_flutter/widgets/shared/user-guid/in_patient_doctor_card.dart'; import 'package:doctor_app_flutter/widgets/shared/user-guid/in_patient_doctor_card.dart';
@ -117,7 +118,13 @@ class PrescriptionsPage extends StatelessWidget {
), ),
), ),
), ),
child: DoctorCard( child: Container(
child: Column(
children: [
AppText(
model.prescriptionsList[index].despensedStatus,
),
DoctorCard(
doctorName: doctorName:
model.prescriptionsList[index].doctorName, model.prescriptionsList[index].doctorName,
profileUrl: model profileUrl: model
@ -131,6 +138,9 @@ class PrescriptionsPage extends StatelessWidget {
model.prescriptionsList[index] model.prescriptionsList[index]
.appointmentDate, .appointmentDate,
), ),
),
],
),
))), ))),
if (model.prescriptionsList.isEmpty && if (model.prescriptionsList.isEmpty &&
patient.patientStatusType != 43) patient.patientStatusType != 43)

Loading…
Cancel
Save