Răsfoiți Sursa

新增大骨节病患者健康教育处方

loki.wu 11 luni în urmă
părinte
comite
c7c3ca5fc6

+ 328 - 0
assets/hypertrophic_osteoarthropathy_prescription.json

@@ -0,0 +1,328 @@
+[
+    {
+        "label": "姓名",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Name",
+        "type": "input",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "性别",
+        "defaultValue": null,
+        "span": 24,
+        "key": "Sex",
+        "type": "radio",
+        "border": null,
+        "disabledValue": null,
+        "options": [
+            {
+                "label": "男",
+                "value": "1"
+            },
+            {
+                "label": "女",
+                "value": "2"
+            }
+        ],
+        "children": null,
+        "append": null,
+        "placeholder": null,
+        "required": null,
+        "show-limit": null,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "年龄",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Age",
+        "type": "numberInput",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "诊断",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Diagnosis",
+        "type": "input",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "    大骨节病是一种地方病,是在发育期儿童中出现的多发性、慢性变形性骨关节病,主要表现为四肢关节透明软骨的变性、坏死以及继发性骨关节病,严重者身材矮小畸形、终身残疾。大骨节病好发于儿童和少年,多见于以病区所产小麦、玉米、青稞为主食的人群,在重病区儿童两三岁即可发病。\r\n    大骨节病的病因尚未明确,可能与病区人员饮食品种单一、营养不良和食用了受镰刀菌毒素污染的粮食等有关。在发病早期,如采取适当的预防和治疗措施,多数患者可以完全康复。如果预防和治疗不及时,会发展成短指(趾)、短肢、身材矮小、关节畸形和功能丧失等,严重影响患者的生活与健康。\r\n    采取健康生活方式,积极治疗,有助于身体康复,改善生活质量。",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Hint_Label",
+        "type": "label",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "健康生活方式",
+        "defaultValue": null,
+        "span": 12,
+        "key": "HealthyLifestyle",
+        "type": "checkbox",
+        "border": null,
+        "disabledValue": null,
+        "options": [
+            {
+                "label": "注意保暖,减少寒冷刺激。",
+                "value": "1"
+            },
+            {
+                "label": "不食用病区自产的小麦、玉米和青裸,食用商品粮。",
+                "value": "2"
+            },
+            {
+                "label": "学龄儿童应在学校集中就餐。有条件者可到非病区的学校上学。",
+                "value": "3"
+            },
+            {
+                "label": "超重或肥胖者应控制体重,避免体重增加,加重关节负担。",
+                "value": "4"
+            },
+            {
+                "label": "食物多样,谷类为主,多吃新鲜蔬菜、水果、奶类、豆制品,适量吃鱼、禽、蛋、瘦肉。",
+                "value": "5"
+            },
+            {
+                "label": "不吸烟(吸烟者戒烟)。",
+                "value": "6"
+            },
+            {
+                "label": "避免接触二手烟。",
+                "value": "7"
+            },
+            {
+                "label": "不饮酒。",
+                "value": "8"
+            },
+            {
+                "label": "避免过度劳累,规律作息,保证睡眠充足。",
+                "value": "9"
+            },
+            {
+                "label": "保持心情舒畅、情绪稳定,减轻精神压力。",
+                "value": "10"
+            }
+        ],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "治疗与康复",
+        "defaultValue": null,
+        "span": 12,
+        "key": "HealthyLifestyle",
+        "type": "checkbox",
+        "border": null,
+        "disabledValue": null,
+        "options": [
+            {
+                "label": "遵医嘱服药。",
+                "value": "1"
+            },
+            {
+                "label": "外用膏药可根据具体情况使用,注意避免皮肤过敏。",
+                "value": "2"
+            },
+            {
+                "label": "注意保护关节,减轻关节的负担,适当运动或活动。",
+                "value": "3"
+            },
+            {
+                "label": "不建议进行长时间的爬山、爬楼以及各种下蹲类运动,也不宜进行繁重的家务劳动和生产活动。",
+                "value": "4"
+            },
+            {
+                "label": "避免过度使用关节,避免用力过猛、抬举重物或节奏过快的动作。",
+                "value": "5"
+            },
+            {
+                "label": "要适时改变姿势或活动关节,同一姿势不宜持续1小时以上。膝或髋关节受累患者应避免长久站立、跪位、蹲位和盘腿。",
+                "value": "6"
+            },
+            {
+                "label": "经常进行关节的屈伸活动,充分舒展关节;经常做勾脚抬腿、侧抬腿等动作,锻炼肌肉力量。",
+                "value": "7"
+            },
+            {
+                "label": "关节情况良好时,在医生指导下适当进行缓慢步行、原地踏步或拉伸肌肉等运动。",
+                "value": "8"
+            },
+            {
+                "label": "可利用手杖、步行器等协助活动。活动时应小心谨慎,防止滑倒、跌伤或扭伤。",
+                "value": "9"
+            }
+        ],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "急症处理",
+        "defaultValue": null,
+        "span": 12,
+        "key": "EmergencyTreatment",
+        "type": "checkbox",
+        "border": null,
+        "disabledValue": "",
+        "options": [
+            {
+                "label": "当出现关节肿胀、疼痛等症状急性加重时,应及时休息,减少行走、提重物等活动,可以进行勾脚抬腿锻炼,可以冰敷、外用消炎止痛软膏,必要时可遵医嘱用药,如果病情加重应及时就医。",
+                "value": "1"
+            }
+        ],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "其他指导建议",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Other",
+        "type": "textareaInput",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "医生/指导人员签名:",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Signature",
+        "type": "signature",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "咨询电话:",
+        "defaultValue": null,
+        "span": 12,
+        "key": "Phone",
+        "type": "numberInput",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "日期",
+        "defaultValue": null,
+        "span": 12,
+        "key": "DateTime",
+        "type": "dateTime",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    },
+    {
+        "label": "大骨节病患者健康教育处方使用说明 \r\n ★使用对象:大骨节病患者。 \r\n ★使用方法 \r\n  1.本处方仅限于在大骨节病流行地区使用。 \r\n  2.本处方不能替代医务人员开具的医疗处方,主要用于患者健康生活方式指导。\r\n  3.医务人员应结合患者的病情、健康危险因素等,提供有针对性的健康指导。",
+        "defaultValue": null,
+        "span": 12,
+        "key": "DescriptionLabel",
+        "type": "label",
+        "border": null,
+        "disabledValue": null,
+        "options": [],
+        "children": null,
+        "append": "",
+        "placeholder": "",
+        "required": null,
+        "show-limit": false,
+        "parentKey": null,
+        "buttonName": null,
+        "childrenKey": null
+    }
+]

