|
|
|
|
@ -2,8 +2,8 @@ import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/prescription_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/prescription/prescription_item_in_patient_page.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/prescription/prescription_items_page.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/prescription/prescriptions_items/prescription_items_in_patient.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/prescription/prescriptions_items/prescription_items_out_patient.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/procedures/ProcedureType.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/procedures/base_add_procedure_tab_page.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
@ -21,6 +21,7 @@ import 'package:doctor_app_flutter/widgets/transitions/slide_up_page.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import '../../util/helpers.dart';
|
|
|
|
|
import '../../widgets/shared/errors/error_message.dart';
|
|
|
|
|
|
|
|
|
|
class PrescriptionsPage extends StatelessWidget {
|
|
|
|
|
@ -112,8 +113,7 @@ class PrescriptionsPage extends StatelessWidget {
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: PrescriptionItemsPage(
|
|
|
|
|
prescriptions:
|
|
|
|
|
model.prescriptionsList[index],
|
|
|
|
|
prescriptions: model.prescriptionsList[index],
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
@ -124,7 +124,7 @@ class PrescriptionsPage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
DoctorCard(
|
|
|
|
|
doctorName:
|
|
|
|
|
model.prescriptionsList[index].doctorName,
|
|
|
|
|
Helpers.convertToTitleCase(model.prescriptionsList[index].doctorName),
|
|
|
|
|
profileUrl: model
|
|
|
|
|
.prescriptionsList[index].doctorImageURL,
|
|
|
|
|
branch: model.prescriptionsList[index].name,
|
|
|
|
|
|