Commit a3fa146b746f56b787e8fee5bdf0614fbb78d650
1 parent
2c8d07d8f7
Exists in
master
and in
6 other branches
commit baby ear
Showing 11 changed files with 1130 additions and 24 deletions
- platform-biz-service/src/main/java/com/lyms/platform/permission/model/AbstracUuidEntity.java
- platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarBirth.java
- platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarQuery.java
- platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEar.xml
- platform-common/src/main/java/com/lyms/platform/common/enums/ApplyOrderStatusEnums.java
- platform-common/src/main/java/com/lyms/platform/common/enums/BabyEarResultEnums.java
- platform-common/src/main/java/com/lyms/platform/common/enums/DeafEnums.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEarController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyEarAddRequest.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyScreenAddRequest.java
platform-biz-service/src/main/java/com/lyms/platform/permission/model/AbstracUuidEntity.java
View file @
a3fa146
1 | 1 | package com.lyms.platform.permission.model; |
2 | 2 | |
3 | +import org.apache.commons.lang.StringUtils; | |
4 | + | |
3 | 5 | import java.util.UUID; |
4 | 6 | |
5 | 7 | /** |
6 | 8 | |
... | ... | @@ -8,11 +10,20 @@ |
8 | 10 | * @Date: 2017/5/12 0012 10:56 |
9 | 11 | * @Version: V1.0 |
10 | 12 | */ |
11 | -public class AbstracUuidEntity extends AbstractEntity<String> { | |
13 | +public abstract class AbstracUuidEntity extends AbstractEntity<String> { | |
12 | 14 | |
13 | 15 | @Override |
14 | 16 | protected void initId() { |
15 | - setId(UUID.randomUUID().toString().replace("-", "")); | |
17 | + if(StringUtils.isEmpty(getId())){ | |
18 | + setId(UUID.randomUUID().toString().replace("-", "")); | |
19 | + } | |
20 | + } | |
21 | + public String getId() { | |
22 | + return super.getId(); | |
23 | + } | |
24 | + | |
25 | + public void setId(String id) { | |
26 | + super.setId(id); | |
16 | 27 | } |
17 | 28 | } |
platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarBirth.java
View file @
a3fa146
1 | 1 | package com.lyms.platform.permission.model; |
2 | 2 | |
3 | +import org.codehaus.jackson.annotate.JsonIgnore; | |
4 | + | |
3 | 5 | import java.math.BigDecimal; |
4 | 6 | |
5 | 7 | /** |
... | ... | @@ -196,6 +198,7 @@ |
196 | 198 | /** |
197 | 199 | * 所属建档的id |
198 | 200 | */ |
201 | + @JsonIgnore | |
199 | 202 | private String babyPatientId; |
200 | 203 | |
201 | 204 | public Integer getFetuNumber() { |
platform-biz-service/src/main/java/com/lyms/platform/permission/model/BabyPatientExtendEarQuery.java
View file @
a3fa146
... | ... | @@ -18,12 +18,20 @@ |
18 | 18 | private String lastUpdateHospitalId; |
19 | 19 | private String highRiskCause; |
20 | 20 | private Integer status; |
21 | + private String babyPatientId; | |
21 | 22 | |
22 | 23 | public String getId() |
23 | 24 | { |
24 | 25 | return id; |
25 | 26 | } |
26 | 27 | |
28 | + public String getBabyPatientId() { | |
29 | + return babyPatientId; | |
30 | + } | |
31 | + | |
32 | + public void setBabyPatientId(String babyPatientId) { | |
33 | + this.babyPatientId = babyPatientId; | |
34 | + } | |
27 | 35 | |
28 | 36 | public void setId(String id) |
29 | 37 | { |
platform-biz-service/src/main/resources/mainOrm/master/BabyPatientExtendEar.xml
View file @
a3fa146
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | |
64 | 64 | <select id="getBabyPatientExtendEar" resultMap="BabyPatientExtendEarResultMap" parameterType="java.lang.String"> |
65 | 65 | select id,person_id,create_date,create_user_id,create_hospital_id,last_update_date,last_update_user_id,last_update_hospital_id,high_risk_cause,status |
66 | - from baby_patient_extend_ear where id = #{id,jdbcType=VARCHAR} | |
66 | + ,baby_patient_id from baby_patient_extend_ear where id = #{id,jdbcType=VARCHAR} | |
67 | 67 | </select> |
68 | 68 | |
69 | 69 | |
... | ... | @@ -118,7 +118,7 @@ |
118 | 118 | parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarQuery"> |
119 | 119 | select |
120 | 120 | id,person_id,create_date,create_user_id,create_hospital_id,last_update_date,last_update_user_id,last_update_hospital_id,high_risk_cause,status |
121 | - from baby_patient_extend_ear | |
121 | + baby_patient_id from baby_patient_extend_ear | |
122 | 122 | <include refid="BabyPatientExtendEarCondition"/> |
123 | 123 | <include refid="orderAndLimit"/> |
124 | 124 | </select> |
platform-common/src/main/java/com/lyms/platform/common/enums/ApplyOrderStatusEnums.java
View file @
a3fa146
platform-common/src/main/java/com/lyms/platform/common/enums/BabyEarResultEnums.java
View file @
a3fa146
1 | +package com.lyms.platform.common.enums; | |
2 | + | |
3 | +/** | |
4 | + * 儿童听筛检查结果 | |
5 | + * | |
6 | + * 通过/不通过 | |
7 | + * | |
8 | + * Created by jiangjiazhi on 2017/5/25. | |
9 | + */ | |
10 | +public enum BabyEarResultEnums { | |
11 | + | |
12 | + PASS(1,"通過"),UNPASS(2,"不通過");; | |
13 | + private BabyEarResultEnums(Integer id,String title){ | |
14 | + this.id | |
15 | + =id; | |
16 | + this.title=title; | |
17 | + } | |
18 | + public static String getTitle(int id){ | |
19 | + if (id==0){ | |
20 | + return ""; | |
21 | + } | |
22 | + for (BabyEarResultEnums cfEnums:BabyEarResultEnums.values()){ | |
23 | + if (id == cfEnums.getId()){ | |
24 | + return cfEnums.getTitle(); | |
25 | + } | |
26 | + } | |
27 | + return ""; | |
28 | + } | |
29 | + private Integer id; | |
30 | + private String title; | |
31 | + | |
32 | + public Integer getId() { | |
33 | + return id; | |
34 | + } | |
35 | + | |
36 | + public String getTitle() { | |
37 | + return title; | |
38 | + } | |
39 | +} |
platform-common/src/main/java/com/lyms/platform/common/enums/DeafEnums.java
View file @
a3fa146
... | ... | @@ -7,11 +7,30 @@ |
7 | 7 | */ |
8 | 8 | public enum DeafEnums { |
9 | 9 | YSX(1,"野生型"),CHTB(2,"纯合突变"),FHZHTB(3,"复合杂合突变"),DZHTB(4,"单杂合突变"); |
10 | - | |
10 | + public static String getTitle(int id){ | |
11 | + if (id==0){ | |
12 | + return ""; | |
13 | + } | |
14 | + for (DeafEnums cfEnums:DeafEnums.values()){ | |
15 | + if (id == cfEnums.getId()){ | |
16 | + return cfEnums.getName(); | |
17 | + } | |
18 | + } | |
19 | + return ""; | |
20 | + } | |
11 | 21 | private DeafEnums(Integer id,String name){ |
12 | - this.id=id | |
13 | - ;this.name=name; | |
22 | + this.id=id; | |
23 | + this.name=name; | |
14 | 24 | } |
25 | + | |
26 | + public Integer getId() { | |
27 | + return id; | |
28 | + } | |
29 | + | |
30 | + public String getName() { | |
31 | + return name; | |
32 | + } | |
33 | + | |
15 | 34 | private Integer id; |
16 | 35 | private String name; |
17 | 36 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEarController.java
View file @
a3fa146
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
4 | +import com.lyms.platform.common.base.BaseController; | |
5 | +import com.lyms.platform.common.base.ContextHolder; | |
6 | +import com.lyms.platform.common.base.LoginContext; | |
7 | +import com.lyms.platform.common.result.BaseResponse; | |
8 | +import com.lyms.platform.operate.web.facade.BabyEarFacade; | |
9 | +import com.lyms.platform.operate.web.request.BabyEarAddRequest; | |
10 | +import com.lyms.platform.operate.web.request.BabyScreenAddRequest; | |
3 | 11 | import org.slf4j.Logger; |
4 | 12 | import org.slf4j.LoggerFactory; |
13 | +import org.springframework.beans.factory.annotation.Autowired; | |
14 | +import org.springframework.http.HttpMethod; | |
15 | +import org.springframework.stereotype.Controller; | |
16 | +import org.springframework.web.bind.annotation.*; | |
5 | 17 | |
18 | +import javax.servlet.http.HttpServletRequest; | |
19 | +import javax.validation.Valid; | |
6 | 20 | |
21 | + | |
7 | 22 | /** |
8 | 23 | * 儿童听力筛查接口 |
9 | 24 | * <p/> |
10 | 25 | |
... | ... | @@ -17,11 +32,95 @@ |
17 | 32 | * @version BME V100R001 2017-05-17 15:49 |
18 | 33 | * @since BME V100R001C40B104 |
19 | 34 | */ |
20 | -public class BabyEarController | |
35 | +@Controller | |
36 | +public class BabyEarController extends BaseController | |
21 | 37 | { |
22 | 38 | |
23 | 39 | //日志调测器 |
24 | 40 | private static final Logger logger = LoggerFactory.getLogger(BabyEarController.class); |
25 | 41 | |
42 | + @Autowired | |
43 | + private BabyEarFacade babyEarFacade; | |
44 | + | |
45 | + /** | |
46 | + * 增加儿童听力筛查 | |
47 | + * | |
48 | + * @param babyEarAddRequest 儿童听筛请求对象 | |
49 | + * | |
50 | + * @return 操作是否成功 | |
51 | + */ | |
52 | + @TokenRequired | |
53 | + @ResponseBody | |
54 | + @RequestMapping(method = RequestMethod.POST,value = "/babyear") | |
55 | + public BaseResponse addBabyEar(@Valid BabyEarAddRequest babyEarAddRequest,HttpServletRequest request){ | |
56 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
57 | + return babyEarFacade.addOrUpdateBabyEar(babyEarAddRequest,loginState.getId()); | |
58 | + } | |
59 | + | |
60 | + | |
61 | + /** | |
62 | + * 删除儿童听力筛查 | |
63 | + */ | |
64 | + @RequestMapping(value = "/babyear",method = RequestMethod.DELETE) | |
65 | + @ResponseBody | |
66 | + @TokenRequired | |
67 | + public BaseResponse delOneBabyEar(@RequestParam("id")String id){ | |
68 | + return babyEarFacade.deleteBabyEar(id); | |
69 | + } | |
70 | + | |
71 | + /** | |
72 | + * 查看儿童听筛详情 | |
73 | + * | |
74 | + * @return | |
75 | + */ | |
76 | + @TokenRequired | |
77 | + @ResponseBody | |
78 | + @RequestMapping(value = "/babyear",method = RequestMethod.GET) | |
79 | + public BaseResponse findOneBabyEar(String babyId){ | |
80 | + return null; | |
81 | + } | |
82 | + | |
83 | + /** | |
84 | + * 增加或者修改产晒接口 | |
85 | + * | |
86 | + * @param babyScreenAddRequest | |
87 | + * @param httpServletRequest | |
88 | + * @return | |
89 | + */ | |
90 | + @RequestMapping(value = "/babyearsrc",method = RequestMethod.POST) | |
91 | + @ResponseBody | |
92 | + @TokenRequired | |
93 | +// @Link DeafEnums 耳聾基因結果 | |
94 | + public BaseResponse addOrUpdateBabySrc(@Valid BabyScreenAddRequest babyScreenAddRequest,HttpServletRequest httpServletRequest){ | |
95 | + LoginContext loginState = (LoginContext) httpServletRequest.getAttribute("loginContext"); | |
96 | + return babyEarFacade.addOneBabyEarSrc(babyScreenAddRequest,loginState.getId()); | |
97 | + } | |
98 | + | |
99 | + /** | |
100 | + * 删除产晒记录 | |
101 | + * | |
102 | + * @param id | |
103 | + * @return | |
104 | + */ | |
105 | + @RequestMapping(value = "/babyearsrc",method = RequestMethod.DELETE) | |
106 | + @ResponseBody | |
107 | + @TokenRequired | |
108 | + public BaseResponse delOneBabySrc(@RequestParam("id")String id,HttpServletRequest httpServletRequest){ | |
109 | + LoginContext loginState = (LoginContext) httpServletRequest.getAttribute("loginContext"); | |
110 | + return babyEarFacade.delOneBabyEarSrc(id, loginState.getId()); | |
111 | + } | |
112 | + | |
113 | + /** | |
114 | + * 获取产晒记录 | |
115 | + * | |
116 | + * @param id | |
117 | + * @return | |
118 | + */ | |
119 | + @RequestMapping(value = "/babyearsrc",method = RequestMethod.GET) | |
120 | + @ResponseBody | |
121 | + @TokenRequired | |
122 | + public BaseResponse getOneBabySrc(@RequestParam("id")String id){ | |
123 | + return babyEarFacade.findOneBabyEarSrc(id); | |
124 | + } | |
26 | 125 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyEarFacade.java
View file @
a3fa146
1 | 1 | package com.lyms.platform.operate.web.facade; |
2 | 2 | |
3 | +import com.lyms.platform.biz.service.BabyService; | |
4 | +import com.lyms.platform.biz.service.PersonService; | |
5 | +import com.lyms.platform.common.base.IBasicRequestConvert; | |
6 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
7 | +import com.lyms.platform.common.enums.BabyEarResultEnums; | |
8 | +import com.lyms.platform.common.enums.DeafEnums; | |
9 | +import com.lyms.platform.common.enums.HighRiskEnum; | |
10 | +import com.lyms.platform.common.enums.YnEnums; | |
11 | +import com.lyms.platform.common.result.BaseObjectResponse; | |
3 | 12 | import com.lyms.platform.common.result.BaseResponse; |
13 | +import com.lyms.platform.common.result.RespBuilder; | |
14 | +import com.lyms.platform.common.result.ResponseCode; | |
15 | +import com.lyms.platform.common.utils.DateUtil; | |
16 | +import com.lyms.platform.operate.web.request.BabyEarAddRequest; | |
17 | +import com.lyms.platform.operate.web.request.BabyScreenAddRequest; | |
18 | +import com.lyms.platform.operate.web.utils.ResponseUtil; | |
19 | +import com.lyms.platform.permission.model.*; | |
4 | 20 | import com.lyms.platform.permission.service.*; |
21 | +import com.lyms.platform.pojo.BabyModel; | |
22 | +import com.lyms.platform.pojo.PersonModel; | |
23 | +import com.lyms.platform.query.PersonModelQuery; | |
24 | +import com.sun.xml.internal.rngom.parse.host.Base; | |
25 | +import org.apache.commons.collections.CollectionUtils; | |
26 | +import org.apache.commons.lang.StringUtils; | |
5 | 27 | import org.slf4j.Logger; |
6 | 28 | import org.slf4j.LoggerFactory; |
7 | 29 | import org.springframework.beans.factory.annotation.Autowired; |
8 | 30 | |
31 | +import java.util.Date; | |
32 | +import java.util.HashMap; | |
33 | +import java.util.List; | |
34 | +import java.util.Map; | |
9 | 35 | |
36 | + | |
10 | 37 | /** |
11 | 38 | * 儿童听筛门面 |
12 | 39 | * <p/> |
13 | 40 | |
14 | 41 | |
15 | 42 | |
16 | 43 | |
17 | 44 | |
... | ... | @@ -36,15 +63,257 @@ |
36 | 63 | //家族史 |
37 | 64 | private BabyPatientExtendEarFamilyService babyPatientExtendEarFamilyService; |
38 | 65 | @Autowired |
39 | - //儿童建档的母亲壬辰详情 | |
40 | - private BabyPatientExtendEarMotherService babyPatientExtendEarMotherService; | |
66 | + private UsersService usersService; | |
41 | 67 | @Autowired |
68 | + private OrganizationService organizationService; | |
42 | 69 | //听力筛查 |
70 | + @Autowired | |
43 | 71 | private BabyPatientExtendEarScreenService babyPatientExtendEarScreenService; |
72 | + @Autowired | |
73 | + //儿童建档的母亲壬辰详情 | |
74 | + private BabyPatientExtendEarMotherService babyPatientExtendEarMotherService; | |
75 | + @Autowired | |
76 | + private BabyService babyService; | |
77 | + @Autowired | |
78 | + private AutoMatchFacade autoMatchFacade; | |
79 | + @Autowired | |
80 | + private ChildrenFatherService childrenFatherService; | |
81 | + @Autowired | |
82 | + private ChildrenRecordService childrenRecordService; | |
83 | + @Autowired | |
84 | + private ChildrenPersonService childrenPersonService; | |
85 | + @Autowired | |
86 | + private PersonService personService; | |
87 | + //处理儿童person信息 | |
88 | + private PersonModel handBabyPerson(BabyModel baby){ | |
89 | + //跟距母親的證件號查詢兒童person信息 | |
90 | + PersonModelQuery personModelQuery = new PersonModelQuery(); | |
91 | + personModelQuery.setYn(YnEnums.YES.getId()); | |
92 | + personModelQuery.setCardNo(baby.getMcertNo()); | |
93 | + personModelQuery.setType(2); | |
94 | + List<PersonModel> babyP= personService.queryPersons(personModelQuery); | |
95 | + if(CollectionUtils.isNotEmpty(babyP)){ | |
96 | + return babyP.get(0); | |
97 | + } | |
98 | + PersonModel babyPerson = new PersonModel(); | |
99 | + babyPerson.setName(baby.getName()); | |
100 | + babyPerson.setBirth(baby.getBirth()); | |
101 | + babyPerson.setPhone(baby.getName()); | |
102 | + babyPerson.setCardNo(baby.getMcertNo()); | |
103 | + babyPerson.setType(2); | |
104 | + babyPerson.setYn(YnEnums.YES.getId()); | |
105 | + babyPerson.setModified(new Date()); | |
106 | + return personService.addPerson(babyPerson); | |
107 | + } | |
108 | + /** | |
109 | + * 增加听力筛查建档 | |
110 | + * | |
111 | + * @param babyEarAddRequest 增加听筛请求 | |
112 | + * | |
113 | + * @return 操作是否成功 | |
114 | + */ | |
115 | + public BaseResponse addOrUpdateBabyEar(BabyEarAddRequest babyEarAddRequest,Integer userId){ | |
116 | + //获取儿童信息 | |
117 | + IBasicRequestConvert<BabyModel> convert= babyEarAddRequest.getBase(); | |
118 | + //儿童基本信息 | |
119 | + BabyModel baby = convert.convertToDataModel(); | |
120 | + //儿童出生信息 | |
121 | + BabyPatientExtendEarBirth babyPatientExtendEarBirth = babyEarAddRequest.getBabyBirth(); | |
122 | + //儿童家庭信息 | |
123 | + BabyPatientExtendEarFamily babyPatientExtendEarFamily = babyEarAddRequest.getPatientExtendEarFamily(); | |
124 | + //母亲信息 | |
125 | + BabyPatientExtendEarMother babyPatientExtendEarMother= babyEarAddRequest.getPatientExtendEarMother(); | |
126 | + String hId= autoMatchFacade.getHospitalId(userId); | |
44 | 127 | |
128 | + if(null!=baby){ | |
129 | + //处理儿童person信息 | |
130 | + String pid = handBabyPerson(baby).getId(); | |
131 | + String babyPatientId = baby.getId(); | |
132 | + if(StringUtils.isEmpty(baby.getId())){ | |
133 | + baby.setPid(pid); | |
134 | + babyPatientId=babyService.addOneBaby(baby).getId(); | |
135 | + } | |
45 | 136 | |
46 | - public BaseResponse addOneBabyEar(){ | |
47 | - return null; | |
137 | + BabyPatientExtendEar babyPatientExtendEar =new BabyPatientExtendEar(); | |
138 | + babyPatientExtendEar.setCreateDate(new Date()); | |
139 | + babyPatientExtendEar.setCreateHospitalId(hId); | |
140 | + babyPatientExtendEar.setCreateUserId(userId + ""); | |
141 | + babyPatientExtendEar.setPersonId(pid); | |
142 | + babyPatientExtendEar.setLastUpdateDate(new Date()); | |
143 | + babyPatientExtendEar.setLastUpdateHospitalId(hId); | |
144 | + babyPatientExtendEar.setStatus(1); | |
145 | + | |
146 | + babyPatientExtendEarService.addBabyPatientExtendEar(babyPatientExtendEar); | |
147 | + | |
148 | + if(StringUtils.isEmpty(babyPatientExtendEarBirth.getBabyPatientId())){ | |
149 | + babyPatientExtendEarBirth.setBabyPatientId(babyPatientId); | |
150 | + } | |
151 | + if(null!=babyPatientExtendEarBirth) | |
152 | + babyPatientExtendEarBirth.setBabyPatientId(babyPatientId); | |
153 | + if(null!=babyPatientExtendEarFamily){ | |
154 | + babyPatientExtendEarFamily.setBabyPatientId(babyPatientId); | |
155 | + } | |
156 | + if(null!=babyPatientExtendEarMother) { | |
157 | + babyPatientExtendEarMother.setBabyPatientId(babyPatientId); | |
158 | + } | |
159 | + //判断是否是新增 | |
160 | + if(StringUtils.isEmpty(((AbstracUuidEntity)babyPatientExtendEarBirth).getId())){ | |
161 | + babyPatientExtendEarBirthService.addBabyPatientExtendEarBirth(babyPatientExtendEarBirth); | |
162 | + }else{ | |
163 | + babyPatientExtendEarBirthService.updateBabyPatientExtendEarBirth(babyPatientExtendEarBirth); | |
164 | + } | |
165 | + //判断是否是新增 | |
166 | + if(StringUtils.isEmpty(((AbstracUuidEntity)babyPatientExtendEarFamily).getId())){ | |
167 | + babyPatientExtendEarFamilyService.addBabyPatientExtendEarFamily(babyPatientExtendEarFamily); | |
168 | + }else{ | |
169 | + babyPatientExtendEarFamilyService.updateBabyPatientExtendEarFamily(babyPatientExtendEarFamily); | |
170 | + } | |
171 | + //判断是否是新增 | |
172 | + if(StringUtils.isEmpty(((AbstracUuidEntity)babyPatientExtendEarMother).getId())){ | |
173 | + babyPatientExtendEarMotherService.addBabyPatientExtendEarMother(babyPatientExtendEarMother); | |
174 | + }else{ | |
175 | + babyPatientExtendEarMotherService.updateBabyPatientExtendEarMother(babyPatientExtendEarMother); | |
176 | + } | |
177 | + } | |
178 | + return RespBuilder.buildSuccess(); | |
179 | + } | |
180 | + | |
181 | + /** | |
182 | + * 查看儿童听筛建档 | |
183 | + * @param babyId | |
184 | + */ | |
185 | + public void findBabyEarById(String babyId){ | |
186 | + BabyModel babyModel = babyService.getOneBabyById(babyId); | |
187 | + if(null!=babyModel){ | |
188 | + | |
189 | + } | |
190 | + } | |
191 | + | |
192 | + | |
193 | + | |
194 | + | |
195 | + /** | |
196 | + * 删除儿童听筛记录 | |
197 | + * | |
198 | + * @param babyEarId 儿童听筛id | |
199 | + * @return | |
200 | + */ | |
201 | + public BaseResponse deleteBabyEar(String babyEarId){ | |
202 | + BabyPatientExtendEarQuery babyPatientExtendEarQuery=new BabyPatientExtendEarQuery(); | |
203 | + babyPatientExtendEarQuery.setId(babyEarId); | |
204 | + babyPatientExtendEarQuery.setStatus(YnEnums.YES.getId()); | |
205 | + List<BabyPatientExtendEar> allPatientEar= babyPatientExtendEarService.queryBabyPatientExtendEar(babyPatientExtendEarQuery); | |
206 | + if(CollectionUtils.isNotEmpty(allPatientEar)){ | |
207 | + BabyPatientExtendEar babyPatientExtendEar = new BabyPatientExtendEar(); | |
208 | + babyPatientExtendEar.setStatus(YnEnums.NO.getId()); | |
209 | + babyPatientExtendEar.setId(babyEarId); | |
210 | + babyPatientExtendEarService.updateBabyPatientExtendEar(babyPatientExtendEar); | |
211 | + return RespBuilder.buildSuccess(); | |
212 | + } | |
213 | + return new BaseResponse().setErrormsg("未找到记录").setErrorcode(ErrorCodeConstants.SUCCESS); | |
214 | + } | |
215 | + | |
216 | + /** | |
217 | + * 查看一条听力筛查 | |
218 | + * @param babyEarSrcId 听力筛查id | |
219 | + * | |
220 | + * @return | |
221 | + */ | |
222 | + public BaseObjectResponse findOneBabyEarSrc(String babyEarSrcId){ | |
223 | + BabyPatientExtendEarScreen babyPatientExtendEarScreen= babyPatientExtendEarScreenService.getBabyPatientExtendEarScreen(babyEarSrcId); | |
224 | + BaseObjectResponse baseObjectResponse=new BaseObjectResponse(); | |
225 | + if(null!=babyPatientExtendEarScreen){ | |
226 | + baseObjectResponse.setData(buildBabyEarResult(babyPatientExtendEarScreen)); | |
227 | + baseObjectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); | |
228 | + baseObjectResponse.setErrormsg("成功"); | |
229 | + }else { | |
230 | + baseObjectResponse.setErrorcode(ErrorCodeConstants.BUSINESS_ERROR); | |
231 | + baseObjectResponse.setErrormsg("无效记录"); | |
232 | + } | |
233 | + return baseObjectResponse; | |
234 | + } | |
235 | + | |
236 | + public Map buildBabyEarResult(BabyPatientExtendEarScreen babyPatientExtendEarScreen){ | |
237 | + Map<String,String> data=new HashMap<>(); | |
238 | + data.put("id", babyPatientExtendEarScreen.getId()); | |
239 | + data.put("babyId", babyPatientExtendEarScreen.getBabyId()); | |
240 | + data.put("screenType", babyPatientExtendEarScreen.getScreenType()==1?"初筛":"复筛");//1= 2= | |
241 | + data.put("checkHospitalId",babyPatientExtendEarScreen.getCheckHospitalId()); | |
242 | + data.put("checkHospital",organizationService.getOrganization(Integer.valueOf(babyPatientExtendEarScreen.getCheckHospitalId())).getName()); | |
243 | + data.put("screenDate",DateUtil.getYmd(babyPatientExtendEarScreen.getScreenDate())); | |
244 | + data.put("highRiskCause", HighRiskEnum.getTitle(babyPatientExtendEarScreen.getHighRiskCause())); | |
245 | + data.put("oaeLeft", BabyEarResultEnums.getTitle(babyPatientExtendEarScreen.getOaeLeft())); | |
246 | + data.put("oaeRight", BabyEarResultEnums.getTitle(babyPatientExtendEarScreen.getOaeRight())); | |
247 | + data.put("aabrLeft", BabyEarResultEnums.getTitle(babyPatientExtendEarScreen.getAabrLeft())); | |
248 | + data.put("aabrRight", BabyEarResultEnums.getTitle(babyPatientExtendEarScreen.getAabrRight())); | |
249 | + data.put("gjb2Del35", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb2Del35())); | |
250 | + data.put("gjb2Del176", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb2Del176())); | |
251 | + data.put("gjb2Del235", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb2Del235())); | |
252 | + | |
253 | + data.put("gjb2Del299", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb2Del299())); | |
254 | + data.put("gjb3Slc26a4538", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb3Slc26a4538())); | |
255 | + data.put("gjb3Slc26a42168", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb3Slc26a42168())); | |
256 | + | |
257 | + data.put("gjb3Slc26a4Ivs7", DeafEnums.getTitle(babyPatientExtendEarScreen.getGjb3Slc26a4Ivs7())); | |
258 | + data.put("processOptionType", babyPatientExtendEarScreen.getProcessOptionType()==1?"复筛":"诊断");//1=复筛 2=诊断 | |
259 | + data.put("processOptionDesc", babyPatientExtendEarScreen.getProcessOptionDesc()); | |
260 | + data.put("guidOpinion",babyPatientExtendEarScreen.getGuidOpinion()); | |
261 | + data.put("checkDoctorId",babyPatientExtendEarScreen.getCheckDoctorId()); | |
262 | + data.put("checkDoctor",usersService.getUsers(Integer.valueOf(babyPatientExtendEarScreen.getCheckDoctorId())).getName()); | |
263 | + data.put("referralDate",DateUtil.getYmd(babyPatientExtendEarScreen.getReferralDate())); | |
264 | + return data; | |
265 | + } | |
266 | + | |
267 | + | |
268 | + | |
269 | + | |
270 | + | |
271 | + | |
272 | + /** | |
273 | + * 刪除一個產曬 | |
274 | + * @return | |
275 | + */ | |
276 | + public BaseResponse delOneBabyEarSrc(String id,Integer userId){ | |
277 | + if(StringUtils.isEmpty(id)){ | |
278 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("id不能为空"); | |
279 | + } | |
280 | + BabyPatientExtendEarScreen babyPatientExtendEarScreen =new BabyPatientExtendEarScreen(); | |
281 | + babyPatientExtendEarScreen.setId(id); | |
282 | + babyPatientExtendEarScreen.setStatus(1); | |
283 | + babyPatientExtendEarScreen.setLastUpdateHospitalId(autoMatchFacade.getHospitalId(userId)); | |
284 | + babyPatientExtendEarScreen.setLastUpdateUserId(userId + ""); | |
285 | + babyPatientExtendEarScreen.setLastUpdateDate(new Date()); | |
286 | + babyPatientExtendEarScreenService.updateBabyPatientExtendEarScreen(babyPatientExtendEarScreen); | |
287 | + return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
288 | + } | |
289 | + | |
290 | + | |
291 | + | |
292 | + /** | |
293 | + * 增加产晒 | |
294 | + * | |
295 | + * @return | |
296 | + */ | |
297 | + public BaseResponse addOneBabyEarSrc(BabyScreenAddRequest babyScreenAddRequest,Integer userId){ | |
298 | + BabyPatientExtendEarScreen babyPatientExtendEarScreen =babyScreenAddRequest.convertToDataModel(); | |
299 | + if(null!=babyPatientExtendEarScreen){ | |
300 | + String hId= autoMatchFacade.getHospitalId(userId); | |
301 | + if(StringUtils.isEmpty(babyPatientExtendEarScreen.getId())){ | |
302 | + babyPatientExtendEarScreen.setCreateDate(new Date()); | |
303 | + babyPatientExtendEarScreen.setCreateUserId(userId + ""); | |
304 | + babyPatientExtendEarScreen.setCreateHospitalId(hId); | |
305 | + babyPatientExtendEarScreen.setLastUpdateDate(new Date()); | |
306 | + babyPatientExtendEarScreen.setLastUpdateUserId(userId+""); | |
307 | + babyPatientExtendEarScreen.setLastUpdateHospitalId(hId); | |
308 | + babyPatientExtendEarScreenService.addBabyPatientExtendEarScreen(babyPatientExtendEarScreen); | |
309 | + }else{ | |
310 | + babyPatientExtendEarScreen.setLastUpdateDate(new Date()); | |
311 | + babyPatientExtendEarScreen.setLastUpdateUserId(userId+""); | |
312 | + babyPatientExtendEarScreen.setLastUpdateHospitalId(hId); | |
313 | + babyPatientExtendEarScreenService.updateBabyPatientExtendEarScreen(babyPatientExtendEarScreen); | |
314 | + } | |
315 | + } | |
316 | + return new BaseResponse().setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS); | |
48 | 317 | } |
49 | 318 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyEarAddRequest.java
View file @
a3fa146
1 | 1 | package com.lyms.platform.operate.web.request; |
2 | 2 | |
3 | +import com.lyms.platform.common.base.IBasicRequestConvert; | |
4 | +import com.lyms.platform.common.result.BaseModel; | |
5 | +import com.lyms.platform.common.utils.DateUtil; | |
6 | +import com.lyms.platform.common.utils.JsonUtil; | |
7 | +import com.lyms.platform.permission.model.BabyPatientExtendEarBirth; | |
8 | +import com.lyms.platform.permission.model.BabyPatientExtendEarFamily; | |
9 | +import com.lyms.platform.permission.model.BabyPatientExtendEarMother; | |
10 | +import com.lyms.platform.pojo.AntExChuModel; | |
11 | +import com.lyms.platform.pojo.BabyModel; | |
3 | 12 | import org.apache.commons.lang.builder.ToStringBuilder; |
13 | +import org.codehaus.jackson.annotate.JsonIgnore; | |
4 | 14 | import org.slf4j.Logger; |
5 | 15 | import org.slf4j.LoggerFactory; |
6 | 16 | |
17 | +import java.util.Date; | |
7 | 18 | |
19 | + | |
8 | 20 | /** |
9 | 21 | * 增加儿童听力筛查请求 |
10 | 22 | * |
11 | 23 | |
12 | 24 | |
13 | 25 | |
14 | 26 | |
15 | 27 | |
16 | 28 | |
17 | 29 | |
18 | 30 | |
... | ... | @@ -19,24 +31,357 @@ |
19 | 31 | * @version BME V100R001 2017-05-17 16:02 |
20 | 32 | * @since BME V100R001C40B104 |
21 | 33 | */ |
22 | -public class BabyEarAddRequest | |
34 | +public class BabyEarAddRequest extends BaseModel | |
23 | 35 | { |
36 | + //儿童档案信息 | |
37 | + private BabyEarBase base; | |
38 | + //儿童出生信息 | |
39 | + private BabyPatientExtendEarBirth babyBirth; | |
24 | 40 | |
41 | + private BabyPatientExtendEarMother patientExtendEarMother; | |
25 | 42 | |
43 | + private BabyPatientExtendEarFamily patientExtendEarFamily; | |
26 | 44 | |
45 | + /** | |
46 | + * 邮政编码和高危因素没有存储在mongodb | |
47 | + * | |
48 | + * 儿童基本信息请求对象 | |
49 | + */ | |
50 | + private static class BabyEarBase implements IBasicRequestConvert<BabyModel> { | |
51 | + private String id; | |
52 | + //儿童建档记录id | |
53 | + private String babyId; | |
54 | + private String pid; | |
55 | + //儿童名字 | |
56 | + private String name; | |
57 | + //儿童身份证号 | |
58 | + private String cardNo; | |
59 | + //儿童生日 | |
60 | + private String birth; | |
61 | + //儿童家庭地址 | |
62 | + private String provinceId; | |
63 | + private String cityId; | |
64 | + private String areaId; | |
65 | + private String streetId; | |
66 | + private String address; | |
27 | 67 | |
28 | - @Override | |
29 | - public String toString() | |
30 | - { | |
31 | - return ToStringBuilder.reflectionToString(this); | |
32 | - } | |
68 | + // 母亲信息 | |
69 | + private String mname; | |
33 | 70 | |
71 | + private String mphone; | |
34 | 72 | |
35 | - class BabyEarBase{ | |
36 | - private String id; | |
37 | - private String pid; | |
73 | + private Date mbirth; | |
74 | + | |
75 | + //职业类别 | |
76 | + private String mproTypeId; | |
77 | + | |
78 | + //证件号 | |
79 | + private String mcertNo; | |
80 | + //证件类型ID | |
81 | + private String mcertTypeId; | |
82 | + | |
83 | + //文化程度ID | |
84 | + private String mLevelId; | |
85 | + | |
86 | + @Override | |
87 | + public BabyModel convertToDataModel() { | |
88 | + BabyModel babyModel= new BabyModel(); | |
89 | + babyModel.setMname(mname); | |
90 | + babyModel.setMphone(mphone); | |
91 | + babyModel.setMbirth(mbirth); | |
92 | + babyModel.setMproTypeId(mproTypeId); | |
93 | + babyModel.setMcertNo(mcertNo); | |
94 | + babyModel.setMcertTypeId(mcertTypeId); | |
95 | + babyModel.setmLevelId(mLevelId); | |
96 | + babyModel.setId(babyId); | |
97 | + babyModel.setBirth(DateUtil.parseYMD(birth)); | |
98 | + babyModel.setCardNo(cardNo); | |
99 | + babyModel.setName(name); | |
100 | + babyModel.setAddress(address); | |
101 | + babyModel.setAreaId(areaId); | |
102 | + babyModel.setProvinceId(provinceId); | |
103 | + babyModel.setCityId(cityId); | |
104 | + babyModel.setStreetId(streetId); | |
105 | + babyModel.setSex(sex); | |
106 | + babyModel.setfLevelId(fLevelId); | |
107 | + babyModel.setFname(fname); | |
108 | + babyModel.setFphone(fphone); | |
109 | + babyModel.setFbirth(DateUtil.parseYMD(fbirth)); | |
110 | + babyModel.setFproTypeId(fproTypeId); | |
111 | + return babyModel; | |
112 | + } | |
113 | + //邮编号码 | |
114 | + private String postCode; | |
115 | + //性别 | |
116 | + private Integer sex; | |
117 | + | |
118 | + // 父亲信息 | |
119 | + private String fname; | |
120 | + | |
121 | + private String fphone; | |
122 | + | |
123 | + private String fbirth; | |
124 | + | |
125 | + //文化程度ID | |
126 | + private String fLevelId; | |
127 | + | |
128 | + //职业类别 | |
129 | + private String fproTypeId; | |
130 | + | |
38 | 131 | //高危因素 |
39 | 132 | private String highRiskCause; |
133 | + | |
134 | + public String getId() { | |
135 | + return id; | |
136 | + } | |
137 | + | |
138 | + public void setId(String id) { | |
139 | + this.id = id; | |
140 | + } | |
141 | + | |
142 | + public String getBabyId() { | |
143 | + return babyId; | |
144 | + } | |
145 | + | |
146 | + public void setBabyId(String babyId) { | |
147 | + this.babyId = babyId; | |
148 | + } | |
149 | + | |
150 | + public String getPid() { | |
151 | + return pid; | |
152 | + } | |
153 | + | |
154 | + public void setPid(String pid) { | |
155 | + this.pid = pid; | |
156 | + } | |
157 | + | |
158 | + public String getName() { | |
159 | + return name; | |
160 | + } | |
161 | + | |
162 | + public void setName(String name) { | |
163 | + this.name = name; | |
164 | + } | |
165 | + | |
166 | + public String getCardNo() { | |
167 | + return cardNo; | |
168 | + } | |
169 | + | |
170 | + public void setCardNo(String cardNo) { | |
171 | + this.cardNo = cardNo; | |
172 | + } | |
173 | + | |
174 | + public String getBirth() { | |
175 | + return birth; | |
176 | + } | |
177 | + | |
178 | + public void setBirth(String birth) { | |
179 | + this.birth = birth; | |
180 | + } | |
181 | + | |
182 | + public String getProvinceId() { | |
183 | + return provinceId; | |
184 | + } | |
185 | + | |
186 | + public void setProvinceId(String provinceId) { | |
187 | + this.provinceId = provinceId; | |
188 | + } | |
189 | + | |
190 | + public String getCityId() { | |
191 | + return cityId; | |
192 | + } | |
193 | + | |
194 | + public void setCityId(String cityId) { | |
195 | + this.cityId = cityId; | |
196 | + } | |
197 | + | |
198 | + public String getAreaId() { | |
199 | + return areaId; | |
200 | + } | |
201 | + | |
202 | + public void setAreaId(String areaId) { | |
203 | + this.areaId = areaId; | |
204 | + } | |
205 | + | |
206 | + public String getStreetId() { | |
207 | + return streetId; | |
208 | + } | |
209 | + | |
210 | + public void setStreetId(String streetId) { | |
211 | + this.streetId = streetId; | |
212 | + } | |
213 | + | |
214 | + public String getAddress() { | |
215 | + return address; | |
216 | + } | |
217 | + | |
218 | + public void setAddress(String address) { | |
219 | + this.address = address; | |
220 | + } | |
221 | + | |
222 | + public String getMname() { | |
223 | + return mname; | |
224 | + } | |
225 | + | |
226 | + public void setMname(String mname) { | |
227 | + this.mname = mname; | |
228 | + } | |
229 | + | |
230 | + public String getMphone() { | |
231 | + return mphone; | |
232 | + } | |
233 | + | |
234 | + public void setMphone(String mphone) { | |
235 | + this.mphone = mphone; | |
236 | + } | |
237 | + | |
238 | + public Date getMbirth() { | |
239 | + return mbirth; | |
240 | + } | |
241 | + | |
242 | + public void setMbirth(Date mbirth) { | |
243 | + this.mbirth = mbirth; | |
244 | + } | |
245 | + | |
246 | + public String getMproTypeId() { | |
247 | + return mproTypeId; | |
248 | + } | |
249 | + | |
250 | + public void setMproTypeId(String mproTypeId) { | |
251 | + this.mproTypeId = mproTypeId; | |
252 | + } | |
253 | + | |
254 | + public String getMcertNo() { | |
255 | + return mcertNo; | |
256 | + } | |
257 | + | |
258 | + public void setMcertNo(String mcertNo) { | |
259 | + this.mcertNo = mcertNo; | |
260 | + } | |
261 | + | |
262 | + public String getMcertTypeId() { | |
263 | + return mcertTypeId; | |
264 | + } | |
265 | + | |
266 | + public void setMcertTypeId(String mcertTypeId) { | |
267 | + this.mcertTypeId = mcertTypeId; | |
268 | + } | |
269 | + | |
270 | + public String getmLevelId() { | |
271 | + return mLevelId; | |
272 | + } | |
273 | + | |
274 | + public void setmLevelId(String mLevelId) { | |
275 | + this.mLevelId = mLevelId; | |
276 | + } | |
277 | + | |
278 | + public String getPostCode() { | |
279 | + return postCode; | |
280 | + } | |
281 | + | |
282 | + public void setPostCode(String postCode) { | |
283 | + this.postCode = postCode; | |
284 | + } | |
285 | + | |
286 | + public Integer getSex() { | |
287 | + return sex; | |
288 | + } | |
289 | + | |
290 | + public void setSex(Integer sex) { | |
291 | + this.sex = sex; | |
292 | + } | |
293 | + | |
294 | + public String getFname() { | |
295 | + return fname; | |
296 | + } | |
297 | + | |
298 | + public void setFname(String fname) { | |
299 | + this.fname = fname; | |
300 | + } | |
301 | + | |
302 | + public String getFphone() { | |
303 | + return fphone; | |
304 | + } | |
305 | + | |
306 | + public void setFphone(String fphone) { | |
307 | + this.fphone = fphone; | |
308 | + } | |
309 | + | |
310 | + public String getFbirth() { | |
311 | + return fbirth; | |
312 | + } | |
313 | + | |
314 | + public void setFbirth(String fbirth) { | |
315 | + this.fbirth = fbirth; | |
316 | + } | |
317 | + | |
318 | + public String getfLevelId() { | |
319 | + return fLevelId; | |
320 | + } | |
321 | + | |
322 | + public void setfLevelId(String fLevelId) { | |
323 | + this.fLevelId = fLevelId; | |
324 | + } | |
325 | + | |
326 | + public String getFproTypeId() { | |
327 | + return fproTypeId; | |
328 | + } | |
329 | + | |
330 | + public void setFproTypeId(String fproTypeId) { | |
331 | + this.fproTypeId = fproTypeId; | |
332 | + } | |
333 | + | |
334 | + public String getHighRiskCause() { | |
335 | + return highRiskCause; | |
336 | + } | |
337 | + | |
338 | + public void setHighRiskCause(String highRiskCause) { | |
339 | + this.highRiskCause = highRiskCause; | |
340 | + } | |
341 | +//status 状态默认为 | |
342 | +// private String status; | |
343 | + } | |
344 | + | |
345 | + public BabyEarBase getBase() { | |
346 | + return base; | |
347 | + } | |
348 | + | |
349 | + public void setBase(BabyEarBase base) { | |
350 | + this.base = base; | |
351 | + } | |
352 | + | |
353 | + public BabyPatientExtendEarBirth getBabyBirth() { | |
354 | + return babyBirth; | |
355 | + } | |
356 | + | |
357 | + public void setBabyBirth(BabyPatientExtendEarBirth babyBirth) { | |
358 | + this.babyBirth = babyBirth; | |
359 | + } | |
360 | + | |
361 | + public BabyPatientExtendEarMother getPatientExtendEarMother() { | |
362 | + return patientExtendEarMother; | |
363 | + } | |
364 | + | |
365 | + public void setPatientExtendEarMother(BabyPatientExtendEarMother patientExtendEarMother) { | |
366 | + this.patientExtendEarMother = patientExtendEarMother; | |
367 | + } | |
368 | + | |
369 | + public BabyPatientExtendEarFamily getPatientExtendEarFamily() { | |
370 | + return patientExtendEarFamily; | |
371 | + } | |
372 | + | |
373 | + public void setPatientExtendEarFamily(BabyPatientExtendEarFamily patientExtendEarFamily) { | |
374 | + this.patientExtendEarFamily = patientExtendEarFamily; | |
375 | + } | |
376 | + public static void main(String[] args){ | |
377 | + BabyEarAddRequest request= new BabyEarAddRequest(); | |
378 | + request.setBase(new BabyEarBase()); | |
379 | + request.setBabyBirth(new BabyPatientExtendEarBirth()); | |
380 | + request.setPatientExtendEarFamily(new BabyPatientExtendEarFamily()); | |
381 | + request.setPatientExtendEarMother(new BabyPatientExtendEarMother()); | |
382 | + System.out.println(JsonUtil.obj2Str(new BabyEarBase())); | |
383 | + System.out.println(JsonUtil.obj2Str(request)); | |
384 | + System.out.println(JsonUtil.obj2Str(new BabyPatientExtendEarBirth())); | |
40 | 385 | } |
41 | 386 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/BabyScreenAddRequest.java
View file @
a3fa146
1 | +package com.lyms.platform.operate.web.request; | |
2 | + | |
3 | +import com.lyms.platform.common.base.IBasicRequestConvert; | |
4 | +import com.lyms.platform.common.core.annotation.form.Form; | |
5 | +import com.lyms.platform.common.utils.DateUtil; | |
6 | +import com.lyms.platform.permission.model.BabyPatientExtendEarScreen; | |
7 | +import org.hibernate.validator.constraints.NotEmpty; | |
8 | + | |
9 | +import javax.validation.constraints.Pattern; | |
10 | + | |
11 | +/** | |
12 | + * | |
13 | + * 增加产晒 | |
14 | + * | |
15 | + * Created by jiangjiazhi on 2017/5/23. | |
16 | + */ | |
17 | +@Form | |
18 | +public class BabyScreenAddRequest implements IBasicRequestConvert<BabyPatientExtendEarScreen> { | |
19 | + | |
20 | + private String id; | |
21 | + @NotEmpty(message = "儿童id不能为空") | |
22 | + private String babyId; | |
23 | + | |
24 | + /** | |
25 | + * 筛查类型 1=初筛 2=复筛 | |
26 | + */ | |
27 | + @Pattern(regexp = "^[2|1]$",message = "screenType 非法") | |
28 | + private Integer screenType; | |
29 | + | |
30 | + /** | |
31 | + * 检查医院的id | |
32 | + */ | |
33 | + @NotEmpty(message = "检查医院id不能为空") | |
34 | + private String checkHospitalId; | |
35 | + | |
36 | + /** | |
37 | + * 筛查时间 | |
38 | + */ | |
39 | + @NotEmpty(message = "筛查时间不能为空") | |
40 | + private String screenDate; | |
41 | + | |
42 | + /** | |
43 | + * 高危因素 1=早产 2=晚产 | |
44 | + */ | |
45 | + private Integer highRiskCause; | |
46 | + | |
47 | + | |
48 | + /** | |
49 | + * 左耳检查结果 1=通过 -1=未通过 | |
50 | + */ | |
51 | + private Integer oaeLeft; | |
52 | + /** | |
53 | + * 右耳检查结果 1=通过 -1=未通过 | |
54 | + */ | |
55 | + private Integer oaeRight; | |
56 | + /** | |
57 | + * 左耳检查结果 1=通过 -1=未通过 | |
58 | + */ | |
59 | + private Integer aabrLeft; | |
60 | + /** | |
61 | + * 右耳检查结果 1=通过 -1=未通过 | |
62 | + */ | |
63 | + private Integer aabrRight; | |
64 | + | |
65 | + | |
66 | + /** | |
67 | + * 听力基因GJB2-35 del G 的值 1=野生型 | |
68 | + */ | |
69 | + private Integer gjb2Del35; | |
70 | + | |
71 | + private Integer gjb2Del176; | |
72 | + | |
73 | + private Integer gjb2Del235; | |
74 | + | |
75 | + private Integer gjb2Del299; | |
76 | + | |
77 | + private Integer gjb3Slc26a4538; | |
78 | + | |
79 | + private Integer gjb3Slc26a42168; | |
80 | + | |
81 | + private Integer gjb3Slc26a4Ivs7; | |
82 | + | |
83 | + /** | |
84 | + * 处理意见 1=复筛 2=诊断 | |
85 | + */ | |
86 | + private Integer processOptionType; | |
87 | + | |
88 | + /** | |
89 | + * 处理意见 描述信息 | |
90 | + */ | |
91 | + private String processOptionDesc; | |
92 | + @Override | |
93 | + public BabyPatientExtendEarScreen convertToDataModel() { | |
94 | + BabyPatientExtendEarScreen babyPatientExtendEarScreen = new BabyPatientExtendEarScreen(); | |
95 | + babyPatientExtendEarScreen.setGjb3Slc26a4Ivs7(gjb3Slc26a4Ivs7); | |
96 | + babyPatientExtendEarScreen.setProcessOptionType(processOptionType); | |
97 | + babyPatientExtendEarScreen.setProcessOptionDesc(processOptionDesc); | |
98 | + babyPatientExtendEarScreen.setId(id); | |
99 | + babyPatientExtendEarScreen.setBabyId(babyId); | |
100 | + babyPatientExtendEarScreen.setScreenType(screenType); | |
101 | + babyPatientExtendEarScreen.setCreateHospitalId(checkHospitalId); | |
102 | + if(null!=screenDate) { | |
103 | + babyPatientExtendEarScreen.setScreenDate(DateUtil.parseYMD(screenDate)); | |
104 | + } | |
105 | + babyPatientExtendEarScreen.setHighRiskCause(highRiskCause); | |
106 | + babyPatientExtendEarScreen.setOaeLeft(oaeLeft); | |
107 | + babyPatientExtendEarScreen.setOaeRight(oaeRight); | |
108 | + babyPatientExtendEarScreen.setAabrLeft(aabrLeft); | |
109 | + babyPatientExtendEarScreen.setAabrRight(aabrRight); | |
110 | + babyPatientExtendEarScreen.setGjb2Del176(gjb2Del176); | |
111 | + babyPatientExtendEarScreen.setGjb2Del35(gjb2Del35); | |
112 | + babyPatientExtendEarScreen.setGjb2Del235(gjb2Del235); | |
113 | + babyPatientExtendEarScreen.setGjb2Del299(gjb2Del299); | |
114 | + babyPatientExtendEarScreen.setGjb3Slc26a4538(gjb3Slc26a4538); | |
115 | + babyPatientExtendEarScreen.setGjb3Slc26a42168(gjb3Slc26a42168); | |
116 | + babyPatientExtendEarScreen.setGuidOpinion(guidOpinion); | |
117 | + babyPatientExtendEarScreen.setCheckDoctorId(checkDoctorId); | |
118 | + if(null!=referralDate){ | |
119 | + babyPatientExtendEarScreen.setReferralDate(DateUtil.parseYMD(referralDate)); | |
120 | + } | |
121 | + return babyPatientExtendEarScreen; | |
122 | + } | |
123 | + /** | |
124 | + * 指导意见 | |
125 | + */ | |
126 | + private String guidOpinion; | |
127 | + | |
128 | + /** | |
129 | + * 检查医生 | |
130 | + */ | |
131 | + private String checkDoctorId; | |
132 | + | |
133 | + /** | |
134 | + * 诊断时间 | |
135 | + */ | |
136 | + private String referralDate; | |
137 | + | |
138 | + public String getId() { | |
139 | + return id; | |
140 | + } | |
141 | + | |
142 | + public void setId(String id) { | |
143 | + this.id = id; | |
144 | + } | |
145 | + | |
146 | + public String getBabyId() { | |
147 | + return babyId; | |
148 | + } | |
149 | + | |
150 | + public void setBabyId(String babyId) { | |
151 | + this.babyId = babyId; | |
152 | + } | |
153 | + | |
154 | + public Integer getScreenType() { | |
155 | + return screenType; | |
156 | + } | |
157 | + | |
158 | + public void setScreenType(Integer screenType) { | |
159 | + this.screenType = screenType; | |
160 | + } | |
161 | + | |
162 | + public String getCheckHospitalId() { | |
163 | + return checkHospitalId; | |
164 | + } | |
165 | + | |
166 | + public void setCheckHospitalId(String checkHospitalId) { | |
167 | + this.checkHospitalId = checkHospitalId; | |
168 | + } | |
169 | + | |
170 | + public String getScreenDate() { | |
171 | + return screenDate; | |
172 | + } | |
173 | + | |
174 | + public void setScreenDate(String screenDate) { | |
175 | + this.screenDate = screenDate; | |
176 | + } | |
177 | + | |
178 | + public Integer getHighRiskCause() { | |
179 | + return highRiskCause; | |
180 | + } | |
181 | + | |
182 | + public void setHighRiskCause(Integer highRiskCause) { | |
183 | + this.highRiskCause = highRiskCause; | |
184 | + } | |
185 | + | |
186 | + public Integer getOaeLeft() { | |
187 | + return oaeLeft; | |
188 | + } | |
189 | + | |
190 | + public void setOaeLeft(Integer oaeLeft) { | |
191 | + this.oaeLeft = oaeLeft; | |
192 | + } | |
193 | + | |
194 | + public Integer getOaeRight() { | |
195 | + return oaeRight; | |
196 | + } | |
197 | + | |
198 | + public void setOaeRight(Integer oaeRight) { | |
199 | + this.oaeRight = oaeRight; | |
200 | + } | |
201 | + | |
202 | + public Integer getAabrLeft() { | |
203 | + return aabrLeft; | |
204 | + } | |
205 | + | |
206 | + public void setAabrLeft(Integer aabrLeft) { | |
207 | + this.aabrLeft = aabrLeft; | |
208 | + } | |
209 | + | |
210 | + public Integer getAabrRight() { | |
211 | + return aabrRight; | |
212 | + } | |
213 | + | |
214 | + public void setAabrRight(Integer aabrRight) { | |
215 | + this.aabrRight = aabrRight; | |
216 | + } | |
217 | + | |
218 | + public Integer getGjb2Del35() { | |
219 | + return gjb2Del35; | |
220 | + } | |
221 | + | |
222 | + public void setGjb2Del35(Integer gjb2Del35) { | |
223 | + this.gjb2Del35 = gjb2Del35; | |
224 | + } | |
225 | + | |
226 | + public Integer getGjb2Del176() { | |
227 | + return gjb2Del176; | |
228 | + } | |
229 | + | |
230 | + public void setGjb2Del176(Integer gjb2Del176) { | |
231 | + this.gjb2Del176 = gjb2Del176; | |
232 | + } | |
233 | + | |
234 | + public Integer getGjb2Del235() { | |
235 | + return gjb2Del235; | |
236 | + } | |
237 | + | |
238 | + public void setGjb2Del235(Integer gjb2Del235) { | |
239 | + this.gjb2Del235 = gjb2Del235; | |
240 | + } | |
241 | + | |
242 | + public Integer getGjb2Del299() { | |
243 | + return gjb2Del299; | |
244 | + } | |
245 | + | |
246 | + public void setGjb2Del299(Integer gjb2Del299) { | |
247 | + this.gjb2Del299 = gjb2Del299; | |
248 | + } | |
249 | + | |
250 | + public Integer getGjb3Slc26a4538() { | |
251 | + return gjb3Slc26a4538; | |
252 | + } | |
253 | + | |
254 | + public void setGjb3Slc26a4538(Integer gjb3Slc26a4538) { | |
255 | + this.gjb3Slc26a4538 = gjb3Slc26a4538; | |
256 | + } | |
257 | + | |
258 | + public Integer getGjb3Slc26a42168() { | |
259 | + return gjb3Slc26a42168; | |
260 | + } | |
261 | + | |
262 | + public void setGjb3Slc26a42168(Integer gjb3Slc26a42168) { | |
263 | + this.gjb3Slc26a42168 = gjb3Slc26a42168; | |
264 | + } | |
265 | + | |
266 | + public Integer getGjb3Slc26a4Ivs7() { | |
267 | + return gjb3Slc26a4Ivs7; | |
268 | + } | |
269 | + | |
270 | + public void setGjb3Slc26a4Ivs7(Integer gjb3Slc26a4Ivs7) { | |
271 | + this.gjb3Slc26a4Ivs7 = gjb3Slc26a4Ivs7; | |
272 | + } | |
273 | + | |
274 | + public Integer getProcessOptionType() { | |
275 | + return processOptionType; | |
276 | + } | |
277 | + | |
278 | + public void setProcessOptionType(Integer processOptionType) { | |
279 | + this.processOptionType = processOptionType; | |
280 | + } | |
281 | + | |
282 | + public String getProcessOptionDesc() { | |
283 | + return processOptionDesc; | |
284 | + } | |
285 | + | |
286 | + public void setProcessOptionDesc(String processOptionDesc) { | |
287 | + this.processOptionDesc = processOptionDesc; | |
288 | + } | |
289 | + | |
290 | + public String getGuidOpinion() { | |
291 | + return guidOpinion; | |
292 | + } | |
293 | + | |
294 | + public void setGuidOpinion(String guidOpinion) { | |
295 | + this.guidOpinion = guidOpinion; | |
296 | + } | |
297 | + | |
298 | + public String getCheckDoctorId() { | |
299 | + return checkDoctorId; | |
300 | + } | |
301 | + | |
302 | + public void setCheckDoctorId(String checkDoctorId) { | |
303 | + this.checkDoctorId = checkDoctorId; | |
304 | + } | |
305 | + | |
306 | + public String getReferralDate() { | |
307 | + return referralDate; | |
308 | + } | |
309 | + | |
310 | + public void setReferralDate(String referralDate) { | |
311 | + this.referralDate = referralDate; | |
312 | + } | |
313 | +} |