| | |
| | | if (null != pationid) { |
| | | customer.setPationId(pationid); |
| | | customerService.updateById(customer); |
| | | /* String key = configService.selectConfigByKey("getInfoFromSqlData"); |
| | | if (null != key && key.equals("Y")) { |
| | | OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto(); |
| | | outpinregapplyDto.setPationid(pationid); |
| | | outpinregapplyDto.setSqysbm(SecurityUtils.getUsername()); |
| | | outpinregapplyDto.setMzksbm("0101"); |
| | | outpinregapplyDto.setCzybm("00029"); |
| | | outpinregapplyDto.setSfjz("0"); |
| | | outpinregapplyDto.setGhzlbm("01"); |
| | | outpinregapplyDto.setYwckbm("0001"); |
| | | outpinregapplyDto.setSflstd("0"); |
| | | outpinregapplyDto.setGhrq(date); |
| | | //门诊挂号 |
| | | AjaxResult ajaxResult = controller.Outpinregapply(outpinregapplyDto); |
| | | String result2 = getAjaxResult(ajaxResult); |
| | | JSONObject object1 = getJSONObject(result2); |
| | | String code1 = object1.getStr("ResultCode"); |
| | | if (code1.equals("0")) { |
| | | JSONArray resultDatas = object1.getJSONArray("ResultData"); |
| | | if (null != resultDatas && resultDatas.size() > 0) { |
| | | //门诊医生接诊 |
| | | controller.Outpinconapply(customer.getCardId(), date, SecurityUtils.getUsername()); |
| | | } |
| | | } |
| | | } |
| | | */ |
| | | |
| | | //检验申请 |
| | | OutpintestapplyDto dto = new OutpintestapplyDto(); |
| | |
| | | } |
| | | } |
| | | } |
| | | if (detailsDtos.size()==0) { |
| | | OutpintestapplyDetailsDto detailsDto = new OutpintestapplyDetailsDto(); |
| | | detailsDto.setMxfyxmbm(""); |
| | | detailsDto.setSfzhfy(""); |
| | | detailsDto.setSl(0); |
| | | detailsDtos.add(detailsDto); |
| | | } |
| | | if (detailsDtos.size()>0) { |
| | | dto.setDetails(detailsDtos); |
| | | AjaxResult ajaxResult1 = controller.Outpintestapply(dto); |
| | | String result5 = getAjaxResult(ajaxResult1); |
| | |
| | | hisApiGetMethodService.save(object4, "Outpintestapply", hisApiConfig,JSONUtil.toJsonStr(BeanUtil.beanToMap(dto))); |
| | | |
| | | }else { |
| | | return AjaxResult.success(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | //门诊检查申请 |
| | | OutpinexamapplyDto outpinexamapplyDto = new OutpinexamapplyDto(); |
| | | outpinexamapplyDto.setHisRegistrationId(customer.getCardId()); |
| | |
| | | } |
| | | } |
| | | } |
| | | if (detailsDtoss.size()==0) { |
| | | OutpintestapplyDetailsDto detailsDto = new OutpintestapplyDetailsDto(); |
| | | detailsDto.setMxfyxmbm(""); |
| | | detailsDto.setSfzhfy(""); |
| | | detailsDto.setSl(0); |
| | | detailsDtoss.add(detailsDto); |
| | | } |
| | | if (detailsDtoss.size()>0) { |
| | | outpinexamapplyDto.setDetails(detailsDtoss); |
| | | AjaxResult ajaxResult2 = controller.Outpinexamapply(outpinexamapplyDto); |
| | | String result6 = getAjaxResult(ajaxResult2); |
| | |
| | | hisApiGetMethodService.save(jsonObject, "Outpinexamapply", hisApiConfig,JSONUtil.toJsonStr(BeanUtil.beanToMap(outpinexamapplyDto))); |
| | | |
| | | }else { |
| | | return AjaxResult.success(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //门诊治疗处置申请 |
| | | OutpintreatapplyDto dao = new OutpintreatapplyDto(); |
| | |
| | | } |
| | | } |
| | | } |
| | | if (detailDtos.size()==0) { |
| | | OutpintestapplyDetailsDto detailsDto = new OutpintestapplyDetailsDto(); |
| | | detailsDto.setMxfyxmbm(""); |
| | | detailsDto.setSfzhfy(""); |
| | | detailsDto.setSl(0); |
| | | detailDtos.add(detailsDto); |
| | | } |
| | | if (detailDtos.size()>0) { |
| | | dao.setDetails(detailDtos); |
| | | AjaxResult mzylyzsq1 = controller.Outpintreatapply(dao); |
| | | String mzylyzsq2 = getAjaxResult(mzylyzsq1); |
| | |
| | | }else { |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | } |