Browse Source

fixed:0018885: 【用户反馈】【新建档案】手动录入居民档案时,详细信息、健康信息里设置某些项为默认选项,并可修改

loki.wu 10 months ago
parent
commit
8c6ed8216f
2 changed files with 61 additions and 6 deletions
  1. 39 2
      lib/pages/patient/info/widgets/ext_model.dart
  2. 22 4
      lib/pages/patient_info/state.dart

+ 39 - 2
lib/pages/patient/info/widgets/ext_model.dart

@@ -3,7 +3,9 @@ import 'dart:convert';
 import 'package:vitalapp/components/dialog_profile_time_input.dart';
 
 class PatientDetailInfoModel {
-  PatientDetailInfoModel();
+  PatientDetailInfoModel({
+    this.permanentlyResideType,
+  });
 
   ///详细信息
   String? workUnit; //工作单位
@@ -49,10 +51,31 @@ class PatientDetailInfoModel {
 }
 
 class PatientHealthInfoModel {
-  PatientHealthInfoModel();
+  PatientHealthInfoModel({
+    this.historyDrugAllergies,
+    this.historyExposure,
+    this.operation,
+    this.trauma,
+    this.transfusion,
+    this.father,
+    this.mother,
+    this.sibling,
+    this.children,
+    this.historyGenetic,
+    this.disabilitySituation,
+    this.historyPreviousDisease,
+    this.kitchenExhaustFacilities,
+    this.fuel,
+    this.drinkingWater,
+    this.toilet,
+    this.animalPen,
+  });
 
+  //药物过敏史
   List<String>? historyDrugAllergies;
+  //暴露史
   List<String>? historyExposure;
+  //疾病
   List<String>? historyPreviousDisease;
   String? historyPreviousDiseaseOther;
 
@@ -61,27 +84,41 @@ class PatientHealthInfoModel {
 
   ///既往疾病史-恶性肿瘤
   String? historyPreviousDiseaseMalignancy;
+  //手术
   String? operation;
+  //外伤
   String? trauma;
+  //输血
   String? transfusion;
+  //家族病史-父亲
   List<String>? father;
   String? fatherOther;
+  //家族病史-母亲
   List<String>? mother;
   String? motherOther;
+  //家族病史-兄弟姐妹
   List<String>? sibling;
   String? siblingOther;
+  //家族病史-子女
   List<String>? children;
   String? childrenOther;
+  //家族病史-遗传病史
   String? historyGenetic;
   String? historyGeneticName;
+  //残疾情况
   List<String>? disabilitySituation;
   String? disabilitySituationOther;
+  //厨房排风设施
   String? kitchenExhaustFacilities;
+  //燃气类型
   String? fuel;
   String? fuelOther;
+  //饮水
   String? drinkingWater;
   String? drinkingWaterOther;
+  //厕所
   String? toilet;
+  //禽兽栏
   String? animalPen;
   String? historyDrugAllergiesOther;
   VProfileTimeInputModel? operationOne;

+ 22 - 4
lib/pages/patient_info/state.dart

@@ -16,7 +16,7 @@ class PatientInfomationState {
   final RxString _name = RxString("");
   final Rx<CardTypeEnum> _cardType = Rx<CardTypeEnum>(CardTypeEnum.Identity);
   final RxString _cardNo = RxString("");
-  final Rx<GenderEnum?> _gender = Rx<GenderEnum?>(null);
+  final Rx<GenderEnum?> _gender = Rx<GenderEnum?>(GenderEnum.Male);
   final RxString _nation = RxString("");
   final Rx<DateTime?> _birthday = Rx<DateTime?>(null);
   final RxString _age = RxString("");
@@ -29,8 +29,8 @@ class PatientInfomationState {
   final RxString _createdDoctorName = RxString("");
   final RxString _contractedDoctorName = RxString("");
   final RxString _createTime = RxString("");
-  final Rx<PatientDetailInfoModel> _detailInfo =
-      Rx<PatientDetailInfoModel>(PatientDetailInfoModel());
+  final Rx<PatientDetailInfoModel> _detailInfo = Rx<PatientDetailInfoModel>(
+      PatientDetailInfoModel(permanentlyResideType: "1"));
   final RxBool _isSyncAddresses = RxBool(true);
   final RxString _villageCode = RxString('');
   final Rx<PatientDTO> _dto = Rx<PatientDTO>(
@@ -44,7 +44,25 @@ class PatientInfomationState {
 
   /// 健康信息
   final Rx<PatientHealthInfoModel> _healthInfo =
-      Rx<PatientHealthInfoModel>(PatientHealthInfoModel());
+      Rx<PatientHealthInfoModel>(PatientHealthInfoModel(
+    historyDrugAllergies: ["1"],
+    historyExposure: ["1"],
+    operation: "1",
+    trauma: "1",
+    transfusion: "1",
+    father: ["1"],
+    mother: ["1"],
+    sibling: ["1"],
+    children: ["1"],
+    historyGenetic: "1",
+    disabilitySituation: ["1"],
+    historyPreviousDisease: ["1"],
+    kitchenExhaustFacilities: "1",
+    fuel: "1",
+    drinkingWater: "1",
+    toilet: "1",
+    animalPen: "1",
+  ));
 
   ///服务区域
   String get villageCode => _villageCode.value;