|
|
|
@ -20,12 +20,11 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
int projectID;
|
|
|
|
int projectID;
|
|
|
|
bool isNotOneAppointment;
|
|
|
|
bool isNotOneAppointment;
|
|
|
|
|
|
|
|
|
|
|
|
VitalSignDetailsScreen(
|
|
|
|
VitalSignDetailsScreen({this.appointmentNo = 0, this.projectID = 0, this.isNotOneAppointment = true});
|
|
|
|
{this.appointmentNo, this.projectID, this.isNotOneAppointment = true});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
|
|
|
final routeArgs = ModalRoute.of(context)!.settings.arguments as Map;
|
|
|
|
PatiantInformtion patient = routeArgs['patient'];
|
|
|
|
PatiantInformtion patient = routeArgs['patient'];
|
|
|
|
String patientType = routeArgs['patientType'];
|
|
|
|
String patientType = routeArgs['patientType'];
|
|
|
|
String arrivalType = routeArgs['arrivalType'];
|
|
|
|
String arrivalType = routeArgs['arrivalType'];
|
|
|
|
@ -36,8 +35,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
String assetBasePath = "${imageBasePath}patient/vital_signs/";
|
|
|
|
String assetBasePath = "${imageBasePath}patient/vital_signs/";
|
|
|
|
|
|
|
|
|
|
|
|
return BaseView<VitalSignsViewModel>(
|
|
|
|
return BaseView<VitalSignsViewModel>(
|
|
|
|
onModelReady: (model) =>
|
|
|
|
onModelReady: (model) => model.getPatientVitalSignHistory(patient, from, to, isInpatient),
|
|
|
|
model.getPatientVitalSignHistory(patient, from, to, isInpatient),
|
|
|
|
|
|
|
|
builder: (_, mode, widget) => AppScaffold(
|
|
|
|
builder: (_, mode, widget) => AppScaffold(
|
|
|
|
baseViewModel: mode,
|
|
|
|
baseViewModel: mode,
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
@ -59,13 +57,13 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${patient.firstName ?? patient?.patientDetails?.firstName ?? patient.fullName ?? ''}'s",
|
|
|
|
"${patient.firstName ?? patient?.patientDetails?.firstName ?? patient.fullName ?? ''}'s",
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.6,
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.6,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
TranslationBase.of(context).vitalSign,
|
|
|
|
TranslationBase.of(context).vitalSign,
|
|
|
|
fontSize: SizeConfig.textMultiplier * 3,
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 3,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ -76,8 +74,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
height: MediaQuery.of(context).size.height * 0.23,
|
|
|
|
height: MediaQuery.of(context).size.height * 0.23,
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
|
|
|
|
horizontal: 16.0, vertical: 8.0),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
@ -93,7 +90,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${TranslationBase.of(context).yourBodyMassIndex} ${mode.bodyMax}",
|
|
|
|
"${TranslationBase.of(context).yourBodyMassIndex} ${mode.bodyMax}",
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
fontSize: SizeConfig.textMultiplier * 2.0,
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 2.0,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
@ -101,17 +98,11 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
mode.getBMIStatus() != 1
|
|
|
|
mode.getBMIStatus() != 1 ? '${assetBasePath}underweight_BMI.png' : '${assetBasePath}underweight_BMI-r.png',
|
|
|
|
? '${assetBasePath}underweight_BMI.png'
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
: '${assetBasePath}underweight_BMI-r.png',
|
|
|
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.height *
|
|
|
|
|
|
|
|
0.10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
@ -119,38 +110,26 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${TranslationBase.of(context).bmiUnderWeight}",
|
|
|
|
"${TranslationBase.of(context).bmiUnderWeight}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
color: mode.getBMIStatus() == 1 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"(<18.5)",
|
|
|
|
"(<18.5)",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
color: mode.getBMIStatus() == 1 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
color: mode.getBMIStatus() == 1
|
|
|
|
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
mode.getBMIStatus() != 2
|
|
|
|
mode.getBMIStatus() != 2 ? '${assetBasePath}health_BMI.png' : '${assetBasePath}health_BMI-r.png',
|
|
|
|
? '${assetBasePath}health_BMI.png'
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
: '${assetBasePath}health_BMI-r.png',
|
|
|
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.height *
|
|
|
|
|
|
|
|
0.10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
@ -159,40 +138,27 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
"${TranslationBase.of(context).normal}",
|
|
|
|
"${TranslationBase.of(context).normal}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier *
|
|
|
|
|
|
|
|
1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
color: mode.getBMIStatus() == 2 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"(18.5-24.9)",
|
|
|
|
"(18.5-24.9)",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 2
|
|
|
|
color: mode.getBMIStatus() == 2 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
mode.getBMIStatus() != 3
|
|
|
|
mode.getBMIStatus() != 3 ? '${assetBasePath}ovrweight_BMI.png' : '${assetBasePath}ovrweight_BMI-r.png',
|
|
|
|
? '${assetBasePath}ovrweight_BMI.png'
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
: '${assetBasePath}ovrweight_BMI-r.png',
|
|
|
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.height *
|
|
|
|
|
|
|
|
0.10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
@ -200,38 +166,26 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${TranslationBase.of(context).bmiOverWeight}",
|
|
|
|
"${TranslationBase.of(context).bmiOverWeight}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.155,
|
|
|
|
SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
color: mode.getBMIStatus() == 3 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"(25-29.9)",
|
|
|
|
"(25-29.9)",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.155,
|
|
|
|
SizeConfig.textMultiplier * 1.155,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 3
|
|
|
|
color: mode.getBMIStatus() == 3 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
mode.getBMIStatus() != 4
|
|
|
|
mode.getBMIStatus() != 4 ? '${assetBasePath}Obese_BMI.png' : '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.height *
|
|
|
|
|
|
|
|
0.10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
@ -239,38 +193,26 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${TranslationBase.of(context).bmiObese}",
|
|
|
|
"${TranslationBase.of(context).bmiObese}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
color: mode.getBMIStatus() == 4 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"(30-34.9)",
|
|
|
|
"(30-34.9)",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 4
|
|
|
|
color: mode.getBMIStatus() == 4 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
mode.getBMIStatus() != 5
|
|
|
|
mode.getBMIStatus() != 5 ? '${assetBasePath}Obese_BMI.png' : '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
? '${assetBasePath}Obese_BMI.png'
|
|
|
|
height: MediaQuery.of(context).size.height * 0.10,
|
|
|
|
: '${assetBasePath}Obese_BMI-r.png',
|
|
|
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.height *
|
|
|
|
|
|
|
|
0.10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
const SizedBox(
|
|
|
|
height: 4,
|
|
|
|
height: 4,
|
|
|
|
@ -280,24 +222,17 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
"${TranslationBase.of(context).bmiObeseExtreme}",
|
|
|
|
"${TranslationBase.of(context).bmiObeseExtreme}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier *
|
|
|
|
|
|
|
|
1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
color: mode.getBMIStatus() == 5 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"(35<)",
|
|
|
|
"(35<)",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontSize:
|
|
|
|
fontSize: SizeConfig.textMultiplier! * 1.15,
|
|
|
|
SizeConfig.textMultiplier * 1.15,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
color: mode.getBMIStatus() == 5
|
|
|
|
color: mode.getBMIStatus() == 5 ? Color(0XFFD02127) : Colors.grey,
|
|
|
|
? Color(0XFFD02127)
|
|
|
|
|
|
|
|
: null,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
@ -309,8 +244,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 16),
|
|
|
|
horizontal: 16.0, vertical: 16),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -326,16 +260,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.Height,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).height,
|
|
|
|
.Height,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.height,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -345,40 +273,28 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
.height,
|
|
|
|
imagePath: "${assetBasePath}height.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}height.png",
|
|
|
|
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
.cm,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (isNotOneAppointment)
|
|
|
|
if (isNotOneAppointment)
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
await locator<AnalyticsService>()
|
|
|
|
await locator<AnalyticsService>().logEvent(
|
|
|
|
.logEvent(
|
|
|
|
eventCategory: "Vital Sign Details Screen",
|
|
|
|
eventCategory:
|
|
|
|
eventAction: "Vital Sign Details",
|
|
|
|
"Vital Sign Details Screen",
|
|
|
|
|
|
|
|
eventAction:
|
|
|
|
|
|
|
|
"Vital Sign Details",
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
Navigator.push(
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.Weight,
|
|
|
|
pageKey:
|
|
|
|
pageTitle: TranslationBase.of(context).weight,
|
|
|
|
vitalSignDetails.Weight,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.weight,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -387,12 +303,9 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
.weight,
|
|
|
|
imagePath: "${assetBasePath}weight.png",
|
|
|
|
imagePath:
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
"${assetBasePath}weight.png",
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.kg,
|
|
|
|
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -401,16 +314,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.Temperature,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).temperature,
|
|
|
|
.Temperature,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.temperature,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -420,13 +327,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
.temperature,
|
|
|
|
imagePath: "${assetBasePath}temperature.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}temperature.png",
|
|
|
|
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
.tempC,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -435,16 +339,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.heart,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).heart,
|
|
|
|
.heart,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.heart,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -453,13 +351,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
.heart,
|
|
|
|
imagePath: "${assetBasePath}heart_rate.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}heart_rate.png",
|
|
|
|
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
unit:
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
TranslationBase.of(context).bpm,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -467,16 +362,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.Respiration,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).respirationRate,
|
|
|
|
.Respiration,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.respirationRate,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -485,14 +374,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
.respirationRate,
|
|
|
|
imagePath: "${assetBasePath}respiration_rate.png",
|
|
|
|
imagePath:
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
"${assetBasePath}respiration_rate.png",
|
|
|
|
unit: TranslationBase.of(context).respirationSigns,
|
|
|
|
lastVal:
|
|
|
|
|
|
|
|
mode.respirationBeatPerMinute,
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.respirationSigns,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -500,16 +385,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.BloodPressure,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).bloodPressure,
|
|
|
|
.BloodPressure,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.bloodPressure,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -518,13 +397,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
.bloodPressure,
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}blood_pressure.png",
|
|
|
|
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
.sysDias,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -532,16 +408,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.Oxygenation,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).oxygenation,
|
|
|
|
.Oxygenation,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.oxygenation,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -550,10 +420,8 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).oxygenation,
|
|
|
|
.oxygenation,
|
|
|
|
imagePath: "${assetBasePath}oxg.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}oxg.png",
|
|
|
|
|
|
|
|
lastVal: "${mode.oxygenation}%",
|
|
|
|
lastVal: "${mode.oxygenation}%",
|
|
|
|
unit: "",
|
|
|
|
unit: "",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -563,16 +431,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
? Navigator.push(
|
|
|
|
? Navigator.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
FadePage(
|
|
|
|
FadePage(
|
|
|
|
page:
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
VitalSignItemDetailsScreen(
|
|
|
|
pageKey: vitalSignDetails.PainScale,
|
|
|
|
pageKey: vitalSignDetails
|
|
|
|
pageTitle: TranslationBase.of(context).painScale,
|
|
|
|
.PainScale,
|
|
|
|
vitalList: mode.patientVitalSignsHistory,
|
|
|
|
pageTitle:
|
|
|
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
|
|
|
|
.painScale,
|
|
|
|
|
|
|
|
vitalList: mode
|
|
|
|
|
|
|
|
.patientVitalSignsHistory,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
patient: patient,
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
@ -581,13 +443,10 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context)
|
|
|
|
des: TranslationBase.of(context).painScale,
|
|
|
|
.painScale,
|
|
|
|
imagePath: "${assetBasePath}painScale.png",
|
|
|
|
imagePath:
|
|
|
|
|
|
|
|
"${assetBasePath}painScale.png",
|
|
|
|
|
|
|
|
lastVal: mode.painScore,
|
|
|
|
lastVal: mode.painScore,
|
|
|
|
unit: TranslationBase.of(context)
|
|
|
|
unit: TranslationBase.of(context).severe,
|
|
|
|
.severe,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|