|
|
|
|
@ -278,172 +278,198 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 4),
|
|
|
|
|
child: GridView.count(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
crossAxisSpacing: 6,
|
|
|
|
|
mainAxisSpacing: 6,
|
|
|
|
|
childAspectRatio: 1.0 / 1.0,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Height,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16.0, vertical: 16),
|
|
|
|
|
child: GridView.count(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
crossAxisSpacing: 6,
|
|
|
|
|
mainAxisSpacing: 6,
|
|
|
|
|
crossAxisCount: 3,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Height,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).height,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
|
imagePath: "${assetBasePath}height.png",
|
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Weight,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
|
imagePath: "${assetBasePath}height.png",
|
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
|
imagePath: "${assetBasePath}weight.png",
|
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Weight,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).weight,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Temperature,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.temperature,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
|
imagePath: "${assetBasePath}temperature.png",
|
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
|
imagePath: "${assetBasePath}weight.png",
|
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Temperature,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.temperature,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.heart,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).heart,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: Container(
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
|
imagePath: "${assetBasePath}temperature.png",
|
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
|
imagePath: "${assetBasePath}heart_rate.png",
|
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.heart,
|
|
|
|
|
pageTitle:
|
|
|
|
|
TranslationBase.of(context).heart,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Respiration,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.respirationRate,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
|
imagePath: "${assetBasePath}respiration_rate.png",
|
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
|
unit:
|
|
|
|
|
TranslationBase.of(context).respirationSigns,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
|
imagePath: "${assetBasePath}heart_rate.png",
|
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Respiration,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.respirationRate,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.BloodPressure,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.bloodPressure,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
|
imagePath: "${assetBasePath}respiration_rate.png",
|
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
|
unit:
|
|
|
|
|
TranslationBase.of(context).respirationSigns,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.BloodPressure,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.bloodPressure,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () => isNotOneAppointment
|
|
|
|
|
? Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
page: VitalSignItemDetailsScreen(
|
|
|
|
|
pageKey: vitalSignDetails.Oxygenation,
|
|
|
|
|
pageTitle: TranslationBase.of(context)
|
|
|
|
|
.oxygenation,
|
|
|
|
|
vitalList:
|
|
|
|
|
mode.patientVitalSignsHistory,
|
|
|
|
|
patient: patient,
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).oxygenation,
|
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
|
lastVal: mode.oxygenation,
|
|
|
|
|
unit: "%",
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
child: VitalSignItem(
|
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
|
imagePath: "${assetBasePath}blood_pressure.png",
|
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|