You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
185 lines
7.3 KiB
Dart
185 lines
7.3 KiB
Dart
|
6 years ago
|
import 'package:diplomaticquarterapp/core/enum/patient_lookup.dart';
|
||
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/vital_sign_view_model.dart';
|
||
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
||
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_item.dart';
|
||
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_item_details_screen.dart';
|
||
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class VitalSignDetailsScreen extends StatelessWidget {
|
||
|
|
static const String url = "assets/images/";
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return BaseView<VitalSignViewModel>(
|
||
|
|
onModelReady: (model) => model.getPatientRadOrders(),
|
||
|
|
builder: (_, mode, widget) => AppScaffold(
|
||
|
|
isShowAppBar: true,
|
||
|
|
appBarTitle: 'Vital Sign',
|
||
|
|
baseViewModel: mode,
|
||
|
|
body: mode.vitalSignResModelList.length> 0? Container(
|
||
|
|
child: Column(
|
||
|
|
children: <Widget>[
|
||
|
|
Row(
|
||
|
|
children: <Widget>[
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.BloodPressure,
|
||
|
|
pageTitle: 'bodyMeasurements',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: Container(
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).bodyMeasurements,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal:
|
||
|
|
mode.vitalSignResModelList[1].heightCm.toString(),
|
||
|
|
unit: ' Cm',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.Temperature,
|
||
|
|
pageTitle: 'Temperature',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: Container(
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).temperature,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal: mode
|
||
|
|
.vitalSignResModelList[1].temperatureCelcius
|
||
|
|
.toString(),
|
||
|
|
unit: 'C',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
Row(
|
||
|
|
children: <Widget>[
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.Pulse,
|
||
|
|
pageTitle: 'Pulse',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).pulse,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal: mode.vitalSignResModelList[1].pulseBeatPerMinute
|
||
|
|
.toString(),
|
||
|
|
unit: 'M',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.Prescriptions,
|
||
|
|
pageTitle: 'Prescriptions',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).respiration,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal: mode
|
||
|
|
.vitalSignResModelList[1].respirationBeatPerMinute
|
||
|
|
.toString(),
|
||
|
|
unit: 'M',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
Row(
|
||
|
|
children: <Widget>[
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.BloodPressure,
|
||
|
|
pageTitle: 'BloodPressure',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).bloodPressure,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal: mode.vitalSignResModelList[1].bloodPressure
|
||
|
|
.toString(),
|
||
|
|
unit: '',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.Oxygenation,
|
||
|
|
pageTitle: 'Oxygenation',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).oxygenation,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
lastVal: mode.vitalSignResModelList[1].fIO2.toString(),
|
||
|
|
unit: '',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
Row(
|
||
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
|
children: <Widget>[
|
||
|
|
InkWell(
|
||
|
|
onTap: () => Navigator.push(
|
||
|
|
context,
|
||
|
|
FadePage(
|
||
|
|
page: VitalSignItemDetailsScreen(
|
||
|
|
pageKey: VitalSignDetails.PainScale,
|
||
|
|
pageTitle: 'PainScale',
|
||
|
|
vitalList: mode.vitalSignResModelList,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: VitalSignItem(
|
||
|
|
des: TranslationBase.of(context).painScale,
|
||
|
|
url: url + 'heartbeat.png',
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
) : Center(child: Texts('No Data'),),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|