diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseInfoMapper.xml b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseInfoMapper.xml
index 87d3b9b..f69c0e2 100644
--- a/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseInfoMapper.xml
+++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/dao/diagnose/DiagnoseInfoMapper.xml
@@ -20,7 +20,7 @@
-
+
@@ -42,10 +42,67 @@
-
-
-
- ID AS id, WOMAN_ID AS womanId, TYPE AS type, YUN_NUM AS yunNum, CHAN_NUM AS chanNum, SHUN_NUM AS shunNum, PAO_NUM AS paoNum, LIU_NUM AS liuNum, ZIRAN_NUM AS ziranNum, RENGONG_NUM AS rengongNum, SITAI_NUM AS sitaiNum, SICHAN_NUM AS sichanNum, CHILDDIE_NUM AS childdieNum, BIRTHDEFECT_NUM AS birthdefectNum, HEIGHT AS height, WEIGHT AS weight, HEIGHT_AGO AS heightAgo, WEIGHT_INDEX AS weightIndex, BLOOD_SHRINK AS bloodShrink, BLOOD_DIASTOLE AS bloodDiastole, HEART AS heart, LUNG AS lung, WAIYIN_WOMAN AS waiyinWoman, YINDAO_WOMAN AS yindaoWoman, GONGJING_WOMAN AS gongjingWoman, ZIGONG_WOMAN AS zigongWoman, FUJIAN_WOMAN AS fujianWoman, GONGGAO_OBSTETRICS AS gonggaoObstetrics, FUWEI_OBSTETRICS AS fuweiObstetrics, FUZHONG_OBSTETRICS AS fuzhongObstetrics, TAISHU_OBSTETRICS AS taishuObstetrics, DISPOSE_SUGGEST AS disposeSuggest, GUIDE_SUGGEST AS guideSuggest, NEXTINSPECT_NUM AS nextinspectNum, NEXTINSPECT_TIME AS nextinspectTime, DOCTOR_ID AS doctorId, ORG_ID AS orgId, DIAGNOSE_TIME AS diagnoseTime
-
+
+
+
+
+
+
+
+
+
+
+
+
+ ID AS id, WOMAN_ID AS womanId, TYPE AS type, YUN_NUM AS
+ yunNum, CHAN_NUM
+ AS chanNum, SHUN_NUM AS shunNum, PAO_NUM AS paoNum,
+ LIU_NUM AS liuNum,
+ ZIRAN_NUM AS ziranNum, RENGONG_NUM AS rengongNum,
+ SITAI_NUM AS
+ sitaiNum, SICHAN_NUM AS sichanNum, CHILDDIE_NUM AS
+ childdieNum,
+ BIRTHDEFECT_NUM AS birthdefectNum, HEIGHT AS height,
+ WEIGHT AS weight,
+ WEIGHT_AGO AS weightAgo, WEIGHT_INDEX AS weightIndex,
+ BLOOD_SHRINK AS
+ bloodShrink, BLOOD_DIASTOLE AS bloodDiastole, HEART AS
+ heart, LUNG AS
+ lung, WAIYIN_WOMAN AS waiyinWoman, YINDAO_WOMAN AS
+ yindaoWoman,
+ GONGJING_WOMAN AS gongjingWoman, ZIGONG_WOMAN AS
+ zigongWoman,
+ FUJIAN_WOMAN AS fujianWoman, GONGGAO_OBSTETRICS AS
+ gonggaoObstetrics,
+ FUWEI_OBSTETRICS AS fuweiObstetrics,
+ FUZHONG_OBSTETRICS AS
+ fuzhongObstetrics, TAISHU_OBSTETRICS AS
+ taishuObstetrics,
+ DISPOSE_SUGGEST AS disposeSuggest, GUIDE_SUGGEST AS
+ guideSuggest,
+ NEXTINSPECT_NUM AS nextinspectNum, NEXTINSPECT_TIME AS
+ nextinspectTime, DOCTOR_ID AS doctorId, ORG_ID AS orgId, DIAGNOSE_TIME
+ AS diagnoseTime,PERSON_ID AS personId, HAS_HIGHRISK AS hasHighrisk,
+ CUS_HR_COLORCODE AS
+ cusHrColorcode,CUS_HR_COLORTEXT AS cusHrColortext,
+ CUS_HR_NAME AS cusHrName,CUS_HR_GRADE AS
+ cusHrGrade,HAS_DIAGNOSE AS
+ hasDiagnose
+
+
+
+
diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/diagnose/DiagnoseInfo.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/diagnose/DiagnoseInfo.java
index 501568e..4d19bc6 100644
--- a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/diagnose/DiagnoseInfo.java
+++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/diagnose/DiagnoseInfo.java
@@ -18,501 +18,597 @@ import com.baomidou.mybatisplus.annotations.TableName;
@TableName("DIAGNOSE_INFO")
public class DiagnoseInfo implements Serializable {
- private static final long serialVersionUID = 1L;
-
- /**
- *
- */
- @TableId(value = "ID")
- private String id;
- /**
- *
- */
- @TableField(value = "WOMAN_ID")
- private String womanId;
- /**
- * 诊断类型,0为初诊,1为复诊
- */
- @TableField(value = "TYPE")
- private Integer type;
- /**
- * 孕次
- */
- @TableField(value = "YUN_NUM")
- private Integer yunNum;
- /**
- * 产次
- */
- @TableField(value = "CHAN_NUM")
- private Integer chanNum;
- /**
- * 顺产
- */
- @TableField(value = "SHUN_NUM")
- private Integer shunNum;
- /**
- * 刨宫产
- */
- @TableField(value = "PAO_NUM")
- private Integer paoNum;
- /**
- * 流产
- */
- @TableField(value = "LIU_NUM")
- private Integer liuNum;
- /**
- * 自然
- */
- @TableField(value = "ZIRAN_NUM")
- private Integer ziranNum;
- /**
- * 人工
- */
- @TableField(value = "RENGONG_NUM")
- private Integer rengongNum;
- /**
- * 死胎
- */
- @TableField(value = "SITAI_NUM")
- private Integer sitaiNum;
- /**
- * 死产
- */
- @TableField(value = "SICHAN_NUM")
- private Integer sichanNum;
- /**
- * 新生儿死亡
- */
- @TableField(value = "CHILDDIE_NUM")
- private Integer childdieNum;
- /**
- * 出生缺陷儿
- */
- @TableField(value = "BIRTHDEFECT_NUM")
- private Integer birthdefectNum;
- /**
- * 身高
- */
- @TableField(value = "HEIGHT")
- private Integer height;
- /**
- * 体重
- */
- @TableField(value = "WEIGHT")
- private Integer weight;
- /**
- * 孕前体重
- */
- @TableField(value = "HEIGHT_AGO")
- private Integer heightAgo;
- /**
- * 体重指数
- */
- @TableField(value = "WEIGHT_INDEX")
- private Double weightIndex;
- /**
- * 血压_收缩压
- */
- @TableField(value = "BLOOD_SHRINK")
- private Integer bloodShrink;
- /**
- * 血压_舒张压
- */
- @TableField(value = "BLOOD_DIASTOLE")
- private Integer bloodDiastole;
- /**
- * 心脏
- */
- @TableField(value = "HEART")
- private String heart;
- /**
- * 肺部
- */
- @TableField(value = "LUNG")
- private String lung;
- /**
- * 外阴
- */
- @TableField(value = "WAIYIN_WOMAN")
- private String waiyinWoman;
- /**
- * 阴道
- */
- @TableField(value = "YINDAO_WOMAN")
- private String yindaoWoman;
- /**
- *
- */
- @TableField(value = "GONGJING_WOMAN")
- private String gongjingWoman;
- /**
- * 子宫
- */
- @TableField(value = "ZIGONG_WOMAN")
- private String zigongWoman;
- /**
- * 附件
- */
- @TableField(value = "FUJIAN_WOMAN")
- private String fujianWoman;
- /**
- * 宫高
- */
- @TableField(value = "GONGGAO_OBSTETRICS")
- private Integer gonggaoObstetrics;
- /**
- * 腹围
- */
- @TableField(value = "FUWEI_OBSTETRICS")
- private Integer fuweiObstetrics;
- /**
- * 浮肿
- */
- @TableField(value = "FUZHONG_OBSTETRICS")
- private Integer fuzhongObstetrics;
- /**
- * 胎数
- */
- @TableField(value = "TAISHU_OBSTETRICS")
- private Integer taishuObstetrics;
- /**
- * 处理意见
- */
- @TableField(value = "DISPOSE_SUGGEST")
- private String disposeSuggest;
- /**
- * 指导意见
- */
- @TableField(value = "GUIDE_SUGGEST")
- private String guideSuggest;
- /**
- * 下次产检孕周数
- */
- @TableField(value = "NEXTINSPECT_NUM")
- private Integer nextinspectNum;
- /**
- * 下次检查日期
- */
- @TableField(value = "NEXTINSPECT_TIME")
- private Date nextinspectTime;
- /**
- *
- */
- @TableField(value = "DOCTOR_ID")
- private String doctorId;
- /**
- * 医院id
- */
- @TableField(value = "ORG_ID")
- private String orgId;
- /**
- * 诊断时间
- */
- @TableField(value = "DIAGNOSE_TIME")
- private Date diagnoseTime;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getWomanId() {
- return womanId;
- }
-
- public void setWomanId(String womanId) {
- this.womanId = womanId;
- }
-
- public Integer getType() {
- return type;
- }
-
- public void setType(Integer type) {
- this.type = type;
- }
-
- public Integer getYunNum() {
- return yunNum;
- }
-
- public void setYunNum(Integer yunNum) {
- this.yunNum = yunNum;
- }
-
- public Integer getChanNum() {
- return chanNum;
- }
-
- public void setChanNum(Integer chanNum) {
- this.chanNum = chanNum;
- }
-
- public Integer getShunNum() {
- return shunNum;
- }
-
- public void setShunNum(Integer shunNum) {
- this.shunNum = shunNum;
- }
-
- public Integer getPaoNum() {
- return paoNum;
- }
-
- public void setPaoNum(Integer paoNum) {
- this.paoNum = paoNum;
- }
-
- public Integer getLiuNum() {
- return liuNum;
- }
-
- public void setLiuNum(Integer liuNum) {
- this.liuNum = liuNum;
- }
-
- public Integer getZiranNum() {
- return ziranNum;
- }
-
- public void setZiranNum(Integer ziranNum) {
- this.ziranNum = ziranNum;
- }
-
- public Integer getRengongNum() {
- return rengongNum;
- }
-
- public void setRengongNum(Integer rengongNum) {
- this.rengongNum = rengongNum;
- }
-
- public Integer getSitaiNum() {
- return sitaiNum;
- }
-
- public void setSitaiNum(Integer sitaiNum) {
- this.sitaiNum = sitaiNum;
- }
-
- public Integer getSichanNum() {
- return sichanNum;
- }
-
- public void setSichanNum(Integer sichanNum) {
- this.sichanNum = sichanNum;
- }
+ private static final long serialVersionUID = 1L;
+
+ /**
+ *
+ */
+ @TableId(value = "ID")
+ private String id;
+ /**
+ *
+ */
+ @TableField(value = "WOMAN_ID")
+ private String womanId;
+ /**
+ * 诊断类型,0为初诊,1为复诊
+ */
+ @TableField(value = "TYPE")
+ private Integer type;
+ /**
+ * 孕次
+ */
+ @TableField(value = "YUN_NUM")
+ private Integer yunNum;
+ /**
+ * 产次
+ */
+ @TableField(value = "CHAN_NUM")
+ private Integer chanNum;
+ /**
+ * 顺产
+ */
+ @TableField(value = "SHUN_NUM")
+ private Integer shunNum;
+ /**
+ * 刨宫产
+ */
+ @TableField(value = "PAO_NUM")
+ private Integer paoNum;
+ /**
+ * 流产
+ */
+ @TableField(value = "LIU_NUM")
+ private Integer liuNum;
+ /**
+ * 自然
+ */
+ @TableField(value = "ZIRAN_NUM")
+ private Integer ziranNum;
+ /**
+ * 人工
+ */
+ @TableField(value = "RENGONG_NUM")
+ private Integer rengongNum;
+ /**
+ * 死胎
+ */
+ @TableField(value = "SITAI_NUM")
+ private Integer sitaiNum;
+ /**
+ * 死产
+ */
+ @TableField(value = "SICHAN_NUM")
+ private Integer sichanNum;
+ /**
+ * 新生儿死亡
+ */
+ @TableField(value = "CHILDDIE_NUM")
+ private Integer childdieNum;
+ /**
+ * 出生缺陷儿
+ */
+ @TableField(value = "BIRTHDEFECT_NUM")
+ private Integer birthdefectNum;
+ /**
+ * 身高
+ */
+ @TableField(value = "HEIGHT")
+ private Integer height;
+ /**
+ * 体重
+ */
+ @TableField(value = "WEIGHT")
+ private Integer weight;
+ /**
+ * 孕前体重
+ */
+ @TableField(value = "WEIGHT_AGO")
+ private Integer weightAgo;
+ /**
+ * 体重指数
+ */
+ @TableField(value = "WEIGHT_INDEX")
+ private Double weightIndex;
+ /**
+ * 血压_收缩压
+ */
+ @TableField(value = "BLOOD_SHRINK")
+ private Integer bloodShrink;
+ /**
+ * 血压_舒张压
+ */
+ @TableField(value = "BLOOD_DIASTOLE")
+ private Integer bloodDiastole;
+ /**
+ * 心脏
+ */
+ @TableField(value = "HEART")
+ private String heart;
+ /**
+ * 肺部
+ */
+ @TableField(value = "LUNG")
+ private String lung;
+ /**
+ * 外阴
+ */
+ @TableField(value = "WAIYIN_WOMAN")
+ private String waiyinWoman;
+ /**
+ * 阴道
+ */
+ @TableField(value = "YINDAO_WOMAN")
+ private String yindaoWoman;
+ /**
+ *
+ */
+ @TableField(value = "GONGJING_WOMAN")
+ private String gongjingWoman;
+ /**
+ * 子宫
+ */
+ @TableField(value = "ZIGONG_WOMAN")
+ private String zigongWoman;
+ /**
+ * 附件
+ */
+ @TableField(value = "FUJIAN_WOMAN")
+ private String fujianWoman;
+ /**
+ * 宫高
+ */
+ @TableField(value = "GONGGAO_OBSTETRICS")
+ private Integer gonggaoObstetrics;
+ /**
+ * 腹围
+ */
+ @TableField(value = "FUWEI_OBSTETRICS")
+ private Integer fuweiObstetrics;
+ /**
+ * 浮肿
+ */
+ @TableField(value = "FUZHONG_OBSTETRICS")
+ private Integer fuzhongObstetrics;
+ /**
+ * 胎数
+ */
+ @TableField(value = "TAISHU_OBSTETRICS")
+ private Integer taishuObstetrics;
+ /**
+ * 处理意见
+ */
+ @TableField(value = "DISPOSE_SUGGEST")
+ private String disposeSuggest;
+ /**
+ * 指导意见
+ */
+ @TableField(value = "GUIDE_SUGGEST")
+ private String guideSuggest;
+ /**
+ * 下次产检孕周数
+ */
+ @TableField(value = "NEXTINSPECT_NUM")
+ private Integer nextinspectNum;
+ /**
+ * 下次检查日期
+ */
+ @TableField(value = "NEXTINSPECT_TIME")
+ private Date nextinspectTime;
+ /**
+ *
+ */
+ @TableField(value = "DOCTOR_ID")
+ private String doctorId;
+ /**
+ * 医院id
+ */
+ @TableField(value = "ORG_ID")
+ private String orgId;
+ /**
+ * 诊断时间
+ */
+ @TableField(value = "DIAGNOSE_TIME")
+ private Date diagnoseTime;
+
+ //补充字段 by xujiahong since 2017-04-26======================================
+
+ /**
+ * 居民表ID
+ */
+ @TableField(value = "PERSON_ID")
+ private String personId;
+ /**
+ * 是否存在高危定义,1有,0没有
+ */
+ @TableField(value = "HAS_HIGHRISK")
+ private Integer hasHighrisk;
+ /**
+ * 其他用户自定义高危颜色编码
+ */
+ @TableField(value = "CUS_HR_COLORCODE")
+ private String cusHrColorcode;
+ /**
+ * 其他用户自定义高危颜色描述
+ */
+ @TableField(value = "CUS_HR_COLORTEXT")
+ private String cusHrColortext;
+ /**
+ * 其他用户自定义高危描述
+ */
+ @TableField(value = "CUS_HR_NAME")
+ private String cusHrName;
+ /**
+ * 其他用户自定义高危评分
+ */
+ @TableField(value = "CUS_HR_GRADE")
+ private Integer cusHrGrade;
+ /**
+ * 是否存在诊断定义,1有,0没有
+ */
+ @TableField(value = "HAS_DIAGNOSE")
+ private Integer hasDiagnose;
+
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getWomanId() {
+ return womanId;
+ }
+
+ public void setWomanId(String womanId) {
+ this.womanId = womanId;
+ }
+
+ public Integer getType() {
+ return type;
+ }
+
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ public Integer getYunNum() {
+ return yunNum;
+ }
+
+ public void setYunNum(Integer yunNum) {
+ this.yunNum = yunNum;
+ }
+
+ public Integer getChanNum() {
+ return chanNum;
+ }
+
+ public void setChanNum(Integer chanNum) {
+ this.chanNum = chanNum;
+ }
+
+ public Integer getShunNum() {
+ return shunNum;
+ }
+
+ public void setShunNum(Integer shunNum) {
+ this.shunNum = shunNum;
+ }
+
+ public Integer getPaoNum() {
+ return paoNum;
+ }
+
+ public void setPaoNum(Integer paoNum) {
+ this.paoNum = paoNum;
+ }
+
+ public Integer getLiuNum() {
+ return liuNum;
+ }
+
+ public void setLiuNum(Integer liuNum) {
+ this.liuNum = liuNum;
+ }
+
+ public Integer getZiranNum() {
+ return ziranNum;
+ }
+
+ public void setZiranNum(Integer ziranNum) {
+ this.ziranNum = ziranNum;
+ }
+
+ public Integer getRengongNum() {
+ return rengongNum;
+ }
+
+ public void setRengongNum(Integer rengongNum) {
+ this.rengongNum = rengongNum;
+ }
+
+ public Integer getSitaiNum() {
+ return sitaiNum;
+ }
+
+ public void setSitaiNum(Integer sitaiNum) {
+ this.sitaiNum = sitaiNum;
+ }
+
+ public Integer getSichanNum() {
+ return sichanNum;
+ }
+
+ public void setSichanNum(Integer sichanNum) {
+ this.sichanNum = sichanNum;
+ }
+
+ public Integer getChilddieNum() {
+ return childdieNum;
+ }
- public Integer getChilddieNum() {
- return childdieNum;
- }
+ public void setChilddieNum(Integer childdieNum) {
+ this.childdieNum = childdieNum;
+ }
- public void setChilddieNum(Integer childdieNum) {
- this.childdieNum = childdieNum;
- }
+ public Integer getBirthdefectNum() {
+ return birthdefectNum;
+ }
- public Integer getBirthdefectNum() {
- return birthdefectNum;
- }
+ public void setBirthdefectNum(Integer birthdefectNum) {
+ this.birthdefectNum = birthdefectNum;
+ }
- public void setBirthdefectNum(Integer birthdefectNum) {
- this.birthdefectNum = birthdefectNum;
- }
+ public Integer getHeight() {
+ return height;
+ }
- public Integer getHeight() {
- return height;
- }
+ public void setHeight(Integer height) {
+ this.height = height;
+ }
- public void setHeight(Integer height) {
- this.height = height;
- }
+ public Integer getWeight() {
+ return weight;
+ }
- public Integer getWeight() {
- return weight;
- }
+ public void setWeight(Integer weight) {
+ this.weight = weight;
+ }
+
+ public Integer getWeightAgo() {
+ return weightAgo;
+ }
- public void setWeight(Integer weight) {
- this.weight = weight;
- }
+ public void setWeightAgo(Integer weightAgo) {
+ this.weightAgo = weightAgo;
+ }
- public Integer getHeightAgo() {
- return heightAgo;
- }
+ public Double getWeightIndex() {
+ return weightIndex;
+ }
- public void setHeightAgo(Integer heightAgo) {
- this.heightAgo = heightAgo;
- }
+ public void setWeightIndex(Double weightIndex) {
+ this.weightIndex = weightIndex;
+ }
- public Double getWeightIndex() {
- return weightIndex;
- }
+ public Integer getBloodShrink() {
+ return bloodShrink;
+ }
- public void setWeightIndex(Double weightIndex) {
- this.weightIndex = weightIndex;
- }
+ public void setBloodShrink(Integer bloodShrink) {
+ this.bloodShrink = bloodShrink;
+ }
- public Integer getBloodShrink() {
- return bloodShrink;
- }
+ public Integer getBloodDiastole() {
+ return bloodDiastole;
+ }
- public void setBloodShrink(Integer bloodShrink) {
- this.bloodShrink = bloodShrink;
- }
+ public void setBloodDiastole(Integer bloodDiastole) {
+ this.bloodDiastole = bloodDiastole;
+ }
- public Integer getBloodDiastole() {
- return bloodDiastole;
- }
+ public String getHeart() {
+ return heart;
+ }
- public void setBloodDiastole(Integer bloodDiastole) {
- this.bloodDiastole = bloodDiastole;
- }
+ public void setHeart(String heart) {
+ this.heart = heart;
+ }
- public String getHeart() {
- return heart;
- }
+ public String getLung() {
+ return lung;
+ }
- public void setHeart(String heart) {
- this.heart = heart;
- }
+ public void setLung(String lung) {
+ this.lung = lung;
+ }
- public String getLung() {
- return lung;
- }
+ public String getWaiyinWoman() {
+ return waiyinWoman;
+ }
- public void setLung(String lung) {
- this.lung = lung;
- }
+ public void setWaiyinWoman(String waiyinWoman) {
+ this.waiyinWoman = waiyinWoman;
+ }
- public String getWaiyinWoman() {
- return waiyinWoman;
- }
+ public String getYindaoWoman() {
+ return yindaoWoman;
+ }
- public void setWaiyinWoman(String waiyinWoman) {
- this.waiyinWoman = waiyinWoman;
- }
+ public void setYindaoWoman(String yindaoWoman) {
+ this.yindaoWoman = yindaoWoman;
+ }
- public String getYindaoWoman() {
- return yindaoWoman;
- }
+ public String getGongjingWoman() {
+ return gongjingWoman;
+ }
- public void setYindaoWoman(String yindaoWoman) {
- this.yindaoWoman = yindaoWoman;
- }
+ public void setGongjingWoman(String gongjingWoman) {
+ this.gongjingWoman = gongjingWoman;
+ }
- public String getGongjingWoman() {
- return gongjingWoman;
- }
+ public String getZigongWoman() {
+ return zigongWoman;
+ }
- public void setGongjingWoman(String gongjingWoman) {
- this.gongjingWoman = gongjingWoman;
- }
+ public void setZigongWoman(String zigongWoman) {
+ this.zigongWoman = zigongWoman;
+ }
- public String getZigongWoman() {
- return zigongWoman;
- }
+ public String getFujianWoman() {
+ return fujianWoman;
+ }
- public void setZigongWoman(String zigongWoman) {
- this.zigongWoman = zigongWoman;
- }
+ public void setFujianWoman(String fujianWoman) {
+ this.fujianWoman = fujianWoman;
+ }
- public String getFujianWoman() {
- return fujianWoman;
- }
+ public Integer getGonggaoObstetrics() {
+ return gonggaoObstetrics;
+ }
- public void setFujianWoman(String fujianWoman) {
- this.fujianWoman = fujianWoman;
- }
+ public void setGonggaoObstetrics(Integer gonggaoObstetrics) {
+ this.gonggaoObstetrics = gonggaoObstetrics;
+ }
- public Integer getGonggaoObstetrics() {
- return gonggaoObstetrics;
- }
+ public Integer getFuweiObstetrics() {
+ return fuweiObstetrics;
+ }
- public void setGonggaoObstetrics(Integer gonggaoObstetrics) {
- this.gonggaoObstetrics = gonggaoObstetrics;
- }
+ public void setFuweiObstetrics(Integer fuweiObstetrics) {
+ this.fuweiObstetrics = fuweiObstetrics;
+ }
- public Integer getFuweiObstetrics() {
- return fuweiObstetrics;
- }
+ public Integer getFuzhongObstetrics() {
+ return fuzhongObstetrics;
+ }
- public void setFuweiObstetrics(Integer fuweiObstetrics) {
- this.fuweiObstetrics = fuweiObstetrics;
- }
+ public void setFuzhongObstetrics(Integer fuzhongObstetrics) {
+ this.fuzhongObstetrics = fuzhongObstetrics;
+ }
- public Integer getFuzhongObstetrics() {
- return fuzhongObstetrics;
- }
+ public Integer getTaishuObstetrics() {
+ return taishuObstetrics;
+ }
- public void setFuzhongObstetrics(Integer fuzhongObstetrics) {
- this.fuzhongObstetrics = fuzhongObstetrics;
- }
+ public void setTaishuObstetrics(Integer taishuObstetrics) {
+ this.taishuObstetrics = taishuObstetrics;
+ }
- public Integer getTaishuObstetrics() {
- return taishuObstetrics;
- }
+ public String getDisposeSuggest() {
+ return disposeSuggest;
+ }
- public void setTaishuObstetrics(Integer taishuObstetrics) {
- this.taishuObstetrics = taishuObstetrics;
- }
+ public void setDisposeSuggest(String disposeSuggest) {
+ this.disposeSuggest = disposeSuggest;
+ }
- public String getDisposeSuggest() {
- return disposeSuggest;
- }
+ public String getGuideSuggest() {
+ return guideSuggest;
+ }
- public void setDisposeSuggest(String disposeSuggest) {
- this.disposeSuggest = disposeSuggest;
- }
+ public void setGuideSuggest(String guideSuggest) {
+ this.guideSuggest = guideSuggest;
+ }
- public String getGuideSuggest() {
- return guideSuggest;
- }
+ public Integer getNextinspectNum() {
+ return nextinspectNum;
+ }
- public void setGuideSuggest(String guideSuggest) {
- this.guideSuggest = guideSuggest;
- }
+ public void setNextinspectNum(Integer nextinspectNum) {
+ this.nextinspectNum = nextinspectNum;
+ }
- public Integer getNextinspectNum() {
- return nextinspectNum;
- }
+ public Date getNextinspectTime() {
+ return nextinspectTime;
+ }
- public void setNextinspectNum(Integer nextinspectNum) {
- this.nextinspectNum = nextinspectNum;
- }
+ public void setNextinspectTime(Date nextinspectTime) {
+ this.nextinspectTime = nextinspectTime;
+ }
- public Date getNextinspectTime() {
- return nextinspectTime;
- }
+ public String getDoctorId() {
+ return doctorId;
+ }
- public void setNextinspectTime(Date nextinspectTime) {
- this.nextinspectTime = nextinspectTime;
- }
+ public void setDoctorId(String doctorId) {
+ this.doctorId = doctorId;
+ }
- public String getDoctorId() {
- return doctorId;
- }
+ public String getOrgId() {
+ return orgId;
+ }
- public void setDoctorId(String doctorId) {
- this.doctorId = doctorId;
- }
+ public void setOrgId(String orgId) {
+ this.orgId = orgId;
+ }
- public String getOrgId() {
- return orgId;
- }
+ public Date getDiagnoseTime() {
+ return diagnoseTime;
+ }
- public void setOrgId(String orgId) {
- this.orgId = orgId;
- }
+ public void setDiagnoseTime(Date diagnoseTime) {
+ this.diagnoseTime = diagnoseTime;
+ }
- public Date getDiagnoseTime() {
- return diagnoseTime;
- }
+ public String getPersonId() {
+ return personId;
+ }
- public void setDiagnoseTime(Date diagnoseTime) {
- this.diagnoseTime = diagnoseTime;
- }
+ public void setPersonId(String personId) {
+ this.personId = personId;
+ }
+
+ public Integer getHasHighrisk() {
+ return hasHighrisk;
+ }
+
+ public void setHasHighrisk(Integer hasHighrisk) {
+ this.hasHighrisk = hasHighrisk;
+ }
+
+ public String getCusHrColorcode() {
+ return cusHrColorcode;
+ }
+
+ public void setCusHrColorcode(String cusHrColorcode) {
+ this.cusHrColorcode = cusHrColorcode;
+ }
+
+ public String getCusHrColortext() {
+ return cusHrColortext;
+ }
+
+ public void setCusHrColortext(String cusHrColortext) {
+ this.cusHrColortext = cusHrColortext;
+ }
+
+ public String getCusHrName() {
+ return cusHrName;
+ }
+
+ public void setCusHrName(String cusHrName) {
+ this.cusHrName = cusHrName;
+ }
+
+ public Integer getCusHrGrade() {
+ return cusHrGrade;
+ }
+
+ public void setCusHrGrade(Integer cusHrGrade) {
+ this.cusHrGrade = cusHrGrade;
+ }
+
+ public Integer getHasDiagnose() {
+ return hasDiagnose;
+ }
+
+ public void setHasDiagnose(Integer hasDiagnose) {
+ this.hasDiagnose = hasDiagnose;
+ }
+
}
diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java
index 474acc9..359b85d 100644
--- a/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java
+++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/entity/woman/WomanFetationRecord.java
@@ -3,6 +3,8 @@ package com.lyms.hospital.entity.woman;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
+import com.lyms.util.DateUtil;
+
import java.io.Serializable;
import java.util.Date;
@@ -292,7 +294,24 @@ public class WomanFetationRecord implements Serializable {
@TableField(value="SOURCE_ID")
private String sourceId;
- //格式化字段
+ /**
+ * 分娩日期
+ */
+ @TableField(value="FM_DATE")
+ private Date fmDate;
+ /**
+ * 是否自动分娩,0不是,1是
+ */
+ @TableField(value="IFAUTOFM")
+ private Integer ifautofm;
+
+ /**
+ * 孕妇状态,1孕妇,3产妇
+ */
+ @TableField(value="STATE")
+ private Integer state;
+
+ //格式化字段(5各自段已格式化)
@TableField(exist=false)
private String baseWomanBirthStr;//孕妇生日Str
@TableField(exist=false)
@@ -697,6 +716,7 @@ public class WomanFetationRecord implements Serializable {
public void setBaseWomanBirth(Date baseWomanBirth) {
this.baseWomanBirth = baseWomanBirth;
+ this.baseWomanBirthStr = DateUtil.getyyyy_MM_dd(baseWomanBirth);
}
public Date getHospitalLastMenstruation() {
return hospitalLastMenstruation;
@@ -704,6 +724,7 @@ public class WomanFetationRecord implements Serializable {
public void setHospitalLastMenstruation(Date hospitalLastMenstruation) {
this.hospitalLastMenstruation = hospitalLastMenstruation;
+ this.hospitalLastMenstruationStr = DateUtil.getyyyy_MM_dd(hospitalLastMenstruation);
}
public Date getHospitalCorrectLastMenstruation() {
@@ -712,6 +733,7 @@ public class WomanFetationRecord implements Serializable {
public void setHospitalCorrectLastMenstruation(Date hospitalCorrectLastMenstruation) {
this.hospitalCorrectLastMenstruation = hospitalCorrectLastMenstruation;
+ this.hospitalCorrectLastMenstruationStr = DateUtil.getyyyy_MM_dd(hospitalCorrectLastMenstruation);
}
public Date getHospitalExpectedDate() {
@@ -720,12 +742,14 @@ public class WomanFetationRecord implements Serializable {
public void setHospitalExpectedDate(Date hospitalExpectedDate) {
this.hospitalExpectedDate = hospitalExpectedDate;
+ this.hospitalExpectedDateStr = DateUtil.getyyyy_MM_dd(hospitalExpectedDate);
}
public Date getHospitalRecordDate() {
return hospitalRecordDate;
}
public void setHospitalRecordDate(Date hospitalRecordDate) {
this.hospitalRecordDate = hospitalRecordDate;
+ this.hospitalRecordDateStr = DateUtil.getyyyy_MM_dd(hospitalRecordDate);
}
public String getBaseWomanBirthStr() {
@@ -816,5 +840,37 @@ public class WomanFetationRecord implements Serializable {
this.sourceId = sourceId;
}
+ public Date getFmDate() {
+ return fmDate;
+ }
+
+ public void setFmDate(Date fmDate) {
+ this.fmDate = fmDate;
+ }
+
+ public String getPersonId() {
+ return personId;
+ }
+
+ public void setPersonId(String personId) {
+ this.personId = personId;
+ }
+
+ public Integer getIfautofm() {
+ return ifautofm;
+ }
+
+ public void setIfautofm(Integer ifautofm) {
+ this.ifautofm = ifautofm;
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+
}
diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseInfoService.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseInfoService.java
index 0a3be46..828be87 100644
--- a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseInfoService.java
+++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/DiagnoseInfoService.java
@@ -1,12 +1,21 @@
package com.lyms.hospital.service.diagnose;
+import java.io.Serializable;
+import java.util.List;
+
+import com.lyms.hospital.entity.assist.DiagnoseAssit;
+import com.lyms.base.common.entity.conf.HighriskConf;
import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
+import com.lyms.hospital.entity.history.HistoryMaps;
import com.lyms.web.service.BaseService;
-import java.io.Serializable;
+import java.util.List;
/**
*
* 服务类
+ *
+ * 保存初诊数据
+ * 保存复诊数据
*
*
* @author jiangjiazhi
@@ -20,5 +29,26 @@ public interface DiagnoseInfoService extends BaseService {
* @return 大于0修改成功,否则为失败
*/
public Integer deleteLogicById(Serializable id);
+
+ /**
+ * @Description:保存初诊数据
+ * @return
+ * 创建人:xujiahong
+ * 创建时间:2017年4月26日
+ * 修改人:
+ * 修改时间:
+ */
+ public String saveFirstExam(DiagnoseInfo info,DiagnoseAssit assist,List historyList);
+ /**
+ * @Description:根据居民ID获取末次高危
+ * @param personId 居民ID
+ * @return
+ * 创建人:方承
+ * 创建时间:2017年4月25日
+ * 修改人:
+ * 修改时间:
+ */
+ public List getLastHighrisk(Serializable personId);
+
}
diff --git a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseInfoServiceImpl.java b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseInfoServiceImpl.java
index 11ceb01..02c21ce 100644
--- a/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseInfoServiceImpl.java
+++ b/parent/hospital.mac/src/main/java/com/lyms/hospital/service/diagnose/impl/DiagnoseInfoServiceImpl.java
@@ -10,96 +10,140 @@ import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import com.lyms.base.common.entity.conf.HighriskConf;
import com.lyms.hospital.dao.diagnose.DiagnoseInfoMapper;
import com.lyms.hospital.entity.assist.DiagnoseAssit;
import com.lyms.hospital.entity.diagnose.DiagnoseInfo;
+import com.lyms.hospital.entity.history.HistoryMaps;
import com.lyms.hospital.service.assist.DiagnoseAssitService;
import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
import com.lyms.util.StrUtils;
/**
*
- * 诊断信息表,包含初诊、复诊信息 服务实现类
+ * 诊断信息表,包含初诊、复诊信息 服务实现类
*
*
* @author jiangjiazhi
- * @link DiagnoseTypeEnums 初诊 复诊 分类接口
+ * @link DiagnoseTypeEnums 初诊 复诊 分类接口
* @since 2017-03-28
*/
@Service
-public class DiagnoseInfoServiceImpl extends ServiceImpl implements
- DiagnoseInfoService {
+public class DiagnoseInfoServiceImpl extends ServiceImpl
+ implements DiagnoseInfoService {
- @Autowired
- private DiagnoseAssitService diagnoseAssitService;
+ @Autowired
+ private DiagnoseAssitService diagnoseAssitService;
- public Integer deleteLogicById(Serializable id) {
- return baseMapper.deleteLogicById(id);
- }
+ public Integer deleteLogicById(Serializable id) {
+ return baseMapper.deleteLogicById(id);
+ }
- @Transactional
- public void addOrUpdate(DiagnoseInfo dInfo, DiagnoseAssit diagnoseAssit) {
- if (StringUtils.isEmpty(dInfo.getId())) {
- dInfo.setId(StrUtils.uuid());
- insert(dInfo);
- if (StringUtils.isEmpty(diagnoseAssit.getId())) {
- diagnoseAssit.setId(StrUtils.uuid());
- }
- diagnoseAssit.setDiagnoseId(dInfo.getId());
- diagnoseAssitService.insert(diagnoseAssit);
- } else {
- updateById(dInfo);
- diagnoseAssitService.updateById(diagnoseAssit);
- }
- }
+ @Transactional
+ public void addOrUpdate(DiagnoseInfo dInfo, DiagnoseAssit diagnoseAssit) {
+ if (StringUtils.isEmpty(dInfo.getId())) {
+ dInfo.setId(StrUtils.uuid());
+ insert(dInfo);
+ if (StringUtils.isEmpty(diagnoseAssit.getId())) {
+ diagnoseAssit.setId(StrUtils.uuid());
+ }
+ diagnoseAssit.setDiagnoseId(dInfo.getId());
+ diagnoseAssitService.insert(diagnoseAssit);
+ } else {
+ updateById(dInfo);
+ diagnoseAssitService.updateById(diagnoseAssit);
+ }
+ }
- /**
- * 根据建档记录id查询所有有效的产检记录
- *
- * @param parentId 建档id
- * @return
- * 创建人:Administrator
- * 创建时间:2017-3-31
- * 修改人:
- * 修改时间:
- */
- public List findListByParentId(String parentId) {
- EntityWrapper ew = new EntityWrapper();
- ew.where("WOMAN_ID={0}", parentId);
- return selectList(ew);
- }
+ /**
+ * 根据建档记录id查询所有有效的产检记录
+ *
+ * @param parentId 建档id
+ * @return
+ * 创建人:Administrator
+ * 创建时间:2017-3-31
+ * 修改人:
+ * 修改时间:
+ */
+ public List findListByParentId(String parentId) {
+ EntityWrapper ew = new EntityWrapper();
+ ew.where("WOMAN_ID={0}", parentId);
+ return selectList(ew);
+ }
- /**
- *
- * 根据条件查询产检信息
- *
- * @param type
- * @param cardNum
- * @return
- * 创建人:Administrator
- * 创建时间:2017-3-31
- * 修改人:
- * 修改时间:
- */
- public DiagnoseInfo findByCond(int type, String cardNum) {
- EntityWrapper ew = new EntityWrapper();
- ew.where("type={0}", type).and("BASE_PAPERS_NUMBER={0}", cardNum).orderBy("DIAGNOSE_TIME", Boolean.FALSE);
- return (DiagnoseInfo) selectObj(ew);
- }
+ /**
+ *
+ * 根据条件查询产检信息
+ *
+ * @param type
+ * @param cardNum
+ * @return
+ * 创建人:Administrator
+ * 创建时间:2017-3-31
+ * 修改人:
+ * 修改时间:
+ */
+ public DiagnoseInfo findByCond(int type, String cardNum) {
+ EntityWrapper ew = new EntityWrapper();
+ ew.where("type={0}", type).and("BASE_PAPERS_NUMBER={0}", cardNum).orderBy("DIAGNOSE_TIME", Boolean.FALSE);
+ return (DiagnoseInfo) selectObj(ew);
+ }
+
+ /**
+ * 查询这个人所有的产检记录
+ *
+ * @param pid
+ * @return
+ * 创建人:Administrator
+ * 创建时间:2017-3-31
+ * 修改人:
+ * 修改时间:
+ */
+ public List findListByPid(String pid) {
+ EntityWrapper ew = new EntityWrapper();
+ ew.where("pid={0}", pid);
+ return selectList(ew);
+ }
+
+ @Override
+ @Transactional
+ public String saveFirstExam(DiagnoseInfo info, DiagnoseAssit assist, List historyList) {
+ /*
+ * 基础验证
+ */
+ if (info == null || assist == null || historyList == null) {
+ return "参数缺失";
+ }
+
+ /*
+ * (1)保存产检基本信息 (2)批量保存病史信息 (3)保存辅助检查信息
+ */
+// if (StringUtils.isEmpty(info.getId())) {//新增
+// info.setId(StrUtils.uuid());
+// insert(info);
+// if (StringUtils.isEmpty(assist.getId())) {
+// assist.setId(StrUtils.uuid());
+// }
+// diagnoseAssit.setDiagnoseId(dInfo.getId());
+// diagnoseAssitService.insert(diagnoseAssit);
+// } else {//修改
+// updateById(dInfo);
+// diagnoseAssitService.updateById(diagnoseAssit);
+// }
+ return null;
+
+ /*
+ "familyHistory":"yes"
+ familyHistory xyb true;
+
+
+
+ */
+
+ }
- /**
- * 查询这个人所有的产检记录
- *
- * @param pid
- * @return
- * 创建人:Administrator
- * 创建时间:2017-3-31
- * 修改人:
- * 修改时间:
- */
- public List findListByPid(String pid) {
- EntityWrapper ew = new EntityWrapper();
- ew.where("pid={0}", pid);
- return selectList(ew);
+ @Override
+ public List getLastHighrisk(Serializable personId) {
+ return baseMapper.getLastHighrisk(personId);
}
}
\ No newline at end of file
diff --git a/parent/hospital.web/src/main/java/com/lyms/hospital/controller/woman/WomanExamController.java b/parent/hospital.web/src/main/java/com/lyms/hospital/controller/woman/WomanExamController.java
index 7a89889..f512364 100644
--- a/parent/hospital.web/src/main/java/com/lyms/hospital/controller/woman/WomanExamController.java
+++ b/parent/hospital.web/src/main/java/com/lyms/hospital/controller/woman/WomanExamController.java
@@ -1,21 +1,33 @@
package com.lyms.hospital.controller.woman;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.lyms.hospital.entity.woman.WomanFetationRecord;
+import com.lyms.hospital.request.exam.ExamAddRequest;
+import com.lyms.hospital.service.diagnose.DiagnoseInfoService;
import com.lyms.hospital.service.woman.WomanFetationRecordService;
+import com.lyms.hospital.util.HospitalUtil;
+import com.lyms.util.DateUtil;
import com.lyms.web.bean.AjaxResult;
import com.lyms.web.controller.BaseController;
/**
* 孕妇产检 前端控制器
*
- * 依据cardNo或vcCardNo查询孕妇产检记录
+ * [--]依据cardNo或vcCardNo查询孕妇产检记录
+ * 保存初诊数据
*
* @author xujiahong
*
@@ -26,6 +38,29 @@ public class WomanExamController extends BaseController {
@Autowired
private WomanFetationRecordService fetationService;
+ @Autowired
+ private DiagnoseInfoService infoService;
+
+ /**
+ * @Description:保存初诊数据
+ * @param request
+ * @return
+ * 创建人:xujiahong
+ * 创建时间:2017年4月26日
+ * 修改人:
+ * 修改时间:
+ */
+ @RequestMapping(value = "/antex", method = RequestMethod.POST)
+ @ResponseBody
+ public AjaxResult saveExam(@RequestBody ExamAddRequest request){
+ /*
+ * (1)保存产检基本信息
+ * 多个胎儿信息
+ * (2)批量保存病史信息
+ * (3)保存辅助检查信息
+ */
+ return AjaxResult.returnFail();
+ }
/**
* @Description:依据cardNo或vcCardNo查询孕妇产检记录
@@ -37,13 +72,14 @@ public class WomanExamController extends BaseController {
* 修改人:
* 修改时间:
*/
- @RequestMapping(value = "/antexmanage", method = RequestMethod.POST)
+ @RequestMapping(value = "/antexmanage", method = RequestMethod.GET)
@ResponseBody
- public AjaxResult deletePregnant(String cardNo,String vcCardNo,String orgId){//orgId或来自token
+ public AjaxResult selectExamHistory(String cardNo,String vcCardNo,String orgId){//orgId或来自token
/*
- * (1)孕妇档案信息(通过证件号或就诊卡号查询)
+ * (1)孕妇档案信息(通过证件号或就诊卡号查询)-根据产检券查询 TODO
* (2)高危因素列表 TODO
- * (3)产检记录列表
+ * (3)产检记录列表 TODO
+ *
*/
//基本验证
if(StringUtils.isEmpty(orgId)){
@@ -73,11 +109,35 @@ public class WomanExamController extends BaseController {
return AjaxResult.returnFail("未查询到孕妇建档信息");
}
//(2)高危因素列表 TODO
- //(3)产检记录列表 TODO (此处需要查询当前产程中本院和外院的所有产检记录)
-
-
+ List