Commit 7a82d4f6171e59fe2fc01217a9bbb35a4c9408a8
1 parent
60e9471f05
Exists in
master
and in
1 other branch
羊穿
Showing 4 changed files with 546 additions and 33 deletions
- platform-dal/src/main/java/com/lyms/platform/query/AmniocentesisInfoQuery.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AmniocentesisController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AmniocentesisFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/AmnioRecordRequest.java
platform-dal/src/main/java/com/lyms/platform/query/AmniocentesisInfoQuery.java
View file @
7a82d4f
... | ... | @@ -59,6 +59,8 @@ |
59 | 59 | |
60 | 60 | //末次月经 |
61 | 61 | private Date lastMenses; |
62 | + private Date dueDateStart; | |
63 | + private Date dueDateEnd; | |
62 | 64 | |
63 | 65 | //体重 |
64 | 66 | private String weight; |
65 | 67 | |
... | ... | @@ -213,9 +215,21 @@ |
213 | 215 | if (StringUtils.isNotEmpty(streetId)) { |
214 | 216 | condition = condition.and("streetId", streetId, MongoOper.IS); |
215 | 217 | } |
216 | - | |
217 | 218 | Criteria c = null; |
218 | 219 | |
220 | + if (null != queryNo) { | |
221 | + MongoCondition c1 = MongoCondition.newInstance(); | |
222 | + MongoCondition con1 = MongoCondition.newInstance("phone", queryNo, MongoOper.IS); | |
223 | + MongoCondition con2 = MongoCondition.newInstance("name", "^" + queryNo, MongoOper.LIKE); | |
224 | + MongoCondition con3 = MongoCondition.newInstance("cardNo", queryNo, MongoOper.IS); | |
225 | + MongoCondition con5 = MongoCondition.newInstance("vcCardNo", queryNo, MongoOper.IS); | |
226 | + if (c != null) { | |
227 | + c = c.andOperator(c1.orCondition(new MongoCondition[]{con1, con2, con3, con5}).getCriteria()); | |
228 | + } else { | |
229 | + c = c1.orCondition(new MongoCondition[]{con1, con2, con3, con5}).getCriteria(); | |
230 | + } | |
231 | + } | |
232 | + | |
219 | 233 | if (null != orderDateStart && orderDateEnd != null) { |
220 | 234 | if (null != c) { |
221 | 235 | c = c.where("orderDate").gte(orderDateStart).lte(orderDateEnd); |
222 | 236 | |
223 | 237 | |
224 | 238 | |
... | ... | @@ -255,23 +269,36 @@ |
255 | 269 | } |
256 | 270 | } |
257 | 271 | |
258 | - if (null != queryNo) { | |
259 | - MongoCondition c1 = MongoCondition.newInstance(); | |
260 | - MongoCondition con1 = MongoCondition.newInstance("phone", queryNo, MongoOper.IS); | |
261 | - MongoCondition con2 = MongoCondition.newInstance("name", "^" + queryNo, MongoOper.LIKE); | |
262 | - MongoCondition con3 = MongoCondition.newInstance("cardNo", queryNo, MongoOper.IS); | |
263 | - MongoCondition con5 = MongoCondition.newInstance("vcCardNo", queryNo, MongoOper.IS); | |
264 | - if (c != null) { | |
265 | - c = c.andOperator(c1.orCondition(new MongoCondition[]{con1, con2, con3, con5}).getCriteria()); | |
272 | + if (null != dueDateStart && dueDateEnd != null) { | |
273 | + if (null != c) { | |
274 | + c = c.where("lastMenses").gte(dueDateStart).lte(dueDateEnd); | |
266 | 275 | } else { |
267 | - c = c1.orCondition(new MongoCondition[]{con1, con2, con3, con5}).getCriteria(); | |
276 | + c = Criteria.where("lastMenses").gte(dueDateStart).lte(dueDateEnd); | |
268 | 277 | } |
269 | 278 | } |
270 | 279 | |
280 | + | |
271 | 281 | if (null != c) { |
272 | 282 | condition = condition.andCondition(new MongoCondition(c)); |
273 | 283 | } |
274 | 284 | return condition.toMongoQuery(); |
285 | + } | |
286 | + | |
287 | + | |
288 | + public Date getDueDateStart() { | |
289 | + return dueDateStart; | |
290 | + } | |
291 | + | |
292 | + public void setDueDateStart(Date dueDateStart) { | |
293 | + this.dueDateStart = dueDateStart; | |
294 | + } | |
295 | + | |
296 | + public Date getDueDateEnd() { | |
297 | + return dueDateEnd; | |
298 | + } | |
299 | + | |
300 | + public void setDueDateEnd(Date dueDateEnd) { | |
301 | + this.dueDateEnd = dueDateEnd; | |
275 | 302 | } |
276 | 303 | |
277 | 304 | public Date getOperationDateStart() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AmniocentesisController.java
View file @
7a82d4f
... | ... | @@ -67,7 +67,21 @@ |
67 | 67 | } |
68 | 68 | |
69 | 69 | |
70 | + /** | |
71 | + * 导出列表 | |
72 | + * @param request | |
73 | + * @param httpServletResponse | |
74 | + * @param amniocentesisQueryRequest | |
75 | + */ | |
76 | + @RequestMapping(method = RequestMethod.GET, value = "/exportAmniocentesisList") | |
77 | + @TokenRequired | |
78 | + public void exportAmniocentesisList(HttpServletRequest request, HttpServletResponse httpServletResponse, | |
79 | + @RequestBody AmniocentesisQueryRequest amniocentesisQueryRequest) | |
80 | + { | |
81 | + amniocentesisFacade.exportAmniocentesisList(amniocentesisQueryRequest,getUserId(request), httpServletResponse); | |
82 | + } | |
70 | 83 | |
84 | + | |
71 | 85 | /** |
72 | 86 | * 查看页面接口 |
73 | 87 | * @param request |
... | ... | @@ -93,8 +107,8 @@ |
93 | 107 | */ |
94 | 108 | @TokenRequired |
95 | 109 | @ResponseBody |
96 | - @RequestMapping(value = "/saveOrUpdateAmniocentesisInfo", method = RequestMethod.POST) | |
97 | - public BaseResponse saveOrUpdateAmniocentesisInfo(HttpServletRequest request, | |
110 | + @RequestMapping(value = "/saveOrUpdateAmnioInfo", method = RequestMethod.POST) | |
111 | + public BaseResponse saveOrUpdateAmnioInfo(HttpServletRequest request, | |
98 | 112 | @RequestBody AmniocentesisInfoRequest amniocentesisInfoRequest) { |
99 | 113 | |
100 | 114 | return amniocentesisFacade.saveOrUpdateAmniocentesisInfo(amniocentesisInfoRequest, getUserId(request)); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AmniocentesisFacade.java
View file @
7a82d4f
... | ... | @@ -17,16 +17,19 @@ |
17 | 17 | import com.lyms.platform.operate.web.request.AmniocentesisQueryRequest; |
18 | 18 | import com.lyms.platform.operate.web.result.AmniocentesisInfo; |
19 | 19 | import com.lyms.platform.operate.web.result.AmniocentesisInfoView; |
20 | +import com.lyms.platform.operate.web.utils.ResponseUtil; | |
20 | 21 | import com.lyms.platform.pojo.AmniocentesisInfoModel; |
21 | 22 | import com.lyms.platform.pojo.AmniocentesisRecordModel; |
22 | 23 | import com.lyms.platform.pojo.AmniocentesisResultModel; |
23 | 24 | import com.lyms.platform.pojo.Patients; |
24 | 25 | import com.lyms.platform.query.AmniocentesisInfoQuery; |
26 | +import com.lyms.platform.query.AmniocentesisResultQuery; | |
25 | 27 | import com.lyms.platform.query.PatientsQuery; |
26 | 28 | import org.apache.commons.collections.CollectionUtils; |
27 | 29 | import org.springframework.beans.factory.annotation.Autowired; |
28 | 30 | import org.springframework.stereotype.Component; |
29 | 31 | |
32 | +import javax.servlet.http.HttpServletResponse; | |
30 | 33 | import java.util.*; |
31 | 34 | |
32 | 35 | /** |
... | ... | @@ -63,7 +66,7 @@ |
63 | 66 | amniocentesisInfoQuery.setCardNo(cardNo); |
64 | 67 | amniocentesisInfoQuery.setHospitalId(hospitalId); |
65 | 68 | data.put("viewData", null); |
66 | - data.put("viewData", null); | |
69 | + data.put("patientData", null); | |
67 | 70 | AmniocentesisInfoModel amniocentesisInfo = amniocentesisInfoService.queryOneAmniocentesis(amniocentesisInfoQuery); |
68 | 71 | if (amniocentesisInfo != null) |
69 | 72 | { |
... | ... | @@ -109,6 +112,9 @@ |
109 | 112 | data.put("areaId",pat.getAreaId()); |
110 | 113 | data.put("streetId",pat.getStreetRegisterId()); |
111 | 114 | data.put("lastMenses",DateUtil.getyyyy_MM_dd(pat.getLastMenses())); |
115 | + Date dueDate = DateUtil.addDay(DateUtil.addMonth(pat.getLastMenses(), 9), 7); | |
116 | + data.put("dueDate",DateUtil.getyyyy_MM_dd(dueDate)); | |
117 | + data.put("week",DateUtil.getWeekDesc(pat.getLastMenses(),new Date())); | |
112 | 118 | } |
113 | 119 | |
114 | 120 | return data; |
... | ... | @@ -129,6 +135,12 @@ |
129 | 135 | return new BaseObjectResponse().setData(view).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION); |
130 | 136 | } |
131 | 137 | |
138 | + /** | |
139 | + * 保存羊穿申请基本信息 | |
140 | + * @param amniocentesisInfoRequest | |
141 | + * @param userId | |
142 | + * @return | |
143 | + */ | |
132 | 144 | public BaseResponse saveOrUpdateAmniocentesisInfo(AmniocentesisInfoRequest amniocentesisInfoRequest, Integer userId) { |
133 | 145 | |
134 | 146 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
... | ... | @@ -141,6 +153,7 @@ |
141 | 153 | } |
142 | 154 | else |
143 | 155 | { |
156 | + model.setStatus("1"); | |
144 | 157 | model.setUserId(userId); |
145 | 158 | model.setHospitalId(hospitalId); |
146 | 159 | model.setCreated(new Date()); |
... | ... | @@ -158,6 +171,12 @@ |
158 | 171 | return new BaseObjectResponse().setData(info).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION); |
159 | 172 | } |
160 | 173 | |
174 | + /** | |
175 | + * 保存结果 | |
176 | + * @param amnioResultRequest | |
177 | + * @param userId | |
178 | + * @return | |
179 | + */ | |
161 | 180 | public BaseResponse saveOrUpdateAmnioResult(AmnioResultRequest amnioResultRequest, Integer userId) { |
162 | 181 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
163 | 182 | |
... | ... | @@ -184,7 +203,12 @@ |
184 | 203 | } |
185 | 204 | |
186 | 205 | |
187 | - | |
206 | + /** | |
207 | + * 保存手术记录 | |
208 | + * @param amnioRecordRequest | |
209 | + * @param userId | |
210 | + * @return | |
211 | + */ | |
188 | 212 | public BaseResponse saveOrUpdateAmnioRecord(AmnioRecordRequest amnioRecordRequest, Integer userId) { |
189 | 213 | |
190 | 214 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
191 | 215 | |
192 | 216 | |
193 | 217 | |
194 | 218 | |
195 | 219 | |
196 | 220 | |
... | ... | @@ -197,24 +221,98 @@ |
197 | 221 | } |
198 | 222 | else |
199 | 223 | { |
224 | + model.setCreated(new Date()); | |
225 | + model.setOperationUserId(userId); | |
226 | + model.setHospitalId(hospitalId); | |
227 | + amniocentesisRecordService.add(model); | |
228 | + | |
200 | 229 | AmniocentesisInfoQuery amniocentesisInfoQuery = new AmniocentesisInfoQuery(); |
201 | 230 | amniocentesisInfoQuery.setId(model.getAmnioId()); |
202 | 231 | AmniocentesisInfoModel amniocentesisInfo = amniocentesisInfoService.queryOneAmniocentesis(amniocentesisInfoQuery); |
232 | + amniocentesisInfo.setRecordId(model.getId()); | |
203 | 233 | amniocentesisInfo.setStatus("2"); |
234 | + amniocentesisInfo.setOperationDate(model.getOperationDate()); | |
204 | 235 | amniocentesisInfoService.update(amniocentesisInfo); |
205 | - | |
206 | - model.setCreated(new Date()); | |
207 | - model.setOperationUserId(userId); | |
208 | - model.setHospitalId(hospitalId); | |
209 | - amniocentesisRecordService.add(model); | |
210 | 236 | } |
211 | 237 | return new BaseObjectResponse().setData(model.getId()).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION); |
212 | 238 | } |
213 | 239 | |
240 | + /** | |
241 | + * 列表 | |
242 | + * @param queryParam | |
243 | + * @param userId | |
244 | + * @return | |
245 | + */ | |
214 | 246 | public BaseResponse queryAmniocentesisList(AmniocentesisQueryRequest queryParam, Integer userId) { |
215 | 247 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
216 | 248 | AmniocentesisInfoQuery amniocentesisInfoQuery = new AmniocentesisInfoQuery(); |
249 | + amniocentesisInfoQuery.setHospitalId(hospitalId); | |
250 | + | |
251 | + amniocentesisInfoQuery.setPage(queryParam.getPage()); | |
252 | + amniocentesisInfoQuery.setLimit(queryParam.getLimit()); | |
253 | + amniocentesisInfoQuery.setNeed("true"); | |
254 | + List<Map<String,Object>> datas = getData(amniocentesisInfoQuery,queryParam); | |
255 | + return new BaseListResponse().setData(datas).setErrorcode(ErrorCodeConstants.SUCCESS). | |
256 | + setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION).setPageInfo(amniocentesisInfoQuery.getPageInfo()); | |
257 | + } | |
258 | + | |
259 | + public void exportAmniocentesisList(AmniocentesisQueryRequest queryParam, | |
260 | + Integer userId,HttpServletResponse httpServletResponse) { | |
261 | + String hospitalId = autoMatchFacade.getHospitalId(userId); | |
262 | + AmniocentesisInfoQuery amniocentesisInfoQuery = new AmniocentesisInfoQuery(); | |
263 | + amniocentesisInfoQuery.setHospitalId(hospitalId); | |
264 | + | |
265 | + amniocentesisInfoQuery.setPage(queryParam.getPage()); | |
266 | + amniocentesisInfoQuery.setLimit(queryParam.getLimit()); | |
267 | + amniocentesisInfoQuery.setNeed("true"); | |
268 | + List<Map<String,Object>> datas = getData(amniocentesisInfoQuery,queryParam); | |
269 | + | |
270 | + Collections.sort(datas,new Comparator<Map<String,Object>>() { | |
271 | + @Override | |
272 | + public int compare(Map<String,Object> o1, Map<String,Object> o2) { | |
273 | + String weight1 = o1.get("weight").toString(); | |
274 | + String weight2 = o1.get("weight").toString(); | |
275 | + if (StringUtils.isNotEmpty(weight1) && StringUtils.isNotEmpty(weight2)) | |
276 | + { | |
277 | + Double d1 = Double.parseDouble(weight1); | |
278 | + Double d2 = Double.parseDouble(weight2); | |
279 | + return (int)(d1 - d2); | |
280 | + } | |
281 | + return 0; | |
282 | + } | |
283 | + }); | |
284 | + | |
285 | + | |
286 | + Map<String, String> cnames = new LinkedHashMap<>(); | |
287 | + cnames.put("name","姓名"); | |
288 | + cnames.put("age","年龄"); | |
289 | + cnames.put("week","孕周"); | |
290 | + cnames.put("pregnancyTimes","孕产"); | |
291 | + cnames.put("prodTime","产次"); | |
292 | + cnames.put("phone","联系方式"); | |
293 | + cnames.put("vcCardNo","就诊卡"); | |
294 | + cnames.put("orderDate","预约日期"); | |
295 | + cnames.put("weight","体重"); | |
296 | + cnames.put("operation","手术指征"); | |
297 | + cnames.put("ReferralHospital","转诊机构"); | |
298 | + cnames.put("chip", "芯片"); | |
299 | + cnames.put("amnioCount", "穿刺次数"); | |
300 | + cnames.put("result","羊水染色体结果"); | |
301 | +// cnames.put("deuDate","预产期"); | |
302 | +// cnames.put("tangDanger","唐筛风险"); | |
303 | +// cnames.put("applyDate","申请日期"); | |
304 | +// cnames.put("operationDate","手术日期"); | |
305 | + cnames.put("status", "状态"); | |
306 | + cnames.put("otherRemark", "备注"); | |
307 | + ResponseUtil.responseExcel(cnames, datas, httpServletResponse); | |
308 | + | |
309 | + } | |
310 | + | |
311 | + | |
312 | + private List<Map<String,Object>> getData(AmniocentesisInfoQuery amniocentesisInfoQuery,AmniocentesisQueryRequest queryParam) | |
313 | + { | |
217 | 314 | amniocentesisInfoQuery.setQueryNo(queryParam.getQuerNo()); |
315 | + //申请日期 | |
218 | 316 | if (StringUtils.isNotEmpty(queryParam.getApplyDate())) |
219 | 317 | { |
220 | 318 | String[] arrs = queryParam.getApplyDate().split("-"); |
221 | 319 | |
222 | 320 | |
223 | 321 | |
224 | 322 | |
... | ... | @@ -222,30 +320,42 @@ |
222 | 320 | amniocentesisInfoQuery.setApplyDateEnd(DateUtil.parseYMDHMS(arrs[0]+" 23:59:59")); |
223 | 321 | } |
224 | 322 | |
323 | + //手术日期 | |
225 | 324 | if (StringUtils.isNotEmpty(queryParam.getOperationDate())) |
226 | 325 | { |
227 | 326 | String[] arrs = queryParam.getOperationDate().split("-"); |
228 | 327 | amniocentesisInfoQuery.setOperationDateStart(DateUtil.parseYMD(arrs[0])); |
229 | 328 | amniocentesisInfoQuery.setOperationDateEnd(DateUtil.parseYMDHMS(arrs[0] + " 23:59:59")); |
230 | 329 | } |
231 | - | |
330 | + //预约日期 | |
232 | 331 | if (StringUtils.isNotEmpty(queryParam.getOrderDate())) |
233 | 332 | { |
234 | 333 | String[] arrs = queryParam.getOrderDate().split("-"); |
235 | 334 | amniocentesisInfoQuery.setOrderDateStart(DateUtil.parseYMD(arrs[0])); |
236 | 335 | amniocentesisInfoQuery.setOrderDateEnd(DateUtil.parseYMDHMS(arrs[0] + " 23:59:59")); |
237 | 336 | } |
337 | + //预产期 | |
338 | + if (StringUtils.isNotEmpty(queryParam.getDueDate())) | |
339 | + { | |
340 | + String[] arrs = queryParam.getDueDate().split("-"); | |
341 | + | |
342 | + Date startDate = DateUtil.parseYMD(arrs[0]); | |
343 | + startDate = DateUtil.addDay(DateUtil.addMonth(startDate, -9), -7); | |
344 | + | |
345 | + Date endDate = DateUtil.parseYMD(arrs[0]); | |
346 | + endDate = DateUtil.addDay(DateUtil.addMonth(endDate, -9), -6); | |
347 | + | |
348 | + amniocentesisInfoQuery.setDueDateStart(startDate); | |
349 | + amniocentesisInfoQuery.setDueDateEnd(endDate); | |
350 | + | |
351 | + } | |
352 | + | |
238 | 353 | amniocentesisInfoQuery.setResult(queryParam.getResult()); |
239 | 354 | amniocentesisInfoQuery.setResultSelect(queryParam.getResultSelect()); |
240 | 355 | amniocentesisInfoQuery.setReferralHospital(queryParam.getReferralHospital()); |
241 | 356 | amniocentesisInfoQuery.setStatus(queryParam.getStatus()); |
242 | - amniocentesisInfoQuery.setHospitalId(hospitalId); | |
243 | 357 | |
244 | - amniocentesisInfoQuery.setPage(queryParam.getPage()); | |
245 | - amniocentesisInfoQuery.setLimit(queryParam.getLimit()); | |
246 | - amniocentesisInfoQuery.setNeed("true"); | |
247 | - | |
248 | - List<Map> datas = new ArrayList<>(); | |
358 | + List<Map<String,Object>> datas = new ArrayList<>(); | |
249 | 359 | List<AmniocentesisInfoModel> amniocentesisList = amniocentesisInfoService.queryAmniocentesisInfo(amniocentesisInfoQuery); |
250 | 360 | if (CollectionUtils.isNotEmpty(amniocentesisList)) |
251 | 361 | { |
... | ... | @@ -257,6 +367,7 @@ |
257 | 367 | data.put("resultId",model.getResultId()); |
258 | 368 | data.put("name",model.getName()); |
259 | 369 | data.put("phone",model.getPhone()); |
370 | + data.put("age",DateUtil.getAge(model.getBirthday(),model.getCreated())); | |
260 | 371 | data.put("vcCardNo",model.getVcCardNo()); |
261 | 372 | data.put("cardNo",model.getCardNo()); |
262 | 373 | data.put("weight",model.getWeight()); |
263 | 374 | |
264 | 375 | |
... | ... | @@ -274,15 +385,23 @@ |
274 | 385 | data.put("operationDate", model.getOperationDate() == null ? "" :DateUtil.getyyyy_MM_dd(model.getOperationDate())); |
275 | 386 | data.put("amnioCount", model.getAmnioCount()); |
276 | 387 | data.put("result",model.getResult() == null ? "" : "1".equals(model.getResult()) ? "阴性" : "阳性"); //1阴性 2阳性 |
277 | - data.put("chip",model.getChip() == null ? "" : "0".equals(model.getChip()) ? "无" : "有"); | |
278 | - data.put("status",model.getStatus() == null ? "" : "1".equals(model.getStatus()) | |
388 | + data.put("chip", model.getChip() == null ? "" : "0".equals(model.getChip()) ? "无" : "有"); | |
389 | + data.put("status", model.getStatus() == null ? "" : "1".equals(model.getStatus()) | |
279 | 390 | ? "未手术" : "2".equals(model.getStatus()) ? "已手术" : "已诊断"); //1未手术 2已手术 3已诊断 |
391 | + AmniocentesisResultQuery amniocentesisResultQuery = new AmniocentesisResultQuery(); | |
392 | + amniocentesisResultQuery.setId(model.getResultId()); | |
393 | + AmniocentesisResultModel resultModel = amniocentesisResultService.queryOne(amniocentesisResultQuery); | |
394 | + String otherRemark = ""; | |
395 | + if (resultModel != null) | |
396 | + { | |
397 | + otherRemark = resultModel.getOtherRemark(); | |
398 | + } | |
399 | + data.put("otherRemark", otherRemark); | |
280 | 400 | |
281 | 401 | datas.add(data); |
282 | 402 | } |
283 | 403 | } |
284 | - return new BaseListResponse().setData(datas).setErrorcode(ErrorCodeConstants.SUCCESS). | |
285 | - setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION).setPageInfo(amniocentesisInfoQuery.getPageInfo()); | |
404 | + return datas; | |
286 | 405 | } |
287 | 406 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/AmnioRecordRequest.java
View file @
7a82d4f
1 | 1 | package com.lyms.platform.operate.web.request; |
2 | 2 | |
3 | 3 | import com.lyms.platform.common.base.IBasicRequestConvert; |
4 | +import com.lyms.platform.common.utils.DateUtil; | |
4 | 5 | import com.lyms.platform.pojo.AmniocentesisRecordModel; |
5 | 6 | |
6 | 7 | |
7 | 8 | |
... | ... | @@ -104,14 +105,366 @@ |
104 | 105 | //手术日期 |
105 | 106 | private String operationDate; |
106 | 107 | |
107 | - //手术者id | |
108 | - private Integer operationUserId; | |
109 | 108 | |
110 | 109 | |
111 | 110 | |
112 | 111 | @Override |
113 | 112 | public AmniocentesisRecordModel convertToDataModel() { |
114 | - return null; | |
113 | + AmniocentesisRecordModel model = new AmniocentesisRecordModel(); | |
114 | + model.setId(id); | |
115 | + model.setAmnioId(amnioId); | |
116 | + model.setChiefComplaint(chiefComplaint); | |
117 | + model.setMedicalHistory(medicalHistory); | |
118 | + model.setPoisonous(poisonous); | |
119 | + model.setFamilyHistory(familyHistory); | |
120 | + model.setTemperature(temperature); | |
121 | + model.setHbloodPressure(hbloodPressure); | |
122 | + model.setLbloodPressure(lbloodPressure); | |
123 | + model.setXdtStatus(xdtStatus); | |
124 | + model.setXdtContent(xdtContent); | |
125 | + | |
126 | + model.setXcgStatus(xcgStatus); | |
127 | + model.setXcgContent(xcgContent); | |
128 | + | |
129 | + model.setXnsxStatus(xnsxStatus); | |
130 | + model.setXnsxContent(xnsxContent); | |
131 | + | |
132 | + model.setGsgnStatus(gsgnStatus); | |
133 | + model.setGsgnContent(gsgnContent); | |
134 | + | |
135 | + | |
136 | + model.setGyxlStatus(gyxlStatus); | |
137 | + model.setGyxlContent(gyxlContent); | |
138 | + | |
139 | + model.setHivStatus(hivStatus); | |
140 | + model.setHivContent(hivContent); | |
141 | + | |
142 | + | |
143 | + model.setHrStatus(hrStatus); | |
144 | + model.setHrContent(hrContent); | |
145 | + | |
146 | + model.setBc(bc); | |
147 | + model.setBamnio(bamnio); | |
148 | + model.setSdj(sdj); | |
149 | + model.setTw(tw); | |
150 | + model.setTp(tp); | |
151 | + model.setGs(gs); | |
152 | + | |
153 | + model.setOperation(operation); | |
154 | + model.setRecord(record); | |
155 | + model.setPosition(position); | |
156 | + model.setAmnioCount(amnioCount); | |
157 | + model.setAmnio(amnio); | |
158 | + model.setAmnioColor(amnioColor); | |
159 | + model.setSituation(situation); | |
160 | + model.setDeal(deal); | |
161 | + model.setOperationDate(DateUtil.parseYMD(operationDate)); | |
162 | + | |
163 | + return model; | |
164 | + } | |
165 | + | |
166 | + public String getAmnioId() { | |
167 | + return amnioId; | |
168 | + } | |
169 | + | |
170 | + public void setAmnioId(String amnioId) { | |
171 | + this.amnioId = amnioId; | |
172 | + } | |
173 | + | |
174 | + public String getId() { | |
175 | + return id; | |
176 | + } | |
177 | + | |
178 | + public void setId(String id) { | |
179 | + this.id = id; | |
180 | + } | |
181 | + | |
182 | + public String getChiefComplaint() { | |
183 | + return chiefComplaint; | |
184 | + } | |
185 | + | |
186 | + public void setChiefComplaint(String chiefComplaint) { | |
187 | + this.chiefComplaint = chiefComplaint; | |
188 | + } | |
189 | + | |
190 | + public String getMedicalHistory() { | |
191 | + return medicalHistory; | |
192 | + } | |
193 | + | |
194 | + public void setMedicalHistory(String medicalHistory) { | |
195 | + this.medicalHistory = medicalHistory; | |
196 | + } | |
197 | + | |
198 | + public String getPoisonous() { | |
199 | + return poisonous; | |
200 | + } | |
201 | + | |
202 | + public void setPoisonous(String poisonous) { | |
203 | + this.poisonous = poisonous; | |
204 | + } | |
205 | + | |
206 | + public String getFamilyHistory() { | |
207 | + return familyHistory; | |
208 | + } | |
209 | + | |
210 | + public void setFamilyHistory(String familyHistory) { | |
211 | + this.familyHistory = familyHistory; | |
212 | + } | |
213 | + | |
214 | + public String getTemperature() { | |
215 | + return temperature; | |
216 | + } | |
217 | + | |
218 | + public void setTemperature(String temperature) { | |
219 | + this.temperature = temperature; | |
220 | + } | |
221 | + | |
222 | + public Integer getHbloodPressure() { | |
223 | + return hbloodPressure; | |
224 | + } | |
225 | + | |
226 | + public void setHbloodPressure(Integer hbloodPressure) { | |
227 | + this.hbloodPressure = hbloodPressure; | |
228 | + } | |
229 | + | |
230 | + public Integer getLbloodPressure() { | |
231 | + return lbloodPressure; | |
232 | + } | |
233 | + | |
234 | + public void setLbloodPressure(Integer lbloodPressure) { | |
235 | + this.lbloodPressure = lbloodPressure; | |
236 | + } | |
237 | + | |
238 | + public String getXdtStatus() { | |
239 | + return xdtStatus; | |
240 | + } | |
241 | + | |
242 | + public void setXdtStatus(String xdtStatus) { | |
243 | + this.xdtStatus = xdtStatus; | |
244 | + } | |
245 | + | |
246 | + public String getXdtContent() { | |
247 | + return xdtContent; | |
248 | + } | |
249 | + | |
250 | + public void setXdtContent(String xdtContent) { | |
251 | + this.xdtContent = xdtContent; | |
252 | + } | |
253 | + | |
254 | + public String getXcgStatus() { | |
255 | + return xcgStatus; | |
256 | + } | |
257 | + | |
258 | + public void setXcgStatus(String xcgStatus) { | |
259 | + this.xcgStatus = xcgStatus; | |
260 | + } | |
261 | + | |
262 | + public String getXcgContent() { | |
263 | + return xcgContent; | |
264 | + } | |
265 | + | |
266 | + public void setXcgContent(String xcgContent) { | |
267 | + this.xcgContent = xcgContent; | |
268 | + } | |
269 | + | |
270 | + public String getXnsxStatus() { | |
271 | + return xnsxStatus; | |
272 | + } | |
273 | + | |
274 | + public void setXnsxStatus(String xnsxStatus) { | |
275 | + this.xnsxStatus = xnsxStatus; | |
276 | + } | |
277 | + | |
278 | + public String getXnsxContent() { | |
279 | + return xnsxContent; | |
280 | + } | |
281 | + | |
282 | + public void setXnsxContent(String xnsxContent) { | |
283 | + this.xnsxContent = xnsxContent; | |
284 | + } | |
285 | + | |
286 | + public String getGsgnStatus() { | |
287 | + return gsgnStatus; | |
288 | + } | |
289 | + | |
290 | + public void setGsgnStatus(String gsgnStatus) { | |
291 | + this.gsgnStatus = gsgnStatus; | |
292 | + } | |
293 | + | |
294 | + public String getGsgnContent() { | |
295 | + return gsgnContent; | |
296 | + } | |
297 | + | |
298 | + public void setGsgnContent(String gsgnContent) { | |
299 | + this.gsgnContent = gsgnContent; | |
300 | + } | |
301 | + | |
302 | + public String getGyxlStatus() { | |
303 | + return gyxlStatus; | |
304 | + } | |
305 | + | |
306 | + public void setGyxlStatus(String gyxlStatus) { | |
307 | + this.gyxlStatus = gyxlStatus; | |
308 | + } | |
309 | + | |
310 | + public String getGyxlContent() { | |
311 | + return gyxlContent; | |
312 | + } | |
313 | + | |
314 | + public void setGyxlContent(String gyxlContent) { | |
315 | + this.gyxlContent = gyxlContent; | |
316 | + } | |
317 | + | |
318 | + public String getHivStatus() { | |
319 | + return hivStatus; | |
320 | + } | |
321 | + | |
322 | + public void setHivStatus(String hivStatus) { | |
323 | + this.hivStatus = hivStatus; | |
324 | + } | |
325 | + | |
326 | + public String getHivContent() { | |
327 | + return hivContent; | |
328 | + } | |
329 | + | |
330 | + public void setHivContent(String hivContent) { | |
331 | + this.hivContent = hivContent; | |
332 | + } | |
333 | + | |
334 | + public String getHrStatus() { | |
335 | + return hrStatus; | |
336 | + } | |
337 | + | |
338 | + public void setHrStatus(String hrStatus) { | |
339 | + this.hrStatus = hrStatus; | |
340 | + } | |
341 | + | |
342 | + public String getHrContent() { | |
343 | + return hrContent; | |
344 | + } | |
345 | + | |
346 | + public void setHrContent(String hrContent) { | |
347 | + this.hrContent = hrContent; | |
348 | + } | |
349 | + | |
350 | + public String getBc() { | |
351 | + return bc; | |
352 | + } | |
353 | + | |
354 | + public void setBc(String bc) { | |
355 | + this.bc = bc; | |
356 | + } | |
357 | + | |
358 | + public String getBamnio() { | |
359 | + return bamnio; | |
360 | + } | |
361 | + | |
362 | + public void setBamnio(String bamnio) { | |
363 | + this.bamnio = bamnio; | |
364 | + } | |
365 | + | |
366 | + public String getSdj() { | |
367 | + return sdj; | |
368 | + } | |
369 | + | |
370 | + public void setSdj(String sdj) { | |
371 | + this.sdj = sdj; | |
372 | + } | |
373 | + | |
374 | + public String getTw() { | |
375 | + return tw; | |
376 | + } | |
377 | + | |
378 | + public void setTw(String tw) { | |
379 | + this.tw = tw; | |
380 | + } | |
381 | + | |
382 | + public String getTp() { | |
383 | + return tp; | |
384 | + } | |
385 | + | |
386 | + public void setTp(String tp) { | |
387 | + this.tp = tp; | |
388 | + } | |
389 | + | |
390 | + public String getGs() { | |
391 | + return gs; | |
392 | + } | |
393 | + | |
394 | + public void setGs(String gs) { | |
395 | + this.gs = gs; | |
396 | + } | |
397 | + | |
398 | + public String getOperation() { | |
399 | + return operation; | |
400 | + } | |
401 | + | |
402 | + public void setOperation(String operation) { | |
403 | + this.operation = operation; | |
404 | + } | |
405 | + | |
406 | + public String getRecord() { | |
407 | + return record; | |
408 | + } | |
409 | + | |
410 | + public void setRecord(String record) { | |
411 | + this.record = record; | |
412 | + } | |
413 | + | |
414 | + public String getPosition() { | |
415 | + return position; | |
416 | + } | |
417 | + | |
418 | + public void setPosition(String position) { | |
419 | + this.position = position; | |
420 | + } | |
421 | + | |
422 | + public String getAmnioCount() { | |
423 | + return amnioCount; | |
424 | + } | |
425 | + | |
426 | + public void setAmnioCount(String amnioCount) { | |
427 | + this.amnioCount = amnioCount; | |
428 | + } | |
429 | + | |
430 | + public String getAmnio() { | |
431 | + return amnio; | |
432 | + } | |
433 | + | |
434 | + public void setAmnio(String amnio) { | |
435 | + this.amnio = amnio; | |
436 | + } | |
437 | + | |
438 | + public String getAmnioColor() { | |
439 | + return amnioColor; | |
440 | + } | |
441 | + | |
442 | + public void setAmnioColor(String amnioColor) { | |
443 | + this.amnioColor = amnioColor; | |
444 | + } | |
445 | + | |
446 | + public String getSituation() { | |
447 | + return situation; | |
448 | + } | |
449 | + | |
450 | + public void setSituation(String situation) { | |
451 | + this.situation = situation; | |
452 | + } | |
453 | + | |
454 | + public String getDeal() { | |
455 | + return deal; | |
456 | + } | |
457 | + | |
458 | + public void setDeal(String deal) { | |
459 | + this.deal = deal; | |
460 | + } | |
461 | + | |
462 | + public String getOperationDate() { | |
463 | + return operationDate; | |
464 | + } | |
465 | + | |
466 | + public void setOperationDate(String operationDate) { | |
467 | + this.operationDate = operationDate; | |
115 | 468 | } |
116 | 469 | } |