Commit 11b2dc5ca128501631dd0e89b9566ccdc165d65b

Authored by fangcheng
Exists in master

Merge branch 'master' of https://git.healthbaby.com.cn/jiangjiazhi/center

Showing 17 changed files

parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseTaiMapper.java View file @ 11b2dc5
  1 +package com.lyms.hospital.dao.diagnose;
  2 +
  3 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
  4 +import com.baomidou.mybatisplus.mapper.BaseMapper;
  5 +import org.springframework.stereotype.Repository;
  6 +import java.io.Serializable;
  7 +/**
  8 + * <p>
  9 + * Mapper接口
  10 + * </p>
  11 + *
  12 + * @author xujiahong
  13 + * @since 2017-05-02
  14 + */
  15 +@Repository
  16 +public interface DiagnoseTaiMapper extends BaseMapper<DiagnoseTai> {
  17 +
  18 + public Integer deleteLogicById(Serializable id);
  19 +
  20 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseTaiMapper.xml View file @ 11b2dc5
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.lyms.hospital.dao.diagnose.DiagnoseTaiMapper">
  4 +
  5 + <!-- 通用查询映射结果 -->
  6 + <resultMap id="BaseResultMap" type="com.lyms.hospital.entity.diagnose.DiagnoseTai">
  7 + <id column="ID" property="id" />
  8 + <result column="EXAM_ID" property="examId" />
  9 + <result column="HEART_RATE" property="heartRate" />
  10 + <result column="POSITION" property="position" />
  11 + <result column="FIRST_EXPOSE" property="firstExpose" />
  12 + <result column="IS_LINK" property="isLink" />
  13 + <result column="CREATE_TIME" property="createTime" />
  14 + <result column="IF_DEL" property="ifDel" />
  15 + </resultMap>
  16 +
  17 + <!-- 通用查询结果列 -->
  18 + <sql id="Base_Column_List">
  19 + ID AS id, EXAM_ID AS examId, HEART_RATE AS heartRate, POSITION AS position, FIRST_EXPOSE AS firstExpose, IS_LINK AS isLink, CREATE_TIME AS createTime, IF_DEL AS ifDel
  20 + </sql>
  21 +</mapper>
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/assist/DiagnoseAssit.java View file @ 11b2dc5
... ... @@ -18,9 +18,17 @@
18 18  
19 19 private static final long serialVersionUID = 1L;
20 20  
21   - //诊断类型:1婚前检查,2产检,3儿保检查
  21 + /**
  22 + * 诊断类型:【1婚前检查】,2产检,3儿保检查
  23 + */
22 24 public static final int DIAGNOSE_TYPE_MARRY = 1;
  25 + /**
  26 + * 诊断类型:1婚前检查,【2产检】,3儿保检查
  27 + */
23 28 public static final int DIAGNOSE_TYPE_BIRTH = 2;
  29 + /**
  30 + * 诊断类型:1婚前检查,2产检,【3儿保检查】
  31 + */
24 32 public static final int DIAGNOSE_TYPE_CHILD = 3;
25 33  
26 34 /**
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/diagnose/DiagnoseTai.java View file @ 11b2dc5
  1 +package com.lyms.hospital.entity.diagnose;
  2 +
  3 +import com.baomidou.mybatisplus.annotations.TableId;
  4 +import com.baomidou.mybatisplus.annotations.TableField;
  5 +import com.baomidou.mybatisplus.annotations.TableName;
  6 +import java.io.Serializable;
  7 +import java.util.Date;
  8 +
  9 +/**
  10 + * <p>
  11 + *
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-05-02
  16 + */
  17 +@TableName("DIAGNOSE_TAI")
  18 +public class DiagnoseTai implements Serializable {
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + /**
  23 + * ID(产检胎儿信息)
  24 + */
  25 + @TableId(value="ID")
  26 + private String id;
  27 + /**
  28 + * 产检ID
  29 + */
  30 + @TableField(value="EXAM_ID")
  31 + private String examId;
  32 + /**
  33 + * 胎心率
  34 + */
  35 + @TableField(value="HEART_RATE")
  36 + private String heartRate;
  37 + /**
  38 + * 胎方位(枚举)
  39 + */
  40 + @TableField(value="POSITION")
  41 + private String position;
  42 + /**
  43 + * 胎先露(枚举)1头2臂3足4肩
  44 + */
  45 + @TableField(value="FIRST_EXPOSE")
  46 + private String firstExpose;
  47 + /**
  48 + * 是否衔接:1已衔接,0未衔接
  49 + */
  50 + @TableField(value="IS_LINK")
  51 + private Integer isLink;
  52 + /**
  53 + * 创建时间
  54 + */
  55 + @TableField(value="CREATE_TIME")
  56 + private Date createTime;
  57 + /**
  58 + * 软删除标识:1删除,0正常
  59 + */
  60 + @TableField(value="IF_DEL")
  61 + private Integer ifDel;
  62 +
  63 +
  64 + public String getId() {
  65 + return id;
  66 + }
  67 +
  68 + public void setId(String id) {
  69 + this.id = id;
  70 + }
  71 +
  72 + public String getExamId() {
  73 + return examId;
  74 + }
  75 +
  76 + public void setExamId(String examId) {
  77 + this.examId = examId;
  78 + }
  79 +
  80 + public String getHeartRate() {
  81 + return heartRate;
  82 + }
  83 +
  84 + public void setHeartRate(String heartRate) {
  85 + this.heartRate = heartRate;
  86 + }
  87 +
  88 + public String getPosition() {
  89 + return position;
  90 + }
  91 +
  92 + public void setPosition(String position) {
  93 + this.position = position;
  94 + }
  95 +
  96 + public String getFirstExpose() {
  97 + return firstExpose;
  98 + }
  99 +
  100 + public void setFirstExpose(String firstExpose) {
  101 + this.firstExpose = firstExpose;
  102 + }
  103 +
  104 + public Integer getIsLink() {
  105 + return isLink;
  106 + }
  107 +
  108 + public void setIsLink(Integer isLink) {
  109 + this.isLink = isLink;
  110 + }
  111 +
  112 + public Date getCreateTime() {
  113 + return createTime;
  114 + }
  115 +
  116 + public void setCreateTime(Date createTime) {
  117 + this.createTime = createTime;
  118 + }
  119 +
  120 + public Integer getIfDel() {
  121 + return ifDel;
  122 + }
  123 +
  124 + public void setIfDel(Integer ifDel) {
  125 + this.ifDel = ifDel;
  126 + }
  127 +
  128 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/history/HistoryMaps.java View file @ 11b2dc5
... ... @@ -20,6 +20,13 @@
20 20 //关联目标类型:1产检、2妇女建档
21 21 public static final int TARGET_TYPE_EXAM = 1;
22 22 public static final int TARGET_TYPE_WOMAN_RECORD = 2;
  23 +
  24 + public HistoryMaps(){}
  25 +
  26 + public HistoryMaps(String sourceId,String otherTxt){
  27 + this.souceId = sourceId;
  28 + this.otherTxt = otherTxt;
  29 + }
23 30  
24 31 /**
25 32 *
parent/hospital.mac/src/main/java/com/lyms/hospital/entity/history/HistorySource.java View file @ 11b2dc5
... ... @@ -45,7 +45,7 @@
45 45 * 节点顺序
46 46 */
47 47 @TableField(value = "ITEM_ORDER")
48   - private String itemOrder;
  48 + private Integer itemOrder;
49 49 /**
50 50 * 节点层级,1,2,3(略)
51 51 */
52 52  
... ... @@ -100,11 +100,11 @@
100 100 this.type = type;
101 101 }
102 102  
103   - public String getItemOrder() {
  103 + public Integer getItemOrder() {
104 104 return itemOrder;
105 105 }
106 106  
107   - public void setItemOrder(String itemOrder) {
  107 + public void setItemOrder(Integer itemOrder) {
108 108 this.itemOrder = itemOrder;
109 109 }
110 110  
parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseInfoService.java View file @ 11b2dc5
... ... @@ -6,6 +6,7 @@
6 6 import com.lyms.base.common.entity.conf.HighriskConf;
7 7 import com.lyms.hospital.entity.assist.DiagnoseAssit;
8 8 import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
  9 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
9 10 import com.lyms.hospital.entity.history.HistoryMaps;
10 11 import com.lyms.web.service.BaseService;
11 12  
... ... @@ -37,7 +38,7 @@
37 38 * <li>修改人:
38 39 * <li>修改时间:
39 40 */
40   - public String saveFirstExam(DiagnoseInfo info,DiagnoseAssit assist,List<HistoryMaps> historyList);
  41 + public String saveFirstExam(DiagnoseInfo info,DiagnoseAssit assist,List<HistoryMaps> historyList,List<DiagnoseTai> taiList);
41 42  
42 43 /**
43 44 * <li>@Description:根据居民ID获取末次高危
parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseTaiService.java View file @ 11b2dc5
  1 +package com.lyms.hospital.service.diagnose;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
  7 +import com.lyms.web.service.BaseService;
  8 +
  9 +/**
  10 + * <p>
  11 + * 服务类
  12 + * </p>
  13 + *
  14 + * @author xujiahong
  15 + * @since 2017-05-02
  16 + */
  17 +public interface DiagnoseTaiService extends BaseService<DiagnoseTai> {
  18 +
  19 + /**
  20 + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除
  21 + * <li>@param id 删除主键id
  22 + * <li>@return 大于0修改成功,否则为失败
  23 + */
  24 + public Integer deleteLogicById(Serializable id);
  25 +
  26 + /**
  27 + * <li>@Description:删除后新增(用于新增或修改产检时,操作附属的胎儿信息)
  28 + * <li>@param list
  29 + * <li>创建人:xujiahong
  30 + * <li>创建时间:2017年5月2日
  31 + * <li>修改人:
  32 + * <li>修改时间:
  33 + */
  34 + public void deleteAndInsert(String examId,List<DiagnoseTai> list);
  35 +
  36 + /**
  37 + * <li>@Description:通过产检ID查询附属的胎儿信息列表
  38 + * <li>@param examId
  39 + * <li>@return
  40 + * <li>创建人:xujiahong
  41 + * <li>创建时间:2017年5月2日
  42 + * <li>修改人:
  43 + * <li>修改时间:
  44 + */
  45 + List<DiagnoseTai> getListByExamId(String examId);
  46 +
  47 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseInfoServiceImpl.java View file @ 11b2dc5
... ... @@ -14,9 +14,11 @@
14 14 import com.lyms.hospital.dao.diagnose.DiagnoseInfoMapper;
15 15 import com.lyms.hospital.entity.assist.DiagnoseAssit;
16 16 import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
  17 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
17 18 import com.lyms.hospital.entity.history.HistoryMaps;
18 19 import com.lyms.hospital.service.assist.DiagnoseAssitService;
19 20 import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
  21 +import com.lyms.hospital.service.diagnose.DiagnoseTaiService;
20 22 import com.lyms.hospital.service.history.HistoryMapsService;
21 23 import com.lyms.util.StrUtils;
22 24  
... ... @@ -37,6 +39,8 @@
37 39 private DiagnoseAssitService diagnoseAssitService;
38 40 @Autowired
39 41 private HistoryMapsService historyMapsService;
  42 + @Autowired
  43 + private DiagnoseTaiService diagnoseTaiService;
40 44  
41 45 public Integer deleteLogicById(Serializable id) {
42 46 return baseMapper.deleteLogicById(id);
43 47  
44 48  
45 49  
46 50  
47 51  
48 52  
49 53  
50 54  
... ... @@ -110,39 +114,42 @@
110 114  
111 115 @Override
112 116 @Transactional
113   - public String saveFirstExam(DiagnoseInfo info, DiagnoseAssit assist, List<HistoryMaps> historyList) {
  117 + public String saveFirstExam(DiagnoseInfo info, DiagnoseAssit assist, List<HistoryMaps> historyList,
  118 + List<DiagnoseTai> taiList) {
114 119 /*
115 120 * 基础验证
116 121 */
117   - if (info == null || assist == null || historyList == null) {
  122 + if (info == null || assist == null || historyList == null || taiList == null) {
118 123 return "参数缺失";
119 124 }
120   -
  125 +
121 126 /*
122   - * (1)保存产检基本信息 (2)批量保存病史信息 (3)保存辅助检查信息
  127 + * (1)保存产检基本信息 (2)保存辅助检查信息 (3)批量保存病史信息(4)批量保存产检胎儿信息
  128 + * (5)保存诊断信息 TODO
123 129 */
124   - if (StringUtils.isEmpty(info.getId())) {//新增
  130 + if (StringUtils.isEmpty(info.getId())) {// 新增
125 131 info.setId(StrUtils.uuid());
126   - insert(info);//新增产检基本信息
127   - //保存产检病史信息
128   - historyMapsService.insertHistoryMapsList(info.getId(), HistoryMaps.TARGET_TYPE_EXAM, historyList);
  132 + this.insert(info);// 新增产检基本信息
129 133 if (StringUtils.isEmpty(assist.getId())) {
130 134 assist.setId(StrUtils.uuid());
131 135 }
132 136 assist.setDiagnoseId(info.getId());
133   - assist.setDiagnoseType(DiagnoseAssit.DIAGNOSE_TYPE_BIRTH);//诊断类型:1婚前检查,2产检,3儿保检查
134   - diagnoseAssitService.insert(assist);//新增产检辅助检查
135   - } else {//修改
136   - updateById(info);
137   - historyMapsService.insertHistoryMapsList(info.getId(), HistoryMaps.TARGET_TYPE_EXAM, historyList);
  137 + assist.setDiagnoseType(DiagnoseAssit.DIAGNOSE_TYPE_BIRTH);// 诊断类型:1婚前检查,2产检,3儿保检查
  138 + diagnoseAssitService.insert(assist);// 新增产检辅助检查
  139 + } else {// 修改
  140 + this.updateById(info);
138 141 diagnoseAssitService.updateById(assist);
139 142 }
  143 + //批量保存病史信息
  144 + historyMapsService.deleteAndInsert(info.getId(), HistoryMaps.TARGET_TYPE_EXAM, historyList);
  145 + //批量保存产检胎儿信息
  146 + diagnoseTaiService.deleteAndInsert(info.getId(), taiList);
140 147 return "success";
141 148 }
142 149  
143   - @Override
144   - public List<HighriskConf> getLastHighrisk(Serializable personId) {
145   - return baseMapper.getLastHighrisk(personId);
146   - }
  150 + @Override
  151 + public List<HighriskConf> getLastHighrisk(Serializable personId) {
  152 + return baseMapper.getLastHighrisk(personId);
  153 + }
147 154 }
parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseTaiServiceImpl.java View file @ 11b2dc5
  1 +package com.lyms.hospital.service.diagnose.impl;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.Date;
  5 +import java.util.List;
  6 +
  7 +import org.apache.commons.collections.CollectionUtils;
  8 +import org.springframework.stereotype.Service;
  9 +import org.springframework.util.StringUtils;
  10 +
  11 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  12 +import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  13 +import com.lyms.hospital.dao.diagnose.DiagnoseTaiMapper;
  14 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
  15 +import com.lyms.hospital.enums.IfdelEnum;
  16 +import com.lyms.hospital.service.diagnose.DiagnoseTaiService;
  17 +import com.lyms.util.StrUtils;
  18 +
  19 +/**
  20 + * <p>
  21 + * 服务实现类
  22 + * </p>
  23 + *
  24 + * @author xujiahong
  25 + * @since 2017-05-02
  26 + */
  27 +@Service
  28 +public class DiagnoseTaiServiceImpl extends ServiceImpl<DiagnoseTaiMapper, DiagnoseTai> implements DiagnoseTaiService {
  29 +
  30 + public Integer deleteLogicById(Serializable id){
  31 + return baseMapper.deleteLogicById(id);
  32 + }
  33 +
  34 + @Override
  35 + public void deleteAndInsert(String examId, List<DiagnoseTai> list) {
  36 + if (StringUtils.isEmpty(examId) || CollectionUtils.isEmpty(list)) {
  37 + return;
  38 + }
  39 + //delete
  40 + EntityWrapper<DiagnoseTai> wrapper = new EntityWrapper<DiagnoseTai>();
  41 + wrapper.where("examId = {0}", examId);
  42 + delete(wrapper);
  43 + //insert
  44 + Date now = new Date();
  45 + for(int i=0;i<list.size();i++){//初始化系统信息
  46 + DiagnoseTai t = list.get(i);
  47 + t.setId(StrUtils.uuid());
  48 + t.setCreateTime(now);
  49 + t.setIfDel(IfdelEnum.NO.getStatus());
  50 + }
  51 + insertBatch(list);
  52 + }
  53 +
  54 + @Override
  55 + public List<DiagnoseTai> getListByExamId(String examId) {
  56 + EntityWrapper<DiagnoseTai> wrapper = new EntityWrapper<DiagnoseTai>();
  57 + wrapper.where("examId = {0}", examId);
  58 + return this.selectList(wrapper);
  59 + }
  60 +}
parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/HistoryMapsService.java View file @ 11b2dc5
... ... @@ -32,7 +32,19 @@
32 32 * <li>修改时间:2017年4月28日
33 33 *
34 34 */
35   - public void insertHistoryMapsList(String targetId,Integer targetType,List<HistoryMaps> list);
  35 + public void deleteAndInsert(String targetId,Integer targetType,List<HistoryMaps> list);
  36 +
  37 + /**
  38 + * <li>@Description:查询病史列表
  39 + * <li>@param targetId
  40 + * <li>@param targetType
  41 + * <li>@return
  42 + * <li>创建人:xujiahong
  43 + * <li>创建时间:2017年5月2日
  44 + * <li>修改人:
  45 + * <li>修改时间:
  46 + */
  47 + public List<HistoryMaps> getListByTarget(String targetId,Integer targetType);
36 48  
37 49 }
parent/hospital.mac/src/main/java/com/lyms/hospital/service/history/impl/HistoryMapsServiceImpl.java View file @ 11b2dc5
1 1 package com.lyms.hospital.service.history.impl;
2 2  
3   -import com.lyms.hospital.entity.history.HistoryMaps;
4   -import com.lyms.hospital.dao.history.HistoryMapsMapper;
5   -import com.lyms.hospital.service.history.HistoryMapsService;
6   -import com.baomidou.mybatisplus.mapper.EntityWrapper;
7   -import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +import org.apache.commons.collections.CollectionUtils;
  7 +import org.springframework.beans.factory.annotation.Autowired;
8 8 import org.springframework.stereotype.Service;
9 9 import org.springframework.transaction.annotation.Transactional;
10 10 import org.springframework.util.StringUtils;
11 11  
12   -import java.io.Serializable;
13   -import java.util.List;
  12 +import com.baomidou.mybatisplus.mapper.EntityWrapper;
  13 +import com.baomidou.mybatisplus.service.impl.ServiceImpl;
  14 +import com.lyms.hospital.dao.history.HistoryMapsMapper;
  15 +import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
  16 +import com.lyms.hospital.entity.history.HistoryMaps;
  17 +import com.lyms.hospital.entity.woman.WomanRecord;
  18 +import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
  19 +import com.lyms.hospital.service.history.HistoryMapsService;
  20 +import com.lyms.hospital.service.woman.WomanFetationRecordService;
  21 +import com.lyms.hospital.service.woman.WomanRecordService;
14 22  
15 23 /**
16 24 * <p>
17 25  
18 26  
19 27  
20 28  
... ... @@ -23,18 +31,62 @@
23 31 @Service
24 32 public class HistoryMapsServiceImpl extends ServiceImpl<HistoryMapsMapper, HistoryMaps> implements HistoryMapsService {
25 33  
  34 + @Autowired
  35 + private WomanFetationRecordService fetationService;
  36 + @Autowired
  37 + private DiagnoseInfoService infoService;
  38 + @Autowired
  39 + private WomanRecordService womanRecordService;
  40 +
26 41 public Integer deleteLogicById(Serializable id){
27 42 return baseMapper.deleteLogicById(id);
28 43 }
29 44  
30 45 @Override
31 46 @Transactional
32   - public void insertHistoryMapsList(String targetId,Integer targetType,List<HistoryMaps> list) {
33   - if(StringUtils.isEmpty(targetId) && targetType!=null){
  47 + public void deleteAndInsert(String targetId,Integer targetType,List<HistoryMaps> list) {
  48 + //validate
  49 + if(StringUtils.isEmpty(targetId) || targetType==null || CollectionUtils.isEmpty(list)){
34 50 return;
35 51 }
  52 + String womanPersonId = "";
  53 + if(targetType == HistoryMaps.TARGET_TYPE_EXAM){//孕妇产检
  54 + DiagnoseInfo info = infoService.selectById(targetId);
  55 + if(info!=null){
  56 + womanPersonId = info.getPersonId();
  57 + }else{
  58 + return;
  59 + }
  60 + }else if(targetType == HistoryMaps.TARGET_TYPE_WOMAN_RECORD){//妇女建档
  61 + WomanRecord record = womanRecordService.selectById(targetId);
  62 + if(record!=null){
  63 + womanPersonId = record.getPersonId();
  64 + }else{
  65 + return;
  66 + }
  67 + }else{
  68 + return;
  69 + }
  70 + if("".equals(womanPersonId)){
  71 + return;
  72 + }
  73 + //delete
36 74 delete(new EntityWrapper<HistoryMaps>().where("targetId={0}", targetId).and("targetType={0}", targetType));
  75 + //insert
  76 + for(int i=0;i<list.size();i++){
  77 + HistoryMaps hm = list.get(i);
  78 + hm.setWomanPersonId(womanPersonId);//女性居民ID
  79 + hm.setTargetId(targetId);
  80 + hm.setTargetType(targetType);
  81 + }
37 82 insertBatch(list);
38 83 }
  84 +
  85 + @Override
  86 + public List<HistoryMaps> getListByTarget(String targetId, Integer targetType) {
  87 + EntityWrapper<HistoryMaps> ew = new EntityWrapper<HistoryMaps>();
  88 + ew.where("targetId={0}", targetId).and("targetType={0}", targetType);
  89 + return this.selectList(ew);
  90 + }
39 91 }
parent/hospital.mac/src/main/java/com/lyms/hospital/service/woman/impl/WomanRecordServiceImpl.java View file @ 11b2dc5
... ... @@ -64,7 +64,7 @@
64 64 public boolean updatebuildRecord(WomanRecord womanRecord, List<HistoryMaps> HistoryMapsList) {
65 65 womanPersonService.insertOrUpdate(womanRecord);
66 66 //妇女建档插入病史信息
67   - historyMapsService.insertHistoryMapsList(womanRecord.getId(),HistoryMaps.TARGET_TYPE_WOMAN_RECORD, HistoryMapsList);
  67 + historyMapsService.deleteAndInsert(womanRecord.getId(),HistoryMaps.TARGET_TYPE_WOMAN_RECORD, HistoryMapsList);
68 68 return updateById(womanRecord);
69 69 }
70 70  
parent/hospital.web/src/main/java/com/lyms/hospital/controller/woman/WomanExamController.java View file @ 11b2dc5
... ... @@ -16,13 +16,15 @@
16 16  
17 17 import com.lyms.hospital.entity.assist.DiagnoseAssit;
18 18 import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
  19 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
19 20 import com.lyms.hospital.entity.history.HistoryMaps;
20 21 import com.lyms.hospital.entity.woman.WomanFetationRecord;
21 22 import com.lyms.hospital.request.exam.ExamAddRequest;
22   -import com.lyms.hospital.response.keymap.DiagnoseAssistKeymap;
23   -import com.lyms.hospital.response.keymap.WomanExamKeymap;
  23 +import com.lyms.hospital.request.exam.ExamAddRequestWrapper;
24 24 import com.lyms.hospital.service.assist.DiagnoseAssitService;
25 25 import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
  26 +import com.lyms.hospital.service.diagnose.DiagnoseTaiService;
  27 +import com.lyms.hospital.service.history.HistoryMapsService;
26 28 import com.lyms.hospital.service.woman.WomanFetationRecordService;
27 29 import com.lyms.hospital.util.HospitalUtil;
28 30 import com.lyms.hospital.util.trans.XjhMapUtil;
... ... @@ -33,10 +35,9 @@
33 35 /**
34 36 * 孕妇产检 前端控制器<br>
35 37 *
36   - * [--]依据cardNo或vcCardNo查询孕妇产检记录
37   - * [--]保存初诊数据
38   - * 保存复诊数据
39   - * 查询某条记录的详细信息,用于表单填写
  38 + * [--]依据cardNo或vcCardNo查询孕妇产检记录
  39 + * [--]保存初诊数据
  40 + * 保存复诊数据 查询某条记录的详细信息,用于表单填写
40 41 *
41 42 * @author xujiahong
42 43 *
... ... @@ -51,7 +52,11 @@
51 52 private DiagnoseInfoService infoService;
52 53 @Autowired
53 54 private DiagnoseAssitService assistService;
54   -
  55 + @Autowired
  56 + private DiagnoseTaiService diagnoseTaiService;
  57 + @Autowired
  58 + private HistoryMapsService historyMapsService;
  59 +
55 60 /**
56 61 * <li>@Description:查询某条记录的详细信息,用于表单填写
57 62 * <li>@param id
58 63  
59 64  
60 65  
... ... @@ -64,20 +69,21 @@
64 69 */
65 70 @RequestMapping(value = "/antex", method = RequestMethod.GET)
66 71 @ResponseBody
67   - public AjaxResult selectExamForm(String id,Integer type){
  72 + public AjaxResult selectExamForm(String id, Integer type) {
68 73 /*
69   - * 产检基础信息
70   - * 产检辅助信息
71   - * 病史列表
72   - * 胎儿列表
73   - * 诊断列表
  74 + * 产检基础信息、产检辅助信息、病史列表、胎儿列表、诊断列表 TODO
74 75 */
75   - DiagnoseInfo info = infoService.selectById(id);//产检基础信息
76   -
77   -
  76 + DiagnoseInfo info = infoService.selectById(id);// 产检基础信息
  77 + if (info == null) {
  78 + return AjaxResult.returnSuccess();
  79 + }
  80 + DiagnoseAssit assist = assistService.getDetailByDiagnoseInfo(info.getId(), DiagnoseAssit.DIAGNOSE_TYPE_BIRTH);// 诊断类型:1婚前检查,【2产检】,3儿保检查
  81 + List<HistoryMaps> historyList = historyMapsService.getListByTarget(info.getId(), HistoryMaps.TARGET_TYPE_EXAM);// 关联目标类型:1产检、2妇女建档
  82 + List<DiagnoseTai> taiList = diagnoseTaiService.getListByExamId(info.getId());
  83 +
78 84 return AjaxResult.returnFail();
79 85 }
80   -
  86 +
81 87 /**
82 88 * <li>@Description:保存初诊数据
83 89 * <li>@param request
84 90  
85 91  
86 92  
87 93  
... ... @@ -87,62 +93,28 @@
87 93 * <li>修改人:
88 94 * <li>修改时间:
89 95 */
90   - @SuppressWarnings({ "unchecked", "rawtypes" })
91 96 @RequestMapping(value = "/antex", method = RequestMethod.POST)
92 97 @ResponseBody
93   - public AjaxResult saveFirstExam(@RequestBody ExamAddRequest request){
  98 + public AjaxResult saveFirstExam(@RequestBody ExamAddRequest request) {
94 99 /*
95   - * (1)保存产检基本信息
96   - * (2)批量保存病史信息
97   - * (3)保存辅助检查信息
98   - * 多个胎儿信息 TODO
99   - * 多个诊断信息 TODO
  100 + * (1)保存产检基本信息 (2)保存辅助检查信息 (3)批量保存病史信息(4)多个胎儿信息(5) 多个诊断信息 TODO
100 101 */
101   - /*
102   - * 对象转换
103   - */
104   - Map<String,Object> infoMap = XjhMapUtil.transBean2FormatAliasMap(
105   - request, XjhMapUtil.getKeyMap(WomanExamKeymap.original, WomanExamKeymap.alias)
106   - );
107   - Map<String,Object> assistMap = XjhMapUtil.transBean2FormatAliasMap(
108   - request, XjhMapUtil.getKeyMap(DiagnoseAssistKeymap.original, DiagnoseAssistKeymap.alias)
109   - );
110   - DiagnoseInfo info = (DiagnoseInfo) XjhMapUtil.transMap2FormatBean(infoMap, new DiagnoseInfo());
111   - info.setWomanId(request.getParentId());//孕妇档案ID
112   - info.setPersonId(request.getPid());//女性居民ID
113   - //血压
114   - Map bp = request.getBp();
115   - if(bp!=null){
116   - String[] original = {"ssy","szy"};
117   - String[] alias = {"bloodShrink","bloodDiastole",};
118   - info = (DiagnoseInfo) XjhMapUtil.transMap2AliasBean(bp, info,
119   - XjhMapUtil.getKeyMap(original, alias));
120   - }
121   -
122   - DiagnoseAssit assist = (DiagnoseAssit) XjhMapUtil.transMap2FormatBean(assistMap,new DiagnoseAssit());
123   - //其他老版本结构数据补录
124   - //阴道分泌物
125   - Map ydfmw = request.getYdfmw();
126   - if(ydfmw!=null){
127   - String[] original = {"ydqjd","dc","jsjmj","qt","qtText"};
128   - String[] alias = {"vaginaYdqjd","vaginaDc","vaginaJsjmj","vaginaOther","vaginaOtherTxt"};
129   - assist = (DiagnoseAssit) XjhMapUtil.transMap2AliasBean(ydfmw, assist,
130   - XjhMapUtil.getKeyMap(original, alias));
131   - }
132   -
133   -
134   -
135   - List<HistoryMaps> historyList = request.getHistoryList();
136   - //保存初诊信息CollectionUtil
137   - String result = infoService.saveFirstExam(info, assist, historyList);
138   - return "success".equals(result)?AjaxResult.returnSuccess():AjaxResult.returnFail(result);
  102 + // 对象转换
  103 + ExamAddRequestWrapper wrapper = new ExamAddRequestWrapper(request);
  104 + DiagnoseInfo info = wrapper.getDiagnoseInfo();
  105 + DiagnoseAssit assist = wrapper.getDiagnoseAssit();
  106 + List<HistoryMaps> historyList = wrapper.getHistoryMapsList();// 病史信息
  107 + List<DiagnoseTai> taiList = wrapper.getDiagnoseTaiList(); // 胎儿信息
  108 + // 保存初诊信息
  109 + String result = infoService.saveFirstExam(info, assist, historyList, taiList);
  110 + return "success".equals(result) ? AjaxResult.returnSuccess() : AjaxResult.returnFail(result);
139 111 }
140 112  
141 113 /**
142 114 * <li>@Description:依据cardNo或vcCardNo查询孕妇产检记录
143 115 * <li>@param cardNo 证件号
144 116 * <li>@param vcCardNo 就诊卡号
145   - * <li>@return
  117 + * <li>@returns
146 118 * <li>创建人:xujiahong
147 119 * <li>创建时间:2017年4月25日
148 120 * <li>修改人:
149 121  
150 122  
151 123  
152 124  
153 125  
154 126  
155 127  
156 128  
157 129  
158 130  
159 131  
160 132  
161 133  
... ... @@ -150,66 +122,65 @@
150 122 */
151 123 @RequestMapping(value = "/antexmanage", method = RequestMethod.GET)
152 124 @ResponseBody
153   - public AjaxResult selectExamHistory(String cardNo,String vcCardNo,String orgId){//orgId或来自token
  125 + public AjaxResult selectExamHistory(String cardNo, String vcCardNo, String orgId) {// orgId或来自token
154 126 /*
155   - * (1)孕妇档案信息(通过证件号或就诊卡号查询)-根据产检券查询 TODO
156   - * (2)高危因素列表 TODO
157   - * (3)产检记录列表 TODO
  127 + * (1)孕妇档案信息(通过证件号或就诊卡号查询)-根据产检券查询 TODO (2)高危因素列表 TODO (3)产检记录列表 TODO
158 128 *
159 129 */
160   - //基本验证
161   - if(StringUtils.isEmpty(orgId)){
  130 + // 基本验证
  131 + if (StringUtils.isEmpty(orgId)) {
162 132 return AjaxResult.returnFail("入参错误:医院ID为空");
163 133 }
164   - if(StringUtils.isEmpty(cardNo) && StringUtils.isEmpty(vcCardNo)){
  134 + if (StringUtils.isEmpty(cardNo) && StringUtils.isEmpty(vcCardNo)) {
165 135 return AjaxResult.returnFail("入参错误:查询条件为空");
166 136 }
167   - //(1)孕妇档案信息(通过证件号或就诊卡号查询)
  137 + // (1)孕妇档案信息(通过证件号或就诊卡号查询)
168 138 WomanFetationRecord query = new WomanFetationRecord();
169   - query.setHostpitalId(orgId);//医院ID
  139 + query.setHostpitalId(orgId);// 医院ID
170 140 WomanFetationRecord dbFetationRecord = null;
171   -
172   - //证件号不为空,则通过证件号查询
173   - if(!StringUtils.isEmpty(cardNo)){
  141 +
  142 + // 证件号不为空,则通过证件号查询
  143 + if (!StringUtils.isEmpty(cardNo)) {
174 144 query.setBasePapersNumber(cardNo);
175 145 dbFetationRecord = fetationService.queryEffectiveOne(query);
176 146 }
177   - //上述查询未执行或没结果,且就诊卡号不为空,则通过就诊卡号查询
178   - if(dbFetationRecord==null && !StringUtils.isEmpty(vcCardNo)){
  147 + // 上述查询未执行或没结果,且就诊卡号不为空,则通过就诊卡号查询
  148 + if (dbFetationRecord == null && !StringUtils.isEmpty(vcCardNo)) {
179 149 query.setBasePapersNumber(null);
180 150 query.setContactWomanWay(vcCardNo);
181 151 dbFetationRecord = fetationService.queryEffectiveOne(query);
182 152 }
183   - //未查询到孕妇建档信息
184   - if(dbFetationRecord==null){
  153 + // 未查询到孕妇建档信息
  154 + if (dbFetationRecord == null) {
185 155 return AjaxResult.returnFail("未查询到孕妇建档信息");
186 156 }
187   - //(2)高危因素列表 TODO
188   - List<Map<String,Object>> riskFactor = new ArrayList<>();
189   - //(3)产检记录列表 TODO (此处需要查询当前产程中本院和外院的所有产检记录(包括分布建档的),之后对接方承)
190   - List<Map<String,Object>> data = new ArrayList<>(); //data 系前端指定名称
191   - //(4)组装返回对象
192   - Map<String,Object> dataMap = new HashMap<>();
  157 + // (2)高危因素列表 TODO
  158 + List<Map<String, Object>> riskFactor = new ArrayList<>();
  159 + // (3)产检记录列表 TODO (此处需要查询当前产程中本院和外院的所有产检记录(包括分布建档的),之后对接方承)
  160 + List<Map<String, Object>> data = new ArrayList<>(); // data 系前端指定名称
  161 + // (4)组装返回对象
  162 + Map<String, Object> dataMap = new HashMap<>();
193 163 dataMap.put("id", dbFetationRecord.getId());
194 164 dataMap.put("pid", dbFetationRecord.getWomanPersonId());
195 165 dataMap.put("name", dbFetationRecord.getBaseWomanName());
196 166 dataMap.put("age", DateUtil.getAge(dbFetationRecord.getBaseWomanBirth()));
197   - //根据“纠正末次月经”计算孕周
  167 + // 根据“纠正末次月经”计算孕周
198 168 dataMap.put("dueWeek", HospitalUtil.getPregnantWeek(dbFetationRecord.getHospitalCorrectLastMenstruation()));
199 169 dataMap.put("yChanQi", dbFetationRecord.getHospitalExpectedDateStr());
200 170 dataMap.put("phone", dbFetationRecord.getContactWomanWay());
201 171 dataMap.put("riskScore", "15");// TODO 高危评分
202 172 dataMap.put("remarks", dbFetationRecord.getHospitalRecordRemark());
203 173 dataMap.put("lastMenses", dbFetationRecord.getHospitalLastMenstruationStr());
204   - dataMap.put("buildTime", dbFetationRecord.getHospitalRecordDateStr());//建档日期
205   - dataMap.put("lastBuildTime", dbFetationRecord.getHospitalRecordDateStr());// TODO ?
  174 + dataMap.put("buildTime", dbFetationRecord.getHospitalRecordDateStr());// 建档日期
  175 + dataMap.put("lastBuildTime", dbFetationRecord.getHospitalRecordDateStr());// TODO
  176 + // ?
206 177 dataMap.put("birth", dbFetationRecord.getBaseWomanBirthStr());
207 178 dataMap.put("tireNumber1", "1");// TODO ?
208 179 dataMap.put("cardNo", dbFetationRecord.getBasePapersNumber());
209 180 dataMap.put("vcCardNo", dbFetationRecord.getHospitalPatientCard());
210   - dataMap.put("isSieve", "0");//TODO?
  181 + dataMap.put("isSieve", "0");// TODO?
211 182 dataMap.put("isH", "0");// TODO?
212   -
  183 +
213 184 dataMap.put("riskFactor", riskFactor);
214 185 dataMap.put("data", data);
215 186 dataMap.put("now", DateUtil.getyyyy_MM_dd_hms(new Date()));
parent/hospital.web/src/main/java/com/lyms/hospital/request/exam/ExamAddRequest.java View file @ 11b2dc5
Diff suppressed. Click to show
... ... @@ -5,6 +5,7 @@
5 5  
6 6 import org.hibernate.validator.constraints.NotEmpty;
7 7  
  8 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
8 9 import com.lyms.hospital.entity.history.HistoryMaps;
9 10 import com.lyms.hospital.util.Form;
10 11 import com.lyms.hospital.util.FormParam;
11 12  
12 13  
13 14  
14 15  
15 16  
16 17  
17 18  
18 19  
19 20  
20 21  
21 22  
22 23  
... ... @@ -13,207 +14,230 @@
13 14 *
14 15 * 产前检查初诊
15 16 *
16   - * Created by Administrator on 2016/6/20 0020.
17   - * import from ancient project by xujiahong on 2017-04-26 10:54:35
  17 + * Created by Administrator on 2016/6/20 0020. import from ancient project by
  18 + * xujiahong on 2017-04-26 10:54:35
18 19 */
19 20 @Form
20   -public class ExamAddRequest{
21   - @FormParam
22   - @NotEmpty(message = "孕妇id不能为空")
23   - private String parentId;
  21 +public class ExamAddRequest {
  22 + @FormParam
  23 + @NotEmpty(message = "孕妇id不能为空")
  24 + private String parentId;
24 25  
25   - private String barCode;
  26 + private String barCode;
26 27  
27   - private String id;
  28 + private String id;
28 29  
29   - private String pid;
30   - //预产期
31   - private String dueDate;
32   - //末次月经
33   - private String lastMenses;
  30 + private String pid;
  31 + // 预产期
  32 + private String dueDate;
  33 + // 末次月经
  34 + private String lastMenses;
34 35  
35   - // 既往史
36   - private Map pastHistory ;
37   - // 家族史
38   - private Map familyHistory ;
39   - //个人史
40   - private Map personalHistory;
41   - //疫苗接种史
42   - private Map ymjzHistory ;
43   - //药物过敏史
44   - private Map ywgmHistory ;
45   - //妇科手术史
46   - private Map fksxHistory ;
47   - // 叶酸服用
48   - private Map ysfyHistory ;
49   - //本次妊娠情况
50   - private Map cestationInfo;
51   - //丈夫健康情况
52   - private Map hHealthInfo;
  36 +// // 既往史
  37 +// private Map pastHistory;
  38 +// // 家族史
  39 +// private Map familyHistory;
  40 +// // 个人史
  41 +// private Map personalHistory;
  42 +// // 疫苗接种史
  43 +// private Map ymjzHistory;
  44 +// // 药物过敏史
  45 +// private Map ywgmHistory;
  46 +// // 妇科手术史
  47 +// private Map fksxHistory;
  48 +// // 叶酸服用
  49 +// private Map ysfyHistory;
  50 +// // 本次妊娠情况
  51 +// private Map cestationInfo;
  52 +// // 丈夫健康情况
  53 +// private Map hHealthInfo;
  54 +
  55 + // 既往史
  56 + private Map<String,Object> JWS;
  57 + // 家族史
  58 + private Map<String,Object> JZS;
  59 + // 个人史
  60 + private Map<String,Object> GRS;
  61 + // 疫苗接种史
  62 + private Map<String,Object> YMJZS;
  63 + // 药物过敏史
  64 + private Map<String,Object> YWGMS;
  65 + // 妇科手术史
  66 + private Map<String,Object> FKSSS;
  67 + // 叶酸服用
  68 + private Map<String,Object> YSFY;
  69 + // 本次妊娠情况
  70 + private Map<String,Object> BCRSQK;
  71 + // 丈夫健康情况
  72 + private Map<String,Object> ZFJKQK;
53 73  
54   - //孕次
55   - private Integer pregnancyTimes;
56   - // 产次
57   - private Integer prodTime;
58   - // 顺产
59   - private Integer delivery;
60   - //刨宫产
61   - private Integer planedProd;
62   - //流产
63   - private Integer abortion;
64   - //死胎
65   - private Integer stillbirth;
66   - //死产
67   - private Integer stillChan ;
68   - //新生儿死亡
69   - private Integer neoDeath;
70   - //出生缺陷
71   - private Integer birthDefect;
72   - //身高
73   - private String height;
74   - //体重
75   - private String weight ;
76   - //孕前体重
77   - private String yqWeight ;
78   - //体重指数
79   - private String baricIndex;
80   - //心脏
81   - private String heart;
82   - //肺部
83   - private String lungs;
84   - //外阴
85   - private String vulva;
86   - //阴道
87   - private String vagina;
88   - // 宫颈
89   - private String cervical;
90   - //子宫
91   - private String uterus;
92   - //附件
93   - private String fujian;
94   - // 宫高
95   - private String gonggao;
96   - //腹围
97   - private String fuwei;
98   - //胎数
99   - private String tireNumber1;
100   - //血压
101   - private Map bp;
  74 + // 孕次
  75 + private Integer pregnancyTimes;
  76 + // 产次
  77 + private Integer prodTime;
  78 + // 顺产
  79 + private Integer delivery;
  80 + // 刨宫产
  81 + private Integer planedProd;
  82 + // 流产
  83 + private Integer abortion;
  84 + // 死胎
  85 + private Integer stillbirth;
  86 + // 死产
  87 + private Integer stillChan;
  88 + // 新生儿死亡
  89 + private Integer neoDeath;
  90 + // 出生缺陷
  91 + private Integer birthDefect;
  92 + // 身高
  93 + private String height;
  94 + // 体重
  95 + private String weight;
  96 + // 孕前体重
  97 + private String yqWeight;
  98 + // 体重指数
  99 + private String baricIndex;
  100 + // 心脏
  101 + private String heart;
  102 + // 肺部
  103 + private String lungs;
  104 + // 外阴
  105 + private String vulva;
  106 + // 阴道
  107 + private String vagina;
  108 + // 宫颈
  109 + private String cervical;
  110 + // 子宫
  111 + private String uterus;
  112 + // 附件
  113 + private String fujian;
  114 + // 宫高
  115 + private String gonggao;
  116 + // 腹围
  117 + private String fuwei;
  118 + // 胎数
  119 + private String tireNumber1;
  120 + // 血压
  121 + private Map bp;
102 122  
  123 + private String bg;
103 124  
104   - private String bg;
  125 + private List placentas;
  126 + // //心率
  127 + // private double heartRate;
  128 + // //胎方位
  129 + // private String fetalPosition;
  130 + // //胎先露
  131 + // private String fetalPresentation;
  132 + // // 衔接
  133 + // private String join;
  134 + // 高危因素
  135 + private List highrisk;
  136 + // 高危评分
  137 + private String highriskSocre;
  138 + // 其他高危
  139 + private Map otherHighRisk;
  140 + // 诊断
  141 + private List diagnosis;
  142 + // 处理意见
  143 + private String treatOpinion;
  144 + // 指导意见
  145 + private String guide;
  146 + // 产检 医生
  147 + @NotEmpty(message = "产检医生不能为空")
  148 + private String prodDoctor;
  149 + // 产检日期
  150 + private String checkTime;
  151 + // 下次产检时间
  152 + private String nextCheckTime;
  153 + // 前端计算出来的孕周
  154 + private String cDueWeek;
105 155  
106   - private List placentas;
107   -// //心率
108   -// private double heartRate;
109   -// //胎方位
110   -// private String fetalPosition;
111   -// //胎先露
112   -// private String fetalPresentation;
113   -// // 衔接
114   -// private String join;
115   - //高危因素
116   - private List highrisk ;
117   - //高危评分
118   - private String highriskSocre;
119   - // 其他高危
120   - private Map otherHighRisk;
121   - // 诊断
122   - private List diagnosis;
123   - //处理意见
124   - private String treatOpinion;
125   - //指导意见
126   - private String guide;
127   - //产检 医生
128   - @NotEmpty(message = "产检医生不能为空")
129   - private String prodDoctor;
130   - //产检日期
131   - private String checkTime;
132   - //下次产检时间
133   - private String nextCheckTime;
134   - //前端计算出来的孕周
135   - private String cDueWeek;
  156 + /** 辅助检查结果录入 **/
  157 + // 血红蛋白值
  158 + private String xhdb;
  159 + // 白细胞计数值
  160 + private String bxbjs;
  161 + // 血小板
  162 + private String platelet;
  163 + // 血常规其他
  164 + private String chgOther;
  165 + // 尿蛋白
  166 + private String ndb;
  167 + // 尿糖
  168 + private String nt;
  169 + // 尿同体
  170 + private String urineKetone;
  171 + // 尿潜血
  172 + private String bld;
  173 + // 尿常规其他
  174 + private String ncgOther;
  175 + private String abo;
  176 + private String rh;
  177 + // 血糖
  178 + private String bloodSugar;
  179 + // B超
  180 + private String bChao;
  181 + // 胎数
  182 + private String tireNumber;
  183 + // 血清谷丙转氨酶
  184 + private String xqgbzam;
  185 + // 血清谷草转氨酶
  186 + private String xqgczam;
  187 + // 白蛋白
  188 + private String albumin;
  189 + // 总胆红素
  190 + private String totalBilirubin;
  191 + // 结合胆红素
  192 + private String jhBilirubin;
  193 + // 乙肝表面抗原
  194 + private String ygbmky;
  195 + // 乙肝表面抗体
  196 + private String ygbmkt;
  197 + // 乙肝e抗原
  198 + private String ygeky;
  199 + // 乙肝e抗体
  200 + private String ygekt;
  201 + // 乙肝核心抗体
  202 + private String yghxkt;
  203 + // 血清肌
  204 + private String xqjq;
  205 + // 血尿素氮
  206 + private String xnsd;
  207 + // 梅毒血清实验
  208 + private String mdxqsy;
  209 + // hit抗体检测
  210 + private String hivkt;
  211 + // 阴道分泌物
  212 + private Map ydfmw;
  213 + // 阴道清洁度
  214 + private String ydqjd;
  215 + // 实验结果
  216 + private String syjg;
136 217  
137   - /**辅助检查结果录入 **/
138   - //血红蛋白值
139   - private String xhdb;
140   - //白细胞计数值
141   - private String bxbjs ;
142   - // 血小板
143   - private String platelet ;
144   - //血常规其他
145   - private String chgOther;
146   - //尿蛋白
147   - private String ndb;
148   - //尿糖
149   - private String nt;
150   - //尿同体
151   - private String urineKetone;
152   - //尿潜血
153   - private String bld ;
154   - //尿常规其他
155   - private String ncgOther;
156   - private String abo;
157   - private String rh;
158   - // 血糖
159   - private String bloodSugar;
160   - // B超
161   - private String bChao ;
162   - // 胎数
163   - private String tireNumber ;
164   - //血清谷丙转氨酶
165   - private String xqgbzam ;
166   - //血清谷草转氨酶
167   - private String xqgczam ;
168   - //白蛋白
169   - private String albumin ;
170   - //总胆红素
171   - private String totalBilirubin;
172   - //结合胆红素
173   - private String jhBilirubin ;
174   - // 乙肝表面抗原
175   - private String ygbmky ;
176   - //乙肝表面抗体
177   - private String ygbmkt ;
178   - //乙肝e抗原
179   - private String ygeky ;
180   - // 乙肝e抗体
181   - private String ygekt ;
182   - // 乙肝核心抗体
183   - private String yghxkt ;
184   - //血清肌
185   - private String xqjq ;
186   - //血尿素氮
187   - private String xnsd ;
188   - //梅毒血清实验
189   - private String mdxqsy;
190   - //hit抗体检测
191   - private String hivkt;
192   - //阴道分泌物
193   - private Map ydfmw;
194   - //阴道清洁度
195   - private String ydqjd;
196   - //实验结果
197   - private String syjg;
  218 + // 自然流产
  219 + private Integer abortionZR;
  220 + // 人工流产
  221 + private Integer abortionRG;
198 222  
199   - //自然流产
200   - private Integer abortionZR;
201   - //人工流产
202   - private Integer abortionRG;
203   -
204   -
205   -
206   - /**
207   - * 病史列表
208   - */
209   - private List<HistoryMaps> historyList;
210   -
211   -
212   -
213   -
  223 + /**
  224 + * 病史列表
  225 + */
  226 + private List<HistoryMaps> historyList;
  227 + /**
  228 + * 胎儿列表
  229 + */
  230 + private List<DiagnoseTai> taiList;
214 231  
215   -
216   - public List<HistoryMaps> getHistoryList() {
  232 + public List<DiagnoseTai> getTaiList() {
  233 + return taiList;
  234 + }
  235 +
  236 + public void setTaiList(List<DiagnoseTai> taiList) {
  237 + this.taiList = taiList;
  238 + }
  239 +
  240 + public List<HistoryMaps> getHistoryList() {
217 241 return historyList;
218 242 }
219 243  
220 244  
221 245  
222 246  
223 247  
224 248  
225 249  
226 250  
227 251  
228 252  
229 253  
230 254  
231 255  
232 256  
233 257  
234 258  
235 259  
236 260  
237 261  
238 262  
239 263  
240 264  
241 265  
242 266  
243 267  
244 268  
245 269  
246 270  
247 271  
248 272  
249 273  
250 274  
251 275  
252 276  
253 277  
254 278  
255 279  
256 280  
257 281  
258 282  
259 283  
260 284  
261 285  
262 286  
263 287  
264 288  
265 289  
266 290  
267 291  
268 292  
269 293  
270 294  
271 295  
272 296  
273 297  
274 298  
275 299  
276 300  
277 301  
278 302  
279 303  
280 304  
281 305  
282 306  
283 307  
284 308  
285 309  
286 310  
287 311  
288 312  
289 313  
290 314  
291 315  
292 316  
293 317  
294 318  
295 319  
296 320  
297 321  
298 322  
299 323  
300 324  
301 325  
302 326  
303 327  
304 328  
305 329  
306 330  
307 331  
308 332  
309 333  
310 334  
311 335  
312 336  
313 337  
314 338  
315 339  
316 340  
317 341  
318 342  
319 343  
320 344  
321 345  
322 346  
323 347  
324 348  
325 349  
326 350  
327 351  
328 352  
329 353  
330 354  
331 355  
332 356  
333 357  
334 358  
335 359  
336 360  
337 361  
338 362  
339 363  
340 364  
341 365  
342 366  
343 367  
344 368  
345 369  
346 370  
347 371  
348 372  
349 373  
350 374  
351 375  
352 376  
353 377  
354 378  
355 379  
356 380  
357 381  
358 382  
359 383  
360 384  
361 385  
362 386  
363 387  
364 388  
365 389  
366 390  
367 391  
368 392  
369 393  
370 394  
371 395  
372 396  
373 397  
374 398  
375 399  
376 400  
377 401  
378 402  
379 403  
380 404  
381 405  
382 406  
383 407  
384 408  
385 409  
386 410  
... ... @@ -222,682 +246,676 @@
222 246 }
223 247  
224 248 public String getBarCode() {
225   - return barCode;
226   - }
  249 + return barCode;
  250 + }
227 251  
228   - public void setBarCode(String barCode) {
229   - this.barCode = barCode;
230   - }
  252 + public void setBarCode(String barCode) {
  253 + this.barCode = barCode;
  254 + }
231 255  
232   - public Integer getAbortionZR() {
233   - return abortionZR;
234   - }
  256 + public Integer getAbortionZR() {
  257 + return abortionZR;
  258 + }
235 259  
236   - public void setAbortionZR(Integer abortionZR) {
237   - this.abortionZR = abortionZR;
238   - }
  260 + public void setAbortionZR(Integer abortionZR) {
  261 + this.abortionZR = abortionZR;
  262 + }
239 263  
240   - public Integer getAbortionRG() {
241   - return abortionRG;
242   - }
  264 + public Integer getAbortionRG() {
  265 + return abortionRG;
  266 + }
243 267  
244   - public void setAbortionRG(Integer abortionRG) {
245   - this.abortionRG = abortionRG;
246   - }
  268 + public void setAbortionRG(Integer abortionRG) {
  269 + this.abortionRG = abortionRG;
  270 + }
247 271  
248   - public String getBg() {
249   - return bg;
250   - }
  272 + public String getBg() {
  273 + return bg;
  274 + }
251 275  
252   - public void setBg(String bg) {
253   - this.bg = bg;
254   - }
  276 + public void setBg(String bg) {
  277 + this.bg = bg;
  278 + }
255 279  
256   - public Map getBp() {
257   - return bp;
258   - }
  280 + public Map getBp() {
  281 + return bp;
  282 + }
259 283  
260   - public void setBp(Map bp) {
261   - this.bp = bp;
262   - }
  284 + public void setBp(Map bp) {
  285 + this.bp = bp;
  286 + }
263 287  
264   - public String getAbo() {
265   - return abo;
266   - }
  288 + public String getAbo() {
  289 + return abo;
  290 + }
267 291  
268   - public void setAbo(String abo) {
269   - this.abo = abo;
270   - }
  292 + public void setAbo(String abo) {
  293 + this.abo = abo;
  294 + }
271 295  
272   - public String getAlbumin() {
273   - return albumin;
274   - }
  296 + public String getAlbumin() {
  297 + return albumin;
  298 + }
275 299  
276   - public void setAlbumin(String albumin) {
277   - this.albumin = albumin;
278   - }
  300 + public void setAlbumin(String albumin) {
  301 + this.albumin = albumin;
  302 + }
279 303  
280   - public String getbChao() {
281   - return bChao;
282   - }
  304 + public String getbChao() {
  305 + return bChao;
  306 + }
283 307  
284   - public void setbChao(String bChao) {
285   - this.bChao = bChao;
286   - }
  308 + public void setbChao(String bChao) {
  309 + this.bChao = bChao;
  310 + }
287 311  
288   - public String getBld() {
289   - return bld;
290   - }
  312 + public String getBld() {
  313 + return bld;
  314 + }
291 315  
292   - public void setBld(String bld) {
293   - this.bld = bld;
294   - }
  316 + public void setBld(String bld) {
  317 + this.bld = bld;
  318 + }
295 319  
296   - public String getBloodSugar() {
297   - return bloodSugar;
298   - }
  320 + public String getBloodSugar() {
  321 + return bloodSugar;
  322 + }
299 323  
300   - public void setBloodSugar(String bloodSugar) {
301   - this.bloodSugar = bloodSugar;
302   - }
  324 + public void setBloodSugar(String bloodSugar) {
  325 + this.bloodSugar = bloodSugar;
  326 + }
303 327  
304   - public String getBxbjs() {
305   - return bxbjs;
306   - }
  328 + public String getBxbjs() {
  329 + return bxbjs;
  330 + }
307 331  
308   - public void setBxbjs(String bxbjs) {
309   - this.bxbjs = bxbjs;
310   - }
  332 + public void setBxbjs(String bxbjs) {
  333 + this.bxbjs = bxbjs;
  334 + }
311 335  
312   - public String getChgOther() {
313   - return chgOther;
314   - }
  336 + public String getChgOther() {
  337 + return chgOther;
  338 + }
315 339  
316   - public void setChgOther(String chgOther) {
317   - this.chgOther = chgOther;
318   - }
  340 + public void setChgOther(String chgOther) {
  341 + this.chgOther = chgOther;
  342 + }
319 343  
320   - public String getcDueWeek() {
321   - return cDueWeek;
322   - }
  344 + public String getcDueWeek() {
  345 + return cDueWeek;
  346 + }
323 347  
324   - public void setcDueWeek(String cDueWeek) {
325   - this.cDueWeek = cDueWeek;
326   - }
  348 + public void setcDueWeek(String cDueWeek) {
  349 + this.cDueWeek = cDueWeek;
  350 + }
327 351  
328   - public Map gethHealthInfo() {
329   - return hHealthInfo;
330   - }
  352 + public String getDueDate() {
  353 + return dueDate;
  354 + }
331 355  
332   - public void sethHealthInfo(Map hHealthInfo) {
333   - this.hHealthInfo = hHealthInfo;
334   - }
  356 + public void setDueDate(String dueDate) {
  357 + this.dueDate = dueDate;
  358 + }
335 359  
336   - public String getDueDate() {
337   - return dueDate;
338   - }
  360 + public String getHivkt() {
  361 + return hivkt;
  362 + }
339 363  
340   - public void setDueDate(String dueDate) {
341   - this.dueDate = dueDate;
342   - }
  364 + public void setHivkt(String hivkt) {
  365 + this.hivkt = hivkt;
  366 + }
343 367  
344   - public String getHivkt() {
345   - return hivkt;
346   - }
  368 + public String getJhBilirubin() {
  369 + return jhBilirubin;
  370 + }
347 371  
348   - public void setHivkt(String hivkt) {
349   - this.hivkt = hivkt;
350   - }
  372 + public void setJhBilirubin(String jhBilirubin) {
  373 + this.jhBilirubin = jhBilirubin;
  374 + }
351 375  
352   - public String getJhBilirubin() {
353   - return jhBilirubin;
354   - }
  376 + public String getLastMenses() {
  377 + return lastMenses;
  378 + }
355 379  
356   - public void setJhBilirubin(String jhBilirubin) {
357   - this.jhBilirubin = jhBilirubin;
358   - }
  380 + public void setLastMenses(String lastMenses) {
  381 + this.lastMenses = lastMenses;
  382 + }
359 383  
360   - public String getLastMenses() {
361   - return lastMenses;
362   - }
  384 + public String getMdxqsy() {
  385 + return mdxqsy;
  386 + }
363 387  
364   - public void setLastMenses(String lastMenses) {
365   - this.lastMenses = lastMenses;
366   - }
  388 + public void setMdxqsy(String mdxqsy) {
  389 + this.mdxqsy = mdxqsy;
  390 + }
367 391  
368   - public String getMdxqsy() {
369   - return mdxqsy;
370   - }
  392 + public String getNcgOther() {
  393 + return ncgOther;
  394 + }
371 395  
372   - public void setMdxqsy(String mdxqsy) {
373   - this.mdxqsy = mdxqsy;
374   - }
  396 + public void setNcgOther(String ncgOther) {
  397 + this.ncgOther = ncgOther;
  398 + }
375 399  
376   - public String getNcgOther() {
377   - return ncgOther;
378   - }
  400 + public String getNdb() {
  401 + return ndb;
  402 + }
379 403  
380   - public void setNcgOther(String ncgOther) {
381   - this.ncgOther = ncgOther;
382   - }
  404 + public void setNdb(String ndb) {
  405 + this.ndb = ndb;
  406 + }
383 407  
384   - public String getNdb() {
385   - return ndb;
386   - }
  408 + public String getNt() {
  409 + return nt;
  410 + }
387 411  
388   - public void setNdb(String ndb) {
389   - this.ndb = ndb;
390   - }
  412 + public void setNt(String nt) {
  413 + this.nt = nt;
  414 + }
391 415  
392   - public String getNt() {
393   - return nt;
394   - }
  416 + public String getPlatelet() {
  417 + return platelet;
  418 + }
395 419  
396   - public void setNt(String nt) {
397   - this.nt = nt;
398   - }
  420 + public void setPlatelet(String platelet) {
  421 + this.platelet = platelet;
  422 + }
399 423  
400   - public String getPlatelet() {
401   - return platelet;
402   - }
  424 + public String getRh() {
  425 + return rh;
  426 + }
403 427  
404   - public void setPlatelet(String platelet) {
405   - this.platelet = platelet;
406   - }
  428 + public void setRh(String rh) {
  429 + this.rh = rh;
  430 + }
407 431  
408   - public String getRh() {
409   - return rh;
410   - }
  432 + public String getSyjg() {
  433 + return syjg;
  434 + }
411 435  
412   - public void setRh(String rh) {
413   - this.rh = rh;
414   - }
  436 + public void setSyjg(String syjg) {
  437 + this.syjg = syjg;
  438 + }
415 439  
416   - public String getSyjg() {
417   - return syjg;
418   - }
  440 + public String getTireNumber() {
  441 + return tireNumber;
  442 + }
419 443  
420   - public void setSyjg(String syjg) {
421   - this.syjg = syjg;
422   - }
  444 + public void setTireNumber(String tireNumber) {
  445 + this.tireNumber = tireNumber;
  446 + }
423 447  
424   - public String getTireNumber() {
425   - return tireNumber;
426   - }
  448 + public String getTotalBilirubin() {
  449 + return totalBilirubin;
  450 + }
427 451  
428   - public void setTireNumber(String tireNumber) {
429   - this.tireNumber = tireNumber;
430   - }
  452 + public void setTotalBilirubin(String totalBilirubin) {
  453 + this.totalBilirubin = totalBilirubin;
  454 + }
431 455  
432   - public String getTotalBilirubin() {
433   - return totalBilirubin;
434   - }
  456 + public String getUrineKetone() {
  457 + return urineKetone;
  458 + }
435 459  
436   - public void setTotalBilirubin(String totalBilirubin) {
437   - this.totalBilirubin = totalBilirubin;
438   - }
  460 + public void setUrineKetone(String urineKetone) {
  461 + this.urineKetone = urineKetone;
  462 + }
439 463  
440   - public String getUrineKetone() {
441   - return urineKetone;
442   - }
  464 + public String getXhdb() {
  465 + return xhdb;
  466 + }
443 467  
444   - public void setUrineKetone(String urineKetone) {
445   - this.urineKetone = urineKetone;
446   - }
  468 + public void setXhdb(String xhdb) {
  469 + this.xhdb = xhdb;
  470 + }
447 471  
448   - public String getXhdb() {
449   - return xhdb;
450   - }
  472 + public String getXnsd() {
  473 + return xnsd;
  474 + }
451 475  
452   - public void setXhdb(String xhdb) {
453   - this.xhdb = xhdb;
454   - }
  476 + public void setXnsd(String xnsd) {
  477 + this.xnsd = xnsd;
  478 + }
455 479  
456   - public String getXnsd() {
457   - return xnsd;
458   - }
  480 + public String getXqgbzam() {
  481 + return xqgbzam;
  482 + }
459 483  
460   - public void setXnsd(String xnsd) {
461   - this.xnsd = xnsd;
462   - }
  484 + public void setXqgbzam(String xqgbzam) {
  485 + this.xqgbzam = xqgbzam;
  486 + }
463 487  
464   - public String getXqgbzam() {
465   - return xqgbzam;
466   - }
  488 + public String getXqgczam() {
  489 + return xqgczam;
  490 + }
467 491  
468   - public void setXqgbzam(String xqgbzam) {
469   - this.xqgbzam = xqgbzam;
470   - }
  492 + public void setXqgczam(String xqgczam) {
  493 + this.xqgczam = xqgczam;
  494 + }
471 495  
472   - public String getXqgczam() {
473   - return xqgczam;
474   - }
  496 + public String getXqjq() {
  497 + return xqjq;
  498 + }
475 499  
476   - public void setXqgczam(String xqgczam) {
477   - this.xqgczam = xqgczam;
478   - }
  500 + public void setXqjq(String xqjq) {
  501 + this.xqjq = xqjq;
  502 + }
479 503  
480   - public String getXqjq() {
481   - return xqjq;
482   - }
  504 + public Map getYdfmw() {
  505 + return ydfmw;
  506 + }
483 507  
484   - public void setXqjq(String xqjq) {
485   - this.xqjq = xqjq;
486   - }
  508 + public void setYdfmw(Map ydfmw) {
  509 + this.ydfmw = ydfmw;
  510 + }
487 511  
488   - public Map getYdfmw() {
489   - return ydfmw;
490   - }
  512 + public String getYdqjd() {
  513 + return ydqjd;
  514 + }
491 515  
492   - public void setYdfmw(Map ydfmw) {
493   - this.ydfmw = ydfmw;
494   - }
  516 + public void setYdqjd(String ydqjd) {
  517 + this.ydqjd = ydqjd;
  518 + }
495 519  
496   - public String getYdqjd() {
497   - return ydqjd;
498   - }
  520 + public String getYgbmkt() {
  521 + return ygbmkt;
  522 + }
499 523  
500   - public void setYdqjd(String ydqjd) {
501   - this.ydqjd = ydqjd;
502   - }
  524 + public void setYgbmkt(String ygbmkt) {
  525 + this.ygbmkt = ygbmkt;
  526 + }
503 527  
504   - public String getYgbmkt() {
505   - return ygbmkt;
506   - }
  528 + public String getYgbmky() {
  529 + return ygbmky;
  530 + }
507 531  
508   - public void setYgbmkt(String ygbmkt) {
509   - this.ygbmkt = ygbmkt;
510   - }
  532 + public void setYgbmky(String ygbmky) {
  533 + this.ygbmky = ygbmky;
  534 + }
511 535  
512   - public String getYgbmky() {
513   - return ygbmky;
514   - }
  536 + public String getYgekt() {
  537 + return ygekt;
  538 + }
515 539  
516   - public void setYgbmky(String ygbmky) {
517   - this.ygbmky = ygbmky;
518   - }
  540 + public void setYgekt(String ygekt) {
  541 + this.ygekt = ygekt;
  542 + }
519 543  
520   - public String getYgekt() {
521   - return ygekt;
522   - }
  544 + public String getYgeky() {
  545 + return ygeky;
  546 + }
523 547  
524   - public void setYgekt(String ygekt) {
525   - this.ygekt = ygekt;
526   - }
  548 + public void setYgeky(String ygeky) {
  549 + this.ygeky = ygeky;
  550 + }
527 551  
528   - public String getYgeky() {
529   - return ygeky;
530   - }
  552 + public String getYghxkt() {
  553 + return yghxkt;
  554 + }
531 555  
532   - public void setYgeky(String ygeky) {
533   - this.ygeky = ygeky;
534   - }
  556 + public void setYghxkt(String yghxkt) {
  557 + this.yghxkt = yghxkt;
  558 + }
535 559  
536   - public String getYghxkt() {
537   - return yghxkt;
538   - }
  560 + public String getParentId() {
  561 + return parentId;
  562 + }
539 563  
540   - public void setYghxkt(String yghxkt) {
541   - this.yghxkt = yghxkt;
542   - }
  564 + public void setParentId(String parentId) {
  565 + this.parentId = parentId;
  566 + }
543 567  
544   - public String getParentId() {
545   - return parentId;
546   - }
  568 + public String getId() {
  569 + return id;
  570 + }
547 571  
548   - public void setParentId(String parentId) {
549   - this.parentId = parentId;
550   - }
  572 + public void setId(String id) {
  573 + this.id = id;
  574 + }
551 575  
552   - public String getId() {
553   - return id;
554   - }
  576 + public Integer getAbortion() {
  577 + return abortion;
  578 + }
555 579  
556   - public void setId(String id) {
557   - this.id = id;
558   - }
  580 + public String getBaricIndex() {
  581 + return baricIndex;
  582 + }
559 583  
560   - public Integer getAbortion() {
561   - return abortion;
562   - }
  584 + public void setBaricIndex(String baricIndex) {
  585 + this.baricIndex = baricIndex;
  586 + }
563 587  
564   - public String getBaricIndex() {
565   - return baricIndex;
566   - }
  588 + public void setAbortion(Integer abortion) {
  589 + this.abortion = abortion;
  590 + }
567 591  
568   - public void setBaricIndex(String baricIndex) {
569   - this.baricIndex = baricIndex;
570   - }
  592 + public Integer getBirthDefect() {
  593 + return birthDefect;
  594 + }
571 595  
572   - public void setAbortion(Integer abortion) {
573   - this.abortion = abortion;
574   - }
  596 + public void setBirthDefect(Integer birthDefect) {
  597 + this.birthDefect = birthDefect;
  598 + }
575 599  
576   - public Integer getBirthDefect() {
577   - return birthDefect;
578   - }
  600 + public Integer getDelivery() {
  601 + return delivery;
  602 + }
579 603  
580   - public void setBirthDefect(Integer birthDefect) {
581   - this.birthDefect = birthDefect;
582   - }
  604 + public void setDelivery(Integer delivery) {
  605 + this.delivery = delivery;
  606 + }
583 607  
584   - public Integer getDelivery() {
585   - return delivery;
586   - }
  608 + public Integer getNeoDeath() {
  609 + return neoDeath;
  610 + }
587 611  
588   - public void setDelivery(Integer delivery) {
589   - this.delivery = delivery;
590   - }
  612 + public void setNeoDeath(Integer neoDeath) {
  613 + this.neoDeath = neoDeath;
  614 + }
591 615  
592   - public Integer getNeoDeath() {
593   - return neoDeath;
594   - }
  616 + public Integer getPlanedProd() {
  617 + return planedProd;
  618 + }
595 619  
596   - public void setNeoDeath(Integer neoDeath) {
597   - this.neoDeath = neoDeath;
598   - }
  620 + public void setPlanedProd(Integer planedProd) {
  621 + this.planedProd = planedProd;
  622 + }
599 623  
600   - public Integer getPlanedProd() {
601   - return planedProd;
602   - }
  624 + public Integer getPregnancyTimes() {
  625 + return pregnancyTimes;
  626 + }
603 627  
604   - public void setPlanedProd(Integer planedProd) {
605   - this.planedProd = planedProd;
606   - }
  628 + public void setPregnancyTimes(Integer pregnancyTimes) {
  629 + this.pregnancyTimes = pregnancyTimes;
  630 + }
607 631  
608   - public Integer getPregnancyTimes() {
609   - return pregnancyTimes;
610   - }
  632 + public Integer getProdTime() {
  633 + return prodTime;
  634 + }
611 635  
612   - public void setPregnancyTimes(Integer pregnancyTimes) {
613   - this.pregnancyTimes = pregnancyTimes;
614   - }
  636 + public void setProdTime(Integer prodTime) {
  637 + this.prodTime = prodTime;
  638 + }
615 639  
616   - public Integer getProdTime() {
617   - return prodTime;
618   - }
  640 + public Integer getStillbirth() {
  641 + return stillbirth;
  642 + }
619 643  
620   - public void setProdTime(Integer prodTime) {
621   - this.prodTime = prodTime;
622   - }
  644 + public void setStillbirth(Integer stillbirth) {
  645 + this.stillbirth = stillbirth;
  646 + }
623 647  
624   - public Integer getStillbirth() {
625   - return stillbirth;
626   - }
  648 + public Integer getStillChan() {
  649 + return stillChan;
  650 + }
627 651  
628   - public void setStillbirth(Integer stillbirth) {
629   - this.stillbirth = stillbirth;
630   - }
  652 + public void setStillChan(Integer stillChan) {
  653 + this.stillChan = stillChan;
  654 + }
631 655  
632   - public Integer getStillChan() {
633   - return stillChan;
634   - }
  656 + public String getCheckTime() {
  657 + return checkTime;
  658 + }
635 659  
636   - public void setStillChan(Integer stillChan) {
637   - this.stillChan = stillChan;
638   - }
  660 + public void setCheckTime(String checkTime) {
  661 + this.checkTime = checkTime;
  662 + }
639 663  
640   - public Map getCestationInfo() {
641   - return cestationInfo;
642   - }
  664 + public String getCervical() {
  665 + return cervical;
  666 + }
643 667  
644   - public void setCestationInfo(Map cestationInfo) {
645   - this.cestationInfo = cestationInfo;
646   - }
  668 + public void setCervical(String cervical) {
  669 + this.cervical = cervical;
  670 + }
647 671  
648   - public String getCheckTime() {
649   - return checkTime;
650   - }
  672 + public List getDiagnosis() {
  673 + return diagnosis;
  674 + }
651 675  
652   - public void setCheckTime(String checkTime) {
653   - this.checkTime = checkTime;
654   - }
  676 + public void setDiagnosis(List diagnosis) {
  677 + this.diagnosis = diagnosis;
  678 + }
655 679  
  680 + public String getFujian() {
  681 + return fujian;
  682 + }
656 683  
657   - public String getCervical() {
658   - return cervical;
659   - }
  684 + public void setFujian(String fujian) {
  685 + this.fujian = fujian;
  686 + }
660 687  
661   - public void setCervical(String cervical) {
662   - this.cervical = cervical;
663   - }
  688 + public String getHeart() {
  689 + return heart;
  690 + }
664 691  
665   - public List getDiagnosis() {
666   - return diagnosis;
667   - }
  692 + public void setHeart(String heart) {
  693 + this.heart = heart;
  694 + }
668 695  
669   - public void setDiagnosis(List diagnosis) {
670   - this.diagnosis = diagnosis;
671   - }
  696 + public String getLungs() {
  697 + return lungs;
  698 + }
672 699  
673   - public String getFujian() {
674   - return fujian;
675   - }
  700 + public void setLungs(String lungs) {
  701 + this.lungs = lungs;
  702 + }
676 703  
677   - public void setFujian(String fujian) {
678   - this.fujian = fujian;
679   - }
  704 + public String getUterus() {
  705 + return uterus;
  706 + }
680 707  
681   - public String getHeart() {
682   - return heart;
683   - }
  708 + public void setUterus(String uterus) {
  709 + this.uterus = uterus;
  710 + }
684 711  
685   - public void setHeart(String heart) {
686   - this.heart = heart;
687   - }
  712 + public String getVagina() {
  713 + return vagina;
  714 + }
688 715  
689   - public String getLungs() {
690   - return lungs;
691   - }
  716 + public void setVagina(String vagina) {
  717 + this.vagina = vagina;
  718 + }
692 719  
693   - public void setLungs(String lungs) {
694   - this.lungs = lungs;
695   - }
  720 + public String getVulva() {
  721 + return vulva;
  722 + }
696 723  
697   - public String getUterus() {
698   - return uterus;
699   - }
  724 + public void setVulva(String vulva) {
  725 + this.vulva = vulva;
  726 + }
700 727  
701   - public void setUterus(String uterus) {
702   - this.uterus = uterus;
703   - }
  728 + public String getGuide() {
  729 + return guide;
  730 + }
704 731  
705   - public String getVagina() {
706   - return vagina;
707   - }
  732 + public void setGuide(String guide) {
  733 + this.guide = guide;
  734 + }
708 735  
709   - public void setVagina(String vagina) {
710   - this.vagina = vagina;
711   - }
  736 + public String getFuwei() {
  737 + return fuwei;
  738 + }
712 739  
713   - public String getVulva() {
714   - return vulva;
715   - }
  740 + public void setFuwei(String fuwei) {
  741 + this.fuwei = fuwei;
  742 + }
716 743  
717   - public void setVulva(String vulva) {
718   - this.vulva = vulva;
719   - }
  744 + public String getGonggao() {
  745 + return gonggao;
  746 + }
720 747  
721   - public String getGuide() {
722   - return guide;
723   - }
  748 + public void setGonggao(String gonggao) {
  749 + this.gonggao = gonggao;
  750 + }
724 751  
725   - public void setGuide(String guide) {
726   - this.guide = guide;
727   - }
  752 + public String getHeight() {
  753 + return height;
  754 + }
728 755  
729   - public String getFuwei() {
730   - return fuwei;
731   - }
  756 + public void setHeight(String height) {
  757 + this.height = height;
  758 + }
732 759  
733   - public void setFuwei(String fuwei) {
734   - this.fuwei = fuwei;
735   - }
  760 + public List getHighrisk() {
  761 + return highrisk;
  762 + }
736 763  
737   - public String getGonggao() {
738   - return gonggao;
739   - }
  764 + public void setHighrisk(List highrisk) {
  765 + this.highrisk = highrisk;
  766 + }
740 767  
741   - public void setGonggao(String gonggao) {
742   - this.gonggao = gonggao;
743   - }
  768 + public String getHighriskSocre() {
  769 + return highriskSocre;
  770 + }
744 771  
745   - public String getHeight() {
746   - return height;
747   - }
  772 + public void setHighriskSocre(String highriskSocre) {
  773 + this.highriskSocre = highriskSocre;
  774 + }
748 775  
749   - public void setHeight(String height) {
750   - this.height = height;
751   - }
  776 + public String getNextCheckTime() {
  777 + return nextCheckTime;
  778 + }
752 779  
753   - public List getHighrisk() {
754   - return highrisk;
755   - }
  780 + public void setNextCheckTime(String nextCheckTime) {
  781 + this.nextCheckTime = nextCheckTime;
  782 + }
756 783  
757   - public void setHighrisk(List highrisk) {
758   - this.highrisk = highrisk;
759   - }
  784 + public Map getOtherHighRisk() {
  785 + return otherHighRisk;
  786 + }
760 787  
761   - public String getHighriskSocre() {
762   - return highriskSocre;
763   - }
  788 + public void setOtherHighRisk(Map otherHighRisk) {
  789 + this.otherHighRisk = otherHighRisk;
  790 + }
764 791  
765   - public void setHighriskSocre(String highriskSocre) {
766   - this.highriskSocre = highriskSocre;
767   - }
  792 + public List getPlacentas() {
  793 + return placentas;
  794 + }
768 795  
769   - public String getNextCheckTime() {
770   - return nextCheckTime;
771   - }
  796 + public void setPlacentas(List placentas) {
  797 + this.placentas = placentas;
  798 + }
772 799  
773   - public void setNextCheckTime(String nextCheckTime) {
774   - this.nextCheckTime = nextCheckTime;
775   - }
  800 + public String getProdDoctor() {
  801 + return prodDoctor;
  802 + }
776 803  
777   - public Map getOtherHighRisk() {
778   - return otherHighRisk;
779   - }
  804 + public void setProdDoctor(String prodDoctor) {
  805 + this.prodDoctor = prodDoctor;
  806 + }
780 807  
781   - public void setOtherHighRisk(Map otherHighRisk) {
782   - this.otherHighRisk = otherHighRisk;
783   - }
  808 + public String getTireNumber1() {
  809 + return tireNumber1;
  810 + }
784 811  
785   - public List getPlacentas() {
786   - return placentas;
787   - }
  812 + public void setTireNumber1(String tireNumber1) {
  813 + this.tireNumber1 = tireNumber1;
  814 + }
788 815  
789   - public void setPlacentas(List placentas) {
790   - this.placentas = placentas;
791   - }
  816 + public String getTreatOpinion() {
  817 + return treatOpinion;
  818 + }
792 819  
  820 + public void setTreatOpinion(String treatOpinion) {
  821 + this.treatOpinion = treatOpinion;
  822 + }
793 823  
  824 + public String getWeight() {
  825 + return weight;
  826 + }
794 827  
795   - public String getProdDoctor() {
796   - return prodDoctor;
797   - }
  828 + public void setWeight(String weight) {
  829 + this.weight = weight;
  830 + }
798 831  
799   - public void setProdDoctor(String prodDoctor) {
800   - this.prodDoctor = prodDoctor;
801   - }
  832 + public String getYqWeight() {
  833 + return yqWeight;
  834 + }
802 835  
  836 + public void setYqWeight(String yqWeight) {
  837 + this.yqWeight = yqWeight;
  838 + }
803 839  
  840 + public String getPid() {
  841 + return pid;
  842 + }
804 843  
805   - public String getTireNumber1() {
806   - return tireNumber1;
807   - }
  844 + public void setPid(String pid) {
  845 + this.pid = pid;
  846 + }
808 847  
809   - public void setTireNumber1(String tireNumber1) {
810   - this.tireNumber1 = tireNumber1;
811   - }
  848 + public Map<String, Object> getJWS() {
  849 + return JWS;
  850 + }
812 851  
813   - public String getTreatOpinion() {
814   - return treatOpinion;
815   - }
  852 + public void setJWS(Map<String, Object> jWS) {
  853 + JWS = jWS;
  854 + }
816 855  
817   - public void setTreatOpinion(String treatOpinion) {
818   - this.treatOpinion = treatOpinion;
819   - }
  856 + public Map<String, Object> getJZS() {
  857 + return JZS;
  858 + }
820 859  
821   - public String getWeight() {
822   - return weight;
823   - }
  860 + public void setJZS(Map<String, Object> jZS) {
  861 + JZS = jZS;
  862 + }
824 863  
825   - public void setWeight(String weight) {
826   - this.weight = weight;
827   - }
  864 + public Map<String, Object> getGRS() {
  865 + return GRS;
  866 + }
828 867  
829   - public Map getFamilyHistory() {
830   - return familyHistory;
831   - }
  868 + public void setGRS(Map<String, Object> gRS) {
  869 + GRS = gRS;
  870 + }
832 871  
833   - public void setFamilyHistory(Map familyHistory) {
834   - this.familyHistory = familyHistory;
835   - }
  872 + public Map<String, Object> getYMJZS() {
  873 + return YMJZS;
  874 + }
836 875  
837   - public Map getFksxHistory() {
838   - return fksxHistory;
839   - }
  876 + public void setYMJZS(Map<String, Object> yMJZS) {
  877 + YMJZS = yMJZS;
  878 + }
840 879  
841   - public void setFksxHistory(Map fksxHistory) {
842   - this.fksxHistory = fksxHistory;
843   - }
  880 + public Map<String, Object> getYWGMS() {
  881 + return YWGMS;
  882 + }
844 883  
845   - public Map getPastHistory() {
846   - return pastHistory;
847   - }
  884 + public void setYWGMS(Map<String, Object> yWGMS) {
  885 + YWGMS = yWGMS;
  886 + }
848 887  
849   - public void setPastHistory(Map pastHistory) {
850   - this.pastHistory = pastHistory;
851   - }
  888 + public Map<String, Object> getFKSSS() {
  889 + return FKSSS;
  890 + }
852 891  
853   - public Map getPersonalHistory() {
854   - return personalHistory;
855   - }
  892 + public void setFKSSS(Map<String, Object> fKSSS) {
  893 + FKSSS = fKSSS;
  894 + }
856 895  
857   - public void setPersonalHistory(Map personalHistory) {
858   - this.personalHistory = personalHistory;
859   - }
  896 + public Map<String, Object> getYSFY() {
  897 + return YSFY;
  898 + }
860 899  
861   - public Map getYmjzHistory() {
862   - return ymjzHistory;
863   - }
  900 + public void setYSFY(Map<String, Object> ySFY) {
  901 + YSFY = ySFY;
  902 + }
864 903  
865   - public void setYmjzHistory(Map ymjzHistory) {
866   - this.ymjzHistory = ymjzHistory;
867   - }
  904 + public Map<String, Object> getBCRSQK() {
  905 + return BCRSQK;
  906 + }
868 907  
869   - public String getYqWeight() {
870   - return yqWeight;
871   - }
  908 + public void setBCRSQK(Map<String, Object> bCRSQK) {
  909 + BCRSQK = bCRSQK;
  910 + }
872 911  
873   - public void setYqWeight(String yqWeight) {
874   - this.yqWeight = yqWeight;
875   - }
  912 + public Map<String, Object> getZFJKQK() {
  913 + return ZFJKQK;
  914 + }
876 915  
877   - public Map getYsfyHistory() {
878   - return ysfyHistory;
879   - }
880   -
881   - public void setYsfyHistory(Map ysfyHistory) {
882   - this.ysfyHistory = ysfyHistory;
883   - }
884   -
885   - public Map getYwgmHistory() {
886   - return ywgmHistory;
887   - }
888   -
889   - public void setYwgmHistory(Map ywgmHistory) {
890   - this.ywgmHistory = ywgmHistory;
891   - }
892   -
893   - public String getPid() {
894   - return pid;
895   - }
896   -
897   - public void setPid(String pid) {
898   - this.pid = pid;
899   - }
900   -
  916 + public void setZFJKQK(Map<String, Object> zFJKQK) {
  917 + ZFJKQK = zFJKQK;
  918 + }
901 919  
902 920 }
parent/hospital.web/src/main/java/com/lyms/hospital/request/exam/ExamAddRequestWrapper.java View file @ 11b2dc5
  1 +package com.lyms.hospital.request.exam;
  2 +
  3 +import java.util.List;
  4 +import java.util.Map;
  5 +import java.util.Set;
  6 +
  7 +import com.lyms.hospital.entity.assist.DiagnoseAssit;
  8 +import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
  9 +import com.lyms.hospital.entity.diagnose.DiagnoseTai;
  10 +import com.lyms.hospital.entity.history.HistoryMaps;
  11 +import com.lyms.hospital.response.keymap.DiagnoseAssistKeymap;
  12 +import com.lyms.hospital.response.keymap.WomanExamKeymap;
  13 +import com.lyms.hospital.util.trans.XjhMapUtil;
  14 +
  15 +public class ExamAddRequestWrapper {
  16 +
  17 + /**
  18 + * 产前检查初诊-前端业务对象
  19 + */
  20 + private ExamAddRequest examAddRequest;
  21 + /**
  22 + * 产检基础对象
  23 + */
  24 + private DiagnoseInfo diagnoseInfo;
  25 + /**
  26 + * 辅助检查对象
  27 + */
  28 + private DiagnoseAssit diagnoseAssit;
  29 + /**
  30 + * 病史列表信息
  31 + */
  32 + private List<HistoryMaps> historyMapsList;
  33 + /**
  34 + * 胎儿列表信息
  35 + */
  36 + private List<DiagnoseTai> diagnoseTaiList;
  37 +
  38 + public ExamAddRequestWrapper(){}
  39 +
  40 + @SuppressWarnings("unchecked")
  41 + public ExamAddRequestWrapper(ExamAddRequest request){
  42 + this.examAddRequest = request;
  43 + if(request!=null){
  44 + /*
  45 + * 产检基本信息
  46 + */
  47 + Map<String, Object> infoMap = XjhMapUtil.transBean2FormatAliasMap(request,
  48 + XjhMapUtil.getKeyMap(WomanExamKeymap.original, WomanExamKeymap.alias));
  49 + diagnoseInfo = (DiagnoseInfo) XjhMapUtil.transMap2FormatBean(infoMap, new DiagnoseInfo());
  50 + diagnoseInfo.setWomanId(request.getParentId());// 孕妇档案ID
  51 + diagnoseInfo.setPersonId(request.getPid());// 女性居民ID
  52 + // 血压
  53 + Map<String,Object> bp = request.getBp();
  54 + if (bp != null) {
  55 + String[] original = { "ssy", "szy" };
  56 + String[] alias = { "bloodShrink", "bloodDiastole", };
  57 + diagnoseInfo = (DiagnoseInfo) XjhMapUtil.transMap2AliasBean(bp, diagnoseInfo, XjhMapUtil.getKeyMap(original, alias));
  58 + }
  59 + /*
  60 + * 产检辅助检查
  61 + */
  62 + Map<String, Object> assistMap = XjhMapUtil.transBean2FormatAliasMap(request,
  63 + XjhMapUtil.getKeyMap(DiagnoseAssistKeymap.original, DiagnoseAssistKeymap.alias));
  64 + diagnoseAssit = (DiagnoseAssit) XjhMapUtil.transMap2FormatBean(assistMap, new DiagnoseAssit());
  65 + // 其他老版本结构数据补录
  66 + // 阴道分泌物
  67 + Map<String,Object> ydfmw = request.getYdfmw();
  68 + if (ydfmw != null) {
  69 + String[] original = { "ydqjd", "dc", "jsjmj", "qt", "qtText" };
  70 + String[] alias = { "vaginaYdqjd", "vaginaDc", "vaginaJsjmj", "vaginaOther", "vaginaOtherTxt" };
  71 + diagnoseAssit = (DiagnoseAssit) XjhMapUtil.transMap2AliasBean(ydfmw, diagnoseAssit,
  72 + XjhMapUtil.getKeyMap(original, alias));
  73 + }
  74 + /*
  75 + * 病史信息
  76 + */
  77 + Map<String,Object> jws = request.getJWS();
  78 + if(jws!=null){
  79 + String jws_yesOrNo = jws.get("yesOrNo").toString();
  80 + String jws_id = jws.get("id").toString();
  81 + if("yes".equals(jws_yesOrNo)){
  82 +// historyMapsList.add(arg0);
  83 + }
  84 + Set<String> keySet = jws.keySet();
  85 + }
  86 +
  87 +
  88 + historyMapsList = request.getHistoryList();// 病史信息
  89 + /*
  90 + * 胎儿信息、诊断信息
  91 + */
  92 + diagnoseTaiList = request.getTaiList(); // 胎儿信息
  93 + // TODO 诊断信息
  94 + }
  95 + }
  96 +
  97 + //getter and setter
  98 + public ExamAddRequest getExamAddRequest() {
  99 + return examAddRequest;
  100 + }
  101 + public void setExamAddRequest(ExamAddRequest examAddRequest) {
  102 + this.examAddRequest = examAddRequest;
  103 + }
  104 + public DiagnoseInfo getDiagnoseInfo() {
  105 + return diagnoseInfo;
  106 + }
  107 + public void setDiagnoseInfo(DiagnoseInfo diagnoseInfo) {
  108 + this.diagnoseInfo = diagnoseInfo;
  109 + }
  110 + public DiagnoseAssit getDiagnoseAssit() {
  111 + return diagnoseAssit;
  112 + }
  113 + public void setDiagnoseAssit(DiagnoseAssit diagnoseAssit) {
  114 + this.diagnoseAssit = diagnoseAssit;
  115 + }
  116 + public List<HistoryMaps> getHistoryMapsList() {
  117 + return historyMapsList;
  118 + }
  119 + public void setHistoryMapsList(List<HistoryMaps> historyMapsList) {
  120 + this.historyMapsList = historyMapsList;
  121 + }
  122 + public List<DiagnoseTai> getDiagnoseTaiList() {
  123 + return diagnoseTaiList;
  124 + }
  125 + public void setDiagnoseTaiList(List<DiagnoseTai> diagnoseTaiList) {
  126 + this.diagnoseTaiList = diagnoseTaiList;
  127 + }
  128 +
  129 +}
parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java View file @ 11b2dc5
... ... @@ -48,12 +48,12 @@
48 48  
49 49 // strategy.setInclude(new String[] {
50 50 // "SYS_USERS","SYS_USER_ROLE_MAPS","SYS_ROLES" }); // 需要生成的表
51   - strategy.setInclude(new String[] { "HISTORY_SOURCE","HISTORY_MAPS"}); // 需要生成的表
  51 + strategy.setInclude(new String[] { "DIAGNOSE_TAI"}); // 需要生成的表
52 52 pc.setParent("com.lyms.hospital");
53 53 // pc.setParent("com.lyms.base.common");
54 54  
55 55 // 加在controller后面
56   - pc.setFunctionName("history"); // com.lyms.hospital.web.controller.sys
  56 + pc.setFunctionName("diagnose"); // com.lyms.hospital.web.controller.sys
57 57 // pc.setModuleName("sys"); //com.lyms.hospital.sys.controller
58 58 // 加在controller前面
59 59