Browse Source

0018587: 【体检表】未在中医体质账号中提交老人年自理能力评估表,在体检表中点击“自理能力评估”按键,打开的评估表中有默认值:9分,中度依赖

finlay 11 months ago
parent
commit
a015fc8c9e

+ 5 - 1
lib/pages/check/widgets/exam_configurable/exam_ability_radio.dart

@@ -27,6 +27,7 @@ class ExamAbilityRadio extends StatefulWidget {
     required this.patientCode,
     required this.lNRZLPGCode,
     required this.examAbilityCodeChange,
+    required this.physicalExamNumber,
   });
   final FormObject currentFormObject;
   final List<Option> options;
@@ -34,6 +35,7 @@ class ExamAbilityRadio extends StatefulWidget {
   final String currentSelected;
   final String patientCode;
   final String lNRZLPGCode;
+  final String physicalExamNumber;
   final Function examAbilityCodeChange;
 
   @override
@@ -193,7 +195,9 @@ class _ExamAbilityRadioState extends State<ExamAbilityRadio> {
                 label: '自理能力评估',
                 onTap: () async {
                   String? selfCareScore =
-                      await Get.dialog(SelfCareAbilityAssessmentView());
+                      await Get.dialog(SelfCareAbilityAssessmentView(
+                    physicalExamNumber: widget.physicalExamNumber,
+                  ));
                   if (selfCareScore != null) {
                     _currentSelfCare = "";
                     selectRaidoChangeByScore(int.parse(selfCareScore));

+ 1 - 0
lib/pages/check/widgets/new_configurable_card.dart

@@ -1095,6 +1095,7 @@ class NewConfigurableFormState extends State<NewConfigurableCard> {
       currentSelected: currentSelected,
       patientCode: widget.patientCode!,
       lNRZLPGCode: abilityCode,
+      physicalExamNumber: widget.physicalExamNumber,
       examAbilityCodeChange: examAbilityCodeChange,
     );
   }

+ 3 - 1
lib/pages/medical/widgets/health_check/health_check_list/controller.dart

@@ -182,7 +182,9 @@ class HealthCheckListController extends GetxController {
                     onPressed: () async {
                       await changeHeartCheck(rowData);
                       String? selfCareScore =
-                          await Get.dialog(SelfCareAbilityAssessmentView());
+                          await Get.dialog(SelfCareAbilityAssessmentView(
+                        physicalExamNumber: rowData.physicalExamNumber,
+                      ));
                     },
                     child: Text(
                       style: TextStyle(fontSize: 18),

+ 7 - 4
lib/pages/self_care_ability_assessment/view.dart

@@ -15,15 +15,18 @@ import 'package:vitalapp/store/store.dart';
 
 class SelfCareAbilityAssessmentView
     extends GetView<SelfCareAbilityAssessmentController> {
-  SelfCareAbilityAssessmentView({super.key});
+  SelfCareAbilityAssessmentView({
+    super.key,
+    this.physicalExamNumber,
+  });
   final _examManager = Get.find<IExamManager>();
   ExamDTO? currentSelfCareAbilityAssessmentExam;
+  final String? physicalExamNumber;
   @override
   Widget build(BuildContext context) {
     return Scaffold(
         body: FutureBuilder(
-      future: getExamData(
-          Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ?? ''),
+      future: getExamData(physicalExamNumber ?? ''),
       builder: (context, snapshot) {
         if (snapshot.connectionState == ConnectionState.waiting) {
           return Center(child: CircularProgressIndicator());
@@ -60,7 +63,7 @@ class SelfCareAbilityAssessmentView
       callBack: (key, templateCode, data) async {
         await createBasicCheckup(
           Store.user.currentSelectPatientInfo?.code ?? '',
-          Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ?? '',
+          physicalExamNumber ?? '',
           key,
           data,
         );