Commit a9a02353420736921d0b90400593fe18720730ab
1 parent
bd1984172e
Exists in
master
and in
6 other branches
秦皇岛基本公卫修改
Showing 1 changed file with 53 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdJbgwInterface.java
View file @
a9a0235
... | ... | @@ -500,21 +500,71 @@ |
500 | 500 | map.put("BMI",bmi.toString()); |
501 | 501 | } |
502 | 502 | String pastHistory=""; |
503 | + String pastHistory1=""; | |
503 | 504 | if(StringUtils.isNotEmpty(antExChuModel.getPastHistory())){ |
504 | 505 | Map map1 = JsonUtil.jkstr2Obj(antExChuModel.getPastHistory(), Map.class); |
505 | - pastHistory = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
506 | + pastHistory1 = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
507 | + if(pastHistory1.contains("无")){ | |
508 | + pastHistory="1"; | |
509 | + }else{ | |
510 | + if(pastHistory1.contains("其他")){ | |
511 | + pastHistory="8"; | |
512 | + } | |
513 | + } | |
506 | 514 | } |
507 | 515 | map.put("REGISTERPASTHISTORY",pastHistory); |
508 | 516 | String familyHistory=""; |
517 | + String familyHistory1=""; | |
509 | 518 | if(StringUtils.isNotEmpty(antExChuModel.getFamilyHistory())){ |
510 | 519 | Map map1 = JsonUtil.jkstr2Obj(antExChuModel.getFamilyHistory(), Map.class); |
511 | - familyHistory = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
520 | + familyHistory1 = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
521 | + if(familyHistory1.contains("无")){ | |
522 | + familyHistory="0"; | |
523 | + } | |
524 | + else if(familyHistory1.contains("其他")){ | |
525 | + familyHistory="3"; | |
526 | + } else{ | |
527 | + if(familyHistory1.contains("遗传性疾病史")){ | |
528 | + familyHistory+="1,"; | |
529 | + } | |
530 | + if(familyHistory1.contains("精神疾病史")){ | |
531 | + familyHistory+="2,"; | |
532 | + } | |
533 | + if(StringUtils.isNotEmpty(familyHistory)){ | |
534 | + familyHistory=familyHistory.substring(0,familyHistory.length()-1); | |
535 | + } | |
536 | + } | |
512 | 537 | } |
513 | 538 | map.put("REGISTERFAMILYHISTORY",familyHistory); |
539 | + String personalHistory1=""; | |
514 | 540 | String personalHistory=""; |
515 | 541 | if(StringUtils.isNotEmpty(antExChuModel.getPersonalHistory())){ |
516 | 542 | Map map1 = JsonUtil.jkstr2Obj(antExChuModel.getPersonalHistory(), Map.class); |
517 | - personalHistory = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
543 | + personalHistory1 = FunvCommonUtil.replace(map1, new StringBuilder(), basicConfigService); | |
544 | + if(personalHistory1.contains("无")){ | |
545 | + personalHistory="0"; | |
546 | + }else if(personalHistory1.contains("其他")){ | |
547 | + personalHistory="6"; | |
548 | + }else{ | |
549 | + if(personalHistory1.contains("吸烟")){ | |
550 | + personalHistory+="1,"; | |
551 | + } | |
552 | + if(personalHistory1.contains("饮酒")){ | |
553 | + personalHistory+="2,"; | |
554 | + } | |
555 | + if(personalHistory1.contains("服用药物")){ | |
556 | + personalHistory+="3,"; | |
557 | + } | |
558 | + if(personalHistory1.contains("接触有毒有害物质")){ | |
559 | + personalHistory+="4,"; | |
560 | + } | |
561 | + if(personalHistory1.contains("接触放射线")){ | |
562 | + personalHistory+="5,"; | |
563 | + } | |
564 | + if(StringUtils.isNotEmpty(personalHistory)){ | |
565 | + personalHistory=personalHistory.substring(0,personalHistory.length()-1); | |
566 | + } | |
567 | + } | |
518 | 568 | } |
519 | 569 | map.put("personalHistory",personalHistory); |
520 | 570 | String cestationInfo=""; |