|
|
|
@ -1,13 +1,16 @@
|
|
|
|
|
import 'package:diplomaticquarterapp/core/model/labs/patient_lab_orders.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/labs_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/charts/show_chart.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
import 'LineChartCurved.dart';
|
|
|
|
|
import 'lab_result_chart_and_detials.dart';
|
|
|
|
@ -18,10 +21,14 @@ class FlowChartPage extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
FlowChartPage({this.patientLabOrder, this.filterName});
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
return BaseView<LabsViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getPatientLabOrdersResults(patientLabOrder: patientLabOrder, procedure: filterName),
|
|
|
|
|
onModelReady: (model) =>
|
|
|
|
|
model.getPatientLabOrdersResults(patientLabOrder: patientLabOrder, procedure: filterName, isVidaPlus: Utils.isVidaPlusProject(projectViewModel, num.parse(patientLabOrder.projectID))),
|
|
|
|
|
builder: (context, model, w) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
appBarTitle: filterName,
|
|
|
|
@ -72,7 +79,7 @@ class FlowChartPage extends StatelessWidget {
|
|
|
|
|
)
|
|
|
|
|
: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.32),
|
|
|
|
|
padding: EdgeInsets.only(top: MediaQuery.of(context).size.height * 0.32),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: getNoDataWidget(context),
|
|
|
|
|
),
|
|
|
|
|