Commit dc952953278a555d4e2b1864eb4a586a3e23849c

Authored by yangfei
1 parent fbabe11e9b

多产程,电子病历&两癌筛查部分

Showing 8 changed files with 1224 additions and 47 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/ICancerScreeningDao.java View file @ dc95295
  1 +package com.lyms.platform.biz.dal;
  2 +
  3 +import com.lyms.platform.common.dao.operator.MongoQuery;
  4 +import com.lyms.platform.pojo.CancerScreeningModel;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * 两癌筛查
  10 + * Created by Administrator on 2016/6/21 0021.
  11 + */
  12 +public interface ICancerScreeningDao {
  13 +
  14 + /**
  15 + * 增加一条两癌筛查记录
  16 + *
  17 + * @param cancerScreeningChuModel
  18 + * @return
  19 + */
  20 + CancerScreeningModel addOneCanScr(CancerScreeningModel cancerScreeningChuModel);
  21 +
  22 + /**
  23 + * 根据id获取详细的两癌筛查记录
  24 + *
  25 + * @return
  26 + */
  27 + CancerScreeningModel findOneById(String id);
  28 +
  29 + /**
  30 + * 修改查询到的两癌筛查记录
  31 + *
  32 + * @param mongoQuery
  33 + */
  34 + void updateOneCanScr(MongoQuery mongoQuery, CancerScreeningModel cancerScreeningChuModel);
  35 +
  36 + /**
  37 + * 修改一条两癌筛查
  38 + *
  39 + * @param cancerScreeningChuModel
  40 + * @param id
  41 + */
  42 + void updateOneCanScr(CancerScreeningModel cancerScreeningChuModel, String id);
  43 +
  44 + /**
  45 + *
  46 + * 查询列表
  47 + * @param query
  48 + * @return
  49 + */
  50 + List<CancerScreeningModel> query(MongoQuery query);
  51 +
  52 + /**
  53 + * 查询数据
  54 + *
  55 + * @param query
  56 + * @return
  57 + */
  58 + int count(MongoQuery query);
  59 +}
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/CancerScreeningDaoImpl.java View file @ dc95295
  1 +package com.lyms.platform.biz.dal.impl;
  2 +
  3 +import com.lyms.platform.biz.dal.ICancerScreeningDao;
  4 +import com.lyms.platform.common.dao.BaseMongoDAOImpl;
  5 +import com.lyms.platform.common.dao.operator.MongoCondition;
  6 +import com.lyms.platform.common.dao.operator.MongoOper;
  7 +import com.lyms.platform.common.dao.operator.MongoQuery;
  8 +import com.lyms.platform.pojo.CancerScreeningModel;
  9 +import org.springframework.stereotype.Repository;
  10 +
  11 +import java.util.Date;
  12 +import java.util.List;
  13 +
  14 +/**
  15 + * @auther yangfei
  16 + * @createTime 2018年04月11日 16时46分
  17 + * @discription
  18 + */
  19 +@Repository
  20 +public class CancerScreeningDaoImpl extends BaseMongoDAOImpl<CancerScreeningModel> implements ICancerScreeningDao {
  21 + /**
  22 + * 增加一条两癌筛查记录
  23 + *
  24 + * @param cancerScreeningChuModel
  25 + * @return
  26 + */
  27 + @Override
  28 + public CancerScreeningModel addOneCanScr(CancerScreeningModel cancerScreeningChuModel) {
  29 +
  30 + return save(cancerScreeningChuModel);
  31 + }
  32 +
  33 + /**
  34 + * 根据id获取详细的两癌筛查记录
  35 + *
  36 + * @param id
  37 + * @return
  38 + */
  39 + @Override
  40 + public CancerScreeningModel findOneById(String id) {
  41 +
  42 + return findById(id);
  43 + }
  44 +
  45 + /**
  46 + * 修改查询到的两癌筛查记录
  47 + *
  48 + * @param mongoQuery
  49 + * @param cancerScreeningChuModel
  50 + */
  51 + @Override
  52 + public void updateOneCanScr(MongoQuery mongoQuery, CancerScreeningModel cancerScreeningChuModel) {
  53 + cancerScreeningChuModel.setModified(new Date());
  54 + updateMulti(mongoQuery.convertToMongoQuery(), cancerScreeningChuModel);
  55 + }
  56 +
  57 + /**
  58 + * 修改一条两癌筛查
  59 + *
  60 + * @param cancerScreeningChuModel
  61 + * @param id
  62 + */
  63 + @Override
  64 + public void updateOneCanScr(CancerScreeningModel cancerScreeningChuModel, String id) {
  65 + update(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), cancerScreeningChuModel);
  66 + }
  67 +
  68 + /**
  69 + * 查询列表
  70 + *
  71 + * @param query
  72 + * @return
  73 + */
  74 + @Override
  75 + public List<CancerScreeningModel> query(MongoQuery query) {
  76 + return find(query.convertToMongoQuery());
  77 + }
  78 +
  79 + /**
  80 + * 查询数据
  81 + *
  82 + * @param query
  83 + * @return
  84 + */
  85 + @Override
  86 + public int count(MongoQuery query) {
  87 + return (int) count(query.convertToMongoQuery());
  88 + }
  89 +}
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/CancerScreeningService.java View file @ dc95295
  1 +package com.lyms.platform.biz.service;
  2 +
  3 +import com.lyms.platform.biz.dal.ICancerScreeningDao;
  4 +import com.lyms.platform.common.dao.operator.MongoCondition;
  5 +import com.lyms.platform.common.dao.operator.MongoOper;
  6 +import com.lyms.platform.common.dao.operator.MongoQuery;
  7 +import com.lyms.platform.common.enums.YnEnums;
  8 +import com.lyms.platform.pojo.CancerScreeningModel;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.data.domain.Sort;
  11 +import org.springframework.stereotype.Service;
  12 +import org.springframework.util.Assert;
  13 +
  14 +import java.util.Date;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * 产前检查服务实现
  19 + *
  20 + */
  21 +@Service
  22 +public class CancerScreeningService {
  23 + @Autowired
  24 + private ICancerScreeningDao iCancerScreeningDao;
  25 +
  26 + public List<CancerScreeningModel> findAllByResidentId(String residentId) {
  27 + Assert.notNull(residentId, "findAllByParentId residentId must not be null.");
  28 + MongoCondition condition = MongoCondition.newInstance("residentId", residentId, MongoOper.IS).and("yn", YnEnums.YES.getId(), MongoOper.IS);
  29 + return iCancerScreeningDao.query(condition.toMongoQuery().addOrder(Sort.Direction.DESC, "created"));
  30 + }
  31 +
  32 + /**
  33 + * 查询条数
  34 + *
  35 + * @param query
  36 + * @return
  37 + */
  38 + public int queryCancerScreCount(MongoQuery query) {
  39 + return iCancerScreeningDao.count(query);
  40 + }
  41 +
  42 +
  43 + /**
  44 + * 根据id查询两癌筛查
  45 + *
  46 + * @param id 两癌筛查id
  47 + * @return 两癌筛查
  48 + */
  49 + public CancerScreeningModel findOneById(String id) {
  50 + Assert.notNull(id, "findOneById id must not be null.");
  51 + return iCancerScreeningDao.findOneById(id);
  52 + }
  53 +
  54 + /**
  55 + * 增加一条两癌筛查记录
  56 + *
  57 + * @param babyVisitModel 两癌筛查记录模型
  58 + * @return
  59 + */
  60 + public CancerScreeningModel addOneCancerScreen(CancerScreeningModel babyVisitModel) {
  61 + Assert.notNull(babyVisitModel, "addOneBabyAnt babyVisitModel must not be null.");
  62 + babyVisitModel.setCreated(new Date());
  63 + babyVisitModel.setModified(new Date());
  64 +
  65 + return iCancerScreeningDao.addOneCanScr(babyVisitModel);
  66 + }
  67 +
  68 + /**
  69 + * 修改一条两癌筛查记录
  70 + *
  71 + * @param babyVisitModel 两癌筛查记录模型
  72 + * @param id 两癌筛查id
  73 + */
  74 + public void updateOneCancerScreen(CancerScreeningModel babyVisitModel, String id) {
  75 + Assert.notNull(id, "updateOneAnt id must not be null.");
  76 + babyVisitModel.setModified(new Date());
  77 + iCancerScreeningDao.updateOneCanScr(babyVisitModel, id);
  78 + }
  79 +
  80 +}
platform-dal/src/main/java/com/lyms/platform/pojo/CancerScreeningModel.java View file @ dc95295
  1 +package com.lyms.platform.pojo;
  2 +
  3 +/**
  4 + * @auther yangfei
  5 + * @createTime 2018年04月11日 16时17分
  6 + * @discription
  7 + */
  8 +
  9 +import com.lyms.platform.beans.SerialIdEnum;
  10 +import org.springframework.data.mongodb.core.mapping.Document;
  11 +
  12 +import java.util.Date;
  13 +
  14 +/**
  15 + * 两癌筛查
  16 + */
  17 +@Document(collection = "lyms_cancer_screen")
  18 +public class CancerScreeningModel {
  19 + private static final long serialVersionUID = SerialIdEnum.CancerScreeningModel.getCid();
  20 + //妇女id
  21 + private String residentId;
  22 + //(一)病史情况
  23 + //月经情况
  24 + //月经初潮年龄(岁)
  25 + private String bsYjage;
  26 + //最近一次末次月经
  27 + private String bsZjyj;
  28 + //绝经(1.否2.是3.不确定)
  29 + private String bsJj;
  30 + //绝经年龄(岁)
  31 + private String bsJjage;
  32 + //孕产史
  33 + //孕次(次)
  34 + private String ycYc;
  35 + //产次(次)
  36 + private String ycCc;
  37 + //初产年龄(岁)
  38 + private String ycAge;
  39 + //哺乳史
  40 + private String ycFrs;
  41 + //是否接受过乳腺癌检査
  42 + private String ycRxajc;
  43 + //既往史
  44 + //乳腺手术或活检史
  45 + private String jwsRxss;
  46 + //激素替代治疗史
  47 + private String jwsJstd;
  48 + //家族史病史
  49 + //乳腺癌
  50 + private String jzsRxa;
  51 + //卵巢癌
  52 + private String jzsLca;
  53 + //(二)乳腺临床检査
  54 + //皮肤左
  55 + private String rxlPfz;
  56 + //皮肤右
  57 + private String rxlPfy;
  58 + //乳头左
  59 + private String rxlRtz;
  60 + //乳头右
  61 + private String rxlRty;
  62 + //溢液左
  63 + private String rxlYyz;
  64 + //溢液右
  65 + private String rxlYyy;
  66 + //肿块左
  67 + private String rxlZkz;
  68 + //肿块右
  69 + private String rxlZky;
  70 + //大小左
  71 + private String rxlDxz;
  72 + //大小右
  73 + private String rxlDxy;
  74 + //形状左
  75 + private String rxlXzz;
  76 + //形状右
  77 + private String rxlXzy;
  78 + //硬度左
  79 + private String rxlYdz;
  80 + //硬度右
  81 + private String rxlYdy;
  82 + //边缘左
  83 + private String rxlByz;
  84 + //边缘右
  85 + private String rxlByy;
  86 + //表面左
  87 + private String rxlBmz;
  88 + //表面右
  89 + private String rxlBmy;
  90 + //活动度左
  91 + private String rxlHddz;
  92 + //活动度右
  93 + private String rxlHddy;
  94 + //副乳1.无2.有
  95 + private String rxlFr;
  96 + //腋淋巴结左
  97 + private String rxlYlbz;
  98 + //腋淋巴结右
  99 + private String rxlYlby;
  100 + //锁骨上淋巴结左
  101 + private String rxlSglbz;
  102 + //锁骨上淋巴结右
  103 + private String rxlSglby;
  104 + //临床检査结果
  105 + private String rxlJcjg;
  106 + //(三)乳腺彩色超声检査
  107 + //超声所见
  108 + private String rxCssj;
  109 + //分类左
  110 + private String rxFlz;
  111 + //分类右
  112 + private String rxlFly;
  113 + //建议
  114 + private String rxlJy;
  115 + //检查机构
  116 + private String rxlJcdw;
  117 + //检査人员
  118 + private String rxlJcry;
  119 + //检査日期
  120 + private String rxlJcrq;
  121 + //(四〉乳腺X线检査(未作X线检査不填写此项)
  122 + //乳腺X线评估左
  123 + private String rxPgz;
  124 + //乳腺X线评估右
  125 + private String rxlPgy;
  126 + //建议
  127 + private String rxJy;
  128 + //(五〉最终随访结果
  129 + //随访情况
  130 + private String sfQk;
  131 + //病理检査
  132 + private String sfBljc;
  133 + //病理检査机构
  134 + private String sfBljg;
  135 + //病理诊断者
  136 + private String sfBlzd;
  137 + //病理检査日期
  138 + private String sfJcrq;
  139 + //最后诊断
  140 + private String sfZhzd;
  141 + //TNM分期
  142 + private String sfTnm;
  143 + //诊治机构
  144 + private String sfZzjg;
  145 + //诊治日期
  146 + private String sfZlrq;
  147 + //接受治疗情况
  148 + private String sfJszl;
  149 + //检査机构
  150 + private String sfJcjg;
  151 + //检查人员
  152 + private String sfJcry;
  153 + //检査日期
  154 + private String sfJcsj;
  155 + private Date modified;
  156 + private Date created;
  157 + //操作人
  158 + private Integer operator;
  159 +
  160 + public static long getSerialVersionUID() {
  161 + return serialVersionUID;
  162 + }
  163 +
  164 + public String getResidentId() {
  165 + return residentId;
  166 + }
  167 +
  168 + public void setResidentId(String residentId) {
  169 + this.residentId = residentId;
  170 + }
  171 +
  172 + public String getBsYjage() {
  173 + return bsYjage;
  174 + }
  175 +
  176 + public void setBsYjage(String bsYjage) {
  177 + this.bsYjage = bsYjage;
  178 + }
  179 +
  180 + public String getBsZjyj() {
  181 + return bsZjyj;
  182 + }
  183 +
  184 + public void setBsZjyj(String bsZjyj) {
  185 + this.bsZjyj = bsZjyj;
  186 + }
  187 +
  188 + public String getBsJj() {
  189 + return bsJj;
  190 + }
  191 +
  192 + public void setBsJj(String bsJj) {
  193 + this.bsJj = bsJj;
  194 + }
  195 +
  196 + public String getBsJjage() {
  197 + return bsJjage;
  198 + }
  199 +
  200 + public void setBsJjage(String bsJjage) {
  201 + this.bsJjage = bsJjage;
  202 + }
  203 +
  204 + public String getYcYc() {
  205 + return ycYc;
  206 + }
  207 +
  208 + public void setYcYc(String ycYc) {
  209 + this.ycYc = ycYc;
  210 + }
  211 +
  212 + public String getYcCc() {
  213 + return ycCc;
  214 + }
  215 +
  216 + public void setYcCc(String ycCc) {
  217 + this.ycCc = ycCc;
  218 + }
  219 +
  220 + public String getYcAge() {
  221 + return ycAge;
  222 + }
  223 +
  224 + public void setYcAge(String ycAge) {
  225 + this.ycAge = ycAge;
  226 + }
  227 +
  228 + public String getYcFrs() {
  229 + return ycFrs;
  230 + }
  231 +
  232 + public void setYcFrs(String ycFrs) {
  233 + this.ycFrs = ycFrs;
  234 + }
  235 +
  236 + public String getYcRxajc() {
  237 + return ycRxajc;
  238 + }
  239 +
  240 + public void setYcRxajc(String ycRxajc) {
  241 + this.ycRxajc = ycRxajc;
  242 + }
  243 +
  244 + public String getJwsRxss() {
  245 + return jwsRxss;
  246 + }
  247 +
  248 + public void setJwsRxss(String jwsRxss) {
  249 + this.jwsRxss = jwsRxss;
  250 + }
  251 +
  252 + public String getJwsJstd() {
  253 + return jwsJstd;
  254 + }
  255 +
  256 + public void setJwsJstd(String jwsJstd) {
  257 + this.jwsJstd = jwsJstd;
  258 + }
  259 +
  260 + public String getJzsRxa() {
  261 + return jzsRxa;
  262 + }
  263 +
  264 + public void setJzsRxa(String jzsRxa) {
  265 + this.jzsRxa = jzsRxa;
  266 + }
  267 +
  268 + public String getJzsLca() {
  269 + return jzsLca;
  270 + }
  271 +
  272 + public void setJzsLca(String jzsLca) {
  273 + this.jzsLca = jzsLca;
  274 + }
  275 +
  276 + public String getRxlPfz() {
  277 + return rxlPfz;
  278 + }
  279 +
  280 + public void setRxlPfz(String rxlPfz) {
  281 + this.rxlPfz = rxlPfz;
  282 + }
  283 +
  284 + public String getRxlPfy() {
  285 + return rxlPfy;
  286 + }
  287 +
  288 + public void setRxlPfy(String rxlPfy) {
  289 + this.rxlPfy = rxlPfy;
  290 + }
  291 +
  292 + public String getRxlRtz() {
  293 + return rxlRtz;
  294 + }
  295 +
  296 + public void setRxlRtz(String rxlRtz) {
  297 + this.rxlRtz = rxlRtz;
  298 + }
  299 +
  300 + public String getRxlRty() {
  301 + return rxlRty;
  302 + }
  303 +
  304 + public void setRxlRty(String rxlRty) {
  305 + this.rxlRty = rxlRty;
  306 + }
  307 +
  308 + public String getRxlYyz() {
  309 + return rxlYyz;
  310 + }
  311 +
  312 + public void setRxlYyz(String rxlYyz) {
  313 + this.rxlYyz = rxlYyz;
  314 + }
  315 +
  316 + public String getRxlYyy() {
  317 + return rxlYyy;
  318 + }
  319 +
  320 + public void setRxlYyy(String rxlYyy) {
  321 + this.rxlYyy = rxlYyy;
  322 + }
  323 +
  324 + public String getRxlZkz() {
  325 + return rxlZkz;
  326 + }
  327 +
  328 + public void setRxlZkz(String rxlZkz) {
  329 + this.rxlZkz = rxlZkz;
  330 + }
  331 +
  332 + public String getRxlZky() {
  333 + return rxlZky;
  334 + }
  335 +
  336 + public void setRxlZky(String rxlZky) {
  337 + this.rxlZky = rxlZky;
  338 + }
  339 +
  340 + public String getRxlDxz() {
  341 + return rxlDxz;
  342 + }
  343 +
  344 + public void setRxlDxz(String rxlDxz) {
  345 + this.rxlDxz = rxlDxz;
  346 + }
  347 +
  348 + public String getRxlDxy() {
  349 + return rxlDxy;
  350 + }
  351 +
  352 + public void setRxlDxy(String rxlDxy) {
  353 + this.rxlDxy = rxlDxy;
  354 + }
  355 +
  356 + public String getRxlXzz() {
  357 + return rxlXzz;
  358 + }
  359 +
  360 + public void setRxlXzz(String rxlXzz) {
  361 + this.rxlXzz = rxlXzz;
  362 + }
  363 +
  364 + public String getRxlXzy() {
  365 + return rxlXzy;
  366 + }
  367 +
  368 + public void setRxlXzy(String rxlXzy) {
  369 + this.rxlXzy = rxlXzy;
  370 + }
  371 +
  372 + public String getRxlYdz() {
  373 + return rxlYdz;
  374 + }
  375 +
  376 + public void setRxlYdz(String rxlYdz) {
  377 + this.rxlYdz = rxlYdz;
  378 + }
  379 +
  380 + public String getRxlYdy() {
  381 + return rxlYdy;
  382 + }
  383 +
  384 + public void setRxlYdy(String rxlYdy) {
  385 + this.rxlYdy = rxlYdy;
  386 + }
  387 +
  388 + public String getRxlByz() {
  389 + return rxlByz;
  390 + }
  391 +
  392 + public void setRxlByz(String rxlByz) {
  393 + this.rxlByz = rxlByz;
  394 + }
  395 +
  396 + public String getRxlByy() {
  397 + return rxlByy;
  398 + }
  399 +
  400 + public void setRxlByy(String rxlByy) {
  401 + this.rxlByy = rxlByy;
  402 + }
  403 +
  404 + public String getRxlBmz() {
  405 + return rxlBmz;
  406 + }
  407 +
  408 + public void setRxlBmz(String rxlBmz) {
  409 + this.rxlBmz = rxlBmz;
  410 + }
  411 +
  412 + public String getRxlBmy() {
  413 + return rxlBmy;
  414 + }
  415 +
  416 + public void setRxlBmy(String rxlBmy) {
  417 + this.rxlBmy = rxlBmy;
  418 + }
  419 +
  420 + public String getRxlHddz() {
  421 + return rxlHddz;
  422 + }
  423 +
  424 + public void setRxlHddz(String rxlHddz) {
  425 + this.rxlHddz = rxlHddz;
  426 + }
  427 +
  428 + public String getRxlHddy() {
  429 + return rxlHddy;
  430 + }
  431 +
  432 + public void setRxlHddy(String rxlHddy) {
  433 + this.rxlHddy = rxlHddy;
  434 + }
  435 +
  436 + public String getRxlFr() {
  437 + return rxlFr;
  438 + }
  439 +
  440 + public void setRxlFr(String rxlFr) {
  441 + this.rxlFr = rxlFr;
  442 + }
  443 +
  444 + public String getRxlYlbz() {
  445 + return rxlYlbz;
  446 + }
  447 +
  448 + public void setRxlYlbz(String rxlYlbz) {
  449 + this.rxlYlbz = rxlYlbz;
  450 + }
  451 +
  452 + public String getRxlYlby() {
  453 + return rxlYlby;
  454 + }
  455 +
  456 + public void setRxlYlby(String rxlYlby) {
  457 + this.rxlYlby = rxlYlby;
  458 + }
  459 +
  460 + public String getRxlSglbz() {
  461 + return rxlSglbz;
  462 + }
  463 +
  464 + public void setRxlSglbz(String rxlSglbz) {
  465 + this.rxlSglbz = rxlSglbz;
  466 + }
  467 +
  468 + public String getRxlSglby() {
  469 + return rxlSglby;
  470 + }
  471 +
  472 + public void setRxlSglby(String rxlSglby) {
  473 + this.rxlSglby = rxlSglby;
  474 + }
  475 +
  476 + public String getRxlJcjg() {
  477 + return rxlJcjg;
  478 + }
  479 +
  480 + public void setRxlJcjg(String rxlJcjg) {
  481 + this.rxlJcjg = rxlJcjg;
  482 + }
  483 +
  484 + public String getRxCssj() {
  485 + return rxCssj;
  486 + }
  487 +
  488 + public void setRxCssj(String rxCssj) {
  489 + this.rxCssj = rxCssj;
  490 + }
  491 +
  492 + public String getRxFlz() {
  493 + return rxFlz;
  494 + }
  495 +
  496 + public void setRxFlz(String rxFlz) {
  497 + this.rxFlz = rxFlz;
  498 + }
  499 +
  500 + public String getRxlFly() {
  501 + return rxlFly;
  502 + }
  503 +
  504 + public void setRxlFly(String rxlFly) {
  505 + this.rxlFly = rxlFly;
  506 + }
  507 +
  508 + public String getRxlJy() {
  509 + return rxlJy;
  510 + }
  511 +
  512 + public void setRxlJy(String rxlJy) {
  513 + this.rxlJy = rxlJy;
  514 + }
  515 +
  516 + public String getRxlJcdw() {
  517 + return rxlJcdw;
  518 + }
  519 +
  520 + public void setRxlJcdw(String rxlJcdw) {
  521 + this.rxlJcdw = rxlJcdw;
  522 + }
  523 +
  524 + public String getRxlJcry() {
  525 + return rxlJcry;
  526 + }
  527 +
  528 + public void setRxlJcry(String rxlJcry) {
  529 + this.rxlJcry = rxlJcry;
  530 + }
  531 +
  532 + public String getRxlJcrq() {
  533 + return rxlJcrq;
  534 + }
  535 +
  536 + public void setRxlJcrq(String rxlJcrq) {
  537 + this.rxlJcrq = rxlJcrq;
  538 + }
  539 +
  540 + public String getRxPgz() {
  541 + return rxPgz;
  542 + }
  543 +
  544 + public void setRxPgz(String rxPgz) {
  545 + this.rxPgz = rxPgz;
  546 + }
  547 +
  548 + public String getRxlPgy() {
  549 + return rxlPgy;
  550 + }
  551 +
  552 + public void setRxlPgy(String rxlPgy) {
  553 + this.rxlPgy = rxlPgy;
  554 + }
  555 +
  556 + public String getRxJy() {
  557 + return rxJy;
  558 + }
  559 +
  560 + public void setRxJy(String rxJy) {
  561 + this.rxJy = rxJy;
  562 + }
  563 +
  564 + public String getSfQk() {
  565 + return sfQk;
  566 + }
  567 +
  568 + public void setSfQk(String sfQk) {
  569 + this.sfQk = sfQk;
  570 + }
  571 +
  572 + public String getSfBljc() {
  573 + return sfBljc;
  574 + }
  575 +
  576 + public void setSfBljc(String sfBljc) {
  577 + this.sfBljc = sfBljc;
  578 + }
  579 +
  580 + public String getSfBljg() {
  581 + return sfBljg;
  582 + }
  583 +
  584 + public void setSfBljg(String sfBljg) {
  585 + this.sfBljg = sfBljg;
  586 + }
  587 +
  588 + public String getSfBlzd() {
  589 + return sfBlzd;
  590 + }
  591 +
  592 + public void setSfBlzd(String sfBlzd) {
  593 + this.sfBlzd = sfBlzd;
  594 + }
  595 +
  596 + public String getSfJcrq() {
  597 + return sfJcrq;
  598 + }
  599 +
  600 + public void setSfJcrq(String sfJcrq) {
  601 + this.sfJcrq = sfJcrq;
  602 + }
  603 +
  604 + public String getSfZhzd() {
  605 + return sfZhzd;
  606 + }
  607 +
  608 + public void setSfZhzd(String sfZhzd) {
  609 + this.sfZhzd = sfZhzd;
  610 + }
  611 +
  612 + public String getSfTnm() {
  613 + return sfTnm;
  614 + }
  615 +
  616 + public void setSfTnm(String sfTnm) {
  617 + this.sfTnm = sfTnm;
  618 + }
  619 +
  620 + public String getSfZzjg() {
  621 + return sfZzjg;
  622 + }
  623 +
  624 + public void setSfZzjg(String sfZzjg) {
  625 + this.sfZzjg = sfZzjg;
  626 + }
  627 +
  628 + public String getSfZlrq() {
  629 + return sfZlrq;
  630 + }
  631 +
  632 + public void setSfZlrq(String sfZlrq) {
  633 + this.sfZlrq = sfZlrq;
  634 + }
  635 +
  636 + public String getSfJszl() {
  637 + return sfJszl;
  638 + }
  639 +
  640 + public void setSfJszl(String sfJszl) {
  641 + this.sfJszl = sfJszl;
  642 + }
  643 +
  644 + public String getSfJcjg() {
  645 + return sfJcjg;
  646 + }
  647 +
  648 + public void setSfJcjg(String sfJcjg) {
  649 + this.sfJcjg = sfJcjg;
  650 + }
  651 +
  652 + public String getSfJcry() {
  653 + return sfJcry;
  654 + }
  655 +
  656 + public void setSfJcry(String sfJcry) {
  657 + this.sfJcry = sfJcry;
  658 + }
  659 +
  660 + public String getSfJcsj() {
  661 + return sfJcsj;
  662 + }
  663 +
  664 + public void setSfJcsj(String sfJcsj) {
  665 + this.sfJcsj = sfJcsj;
  666 + }
  667 +
  668 + public Date getModified() {
  669 + return modified;
  670 + }
  671 +
  672 + public void setModified(Date modified) {
  673 + this.modified = modified;
  674 + }
  675 +
  676 + public Date getCreated() {
  677 + return created;
  678 + }
  679 +
  680 + public void setCreated(Date created) {
  681 + this.created = created;
  682 + }
  683 +
  684 + public Integer getOperator() {
  685 + return operator;
  686 + }
  687 +
  688 + public void setOperator(Integer operator) {
  689 + this.operator = operator;
  690 + }
  691 +}
platform-dal/src/main/java/com/lyms/platform/query/CancerScreeningQuery.java View file @ dc95295
  1 +package com.lyms.platform.query;
  2 +
  3 +/**
  4 + * @auther yangfei
  5 + * @createTime 2018年04月11日 16时17分
  6 + * @discription
  7 + */
  8 +
  9 +import com.lyms.platform.common.base.IConvertToNativeQuery;
  10 +import com.lyms.platform.common.dao.BaseQuery;
  11 +import com.lyms.platform.common.dao.operator.MongoCondition;
  12 +import com.lyms.platform.common.dao.operator.MongoQuery;
  13 +
  14 +/**
  15 + * 两癌筛查
  16 + */
  17 +public class CancerScreeningQuery extends BaseQuery implements IConvertToNativeQuery {
  18 + //(一)病史情况
  19 + //月经情况
  20 + //月经初潮年龄(岁)
  21 + public String bsYjage;
  22 + //最近一次末次月经
  23 + public String bsZjyj;
  24 + //绝经(1.否2.是3.不确定)
  25 + public String bsJj;
  26 + //绝经年龄(岁)
  27 + public String bsJjage;
  28 + //孕产史
  29 + //孕次(次)
  30 + public String ycYc;
  31 + //产次(次)
  32 + public String ycCc;
  33 + //初产年龄(岁)
  34 + public String ycAge;
  35 + //哺乳史
  36 + public String ycFrs;
  37 + //是否接受过乳腺癌检査
  38 + public String ycRxajc;
  39 + //既往史
  40 + //乳腺手术或活检史
  41 + public String jwsRxss;
  42 + //激素替代治疗史
  43 + public String jwsJstd;
  44 + //家族史病史
  45 + //乳腺癌
  46 + public String jzsRxa;
  47 + //卵巢癌
  48 + public String jzsLca;
  49 + //(二)乳腺临床检査
  50 + //皮肤左
  51 + public String rxlPfz;
  52 + //皮肤右
  53 + public String rxlPfy;
  54 + //乳头左
  55 + public String rxlRtz;
  56 + //乳头右
  57 + public String rxlRty;
  58 + //溢液左
  59 + public String rxlYyz;
  60 + //溢液右
  61 + public String rxlYyy;
  62 + //肿块左
  63 + public String rxlZkz;
  64 + //肿块右
  65 + public String rxlZky;
  66 + //大小左
  67 + public String rxlDxz;
  68 + //大小右
  69 + public String rxlDxy;
  70 + //形状左
  71 + public String rxlXzz;
  72 + //形状右
  73 + public String rxlXzy;
  74 + //硬度左
  75 + public String rxlYdz;
  76 + //硬度右
  77 + public String rxlYdy;
  78 + //边缘左
  79 + public String rxlByz;
  80 + //边缘右
  81 + public String rxlByy;
  82 + //表面左
  83 + public String rxlBmz;
  84 + //表面右
  85 + public String rxlBmy;
  86 + //活动度左
  87 + public String rxlHddz;
  88 + //活动度右
  89 + public String rxlHddy;
  90 + //副乳1.无2.有
  91 + public String rxlFr;
  92 + //腋淋巴结左
  93 + public String rxlYlbz;
  94 + //腋淋巴结右
  95 + public String rxlYlby;
  96 + //锁骨上淋巴结左
  97 + public String rxlSglbz;
  98 + //锁骨上淋巴结右
  99 + public String rxlSglby;
  100 + //临床检査结果
  101 + public String rxlJcjg;
  102 + //(三)乳腺彩色超声检査
  103 + //超声所见
  104 + public String rxCssj;
  105 + //分类左
  106 + public String rxFlz;
  107 + //分类右
  108 + public String rxlFly;
  109 + //建议
  110 + public String rxlJy;
  111 + //检查机构
  112 + public String rxlJcdw;
  113 + //检査人员
  114 + public String rxlJcry;
  115 + //检査日期
  116 + public String rxlJcrq;
  117 + //(四〉乳腺X线检査(未作X线检査不填写此项)
  118 + //乳腺X线评估左
  119 + public String rxPgz;
  120 + //乳腺X线评估右
  121 + public String rxlPgy;
  122 + //建议
  123 + public String rxJy;
  124 + //(五〉最终随访结果
  125 + //随访情况
  126 + public String sfQk;
  127 + //病理检査
  128 + public String sfBljc;
  129 + //病理检査机构
  130 + public String sfBljg;
  131 + //病理诊断者
  132 + public String sfBlzd;
  133 + //病理检査日期
  134 + public String sfJcrq;
  135 + //最后诊断
  136 + public String sfZhzd;
  137 + //TNM分期
  138 + public String sfTnm;
  139 + //诊治机构
  140 + public String sfZzjg;
  141 + //诊治日期
  142 + public String sfZlrq;
  143 + //接受治疗情况
  144 + public String sfJszl;
  145 + //检査机构
  146 + public String sfJcjg;
  147 + //检查人员
  148 + public String sfJcry;
  149 + //检査日期
  150 + public String sfJcsj;
  151 +
  152 + /**
  153 + * @return
  154 + */
  155 + @Override
  156 + public MongoQuery convertToQuery() {
  157 + MongoCondition condition = MongoCondition.newInstance();
  158 +
  159 + return condition.toMongoQuery();
  160 + }
  161 +}
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CancerScreeningController.java View file @ dc95295
  1 +package com.lyms.platform.operate.web.controller;
  2 +
  3 +import com.lyms.platform.common.annotation.TokenRequired;
  4 +import com.lyms.platform.common.base.BaseController;
  5 +import com.lyms.platform.common.result.BaseResponse;
  6 +import com.lyms.platform.operate.web.service.IBloodSugarService;
  7 +import com.lyms.platform.pojo.BloodSugar;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.stereotype.Controller;
  10 +import org.springframework.web.bind.annotation.PathVariable;
  11 +import org.springframework.web.bind.annotation.RequestMapping;
  12 +import org.springframework.web.bind.annotation.RequestMethod;
  13 +import org.springframework.web.bind.annotation.ResponseBody;
  14 +
  15 +import javax.servlet.http.HttpServletRequest;
  16 +import java.util.Date;
  17 +
  18 +/**
  19 + * 两癌筛查
  20 + */
  21 +@Controller
  22 +@RequestMapping("/cancerScr")
  23 +public class CancerScreeningController extends BaseController {
  24 +
  25 +
  26 + @Autowired
  27 + private IBloodSugarService bloodSugarService;
  28 +
  29 + @ResponseBody
  30 + @RequestMapping(value = "/init", method = RequestMethod.GET)
  31 + public BaseResponse init() {
  32 + return bloodSugarService.init();
  33 + }
  34 +
  35 + @ResponseBody
  36 + @RequestMapping(method = RequestMethod.POST)
  37 + @TokenRequired
  38 + public BaseResponse add(BloodSugar bloodSugar, HttpServletRequest request) {
  39 + return bloodSugarService.add(getUserId(request), bloodSugar);
  40 + }
  41 +
  42 + @ResponseBody
  43 + @RequestMapping(value = "/wx", method = RequestMethod.POST)
  44 + public BaseResponse wxAdd(String parentId, String bloodSugar, Integer bloodSugarType, boolean flag) {
  45 + return bloodSugarService.wxAdd(parentId, bloodSugar, bloodSugarType, flag);
  46 + }
  47 +
  48 + @ResponseBody
  49 + @RequestMapping(method = RequestMethod.GET)
  50 + @TokenRequired
  51 + public BaseResponse list(String key, String vcCardNo, Integer weekStart, Integer weekEnd, Integer age, Integer page, Integer limit, HttpServletRequest request) {
  52 + return bloodSugarService.list(key, vcCardNo, weekStart, weekEnd, age, page, limit, getUserId(request));
  53 + }
  54 +
  55 + @ResponseBody
  56 + @RequestMapping(value = "/{parentId}/{type}/{time}", method = RequestMethod.GET)
  57 + @TokenRequired
  58 + public BaseResponse info(@PathVariable String parentId, @PathVariable Integer type, @PathVariable Date time) {
  59 + return bloodSugarService.info(parentId, type, time);
  60 + }
  61 +
  62 +
  63 + @ResponseBody
  64 + @RequestMapping(value = "/wx/{parentId}/{type}", method = RequestMethod.GET)
  65 + public BaseResponse wxInfo(@PathVariable String parentId, @PathVariable Integer type) {
  66 + return bloodSugarService.wxInfo(parentId, type);
  67 + }
  68 +
  69 + @ResponseBody
  70 + @RequestMapping(value = "/app/{parentId}", method = RequestMethod.GET)
  71 + public BaseResponse getAppInfo(@PathVariable String parentId) {
  72 + return bloodSugarService.getAppInfo(parentId);
  73 + }
  74 +}
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ dc95295
... ... @@ -1373,6 +1373,7 @@
1373 1373 while (iterator.hasNext()) {
1374 1374 List listData = new ArrayList();
1375 1375 Patients patients = iterator.next();
  1376 + Patients patients2 = null;
1376 1377 //建档记录
1377 1378 if (null != patients.getHospitalId()) {
1378 1379 organization = organizationService.getOrganization(Integer.valueOf(patients.getHospitalId()));
... ... @@ -1384,6 +1385,13 @@
1384 1385 listData.add(new AntData(patients, null != organization ? organization.getName() : ""));
1385 1386 }
1386 1387  
  1388 + PatientsQuery patientsQuery = new PatientsQuery();
  1389 + patientsQuery.setSource(patients.getId());
  1390 + patientsQuery.setBuildType(1);
  1391 + List<Patients> patients1 = patientsService.queryPatient(patientsQuery);
  1392 + if (CollectionUtils.isNotEmpty(patients1)) {
  1393 + patients2 = patients1.get(0);
  1394 + }
1387 1395 //初诊记录
1388 1396 AntExChuQuery antExChuQuery = new AntExChuQuery();
1389 1397 antExChuQuery.setYn(YnEnums.YES.getId());
... ... @@ -1393,7 +1401,11 @@
1393 1401 } else {
1394 1402 antExChuQuery.setEnd(new Date(patients.getFmDate().getTime() + 86398000));
1395 1403 }
1396   - antExChuQuery.setParentId(patientId);
  1404 + if (patients2!=null) {
  1405 + antExChuQuery.setParentId(patients2.getId());
  1406 + } else {
  1407 + antExChuQuery.setParentId(patientId);
  1408 + }
1397 1409 List<AntExChuModel> antExChuModels = antenatalExaminationService.queryAntExChu(antExChuQuery);
1398 1410 if (CollectionUtils.isNotEmpty(antExChuModels)) {
1399 1411 for (AntExChuModel an : antExChuModels) {
1400 1412  
1401 1413  
... ... @@ -1407,14 +1419,19 @@
1407 1419 //复诊记录
1408 1420 AntExQuery antExQuery = new AntExQuery();
1409 1421 antExQuery.setYn(YnEnums.YES.getId());
1410   - antExQuery.setParentId(patientId);
1411 1422 antExQuery.setStart(patients.getBookbuildingDate());
1412 1423 if (null == patients.getFmDate()) {
1413 1424 antExQuery.setEnd(new Date(DateUtil.addWeek(patients.getLastMenses(), 42).getTime() + 86398000));
1414 1425 } else {
1415 1426 antExQuery.setEnd(new Date(patients.getFmDate().getTime() + 86398000));
1416 1427 }
  1428 + if (patients2!=null) {
  1429 + antExQuery.setParentId(patients2.getId());
  1430 + } else {
  1431 + antExQuery.setParentId(patientId);
  1432 + }
1417 1433  
  1434 +
1418 1435 List<AntenatalExaminationModel> list1 = antenatalExaminationService.queryAntenatalExamination(antExQuery.convertToQuery());
1419 1436 if (CollectionUtils.isNotEmpty(list1)) {
1420 1437 for (AntenatalExaminationModel an : list1) {
... ... @@ -1429,12 +1446,7 @@
1429 1446 MatDeliverQuery matDeliverQuery = new MatDeliverQuery();
1430 1447 matDeliverQuery.setYn(YnEnums.YES.getId());
1431 1448  
1432   - PatientsQuery patientsQuery = new PatientsQuery();
1433   - patientsQuery.setSource(patients.getId());
1434   - patientsQuery.setBuildType(1);
1435   - List<Patients> patients1 = patientsService.queryPatient(patientsQuery);
1436   - if (CollectionUtils.isNotEmpty(patients1)) {
1437   - Patients patients2 = patients1.get(0);
  1449 + if (patients2!=null) {
1438 1450 matDeliverQuery.setParentId(patients2.getId());
1439 1451 } else {
1440 1452 matDeliverQuery.setParentId(patientId);
1441 1453  
... ... @@ -1449,8 +1461,13 @@
1449 1461 }
1450 1462 //出院小结
1451 1463 DischargeAbstractMotherQuery dischargeAbstractMotherQuery = new DischargeAbstractMotherQuery();
1452   - dischargeAbstractMotherQuery.setPatientId(patientId);
1453 1464 dischargeAbstractMotherQuery.setYn(YnEnums.YES.getId());
  1465 + if (patients2!=null) {
  1466 + dischargeAbstractMotherQuery.setPatientId(patients2.getId());
  1467 + } else {
  1468 + dischargeAbstractMotherQuery.setPatientId(patientId);
  1469 + }
  1470 +
1454 1471 List<DischargeAbstractMotherModel> dischargeAbstractMotherModels = dischargeAbstractMotherService.query(dischargeAbstractMotherQuery);
1455 1472  
1456 1473 if (CollectionUtils.isNotEmpty(dischargeAbstractMotherModels)) {
... ... @@ -1463,7 +1480,11 @@
1463 1480 if (null != patients.getDueStatus() && 1 == patients.getDueStatus()) {
1464 1481 StopPregQuery stopPregQuery = new StopPregQuery();
1465 1482 stopPregQuery.setYn(YnEnums.YES.getId());
1466   - stopPregQuery.setPatientId(patientId);
  1483 + if (patients2!=null) {
  1484 + stopPregQuery.setPatientId(patients2.getId());
  1485 + } else {
  1486 + stopPregQuery.setPatientId(patientId);
  1487 + }
1467 1488 List<StopPregModel> models = stopPregnancyService.queryStopPreg(stopPregQuery);
1468 1489 if (CollectionUtils.isNotEmpty(models)) {
1469 1490 for (StopPregModel stop : models) {
... ... @@ -1476,8 +1497,11 @@
1476 1497 } else {
1477 1498 PostReviewQuery postReviewQuery = new PostReviewQuery();
1478 1499 postReviewQuery.setYn(YnEnums.YES.getId());
1479   - postReviewQuery.setParentId(patientId);
1480   -
  1500 + if (patients2!=null) {
  1501 + postReviewQuery.setParentId(patients2.getId());
  1502 + } else {
  1503 + postReviewQuery.setParentId(patientId);
  1504 + }
1481 1505 //产后复查记录
1482 1506 List<PostReviewModel> reviewModels = postReviewService.findWithList(postReviewQuery);
1483 1507 if (CollectionUtils.isNotEmpty(reviewModels)) {
platform-operate-api/src/main/webapp/WEB-INF/web.xml View file @ dc95295
... ... @@ -13,42 +13,41 @@
13 13 version="2.5"
14 14 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
15 15 <!--start跨域开始-->
16   - <!--
17   - <filter>
18   - <filter-name>CorsFilter</filter-name>
19   - <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
20   - <init-param>
21   - <param-name>cors.allowed.origins</param-name>
22   - <param-value>*</param-value>
23   - </init-param>
24   - <init-param>
25   - <param-name>cors.allowed.methods</param-name>
26   - <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
27   - </init-param>
28   - <init-param>
29   - <param-name>cors.allowed.headers</param-name>
30   - <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,authorization</param-value>
31   - </init-param>
32   - <init-param>
33   - <param-name>cors.exposed.headers</param-name>
34   - <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
35   - </init-param>
36   - <init-param>
37   - <param-name>cors.support.credentials</param-name>
38   - <param-value>true</param-value>
39   - </init-param>
40   - <init-param>
41   - <param-name>cors.preflight.maxage</param-name>
42   - <param-value>10</param-value>
43   - </init-param>
44   - </filter>
45   - <filter-mapping>
46   - <filter-name>CorsFilter</filter-name>
47   - <url-pattern>/*</url-pattern>
48   - </filter-mapping>
49   - -->
50 16  
51   - <!--end跨域结束-->
  17 + <filter>
  18 + <filter-name>CorsFilter</filter-name>
  19 + <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
  20 + <init-param>
  21 + <param-name>cors.allowed.origins</param-name>
  22 + <param-value>*</param-value>
  23 + </init-param>
  24 + <init-param>
  25 + <param-name>cors.allowed.methods</param-name>
  26 + <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
  27 + </init-param>
  28 + <init-param>
  29 + <param-name>cors.allowed.headers</param-name>
  30 + <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,authorization</param-value>
  31 + </init-param>
  32 + <init-param>
  33 + <param-name>cors.exposed.headers</param-name>
  34 + <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
  35 + </init-param>
  36 + <init-param>
  37 + <param-name>cors.support.credentials</param-name>
  38 + <param-value>true</param-value>
  39 + </init-param>
  40 + <init-param>
  41 + <param-name>cors.preflight.maxage</param-name>
  42 + <param-value>10</param-value>
  43 + </init-param>
  44 + </filter>
  45 + <filter-mapping>
  46 + <filter-name>CorsFilter</filter-name>
  47 + <url-pattern>/*</url-pattern>
  48 + </filter-mapping>
  49 +
  50 +<!--end跨域结束-->
52 51  
53 52 <servlet-mapping>
54 53 <servlet-name>default</servlet-name>