Commit c1fcf68e8d545480b9dd03aaced8fa69a4b41a56

Authored by liquanyu
1 parent 165c86c54d

问卷调查

Showing 4 changed files with 47 additions and 8 deletions

platform-common/src/main/java/com/lyms/platform/common/enums/QuestionEnums.java View file @ c1fcf68
... ... @@ -13,7 +13,7 @@
13 13 public enum QuestionEnums {
14 14  
15 15  
16   - Q1(1,0,4,"0-4(没有或极少)","在孕期,孕妇开始出现早孕反应(疲劳,乏力,嗜睡,食欲减退,恶心,呕吐等)。这些都属于怀孕期间正常的表现,通过PHQ-9的测量表的测量分数可看出您身心状体良好,请保持充足的休息,不要剧烈运动,做好孕期检查的工作。"),
  16 + Q1(1,0,4,"0-4(没有或极少)","在孕期,孕妇开始出现早孕反应(疲劳,乏力,嗜睡,食欲减退,恶心,呕吐等)。这些都属于怀孕期间正常的表现,通过本次调查可看出您身心状况良好,请保持充足的休息,不要剧烈运动,遵照医嘱做好孕期检查。我院现已开设心理门诊,若有需要,可到弘毅楼三楼围产医学科心理门诊预约心理咨询。"),
17 17 Q2(2,5,9,"5-9(轻微抑郁)","孕妈妈在怀孕期间可能会出现担心胚胎的发育情况,害怕流产或没有准备好当妈妈的心理压力等情绪问题。这种担心表达了对未出生孩子的爱,但有研究表明长期的消极情绪会对胎儿造成不良影响,所以为了更好的给予爱和被孩子感受到爱,请保持良好的心情,积极乐观的看待事情,保持充足的休息,不要剧烈运动,遵医嘱来院做孕期检查。若自我调节无效果,建议及时来我院弘毅楼三楼围产医学科心理门诊预约心理咨询。"),
18 18 Q3(3,10,14,"10-14(中等程度)","孕期因体内激素分泌水平变化,身体不适的情况增加,患者的饮食及睡眠情况下降,情绪、认知也会随之受到影响。若出现这种情况,请孕妈妈明确这种情绪及认知是由身体的不适所致,此时需放松心情,及时调整心态,建议写感恩日记。若身体不适请及时来院孕检。若自我调节无效果,建议及时来我院弘毅楼三楼围产医学科心理门诊预约心理咨询。"),
19 19 Q4(4,15,19,"15-19(较严重抑郁)","亲爱的孕妈妈,根据您的测试,您目前可能会体验到高兴不起来、不愿意动、自觉脑子不好使,记不住事、思考问题困难,觉得脑子空空、变笨了等情况。建议多与家人沟通,调整心态,写感恩日记。若自我调节无效果,建议及时来我院弘毅楼三楼围产医学科心理门诊预约心理咨询。"),
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyCheckController.java View file @ c1fcf68
... ... @@ -120,7 +120,7 @@
120 120 public BaseObjectResponse queryChooseBabys(HttpServletRequest request,@RequestParam(required = false)String vcCardNo,
121 121 @RequestParam(required = false)String cardNo, String coupon, @RequestParam(required = false)String ynStatus){
122 122 LoginContext loginState = (LoginContext) request.getAttribute("loginContext");
123   - return babyCheckFacade.queryChooseBabys(vcCardNo, cardNo, loginState.getId(), coupon,ynStatus);
  123 + return babyCheckFacade.queryChooseBabys(vcCardNo, cardNo, loginState.getId(), coupon, ynStatus);
124 124 }
125 125  
126 126  
... ... @@ -155,7 +155,7 @@
155 155 @RequestParam(required = true) String birth,
156 156 @RequestParam(required = false) String dueDate,
157 157 @RequestParam(required = false) String checkDate){
158   - return babyCheckFacade.queryHWByHeight(height, weight, sex, birth, dueDate,checkDate);
  158 + return babyCheckFacade.queryHWByHeight(height, weight, sex, birth, dueDate, checkDate);
159 159  
160 160 }
161 161  
... ... @@ -176,7 +176,7 @@
176 176 @RequestParam(required = false) String babyId,
177 177 @RequestParam(required = false) String dueDate,
178 178 @RequestParam(required = false) String checkDate){
179   - return babyCheckFacade.queryBabyHealthStatus(birth, value, sex, type, dueDate, babyId,checkDate);
  179 + return babyCheckFacade.queryBabyHealthStatus(birth, value, sex, type, dueDate, babyId, checkDate);
180 180  
181 181 }
182 182  
... ... @@ -195,7 +195,7 @@
195 195 ,@RequestParam(required = true) String birth,@RequestParam(required = true) Double weight,
196 196 @RequestParam(required = false) String dueDate,
197 197 @RequestParam(required = false) String checkDate){
198   - return babyCheckFacade.queryGrowthEvaluate(height, sex, birth, weight, dueDate,checkDate);
  198 + return babyCheckFacade.queryGrowthEvaluate(height, sex, birth, weight, dueDate, checkDate);
199 199  
200 200 }
201 201  
... ... @@ -227,7 +227,7 @@
227 227 @RequestParam(required = true) String babyId,
228 228 @RequestParam(required = true) String checkDate,
229 229 @RequestParam(required = true) Boolean isHighRisk){
230   - return babyCheckFacade.getHighBabyMonthAge(babyId,checkDate,isHighRisk);
  230 + return babyCheckFacade.getHighBabyMonthAge(babyId, checkDate, isHighRisk);
231 231  
232 232 }
233 233  
... ... @@ -259,6 +259,23 @@
259 259  
260 260 return babyCheckFacade.getCurrentDayCheckBabies(getUserId(request));
261 261 }
  262 +
  263 +
  264 + /**
  265 + * 儿童报表
  266 + * @param request
  267 + * @param babyId
  268 + * @return
  269 + */
  270 + @RequestMapping("/getBabyReport")
  271 + @ResponseBody
  272 + @TokenRequired
  273 + public BaseObjectResponse getBabyReport(HttpServletRequest request,
  274 + @RequestParam(required = true) String babyId){
  275 +
  276 + return babyCheckFacade.getBabyReport(getUserId(request),babyId);
  277 + }
  278 +
