| | |
| | | import com.ltkj.hosp.service.ITjCustomerService; |
| | | import com.ltkj.web.wxUtils.HttpClientUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.FileInputStream; |
| | |
| | | private static String HIS_URL = ""; |
| | | |
| | | // 数据库配置文件路径 |
| | | private static final String CONFIG_PATH = "D:\\ltkjprojectconf\\config.properties"; |
| | | // private static final String CONFIG_PATH = "/Users/chacca/开发相关/代码/ltkj_peis/ltkj-admin/src/main/resources/config.properties"; |
| | | // private static final String CONFIG_PATH = "D:\\ltkjprojectconf\\config.properties"; |
| | | |
| | | static { |
| | | private static String CONFIG_PATH; |
| | | |
| | | @Value ("${config.properties}") |
| | | public void setConfigPath(String configPath) { |
| | | CONFIG_PATH = configPath; |
| | | try { |
| | | FileInputStream inputStream = new FileInputStream(CONFIG_PATH); |
| | | Properties props = new Properties(); |
| | |
| | | } |
| | | } |
| | | |
| | | /* static { |
| | | try { |
| | | FileInputStream inputStream = new FileInputStream(CONFIG_PATH); |
| | | Properties props = new Properties(); |
| | | props.load(inputStream); |
| | | String url = props.getProperty("his_api_url"); |
| | | String port = props.getProperty("his_api_port"); |
| | | HIS_URL=url+":"+port+"/api/His/"; |
| | | } catch (IOException throwables) { |
| | | throwables.printStackTrace(); |
| | | } |
| | | }*/ |
| | | |
| | | |
| | | // @ApiOperation(value = "新增/修改门诊注册信息") |
| | | public AjaxResult Outpincreateapply (TjCustomer customer) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | if (null != customer.getPationId () && !customer.getPationId().equals("0")) { |
| | | map.put ("pationid", customer.getPationId ()); |
| | | map.put ("Pationid", customer.getPationId ()); |
| | | } else { |
| | | map.put ("pationid", null); |
| | | map.put ("Pationid", null); |
| | | } |
| | | map.put ("brxm", customer.getCusName ()); |
| | | map.put ("brxb", customer.getCusSex ()); |
| | | Long cusSex = customer.getCusSex(); |
| | | if(cusSex==0L){ |
| | | map.put ("brxb",1); |
| | | }else if(cusSex==1L){ |
| | | map.put ("brxb",2); |
| | | }else { |
| | | map.put ("brxb",9); |
| | | } |
| | | map.put ("csrq", DateUtil.format(customer.getCusBrithday(),"yyyy-MM-dd")); |
| | | map.put ("brnl", customer.getAge ()); |
| | | map.put ("brnldw", customer.getAgeUnit ()); |
| | | map.put ("addr", customer.getAddr ()); |
| | | map.put ("addr", customer.getCusAddr()); |
| | | map.put ("gzdw", null); |
| | | map.put ("dwdz", null); |
| | | map.put ("lxr", customer.getCusName ()); |
| | |
| | | |
| | | // @ApiOperation(value = "新增/修改门诊诊断") |
| | | public AjaxResult Outpinimpapply (OutpinimpapplyDto dto) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", dto.getHisRegistrationId ()); |
| | | map.put ("mzzdid", dto.getMzzdid ()); |
| | | map.put ("sqysbm", dto.getSqysbm ()); |
| | | map.put ("mzksbm", dto.getMzksbm ()); |
| | | map.put ("fbrq", dto.getFbrq ()); |
| | | map.put ("zdrq", dto.getZdrq ()); |
| | | map.put ("czybm", dto.getCzybm ()); |
| | | map.put ("czyksbm", dto.getCzyksbm ()); |
| | | map.put ("zs", dto.getZs ()); |
| | | map.put ("bs", dto.getBs ()); |
| | | map.put ("clyz", dto.getClyz ()); |
| | | map.put ("jws", dto.getJws ()); |
| | | map.put ("tgjc", dto.getTgjc ()); |
| | | map.put ("gms", dto.getGms ()); |
| | | map.put ("jbbm", dto.getJbbm ()); |
| | | map.put ("jbbm1", dto.getJbbm1 ()); |
| | | map.put ("jbbm2", dto.getJbbm2 ()); |
| | | map.put ("tw", dto.getTw ()); |
| | | map.put ("mb", dto.getMb ()); |
| | | map.put ("hx", dto.getHx ()); |
| | | map.put ("bp", dto.getBp ()); |
| | | map.put ("fzbz", dto.getFzbz ()); |
| | | map.put ("hzqx", dto.getHzqx ()); |
| | | map.put ("sfqc", dto.getSfqc ()); |
| | | map.put ("qchs", dto.getQchs ()); |
| | | map.put ("sfqj", dto.getSfqj ()); |
| | | map.put ("ckrq", dto.getCkrq ()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("his_registration_id",dto.getHisRegistrationId()); |
| | | map.put("mzzdid",dto.getMzzdid()); |
| | | map.put("sqysbm",dto.getSqysbm()); |
| | | map.put("mzksbm",dto.getMzksbm()); |
| | | map.put("fbrq",dto.getFbrq()); |
| | | map.put("zdrq",dto.getZdrq()); |
| | | map.put("czybm",dto.getCzybm()); |
| | | map.put("czyksbm",dto.getCzyksbm()); |
| | | map.put("zs",dto.getZs()); |
| | | map.put("bs",dto.getBs()); |
| | | map.put("clyz",dto.getClyz()); |
| | | map.put("jws",dto.getJws()); |
| | | map.put("tgjc",dto.getTgjc()); |
| | | map.put("gms",dto.getGms()); |
| | | map.put("jbbm",dto.getJbbm()); |
| | | map.put("jbbm1",dto.getJbbm1()); |
| | | map.put("jbbm2",dto.getJbbm2()); |
| | | map.put("fzbz",dto.getFzbz()); |
| | | map.put("hzqx",dto.getHzqx()); |
| | | map.put("sfqc",dto.getSfqc()); |
| | | map.put("qchs",dto.getQchs()); |
| | | map.put("sfqj",dto.getSfqj()); |
| | | map.put("jzqk",dto.getJzqk()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinimpapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | map.put ("sqdh", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindeltestapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | map.put ("sqdh", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindelexamapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | map.put ("sqdh", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindelmedapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | map.put ("sqdh", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpintdelreatapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | |
| | | |
| | | // @ApiOperation(value = "获取检查申请信息") |
| | | public AjaxResult Getexamapplyinfo (String hisRegistrationId, |
| | | String ksbm, |
| | | Date jsrq, |
| | | Date ksrq) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("ksbm", ksbm); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | public AjaxResult Getexamapplyinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("ksbm", ksbm); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamapplyinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation(value = "获取检查报告信息") |
| | | public AjaxResult Getexamreportinfo (String hisRegistrationId, |
| | | String ksmc, |
| | | String pationid, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | Integer pagecount, |
| | | Integer page, |
| | | String status, |
| | | String cardtype) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("ksmc", ksmc); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pationid", pationid); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | map.put ("status", status); |
| | | map.put ("cardtype", cardtype); |
| | | public AjaxResult Getexamreportinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("ksmc", ksmc); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("pationid", pationid); |
| | | // map.put ("pagecount", pagecount); |
| | | // map.put ("page", page); |
| | | // map.put ("status", status); |
| | | // map.put ("cardtype", cardtype); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamreportinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | } |
| | | |
| | | // @ApiOperation(value = "获取检查危急值信息") |
| | | public AjaxResult Getexamurgentinfo (String hisRegistrationId, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | Integer pagecount, |
| | | Integer page) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | public AjaxResult Getexamurgentinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("pagecount", pagecount); |
| | | // map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamurgentinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | |
| | | |
| | | // @ApiOperation(value = "获取检验申请信息") |
| | | public AjaxResult Getlabapplyinfo (String hisRegistrationId, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | String cardtype, |
| | | String mzorzy, |
| | | String ksbm) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("cardtype", cardtype); |
| | | map.put ("mzorzy", mzorzy); |
| | | map.put ("ksbm", ksbm); |
| | | public AjaxResult Getlabapplyinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("cardtype", cardtype); |
| | | // map.put ("mzorzy", mzorzy); |
| | | // map.put ("ksbm", ksbm); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabapplyinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation(value = "获取检验报告记录信息") |
| | | public AjaxResult Getlabreportinfo (String hisRegistrationId, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | String ksbm, |
| | | String pationid, |
| | | Integer pagecount, |
| | | Integer page) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("ksbm", ksbm); |
| | | map.put ("pationid", pationid); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | public AjaxResult Getlabreportinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("ksbm", ksbm); |
| | | // map.put ("pationid", pationid); |
| | | // map.put ("pagecount", pagecount); |
| | | // map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabreportinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation(value = "获取微生物报告记录信息") |
| | | public AjaxResult Getlabgermrepinfo (String jybgid) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("jybgid", jybgid); |
| | | public AjaxResult Getlabgermrepinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("jybgid", jybgid); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabgermrepinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | // @ApiOperation(value = "获取微生物药敏信息") |
| | | public AjaxResult Getlabgermdetailinfo (String jybgid) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("jybgid", jybgid); |
| | | public AjaxResult Getlabgermdetailinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("jybgid", jybgid); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabgermdetailinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation(value = "获取危急值信息") |
| | | public AjaxResult Getlaburgentinfo (String jybgid, |
| | | Date jsrq, |
| | | Date ksrq) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("jybgid", jybgid); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | public AjaxResult Getlaburgentinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("jybgid", jybgid); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlaburgentinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | |
| | | |
| | | // @ApiOperation(value = "获取门诊患者费用清单信息") |
| | | public AjaxResult Getoutpatientcostinfo (String cardtype, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | String input, |
| | | Integer pagecount, |
| | | Integer page) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("cardtype", cardtype); |
| | | map.put ("input", input); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | public AjaxResult Getoutpatientcostinfo (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("cardtype", cardtype); |
| | | // map.put ("input", input); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("pagecount", pagecount); |
| | | // map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getoutpatientcostinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | |
| | | // @ApiOperation(value = "获取门诊结算记录") |
| | | public AjaxResult Getoutaccountrecord (String hisRegistrationId, |
| | | Date jsrq, |
| | | Date ksrq, |
| | | Integer pagecount, |
| | | Integer page) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | public AjaxResult Getoutaccountrecord (Map<String ,Object> map) { |
| | | // Map<String, Object> map = new HashMap<> (); |
| | | // map.put ("his_registration_id", hisRegistrationId); |
| | | // map.put ("jsrq", jsrq); |
| | | // map.put ("ksrq", ksrq); |
| | | // map.put ("pagecount", pagecount); |
| | | // map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getoutaccountrecord", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getpatientalterregrecord", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | | // @ApiOperation(value = "2.4.3 获取检验结果记录信息") |
| | | public AjaxResult Getlabdetailinfo (Map<String ,Object> map) { |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabdetailinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | } |