|
@@ -22,10 +22,35 @@ class HealthInfomations extends GetView<PatientInfomationController> {
|
|
|
return VListFormCellGroup(
|
|
|
formTitle: "健康信息",
|
|
|
children: [
|
|
|
- Text(
|
|
|
- "过敏史",
|
|
|
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ "过敏史",
|
|
|
+ style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ Text(
|
|
|
+ "是否一键填充默认值",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Checkbox(
|
|
|
+ value: controller.state.selectedAllergyHistory,
|
|
|
+ onChanged: (v) {
|
|
|
+ controller.state.selectedAllergyHistory = v ?? false;
|
|
|
+ if (v ?? false) {
|
|
|
+ data.historyDrugAllergies = ["1"];
|
|
|
+ data.historyExposure = ["1"];
|
|
|
+ } else {
|
|
|
+ data.historyDrugAllergies = [];
|
|
|
+ data.historyExposure = [];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
+
|
|
|
VListFormCell(
|
|
|
label: "药物过敏史",
|
|
|
content: data.historyDrugAllergies?.map(
|
|
@@ -95,9 +120,37 @@ class HealthInfomations extends GetView<PatientInfomationController> {
|
|
|
},
|
|
|
endIcon: _buildEndIcon(),
|
|
|
),
|
|
|
- Text(
|
|
|
- "既往史",
|
|
|
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ "既往史",
|
|
|
+ style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ Text(
|
|
|
+ "是否一键填充默认值",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Checkbox(
|
|
|
+ value: controller.state.selectedAllMedicalHistory,
|
|
|
+ onChanged: (v) {
|
|
|
+ controller.state.selectedAllMedicalHistory = v ?? false;
|
|
|
+ if (v ?? false) {
|
|
|
+ data.operation = "1";
|
|
|
+ data.trauma = "1";
|
|
|
+ data.transfusion = "1";
|
|
|
+ data.historyPreviousDisease = ["1"];
|
|
|
+ } else {
|
|
|
+ data.operation = null;
|
|
|
+ data.trauma = null;
|
|
|
+ data.transfusion = null;
|
|
|
+ data.historyPreviousDisease = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
Column(
|
|
|
children: [
|
|
@@ -643,9 +696,37 @@ class HealthInfomations extends GetView<PatientInfomationController> {
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
- Text(
|
|
|
- "家族病史",
|
|
|
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ "家族病史",
|
|
|
+ style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ Text(
|
|
|
+ "是否一键填充默认值",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Checkbox(
|
|
|
+ value: controller.state.selectedAllFamilyMedicalHistory,
|
|
|
+ onChanged: (v) {
|
|
|
+ controller.state.selectedAllFamilyMedicalHistory = v ?? false;
|
|
|
+ if (v ?? false) {
|
|
|
+ data.father = ["1"];
|
|
|
+ data.mother = ["1"];
|
|
|
+ data.sibling = ["1"];
|
|
|
+ data.children = ["1"];
|
|
|
+ } else {
|
|
|
+ data.father = [];
|
|
|
+ data.mother = [];
|
|
|
+ data.sibling = [];
|
|
|
+ data.children = [];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
VListFormCell(
|
|
|
label: "父亲",
|
|
@@ -811,9 +892,33 @@ class HealthInfomations extends GetView<PatientInfomationController> {
|
|
|
},
|
|
|
endIcon: _buildEndIcon(),
|
|
|
),
|
|
|
- Text(
|
|
|
- "遗传病史",
|
|
|
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ "遗传病史",
|
|
|
+ style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ Text(
|
|
|
+ "是否一键填充默认值",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Checkbox(
|
|
|
+ value: controller.state.selectAllGeneticHistory,
|
|
|
+ onChanged: (v) {
|
|
|
+ controller.state.selectAllGeneticHistory = v ?? false;
|
|
|
+ if (v ?? false) {
|
|
|
+ data.historyGenetic = "1";
|
|
|
+ data.disabilitySituation = ["1"];
|
|
|
+ } else {
|
|
|
+ data.historyGenetic = null;
|
|
|
+ data.disabilitySituation = [];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
VListFormCell(
|
|
|
label: "遗传病史",
|
|
@@ -900,9 +1005,39 @@ class HealthInfomations extends GetView<PatientInfomationController> {
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
- Text(
|
|
|
- "生活环境",
|
|
|
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ "生活环境",
|
|
|
+ style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ Text(
|
|
|
+ "是否一键填充默认值",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 20,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Checkbox(
|
|
|
+ value: controller.state.livingEnvironment,
|
|
|
+ onChanged: (v) {
|
|
|
+ controller.state.livingEnvironment = v ?? false;
|
|
|
+ if (v ?? false) {
|
|
|
+ data.fuel = "1";
|
|
|
+ data.drinkingWater = "1";
|
|
|
+ data.toilet = "1";
|
|
|
+ data.animalPen = "1";
|
|
|
+ data.kitchenExhaustFacilities = "1";
|
|
|
+ } else {
|
|
|
+ data.fuel = null;
|
|
|
+ data.toilet = null;
|
|
|
+ data.animalPen = null;
|
|
|
+ data.kitchenExhaustFacilities = null;
|
|
|
+ data.drinkingWater = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
VListFormCell(
|
|
|
label: "厨房排风设施",
|