| | |
| | | import com.ltkj.common.core.controller.BaseController; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.framework.config.UserHoder; |
| | | import com.ltkj.hosp.domain.LtkjJianchajianyanTree; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.domain.TjProject; |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.hisDto.*; |
| | | import com.ltkj.hosp.mapper.TestMapper; |
| | | import com.ltkj.hosp.service.*; |
| | |
| | | import com.ltkj.hosp.vodomain.CsProVo; |
| | | import com.ltkj.web.controller.system.TjCheckController; |
| | | import io.swagger.annotations.Api; |
| | | import jodd.util.StringUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.NoTransactionException; |
| | |
| | | private LtkjHybgdService hybgdService; |
| | | @Autowired |
| | | private ITjCustomerService tjCustomerService; |
| | | @Autowired |
| | | private TjJcycxmService jcycxmService; |
| | | |
| | | /** |
| | | * 获取pacs检查数据 |
| | |
| | | ltkjExamJcsqd.setBw(checkParts); |
| | | ltkjExamJcsqd.setJgzt(pacs.getStr("diagnosis")); |
| | | ltkjExamJcsqd.setJgbx(pacs.getStr("examination")); |
| | | ltkjExamJcsqd.setSgorzd("1"); |
| | | ltkjExamJcsqd.setCreateTime(new Date()); |
| | | |
| | | ltkjExamJcsqdService.deletedLtkjJcsqdByTjhAndXmId(ltkjExamJcsqd.getTjh(),ltkjExamJcsqd.getJcxmid()); |
| | | boolean save1 = ltkjExamJcsqdService.save(ltkjExamJcsqd); |
| | | |
| | | if(StringUtil.isNotBlank(ltkjExamJcsqd.getJgzt())){ |
| | | jcycxmService.deletedByTjh(order.getTjNumber()); |
| | | String[] split = ltkjExamJcsqd.getJgzt().replaceAll("\n", "").split("。|;|;|,|,"); |
| | | for (String jg : split) { |
| | | if(StringUtil.isNotBlank(jg) && !jg.contains("未见异常") |
| | | && !jg.contains("未见明显异常") && !jg.contains("未见占位") && !jg.contains("未见") |
| | | && !jg.contains("未见明显")&& !jg.contains("正常")&& !jg.contains("双侧椎间孔无狭窄")){ |
| | | TjJcycxm jcycxm=new TjJcycxm(); |
| | | jcycxm.setTjh(order.getTjNumber()); |
| | | jcycxm.setYqid("jczyy"); |
| | | String[] split1 = ltkjExamJcsqd.getJcxmid().split(";"); |
| | | jcycxm.setProId(split1[0]); |
| | | jcycxm.setProName(ltkjExamJcsqd.getJcxmmc()); |
| | | jcycxm.setCreateTime(new Date()); |
| | | jcycxm.setJcjg(jg); |
| | | jcycxmService.save(jcycxm); |
| | | } |
| | | } |
| | | } |
| | | |
| | | LtkjExamJcbgd ltkjExamJcbgd = new LtkjExamJcbgd(); |
| | | ltkjExamJcbgd.setTjh(ltkjExamJcsqd.getTjh()); |
| | |
| | | ltkjExamJcbgd.setBgNr(ltkjExamJcsqd.getJgbx()); |
| | | ltkjExamJcbgd.setYxbx(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcbgd.setYxzd(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcbgd.setSgorzd("1"); |
| | | ltkjExamJcsqd.setCreateTime(new Date()); |
| | | ltkjExamJcbgdService.deletedLtkjJcbgdByTjhAndTmhA(ltkjExamJcsqd.getTjh(),ltkjExamJcsqd.getTmh()); |
| | | boolean save2 = ltkjExamJcbgdService.save(ltkjExamJcbgd); |