Commit 8ec5ec1d039c631673b26d1d9184b1f269c6e6c8
1 parent
cf17854ff9
Exists in
master
and in
6 other branches
威海市妇幼新生儿出生报告卡妊娠风险评估添加
Showing 2 changed files with 37 additions and 8 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
8ec5ec1
... | ... | @@ -6069,7 +6069,7 @@ |
6069 | 6069 | /** |
6070 | 6070 | * 诊断因素 |
6071 | 6071 | */ |
6072 | - /*public static void zdyinshu(String fileName) { | |
6072 | + public static void zdyinshu(String fileName) { | |
6073 | 6073 | ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/spring/applicationContext_biz_patient1.xml"); |
6074 | 6074 | MongoTemplate mongoTemplate |
6075 | 6075 | = (MongoTemplate) applicationContext.getBean("mongoTemplate"); |
... | ... | @@ -6079,6 +6079,7 @@ |
6079 | 6079 | try { |
6080 | 6080 | wb = Workbook.getWorkbook(file); |
6081 | 6081 | |
6082 | + | |
6082 | 6083 | Sheet s = wb.getSheet(0); |
6083 | 6084 | System.out.println(s.getName() + " : "); |
6084 | 6085 | int rows = s.getRows(); |
... | ... | @@ -6087,7 +6088,6 @@ |
6087 | 6088 | for (int i = 1; i < rows; i++) { |
6088 | 6089 | System.out.println("rows=" + i); |
6089 | 6090 | DiagnosisTestModel weightConfigModel = new DiagnosisTestModel(); |
6090 | - | |
6091 | 6091 | Cell[] cells = s.getRow(i); |
6092 | 6092 | if (cells.length > 0) { |
6093 | 6093 | for (int j = 0; j < cells.length; j++) { |
... | ... | @@ -6108,7 +6108,8 @@ |
6108 | 6108 | } catch (Exception e) { |
6109 | 6109 | e.printStackTrace(); |
6110 | 6110 | } |
6111 | - }*/ | |
6111 | + } | |
6112 | + | |
6112 | 6113 | public static void main(String[] args) { |
6113 | 6114 | //weightWeek("F:\\体重与营养管理\\体重与营养管理第三版(北方)改标红“、冰淇淋”-晓萌.xls"); |
6114 | 6115 | // weightMange("F:\\体重与营养管理\\体重与营养管理第三版(北方)改标红“、冰淇淋”-晓萌.xls"); |
... | ... | @@ -6133,7 +6134,7 @@ |
6133 | 6134 | |
6134 | 6135 | //dietaryIntake("F:\\膳食摄入量推荐.xls"); |
6135 | 6136 | |
6136 | - //zdyinshu("F:\诊断因素.xls"); | |
6137 | + zdyinshu("F:\诊断因素.xls"); | |
6137 | 6138 | //saveQhdbabyDiaginose("F:\\承德工位\\秦皇岛儿童诊断 - 副本.xls"); |
6138 | 6139 | |
6139 | 6140 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
8ec5ec1
... | ... | @@ -2,11 +2,13 @@ |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.service.AntenatalExaminationService; |
4 | 4 | import com.lyms.platform.biz.service.BasicConfigService; |
5 | +import com.lyms.platform.biz.service.CommonService; | |
5 | 6 | import com.lyms.platform.biz.service.PatientsService; |
6 | 7 | import com.lyms.platform.common.annotation.TokenRequired; |
7 | 8 | import com.lyms.platform.common.base.BaseController; |
8 | 9 | import com.lyms.platform.common.base.LoginContext; |
9 | 10 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
11 | +import com.lyms.platform.common.enums.RiskDefaultTypeEnum; | |
10 | 12 | import com.lyms.platform.common.enums.YnEnums; |
11 | 13 | import com.lyms.platform.common.result.BaseListResponse; |
12 | 14 | import com.lyms.platform.common.result.BaseObjectResponse; |
... | ... | @@ -48,6 +50,9 @@ |
48 | 50 | private MatDeliverFacade matDeliverFacade; |
49 | 51 | |
50 | 52 | @Autowired |
53 | + private CommonService commonService; | |
54 | + | |
55 | + @Autowired | |
51 | 56 | private CouponService couponService; |
52 | 57 | @Autowired |
53 | 58 | private AutoMatchFacade autoMatchFacade; |
... | ... | @@ -391,9 +396,8 @@ |
391 | 396 | } |
392 | 397 | } |
393 | 398 | |
394 | - if ("2100001635".equals(hospitalId)) | |
395 | - { | |
396 | - map.put("mphone",newBabyManagerQueryModel.getNoEphone()); | |
399 | + if ("2100001635".equals(hospitalId)) { | |
400 | + map.put("mphone", newBabyManagerQueryModel.getNoEphone()); | |
397 | 401 | } |
398 | 402 | |
399 | 403 | Integer deformity = newBabyManagerQueryModel.getDeformity(); |
... | ... | @@ -422,7 +426,30 @@ |
422 | 426 | HighScoreResult highScoreResult = antenatalExaminationFacade.findLastRisk(patients.getPid(), false); |
423 | 427 | //妊娠期高危因素 |
424 | 428 | map.put("risk", highScoreResult.gethighRiskStr()); |
425 | - | |
429 | + StringBuilder riskLevel = new StringBuilder(); | |
430 | + if (StringUtils.isNotEmpty(patients.getRiskLevelId())) { | |
431 | + List<String> lists = JsonUtil.jkstr2Obj(patients.getRiskLevelId(), List.class); | |
432 | + if (CollectionUtils.isNotEmpty(lists)) { | |
433 | + for (String level : lists) { | |
434 | + if ("e637b361-99cf-41eb-84f2-f0dab596e928".equals(level)) { | |
435 | + riskLevel.append("绿色,"); | |
436 | + } else if ("eb146c03-b19f-4e28-b85f-fda574b2283b".equals(level)) { | |
437 | + riskLevel.append("红色,"); | |
438 | + } else if ("49a36aea-c5b6-4162-87d2-9eb3c6ec00c2".equals(level)) { | |
439 | + riskLevel.append("橙色,"); | |
440 | + } else if ("315107bd-91fe-42a1-9237-752f3c046a40".equals(level)) { | |
441 | + riskLevel.append("黄色,"); | |
442 | + } else if ("224b2329-cb82-4da3-a071-8527f8283aab".equals(level)) { | |
443 | + riskLevel.append("紫色,"); | |
444 | + } | |
445 | + } | |
446 | + } | |
447 | + } | |
448 | + if (riskLevel.length() > 0 && !"null".equals(riskLevel.toString()) && !"".equals(riskLevel.toString())) { | |
449 | + map.put("riskLevel", riskLevel.substring(0, riskLevel.length() - 1)); | |
450 | + } else { | |
451 | + map.put("riskLevel", ""); | |
452 | + } | |
426 | 453 | map.put("husbandName", patients.getHusbandName() == null ? "" : patients.getHusbandName()); |
427 | 454 | map.put("husbandPhone", patients.getHusbandPhone() == null ? "" : patients.getHusbandPhone()); |
428 | 455 | |
... | ... | @@ -465,6 +492,7 @@ |
465 | 492 | header.put("addressRegister", "产妇户籍地"); |
466 | 493 | header.put("liveAddress", "居住地"); |
467 | 494 | header.put("postRest", "产后休养地址"); |
495 | + header.put("riskLevel", "妊娠风险评估五色分级情况"); | |
468 | 496 | header.put("risk", "妊娠期高危因素"); |
469 | 497 | header.put("mphone", "联系方式"); |
470 | 498 | header.put("mcertNo", "母亲证件号"); |