Commit 8947ab76d1a60de9c8e3cc457aff13992e29fb10
1 parent
bd900c5695
Exists in
master
and in
8 other branches
qhdfy send msg in home
Showing 6 changed files with 367 additions and 10 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/DataImportTest.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/TemplateInfo.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MongoSyncController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/SyncDataTaskService.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
8947ab7
... | ... | @@ -179,8 +179,12 @@ |
179 | 179 | System.out.println(config.getName()); |
180 | 180 | query.setParentId(config.getId()); |
181 | 181 | List<BasicConfig> sublist = mongoTemplate.find(query.convertToQuery().convertToMongoQuery(), BasicConfig.class); |
182 | +// for (BasicConfig sub:sublist) { | |
183 | +// System.out.println(sub.getName()+" "+sub.getId()+":"+sub.getParentId()+":"+sub.getCode()); | |
184 | +// } | |
185 | + | |
182 | 186 | for (BasicConfig sub:sublist) { |
183 | - System.out.println(sub.getName()+" "+sub.getId()+":"+sub.getParentId()+":"+sub.getCode()); | |
187 | + System.out.println("map.put(\""+sub.getName()+"\",\""+sub.getId()+":"+sub.getParentId()+":"+sub.getCode()+"\");"); | |
184 | 188 | } |
185 | 189 | } |
186 | 190 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
8947ab7
... | ... | @@ -220,6 +220,73 @@ |
220 | 220 | } |
221 | 221 | } |
222 | 222 | |
223 | + public String firstDownloadByHospitalId(String hospitalId) { | |
224 | + if (org.apache.commons.lang.StringUtils.isBlank(hospitalId)) { | |
225 | + return "hospitalId is null"; | |
226 | + } | |
227 | + StringBuffer sb = new StringBuffer(); | |
228 | + List<Class> classList = new ArrayList<>(); | |
229 | + classList.add(AntenatalExaminationModel.class); | |
230 | + classList.add(AntExChuModel.class); | |
231 | + classList.add(BabyModel.class); | |
232 | + classList.add(BabyCheckModel.class); | |
233 | + classList.add(MaternalDeliverModel.class); | |
234 | + classList.add(Patients.class); | |
235 | + classList.add(PersonModel.class); | |
236 | + classList.add(PostReviewModel.class); | |
237 | + classList.add(PuerperaModel.class); | |
238 | + classList.add(ReferralApplyOrderModel.class); | |
239 | + classList.add(ReferValue.class); | |
240 | + classList.add(SieveModel.class); | |
241 | + classList.add(SieveApplyOrderModel.class); | |
242 | + classList.add(SieveResultModel.class); | |
243 | + classList.add(StopPregModel.class); | |
244 | + try { | |
245 | + Mongo mongo = new Mongo("119.90.57.26", 10001); | |
246 | + MongoTemplate template = new MongoTemplate(mongo, "sync-platform-data"); | |
247 | + template.getDb().authenticate("platform", "platform123".toCharArray()); | |
248 | + Query query = null; | |
249 | + for (Class cla:classList) { | |
250 | + if (PersonModel.class.equals(cla)) { | |
251 | + query = new MongoQuery(new MongoCondition("yn", 1, MongoOper.IS)).convertToMongoQuery(); | |
252 | + } else { | |
253 | + query = new MongoQuery(new MongoCondition("hospitalId", hospitalId, MongoOper.IS)).convertToMongoQuery(); | |
254 | + } | |
255 | + sb.append("download start... "); | |
256 | + sb.append(cla.getName()); | |
257 | + sb.append(" query size:"); | |
258 | + List list = template.find(query, cla); | |
259 | + sb.append(list.size()); | |
260 | + int insert = 0; | |
261 | + int modified = 0; | |
262 | + for (Object obj:list) { | |
263 | + String id = cla.getMethod("getId").invoke(obj).toString(); | |
264 | + if (StringUtils.isNotBlank(id)) { | |
265 | + Object temp = mongoTemplate.findById(id, cla); | |
266 | + if (temp == null) { | |
267 | + mongoTemplate.insert(obj); | |
268 | + insert++; | |
269 | + } else { | |
270 | + Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(obj)); | |
271 | + mongoTemplate.updateMulti(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), update, cla); | |
272 | + modified++; | |
273 | + } | |
274 | + } | |
275 | + } | |
276 | + sb.append(" insert:"); | |
277 | + sb.append(insert); | |
278 | + sb.append(" modified:"); | |
279 | + sb.append(modified); | |
280 | + sb.append("\r\n<br>"); | |
281 | + } | |
282 | + return sb.toString(); | |
283 | + } catch (Exception e) { | |
284 | + e.printStackTrace(); | |
285 | + sb.append(e.getMessage()); | |
286 | + return sb.toString(); | |
287 | + } | |
288 | + } | |
289 | + | |
223 | 290 | public String saveMongoModel(String json, String className){ |
224 | 291 | if (StringUtils.isBlank(json) || StringUtils.isBlank(className)) { |
225 | 292 | return "param is null"; |
platform-operate-api/src/main/java/com/lyms/hospitalapi/DataImportTest.java
View file @
8947ab7
... | ... | @@ -2,11 +2,14 @@ |
2 | 2 | |
3 | 3 | import com.lyms.hospitalapi.pojo.PregPatientinfo; |
4 | 4 | import com.lyms.platform.common.base.LoginContext; |
5 | +import com.lyms.platform.common.pojo.SyncDataModel; | |
5 | 6 | import com.lyms.platform.common.utils.DateUtil; |
7 | +import com.lyms.platform.common.utils.JsonUtil; | |
6 | 8 | import com.lyms.platform.common.utils.LoginUtil; |
7 | 9 | import com.lyms.platform.permission.model.Users; |
8 | 10 | import org.apache.commons.dbutils.DbUtils; |
9 | 11 | import org.apache.commons.dbutils.QueryRunner; |
12 | +import org.apache.commons.dbutils.handlers.ArrayListHandler; | |
10 | 13 | import org.apache.commons.dbutils.handlers.BeanListHandler; |
11 | 14 | |
12 | 15 | import java.sql.Connection; |
... | ... | @@ -20,6 +23,33 @@ |
20 | 23 | public class DataImportTest { |
21 | 24 | |
22 | 25 | public static void main(String[] a) { |
26 | + Connection con = makeMommyBabyConnection(); | |
27 | + QueryRunner queryRunner = new QueryRunner(); | |
28 | + try { | |
29 | + List<Object[]> list = queryRunner.query(con, "SELECT id FROM message_template_version WHERE yn = 1 and title = '1.0' AND hospital_id != 0 and id < 53", new ArrayListHandler()); | |
30 | + if (list.size()>0) { | |
31 | + List<TemplateInfo> infoList = queryRunner.query(con, "SELECT * FROM message_template_info WHERE version_id = 2 and yn = 1 and created > '2016-10-11 10:12:15'", new BeanListHandler<TemplateInfo>(TemplateInfo.class)); | |
32 | + | |
33 | + | |
34 | + Object params[][] = new Object[553][]; | |
35 | + int i = 0; | |
36 | + for (TemplateInfo info:infoList) { | |
37 | + params[i] = new Object[] {info.getContent(),info.getTags(),info.getTitle(),info.getDescription(),info.getId(),info.getPublish_id(),info.getPublish_name(),info.getYn()}; | |
38 | + i++; | |
39 | + } | |
40 | + for (Object[] ids:list) { | |
41 | + System.out.println(ids[0]); | |
42 | + String sql = "insert into message_template_info (content,tags,title,description,version_id,parent_id,publish_id,publish_name,yn,modified,created) values (?,?,?,?,"+ids[0]+",?,?,?,?,now(),now())"; | |
43 | + queryRunner.batch(con, sql, params); | |
44 | + } | |
45 | + | |
46 | + } | |
47 | + } catch (SQLException e) { | |
48 | + e.printStackTrace(); | |
49 | + } | |
50 | + } | |
51 | + | |
52 | + public static void regLoginCenter(){ | |
23 | 53 | Connection localCon = makelocalConnection(); |
24 | 54 | Connection onlineCon = makeonlineConnection(); |
25 | 55 | QueryRunner queryRunner = new QueryRunner(); |
26 | 56 | |
... | ... | @@ -31,9 +61,9 @@ |
31 | 61 | if(loginContext.getErrorcode().equals(0) || loginContext.getErrorcode().equals(4010)) { |
32 | 62 | users.setLogincenterId(loginContext.getId()); |
33 | 63 | String sql = "INSERT INTO `users` (`zhiChenId`,`id`,`logincenter_id`,`type`,`org_id`,`dept_id`,`name`,`account`,`pwd`,`phone`,`publish_id`,`publish_name`,`yn`,`enable`,`modified`,`created`,`remarks`,`last_login_time`,`ks_Id`,`foreign_id`,`other_account`,`employee_id`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) "; |
34 | - // "(3,5332023,2000000000,1,242,151,'朱华','朱华','F14062C7EE0FFFC96A40898E08073D73','13996129571',867,'医院管理员',1,1,'2016-10-02 20:45:01','2016-10-02 20:45:01',NULL,NULL,NULL,NULL,NULL,NULL)"; | |
64 | + // "(3,5332023,2000000000,1,242,151,'朱华','朱华','F14062C7EE0FFFC96A40898E08073D73','13996129571',867,'医院管理员',1,1,'2016-10-02 20:45:01','2016-10-02 20:45:01',NULL,NULL,NULL,NULL,NULL,NULL)"; | |
35 | 65 | Object[] params = {users.getZhiChenId(),users.getId(), users.getLogincenterId(), users.getType(),242,143,users.getName(),users.getAccount(),users.getPwd(),users.getPhone(),867,"医院管理员", |
36 | - 1,1,users.getModified(),users.getCreated(),users.getRemarks(),users.getCreated(),null,null,null,null}; | |
66 | + 1,1,users.getModified(),users.getCreated(),users.getRemarks(),users.getCreated(),null,null,null,null}; | |
37 | 67 | queryRunner.update(onlineCon, sql, params); |
38 | 68 | } else { |
39 | 69 | System.out.println(users.getId()); |
... | ... | @@ -44,6 +74,36 @@ |
44 | 74 | } catch (SQLException e) { |
45 | 75 | e.printStackTrace(); |
46 | 76 | } |
77 | + } | |
78 | + | |
79 | + public static Connection makeMommyBabyConnection250() { | |
80 | + Connection conn = null; | |
81 | + try { | |
82 | + Class.forName("com.mysql.jdbc.Driver"); | |
83 | + } catch (ClassNotFoundException e) { | |
84 | + e.printStackTrace(); | |
85 | + } | |
86 | + try { | |
87 | + conn = DriverManager.getConnection("jdbc:mysql://192.168.5.250:3306/mommybaby?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8", "mommybaby", "mommybaby123"); | |
88 | + } catch (SQLException e) { | |
89 | + e.printStackTrace(); | |
90 | + } | |
91 | + return conn; | |
92 | + } | |
93 | + | |
94 | + public static Connection makeMommyBabyConnection() { | |
95 | + Connection conn = null; | |
96 | + try { | |
97 | + Class.forName("com.mysql.jdbc.Driver"); | |
98 | + } catch (ClassNotFoundException e) { | |
99 | + e.printStackTrace(); | |
100 | + } | |
101 | + try { | |
102 | + conn = DriverManager.getConnection("jdbc:mysql://119.90.43.68:3307/mommybaby?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8", "lyms_chengdu", "lyms2015"); | |
103 | + } catch (SQLException e) { | |
104 | + e.printStackTrace(); | |
105 | + } | |
106 | + return conn; | |
47 | 107 | } |
48 | 108 | |
49 | 109 | public static Connection makeonlineConnection() { |
platform-operate-api/src/main/java/com/lyms/hospitalapi/TemplateInfo.java
View file @
8947ab7
1 | +package com.lyms.hospitalapi; | |
2 | + | |
3 | +import java.util.Date; | |
4 | + | |
5 | +/** | |
6 | + * Created by riecard on 2016/10/24. | |
7 | + */ | |
8 | +public class TemplateInfo { | |
9 | + | |
10 | + private Integer id; | |
11 | + private Integer parent_id; | |
12 | + private Integer yn; | |
13 | + private Integer version_id; | |
14 | + private String title; | |
15 | + private String tags; | |
16 | + private String publish_name; | |
17 | + private Integer publish_id; | |
18 | + private Date modified; | |
19 | + private Integer marking; | |
20 | + private String description; | |
21 | + private Date created; | |
22 | + private String content; | |
23 | + | |
24 | + public Integer getId() { | |
25 | + return id; | |
26 | + } | |
27 | + | |
28 | + public void setId(Integer id) { | |
29 | + this.id = id; | |
30 | + } | |
31 | + | |
32 | + public Integer getParent_id() { | |
33 | + return parent_id; | |
34 | + } | |
35 | + | |
36 | + public void setParent_id(Integer parent_id) { | |
37 | + this.parent_id = parent_id; | |
38 | + } | |
39 | + | |
40 | + public Integer getYn() { | |
41 | + return yn; | |
42 | + } | |
43 | + | |
44 | + public void setYn(Integer yn) { | |
45 | + this.yn = yn; | |
46 | + } | |
47 | + | |
48 | + public Integer getVersion_id() { | |
49 | + return version_id; | |
50 | + } | |
51 | + | |
52 | + public void setVersion_id(Integer version_id) { | |
53 | + this.version_id = version_id; | |
54 | + } | |
55 | + | |
56 | + public String getTitle() { | |
57 | + return title; | |
58 | + } | |
59 | + | |
60 | + public void setTitle(String title) { | |
61 | + this.title = title; | |
62 | + } | |
63 | + | |
64 | + public String getTags() { | |
65 | + return tags; | |
66 | + } | |
67 | + | |
68 | + public void setTags(String tags) { | |
69 | + this.tags = tags; | |
70 | + } | |
71 | + | |
72 | + public String getPublish_name() { | |
73 | + return publish_name; | |
74 | + } | |
75 | + | |
76 | + public void setPublish_name(String publish_name) { | |
77 | + this.publish_name = publish_name; | |
78 | + } | |
79 | + | |
80 | + public Integer getPublish_id() { | |
81 | + return publish_id; | |
82 | + } | |
83 | + | |
84 | + public void setPublish_id(Integer publish_id) { | |
85 | + this.publish_id = publish_id; | |
86 | + } | |
87 | + | |
88 | + public Date getModified() { | |
89 | + return modified; | |
90 | + } | |
91 | + | |
92 | + public void setModified(Date modified) { | |
93 | + this.modified = modified; | |
94 | + } | |
95 | + | |
96 | + public Integer getMarking() { | |
97 | + return marking; | |
98 | + } | |
99 | + | |
100 | + public void setMarking(Integer marking) { | |
101 | + this.marking = marking; | |
102 | + } | |
103 | + | |
104 | + public String getDescription() { | |
105 | + return description; | |
106 | + } | |
107 | + | |
108 | + public void setDescription(String description) { | |
109 | + this.description = description; | |
110 | + } | |
111 | + | |
112 | + public Date getCreated() { | |
113 | + return created; | |
114 | + } | |
115 | + | |
116 | + public void setCreated(Date created) { | |
117 | + this.created = created; | |
118 | + } | |
119 | + | |
120 | + public String getContent() { | |
121 | + return content; | |
122 | + } | |
123 | + | |
124 | + public void setContent(String content) { | |
125 | + this.content = content; | |
126 | + } | |
127 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MongoSyncController.java
View file @
8947ab7
... | ... | @@ -47,6 +47,12 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | @ResponseBody |
50 | + @RequestMapping(method = RequestMethod.GET,value = "/firstDownloadByHospitalId") | |
51 | + public String firstDownloadByHospitalId(String hospitalId){ | |
52 | + return mongoSyncService.firstDownloadByHospitalId(hospitalId); | |
53 | + } | |
54 | + | |
55 | + @ResponseBody | |
50 | 56 | @RequestMapping(method = RequestMethod.POST,value = "/saveMongoModel") |
51 | 57 | public String saveMongoModel(String json, String className){ |
52 | 58 | return mongoSyncService.saveMongoModel(json,className); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/SyncDataTaskService.java
View file @
8947ab7
... | ... | @@ -194,6 +194,7 @@ |
194 | 194 | |
195 | 195 | |
196 | 196 | patients.setId(ss[1].trim()); |
197 | + patients.setPid(patients.getId()); | |
197 | 198 | patients.setFileCode(patients.getId()); |
198 | 199 | patients.setHospitalId("216"); |
199 | 200 | if (patients.getId().length() == 10) { |
... | ... | @@ -324,6 +325,7 @@ |
324 | 325 | AntExChuModel antExChuModel = new AntExChuModel(); |
325 | 326 | antExChuModel.setId(patients.getId()); |
326 | 327 | antExChuModel.setParentId(patients.getId()); |
328 | + antExChuModel.setPid(patients.getId()); | |
327 | 329 | antExChuModel.setModified(patients.getModified()); |
328 | 330 | antExChuModel.setCreated(patients.getCreated()); |
329 | 331 | antExChuModel.setCheckTime(patients.getBookbuildingDate()); |
... | ... | @@ -397,6 +399,9 @@ |
397 | 399 | int linenum = 0; |
398 | 400 | DateTime dt = new DateTime(); |
399 | 401 | Set<String> set = new HashSet<>(); |
402 | + Map<String, String> riskMap = buildRiskMap(); | |
403 | + int riskcount = 0; | |
404 | + int risktotalcount = 0; | |
400 | 405 | for (String line : list) { |
401 | 406 | linenum++; |
402 | 407 | if (linenum > 14035) { |
403 | 408 | |
... | ... | @@ -449,9 +454,20 @@ |
449 | 454 | if (risks != null && risks.length() > 1) { |
450 | 455 | Integer score = 0; |
451 | 456 | patients.setLastRhTime(patients.getBookbuildingDate()); |
452 | - String[] riskArray = risks.split(" "); | |
457 | + String[] riskArray = risks.split(" |\\+"); | |
453 | 458 | for (String r:riskArray) { |
454 | - set.add(r); | |
459 | + risktotalcount++; | |
460 | + boolean boo = true; | |
461 | + for (String s:riskMap.keySet()) { | |
462 | + if (s.indexOf(r) >= 0 || r.indexOf(s) >= 0) { | |
463 | + riskcount++; | |
464 | + boo = false; | |
465 | + break; | |
466 | + } | |
467 | + } | |
468 | + if (boo) { | |
469 | + set.add(r); | |
470 | + } | |
455 | 471 | } |
456 | 472 | } |
457 | 473 | // System.out.println(JsonUtil.obj2JsonString(patients)); |
458 | 474 | |
459 | 475 | |
460 | 476 | |
... | ... | @@ -460,15 +476,92 @@ |
460 | 476 | } |
461 | 477 | } |
462 | 478 | Map<String,String> map = new HashMap<>(); |
463 | - | |
479 | + System.out.println("riskcount:"+riskcount); | |
480 | + System.out.println("risktotalcount:"+risktotalcount); | |
464 | 481 | for (String s:set) { |
465 | - System.out.println("map.put(\""+s+"\",\"\");"); | |
466 | - | |
482 | + System.out.println(s); | |
467 | 483 | } |
468 | 484 | } |
469 | 485 | |
470 | - private Map<String, String> buildRiskMap() { | |
486 | + private static Map<String, String> buildRiskMap() { | |
471 | 487 | Map<String,String> map = new HashMap<>(); |
488 | + map.put("梅毒","f9426219-3df0-4513-9d0a-a0ec7b88a5fb:224b2329-cb82-4da3-a071-8527f8283aab:10"); | |
489 | + map.put("HIV","557518d8-3f67-4f81-a4b2-2accb0d69a04:224b2329-cb82-4da3-a071-8527f8283aab:10"); | |
490 | + map.put("尖锐湿疣","7fd948be-03b3-4dfa-9cb2-0069b6ca1149:224b2329-cb82-4da3-a071-8527f8283aab:10"); | |
491 | + map.put("肺结核","849ec627-05e2-40e1-b71b-ed6143f4c08c:224b2329-cb82-4da3-a071-8527f8283aab:10"); | |
492 | + map.put("健康","d42eec03-aa86-45b8-a4e0-78a0ff365fb6:e637b361-99cf-41eb-84f2-f0dab596e928:0"); | |
493 | + map.put("EVANS综合症","380b7dc9-5e44-4311-b40c-f950233480aa:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
494 | + map.put("心功能Ⅲ-Ⅳ级","e04d5364-11da-45f6-9801-c50ad5eb6f27:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
495 | + map.put("肺动脉高压","b3c12aa2-e7fa-4958-9933-ca952ce4c5e8:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
496 | + map.put("右向左分流型先心病","80383453-8ffb-436e-ad84-754b5092ef0e:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
497 | + map.put("严重心律失常","f50206fe-5fe4-4831-be7b-506ab0b458ed:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
498 | + map.put("风湿热活动期","57c7e445-9b46-48b4-87f0-6437ab080878:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
499 | + map.put("慢性肾脏疾病伴蛋白尿","69d25402-856e-4d3e-a4d2-bb6c2bb77095:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
500 | + map.put("慢性肾脏疾病伴肾功能不全","ba6c0db1-775b-4cfa-ba51-3427e3f4fd33:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
501 | + map.put("糖尿病并发心脏病","5cba13c2-5cb5-46c9-905a-41708d13d45e:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
502 | + map.put("糖尿病并发蛋白尿","0b51b328-1c8f-41de-90de-ef3b76341c1b:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
503 | + map.put("糖尿病并发肾功能不全","80587d8a-009e-46aa-87e5-57996b0708b1:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
504 | + map.put("心脏病变严重","63347e70-4a74-4bc9-bad6-0c0cf1b2fd89:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
505 | + map.put("肝硬化失代偿 ","1973e291-0e3c-4697-b12a-d9d5cf89b313:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
506 | + map.put("慢性肾脏疾病伴严重高血压","2ba1f715-4146-400f-bc7d-f6d054522c8b:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
507 | + map.put("糖尿病并发严重肾病","d6cfcad8-c674-4624-b50d-8797d217f10c:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
508 | + map.put("重度再障病情未缓解","80c41987-fd8a-4595-a773-088b60a6a33d:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
509 | + map.put("精神病急性期","0fc1b887-756c-4deb-85dc-dd7b68b9d8ce:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
510 | + map.put("恶性肿瘤","64091079-70bf-44dc-94e1-d4cad2a4dae7:eb146c03-b19f-4e28-b85f-fda574b2283b:20"); | |
511 | + map.put("三胎妊娠","755309ec-66a3-4339-83e9-bd6c9fe78096:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:20"); | |
512 | + map.put("完全性前置胎盘","4540fa80-b1f5-46e4-ae09-52df04760735:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:20"); | |
513 | + map.put("子痫前期","4ad55348-eb85-4546-8712-ccf21bc88f7b:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
514 | + map.put("RH血型不合可能","7eeb4438-953d-4d66-81bb-38ce51c453bb:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
515 | + map.put("心律失常","2adbce90-4066-4980-b7a0-14012cbfea52:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
516 | + map.put("甲亢","ecb2fd70-1e85-455c-8f62-ee7b9c71e48c:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
517 | + map.put("甲减","8745081d-1f37-45f7-b5be-94a208686bd2:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
518 | + map.put("肝炎","373f07a3-ba62-4144-941e-ea3f4d573f04:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
519 | + map.put("哮喘伴肺功能不全","e8a2b403-4f0d-4b33-ac16-e163bad78f1f:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:20"); | |
520 | + map.put("精神分裂症","6cadd10c-e32e-469c-b3bc-95a7d79e74e3:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
521 | + map.put("重度贫血","82e4441b-7072-443e-a30f-39b0b4504d75:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
522 | + map.put("肾脏疾病","2455e2dd-d475-4087-9caf-c1084a2344ba:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
523 | + map.put("心肌炎","d7ceb752-ce2a-4901-a94e-51b73ccefc52:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
524 | + map.put("胸廓畸形伴轻度肺功能不全","3af4b6fd-0bb9-4f4b-9d8f-916df71955cf:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
525 | + map.put("糖尿病(胰岛素治疗)","de7468e6-1bb5-4fab-ae84-78857868409a:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
526 | + map.put("血小板减少≤50*10^9/L","f74834ab-4e01-4c68-8669-049f723d15aa:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:20"); | |
527 | + map.put("癫痫","c352dca5-cee7-4a95-a77c-01f50573ccf6:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
528 | + map.put("自身免疫性疾病","5baa3083-5743-4d5f-8658-ea82391212bc:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); | |
529 | + map.put("羊水过多","bc4f5050-3fbf-414e-82fd-71e153e977c1:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:5"); | |
530 | + map.put("贫血(Hb<100g/L)","3c95503a-175c-4fc1-963a-c93ab70fd9f3:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
531 | + map.put("精神病缓解期","53e9bf61-791b-4de8-b319-70ac0945a6b2:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
532 | + map.put("年龄≥35岁","ec925d9c-040b-4ca6-a200-81a73ce8946f:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
533 | + map.put("早产","363c691e-8d9e-4f1e-8e83-3f8bce921e05:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
534 | + map.put("双胎妊娠","ea07a409-f5c8-4bf6-af2c-e6a60b729600:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
535 | + map.put("先兆流产","017360bb-2650-489e-b3f6-de6b91507802:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
536 | + map.put("乙肝大三阳","20c0002a-5ada-42e0-8c3a-6169ae95e052:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
537 | + map.put("胎儿生长受限","0c00adba-425b-4081-a4d1-58650059cebb:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
538 | + map.put("ABO血型症","eb167b34-21d7-48af-a414-b2ba8cc229cd:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
539 | + map.put("妊娠期高血压","9310676a-9482-4da5-9ba8-e2a302843ea0:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
540 | + map.put("妊娠期糖尿病","18b88ebe-d013-44a4-ba47-3e929868e30d:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
541 | + map.put("肝内胆汁淤积症","8862bf4e-1072-4227-9a4d-0e0a14c24a17:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
542 | + map.put("胎膜早破","399b3d8d-a736-4a5c-ab09-a378411bf33c:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
543 | + map.put("羊水过少","810e921d-2ad3-4214-b202-6ba18c4288f5:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
544 | + map.put(">36周胎位不正","52986b9e-5a44-4613-9af5-07564f15b703:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
545 | + map.put("流产>=2次","f3a1c08f-a2c1-4e93-8ffd-398af9e2d8c9:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
546 | + map.put("IVF","134a92a6-1a2d-42d8-b9e9-e824cabbe5f2:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
547 | + map.put("牛皮癣","0332b6e7-0906-4279-bfb0-75d95d67088c:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
548 | + map.put("24<BMI≤28","a427da89-594a-46c2-b9f7-1b0d355ce54c:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
549 | + map.put("糖尿病","36bf4b7d-9b2c-4210-b212-f7b29486b8b0:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
550 | + map.put("子宫肌瘤","0e56eed3-e3a4-4e91-9a90-0e947cd4aad5:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
551 | + map.put("高血压","a8094bd6-de5d-4b95-9a1a-59ae376bb2a6:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
552 | + map.put("人工受精","ee3ba99e-64c0-4aab-b0a4-71dec0d61ca6:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
553 | + map.put("臀位","3be742b2-ed07-425e-a435-8a19fc8ba86e:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
554 | + map.put("瘢痕子宫","b4371046-8b75-4691-8dd0-0adefbac1b13:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
555 | + map.put("BMI≥32","cbeb4447-f4cb-4c2e-96f3-973a0c701fc3:315107bd-91fe-42a1-9237-752f3c046a40:20"); | |
556 | + map.put("中度贫血","251833c7-7ac1-410f-a6e7-c50f4008d5ed:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
557 | + map.put("28<BMI≤32","8856c4da-57e3-42af-820a-25c991dde3f0:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
558 | + map.put("产道畸形或骨盆狭小","4ec114d7-9c78-4dfc-878c-1139ef3ff04c:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
559 | + map.put("不良孕产史","1d23ecbb-8e30-4c56-b6fb-bdcb23a55206:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
560 | + map.put("肝炎病毒携带者","b43a43e4-733f-4ec1-9b5e-f00b9bc6e651:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
561 | + map.put("部分性前置胎盘","2b542f2a-c766-4071-abc5-d5a062df7a88:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
562 | + map.put("哮喘","d97a6cf4-ea97-42db-ac33-a166c6a18535:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
563 | + map.put("慢性肝炎","9b8487e1-d1d6-4b6e-87b8-3cf2969ebaeb:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
564 | + map.put("病情稳定的甲状腺疾病","94d22a35-cd95-477e-b6ad-7023802a8a7c:315107bd-91fe-42a1-9237-752f3c046a40:5"); | |
472 | 565 | map.put("高龄+IVF术后","134a92a6-1a2d-42d8-b9e9-e824cabbe5f2:315107bd-91fe-42a1-9237-752f3c046a40:10"); |
473 | 566 | map.put("IVF双胎","134a92a6-1a2d-42d8-b9e9-e824cabbe5f2:315107bd-91fe-42a1-9237-752f3c046a40:10"); |
474 | 567 | map.put("瘢痕子宫+不良孕产史","b4371046-8b75-4691-8dd0-0adefbac1b13:315107bd-91fe-42a1-9237-752f3c046a40:10"); |
... | ... | @@ -579,7 +672,7 @@ |
579 | 672 | map.put("瘢痕子宫(剖宫产2次)","b4371046-8b75-4691-8dd0-0adefbac1b13:315107bd-91fe-42a1-9237-752f3c046a40:10"); |
580 | 673 | map.put("梅毒(+)乙肝","f9426219-3df0-4513-9d0a-a0ec7b88a5fb:224b2329-cb82-4da3-a071-8527f8283aab:10"); |
581 | 674 | map.put("甲减(口服药)","8745081d-1f37-45f7-b5be-94a208686bd2:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); |
582 | - map.put("流产3次","f3a1c08f-a2c1-4e93-8ffd-398af9e2d8c9:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
675 | + map.put("流产3次 人流2次 人流两次","f3a1c08f-a2c1-4e93-8ffd-398af9e2d8c9:315107bd-91fe-42a1-9237-752f3c046a40:10"); | |
583 | 676 | map.put("高龄+瘢痕子宫","b4371046-8b75-4691-8dd0-0adefbac1b13:315107bd-91fe-42a1-9237-752f3c046a40:10"); |
584 | 677 | map.put("肾结石","2455e2dd-d475-4087-9caf-c1084a2344ba:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); |
585 | 678 | map.put("甲减+瘢痕子宫","8745081d-1f37-45f7-b5be-94a208686bd2:49a36aea-c5b6-4162-87d2-9eb3c6ec00c2:10"); |