|
|
|
|
@ -20,7 +20,7 @@ class FlowChartPage extends StatelessWidget {
|
|
|
|
|
final bool isInpatient;
|
|
|
|
|
|
|
|
|
|
FlowChartPage(
|
|
|
|
|
{required this.patientLabOrder, required this.filterName, required this.patient, required this.isInpatient});
|
|
|
|
|
{this.patientLabOrder, this.filterName, this.patient, this.isInpatient});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -29,45 +29,47 @@ class FlowChartPage extends StatelessWidget {
|
|
|
|
|
patientLabOrder: patientLabOrder,
|
|
|
|
|
procedureDescription: filterName,
|
|
|
|
|
patient: patient),
|
|
|
|
|
//onModelReady: (model) =>
|
|
|
|
|
model.getPatientLabOrdersResults(//patientLabOrder: patientLabOrder,// procedure: filterName,// patient: patient),
|
|
|
|
|
// onModelReady: (model) => model.getPatientLabOrdersResults(
|
|
|
|
|
// patientLabOrder: patientLabOrder,
|
|
|
|
|
// procedure: filterName,
|
|
|
|
|
// patient: patient),
|
|
|
|
|
builder: (context, model, w) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
appBarTitle: filterName,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
body: model.labOrdersResultHistoryList.isNotEmpty
|
|
|
|
|
? SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: LabResultHistoryChartAndDetails(
|
|
|
|
|
name: filterName,
|
|
|
|
|
labResultHistory: model.labOrdersResultHistoryList,
|
|
|
|
|
),
|
|
|
|
|
// child: LabResultChartAndDetails(
|
|
|
|
|
// name: filterName,
|
|
|
|
|
// labResult: model.labOrdersResultsList,
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
child: Container(
|
|
|
|
|
child: LabResultHistoryChartAndDetails(
|
|
|
|
|
name: filterName,
|
|
|
|
|
labResultHistory: model.labOrdersResultHistoryList,
|
|
|
|
|
),
|
|
|
|
|
// child: LabResultChartAndDetails(
|
|
|
|
|
// name: filterName,
|
|
|
|
|
// labResult: model.labOrdersResultsList,
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).noDataAvailable,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
color: HexColor("#B8382B"),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).noDataAvailable,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
color: HexColor("#B8382B"),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|