262 279  
263 280  
264 281 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java View file @ c1fcf68
... ... @@ -1512,7 +1512,7 @@
1512 1512 */
1513 1513 public BaseObjectResponse queryGrowthEvaluate(Double height, Integer sex, String birth, Double weight,String dueDate,String checkDate) {
1514 1514  
1515   - List<String> list = getBabyGrowthEvaluate(height, sex, birth, weight, dueDate, checkDate);
  1515 + List<String> list = getBabyGrowthEvaluate(height, sex, birth, weight, dueDate, checkDate);
1516 1516 BaseObjectResponse br = new BaseObjectResponse();
1517 1517 br.setData(list);
1518 1518 br.setErrorcode(ErrorCodeConstants.SUCCESS);
... ... @@ -2057,6 +2057,28 @@
2057 2057 }
2058 2058 }
2059 2059 return new BaseObjectResponse().setData(result).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功");
  2060 + }
  2061 +
  2062 + public BaseObjectResponse getBabyReport(Integer userId, String babyId) {
  2063 +
  2064 + Map data = new HashMap();
  2065 +
  2066 + String hospitalId = autoMatchFacade.getHospitalId(userId);
  2067 +
  2068 + BabyModelQuery babyModelQuery = new BabyModelQuery();
  2069 + babyModelQuery.setYn(YnEnums.YES.getId());
  2070 + babyModelQuery.setId(babyId);
  2071 + babyModelQuery.setHospitalId(hospitalId);
  2072 +
  2073 + List<BabyModel> babyModels = babyBookbuildingService.queryBabyBuildByCond(babyModelQuery);
  2074 + if (CollectionUtils.isEmpty(babyModels))
  2075 + {
  2076 + return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("没有数据");
  2077 + }
  2078 +
  2079 + BabyModel babyModel = babyModels.get(0);
  2080 +
  2081 + return null;
2060 2082 }
2061 2083 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/QuestionFacade.java View file @ c1fcf68
... ... @@ -107,7 +107,7 @@
107 107 data.put("plevelType", CommonsHelper.getName1(patients.getPlevelTypeId(), basicConfigService));
108 108  
109 109 data.put("phone",patients.getPhone());
110   - data.put("week",DateUtil.getWeek(patients.getLastMenses(),questionModel.getInvestDate())/7);
  110 + data.put("week",DateUtil.getWeek(patients.getLastMenses(),questionModel.getInvestDate()));
111 111  
112 112 data.put("questions",questionModel.getQuestions());
113 113 data.put("trouble",questionModel.getTrouble());