Commit 1926b057e5ed87f42740ecc3f6f7541601a1ee27
1 parent
a6302f01cd
Exists in
master
and in
6 other branches
隆化两癌-12.乳腺最后随访结果
Showing 4 changed files with 175 additions and 0 deletions
- platform-common/src/main/java/com/lyms/platform/common/enums/LhEndDiagnosisContent.java
- platform-dal/src/main/java/com/lyms/platform/pojo/CancerScreeningModel.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CancerScreeningFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/CancerScreeningResult.java
platform-common/src/main/java/com/lyms/platform/common/enums/LhEndDiagnosisContent.java
View file @
1926b05
1 | +package com.lyms.platform.common.enums; | |
2 | + | |
3 | +import com.lyms.platform.common.utils.StringUtils; | |
4 | + | |
5 | +/** | |
6 | + * 隆化-妇女健康管理-两癌-乳腺-乳腺最后随访结果-最后诊断异常项 | |
7 | + * @Author: shiy | |
8 | + * @Date: 2021/11/22 | |
9 | + */ | |
10 | +public enum LhEndDiagnosisContent { | |
11 | + YcType1("1", "乳腺增生"), | |
12 | + YcType2("2", "乳腺纤维腺瘤"), | |
13 | + YcType3("3", "乳腺炎"), | |
14 | + YcType4("4", "乳腺导管内乳头状瘤"), | |
15 | + YcType5("5", "小叶瘤变"), | |
16 | + YcType6("6", "导管原位癌"), | |
17 | + YcType7("7", "微小浸润癌"), | |
18 | + YcType8("8", "浸润癌"), | |
19 | + YcType9("9", "其他"); | |
20 | + | |
21 | + LhEndDiagnosisContent(String id, String name) { | |
22 | + this.id = id; | |
23 | + this.name = name; | |
24 | + } | |
25 | + | |
26 | + | |
27 | + public static String getName(String id) { | |
28 | + if(StringUtils.isEmpty(id)) { | |
29 | + return null; | |
30 | + } | |
31 | + LhEndDiagnosisContent[] values = LhEndDiagnosisContent.values(); | |
32 | + for (LhEndDiagnosisContent value : values) { | |
33 | + if (value.getId().equals(id)) { | |
34 | + return value.getName(); | |
35 | + } | |
36 | + } | |
37 | + return null; | |
38 | + } | |
39 | + private String id; | |
40 | + private String name; | |
41 | + | |
42 | + public String getId() { | |
43 | + return id; | |
44 | + } | |
45 | + | |
46 | + public void setId(String id) { | |
47 | + this.id = id; | |
48 | + } | |
49 | + | |
50 | + public String getName() { | |
51 | + return name; | |
52 | + } | |
53 | + | |
54 | + public void setName(String name) { | |
55 | + this.name = name; | |
56 | + } | |
57 | + | |
58 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/CancerScreeningModel.java
View file @
1926b05
... | ... | @@ -274,6 +274,101 @@ |
274 | 274 | //隆化新乳腺X线检查内容,展示用到enum(LhBreastXRayContent) |
275 | 275 | private String rxXJc; |
276 | 276 | |
277 | + /** | |
278 | + *隆化-最终追访结果 | |
279 | + * | |
280 | + */ | |
281 | + //失访情况 1,是;2。否 | |
282 | + private String newSfQk; | |
283 | + //病理结果 内容字段:t;n;m;qibie; | |
284 | + private Map<String,Object> blJg; | |
285 | + //诊断机构 | |
286 | + private String bLzdJg; | |
287 | + //诊断人员 | |
288 | + private String bLzdRy; | |
289 | + //诊断时间 | |
290 | + private Date bLzdSj; | |
291 | + //最后诊断 内容字段 yn(0未见异常,1异常);yc(异常项1-9)展示用到enum(LhEndDiagnosisContent);qt(其他注明); | |
292 | + private Map<String,Object> zhJd; | |
293 | + //诊断机构 | |
294 | + private String zHzdJg; | |
295 | + //诊断人员 | |
296 | + private String zHzdRy; | |
297 | + //诊断时间 | |
298 | + private Date zHzdSj; | |
299 | + | |
300 | + public String getNewSfQk() { | |
301 | + return newSfQk; | |
302 | + } | |
303 | + | |
304 | + public void setNewSfQk(String newSfQk) { | |
305 | + this.newSfQk = newSfQk; | |
306 | + } | |
307 | + | |
308 | + public Map<String, Object> getBlJg() { | |
309 | + return blJg; | |
310 | + } | |
311 | + | |
312 | + public void setBlJg(Map<String, Object> blJg) { | |
313 | + this.blJg = blJg; | |
314 | + } | |
315 | + | |
316 | + public String getbLzdJg() { | |
317 | + return bLzdJg; | |
318 | + } | |
319 | + | |
320 | + public void setbLzdJg(String bLzdJg) { | |
321 | + this.bLzdJg = bLzdJg; | |
322 | + } | |
323 | + | |
324 | + public String getbLzdRy() { | |
325 | + return bLzdRy; | |
326 | + } | |
327 | + | |
328 | + public void setbLzdRy(String bLzdRy) { | |
329 | + this.bLzdRy = bLzdRy; | |
330 | + } | |
331 | + | |
332 | + public Date getbLzdSj() { | |
333 | + return bLzdSj; | |
334 | + } | |
335 | + | |
336 | + public void setbLzdSj(Date bLzdSj) { | |
337 | + this.bLzdSj = bLzdSj; | |
338 | + } | |
339 | + | |
340 | + public Map<String, Object> getZhJd() { | |
341 | + return zhJd; | |
342 | + } | |
343 | + | |
344 | + public void setZhJd(Map<String, Object> zhJd) { | |
345 | + this.zhJd = zhJd; | |
346 | + } | |
347 | + | |
348 | + public String getzHzdJg() { | |
349 | + return zHzdJg; | |
350 | + } | |
351 | + | |
352 | + public void setzHzdJg(String zHzdJg) { | |
353 | + this.zHzdJg = zHzdJg; | |
354 | + } | |
355 | + | |
356 | + public String getzHzdRy() { | |
357 | + return zHzdRy; | |
358 | + } | |
359 | + | |
360 | + public void setzHzdRy(String zHzdRy) { | |
361 | + this.zHzdRy = zHzdRy; | |
362 | + } | |
363 | + | |
364 | + public Date getzHzdSj() { | |
365 | + return zHzdSj; | |
366 | + } | |
367 | + | |
368 | + public void setzHzdSj(Date zHzdSj) { | |
369 | + this.zHzdSj = zHzdSj; | |
370 | + } | |
371 | + | |
277 | 372 | public String getRxXJc() { |
278 | 373 | return rxXJc; |
279 | 374 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CancerScreeningFacade.java
View file @
1926b05
... | ... | @@ -31,8 +31,10 @@ |
31 | 31 | import org.springframework.beans.*; |
32 | 32 | import org.springframework.beans.factory.annotation.Autowired; |
33 | 33 | import org.springframework.stereotype.Component; |
34 | +import scala.util.parsing.combinator.testing.Str; | |
34 | 35 | |
35 | 36 | import javax.servlet.http.HttpServletResponse; |
37 | +import java.lang.reflect.Array; | |
36 | 38 | import java.util.*; |
37 | 39 | |
38 | 40 | /** |
... | ... | @@ -310,6 +312,16 @@ |
310 | 312 | //乳腺X线检查内容翻译字段 |
311 | 313 | if(StringUtils.isNotEmpty(cancerScreeningModel.getRxXJc())){ |
312 | 314 | result.setRxXJcName(LhBreastXRayContent.getName(cancerScreeningModel.getRxXJc())); |
315 | + } | |
316 | + //乳腺最后随访结果内容翻译字段(map key:yc) | |
317 | + if(null!=cancerScreeningModel.getZhJd()){ | |
318 | + if(null!=cancerScreeningModel.getZhJd().get("yc")){ | |
319 | + String[] arry = null; | |
320 | + for (int i=0; i<((String[]) cancerScreeningModel.getZhJd().get("yc")).length;i++) { | |
321 | + arry[i]=LhEndDiagnosisContent.getName(((String[]) cancerScreeningModel.getZhJd().get("yc"))[i]); | |
322 | + } | |
323 | + result.setMapYcName(arry); | |
324 | + } | |
313 | 325 | } |
314 | 326 | org.springframework.beans.BeanUtils.copyProperties(cancerScreeningModel,result); |
315 | 327 | //隆化-两癌-翻译乳腺癌名称 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/CancerScreeningResult.java
View file @
1926b05
... | ... | @@ -16,6 +16,16 @@ |
16 | 16 | private String newRxCssjName; |
17 | 17 | //乳腺X线检查容翻译字段 |
18 | 18 | private String rxXJcName; |
19 | + //乳腺最后随访结果内容翻译字段(map key:yc) | |
20 | + private String[] mapYcName; | |
21 | + | |
22 | + public String[] getMapYcName() { | |
23 | + return mapYcName; | |
24 | + } | |
25 | + | |
26 | + public void setMapYcName(String[] mapYcName) { | |
27 | + this.mapYcName = mapYcName; | |
28 | + } | |
19 | 29 | |
20 | 30 | public String getRxXJcName() { |
21 | 31 | return rxXJcName; |