+ 45 - 0
lib/pages/check/prescription/hypertrophic_osteoarthropathy_prescription.dart

@@ -0,0 +1,45 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:get/get.dart';
+import 'package:vitalapp/managers/interfaces/template.dart';
+import 'package:vitalapp/pages/form/form_view.dart';
+
+///大骨节病患者健康教育处方
+class HypertrophicOsteoarthropathy extends StatefulWidget {
+  @override
+  State<StatefulWidget> createState() {
+    return HypertrophicOsteoarthropathyState();
+  }
+}
+
+class HypertrophicOsteoarthropathyState
+    extends State<HypertrophicOsteoarthropathy> {
+  String? _template;
+
+  @override
+  void initState() {
+    // Get.find<ITemplateManager>()
+    //     .getTemplateByKey("HypertrophicOsteoarthropathyPrescription")
+    //     .then((value) {
+    //   setState(() {
+    //     _template = value;
+    //   });
+    // });
+    var _path = "assets/hypertrophic_osteoarthropathy_prescription.json";
+    rootBundle.loadString(_path).then((value) {
+      setState(() {
+        _template = value;
+      });
+    });
+    super.initState();
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    return _template == null
+        ? Center(
+            child: CircularProgressIndicator(),
+          )
+        : FormView(_template!);
+  }
+}

+ 4 - 2
lib/pages/patient/detail/widgets/functions_panel.dart

@@ -7,6 +7,7 @@ import 'package:vitalapp/consts/styles.dart';
 import 'package:vitalapp/managers/interfaces/models/crowd_labels.dart';
 import 'package:vitalapp/pages/check/prescription/blood_sugar_disorder.dart';
 import 'package:vitalapp/pages/check/prescription/hypertension_prescription.dart';
+import 'package:vitalapp/pages/check/prescription/hypertrophic_osteoarthropathy_prescription.dart';
 import 'package:vitalapp/pages/check/prescription/psychiatric_prescription.dart';
 import 'package:vitalapp/pages/check/prescription/tuberculosis_prescription.dart';
 import 'package:vitalapp/pages/check/prescription/under_fiveMalnutrition_prescription.dart';
@@ -65,10 +66,11 @@ class FunctionsPanel extends GetView<PatientDetailController> {
                 },
               ),
               FunctionButton(
-                label: "处方测试",
+                label: "处方",
                 icon: _buildImgIcon("档案.png"),
                 onTap: () {
-                  Get.to(UnderFiveMalnutritionPrescription());
+                  Get.to(HypertrophicOsteoarthropathy());
+                  //Get.to(UnderFiveMalnutritionPrescription());
                 },
               ),
             ],

+ 2 - 2
pubspec.lock

@@ -383,8 +383,8 @@ packages:
     dependency: "direct main"
     description:
       path: "."
-      ref: "3845c3f"
-      resolved-ref: "3845c3f87b5a2a01038ca47b214529f6c30e8579"
+      ref: b3f2663
+      resolved-ref: b3f266381ab72c9a88687f7881a88b0f2e924287
       url: "http://git.ius.plus:88/Project-Wing/fis_lib_jsonrpc.git"
     source: git
     version: "0.0.1"

+ 1 - 0
pubspec.yaml

@@ -237,6 +237,7 @@ flutter:
     - assets/fonts/NotoSansSC-R-fixed.otf
     - assets/data/3-6.json
     - assets/under_fiveMalnutrition_prescription.json
+    - assets/hypertrophic_osteoarthropathy_prescription.json
   #   - images/a_dot_burr.jpeg
   #   - images/a_dot_ham.jpeg