Commit 2abe0c9a84706df0cbc925fa1713ed53c84fdbf2
1 parent
ea5c19a58e
Exists in
master
and in
6 other branches
小程序自动创建复诊记录高危因素修改
Showing 1 changed file with 22 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java
View file @
2abe0c9
... | ... | @@ -16,6 +16,7 @@ |
16 | 16 | import com.lyms.platform.operate.web.result.AntExManagerResult; |
17 | 17 | import com.lyms.platform.operate.web.result.CjStatisticsListResult; |
18 | 18 | import com.lyms.platform.operate.web.result.CjStatisticsResult; |
19 | +import com.lyms.platform.operate.web.result.HighScoreResult; | |
19 | 20 | import com.lyms.platform.operate.web.worker.AntExRecordWorker; |
20 | 21 | import com.lyms.platform.permission.model.Organization; |
21 | 22 | import com.lyms.platform.permission.model.OrganizationQuery; |
22 | 23 | |
... | ... | @@ -939,7 +940,28 @@ |
939 | 940 | antExAddRequest.setCurrentDueDate(DateUtil.getWeekDesc(patients.getLastMenses(), new Date()));//currentDueDate: "孕29周+4天" |
940 | 941 | antExAddRequest.setParentId(patients.getId()); |
941 | 942 | antExAddRequest.setPid(pid); |
943 | + HighScoreResult highScoreResult = antenatalExaminationFacade.findLastRisk(patients.getPid(), true); | |
944 | + if (highScoreResult != null) { | |
945 | + List<Map<String, Object>> list = highScoreResult.getHighRisk(); | |
946 | + List<String> stringList = new ArrayList<>(); | |
947 | + List<Map> maps = new ArrayList<>(); | |
948 | + for (Map<String, Object> map : list) { | |
949 | + if (null != map.get("otherId")) { | |
950 | + maps.add(map); | |
951 | + } else { | |
952 | + stringList.add(map.get("id").toString()); | |
953 | + } | |
954 | + } | |
955 | + antExAddRequest.setHighriskDesc(highScoreResult.getHighriskDesc()); | |
956 | + //高危因素 | |
957 | + antExAddRequest.setRiskFactor(stringList); | |
958 | + //其他高危 | |
959 | + antExAddRequest.setOtherRisk(maps); | |
960 | + } | |
961 | + | |
942 | 962 | antExAddRequest.setRiskFactor(patients.getRiskFactorId()); |
963 | + | |
964 | + | |
943 | 965 | antExAddRequest.setGongGao(fuh); |
944 | 966 | antExAddRequest.setAbdominalCircumference(abdominalGirth); |
945 | 967 | List<String> list = JsonUtil.jkstr2Obj(fhr, List.class); |