|
|
@ -28,9 +28,9 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/en/1.png',imageAr: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/ar/1.png'));
|
|
|
|
imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/en/1.png',imageAr: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/ar/1.png'));
|
|
|
|
return BaseView<VitalSignViewModel>(
|
|
|
|
return BaseView<VitalSignViewModel>(
|
|
|
|
onModelReady: appointmentNo != null && projectID != null
|
|
|
|
onModelReady: appointmentNo != null && projectID != null
|
|
|
|
? (model) => model.getPatientRadOrders(
|
|
|
|
? (model) => model.getPatientVitalSign(
|
|
|
|
appointmentNo: appointmentNo, projectID: projectID)
|
|
|
|
appointmentNo: appointmentNo, projectID: projectID)
|
|
|
|
: (model) => model.getPatientRadOrders(),
|
|
|
|
: (model) => model.getPatientVitalSign(),
|
|
|
|
builder: (_, mode, widget) => AppScaffold(
|
|
|
|
builder: (_, mode, widget) => AppScaffold(
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
appBarTitle: TranslationBase.of(context).vitalSigns,
|
|
|
|
appBarTitle: TranslationBase.of(context).vitalSigns,
|
|
|
@ -58,11 +58,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
des: TranslationBase.of(context).height,
|
|
|
|
icon: DQIcons.height,
|
|
|
|
icon: DQIcons.height,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.heightCm,
|
|
|
|
.vitalSignResModelList[
|
|
|
|
|
|
|
|
mode.vitalSignResModelList.length - 1]
|
|
|
|
|
|
|
|
.heightCm
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
unit: TranslationBase.of(context).cm,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -82,11 +78,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
des: TranslationBase.of(context).weight,
|
|
|
|
icon: DQIcons.weight_scale,
|
|
|
|
icon: DQIcons.weight_scale,
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
unit: TranslationBase.of(context).kg,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.weightKg,
|
|
|
|
.vitalSignResModelList[
|
|
|
|
|
|
|
|
mode.vitalSignResModelList.length - 1]
|
|
|
|
|
|
|
|
.weightKg
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -108,9 +100,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).body,
|
|
|
|
des: TranslationBase.of(context).body,
|
|
|
|
icon: DQIcons.bmi,
|
|
|
|
icon: DQIcons.bmi,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.bodyMax,
|
|
|
|
.vitalSignResModelList[ mode.vitalSignResModelList.length - 1].pulseBeatPerMinute
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).mass,
|
|
|
|
unit: TranslationBase.of(context).mass,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -130,9 +120,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
des: TranslationBase.of(context).temperature,
|
|
|
|
icon: DQIcons.thermometer,
|
|
|
|
icon: DQIcons.thermometer,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.temperatureCelcius,
|
|
|
|
.vitalSignResModelList[ mode.vitalSignResModelList.length - 1].temperatureCelcius
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
unit: TranslationBase.of(context).tempC,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -155,11 +143,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
des: TranslationBase.of(context).heart,
|
|
|
|
icon: DQIcons.heart,
|
|
|
|
icon: DQIcons.heart,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.hartRat,
|
|
|
|
.vitalSignResModelList[
|
|
|
|
|
|
|
|
mode.vitalSignResModelList.length - 1]
|
|
|
|
|
|
|
|
.pulseBeatPerMinute
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
unit: TranslationBase.of(context).bpm,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -178,11 +162,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
des: TranslationBase.of(context).respirationRate,
|
|
|
|
icon: DQIcons.outline,
|
|
|
|
icon: DQIcons.outline,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.respirationBeatPerMinute,
|
|
|
|
.vitalSignResModelList[
|
|
|
|
|
|
|
|
mode.vitalSignResModelList.length - 1]
|
|
|
|
|
|
|
|
.respirationBeatPerMinute
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).respirationSigns,
|
|
|
|
unit: TranslationBase.of(context).respirationSigns,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -205,11 +185,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
|
|
|
|
child: VitalSignItem(
|
|
|
|
child: VitalSignItem(
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
des: TranslationBase.of(context).bloodPressure,
|
|
|
|
icon: DQIcons.blood_pressure,
|
|
|
|
icon: DQIcons.blood_pressure,
|
|
|
|
lastVal: mode
|
|
|
|
lastVal: mode.bloodPressure,
|
|
|
|
.vitalSignResModelList[
|
|
|
|
|
|
|
|
mode.vitalSignResModelList.length - 1]
|
|
|
|
|
|
|
|
.bloodPressure
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
unit: TranslationBase.of(context).sysDias,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|