| | |
| | | import com.ltkj.web.wxUtils.HttpClientUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.sql.Connection; |
| | | import java.sql.DriverManager; |
| | | import java.sql.SQLException; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.Properties; |
| | | |
| | | |
| | | /* @Authot:zjh |
| | |
| | | @Autowired |
| | | private ITjCustomerService tjCustomerService; |
| | | |
| | | private static final String HIS_URL = "https://mock.mengxuegu.com/mock/664d3dbce45d2156fa209c80/example/api/His/HisRequest"; |
| | | private static String HIS_URL = ""; |
| | | |
| | | // 数据库配置文件路径 |
| | | private static final String CONFIG_PATH = "D:\\ltkjprojectconf\\config.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 = "新增/修改门诊注册信息") |
| | |
| | | map.put ("czy", customer.getCreateBy ()); |
| | | map.put ("jkkkh", customer.getIndexCard ()); |
| | | map.put ("mindex_id", customer.getIndexCard ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpincreateapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", jzh); |
| | | map.put ("jzrq", jzrq); |
| | | map.put ("jzysbm", jzysbm); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinconapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", jzh); |
| | | map.put ("jzrq", jzrq); |
| | | map.put ("jzysbm", jzysbm); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinunconapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("qchs", dto.getQchs ()); |
| | | map.put ("sfqj", dto.getSfqj ()); |
| | | map.put ("ckrq", dto.getCkrq ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinimpapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", zflxbm); |
| | | map.put ("yjje", yjje); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinmesapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ywckbm", dao.getYwckbm ()); |
| | | map.put ("sflstd", dao.getSflstd ()); |
| | | map.put ("ghrq", dao.getGhrq ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinregapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("czyksbm", dao.getCzyksbm ()); |
| | | map.put ("sfjz", dao.getSfjz ()); |
| | | map.put ("details", dao.getDetails ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpintestapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindeltestapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("jcbw", dao.getJcbw ()); |
| | | map.put ("sfjz", dao.getSfjz ()); |
| | | map.put ("details", dao.getDetails ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinexamapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindelexamapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("bqsm", dao.getBqsm ()); |
| | | map.put ("sfjz", dao.getSfjz ()); |
| | | map.put ("details", dao.getDetails ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinmedapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindelmedapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("sfjz", dao.getSfjz ()); |
| | | map.put ("zlbz", dao.getZlbz ()); |
| | | map.put ("details", dao.getDetails ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpintreatapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpintdelreatapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("fyts", dao.getFyts ()); |
| | | map.put ("mzzd", dao.getMzzd ()); |
| | | map.put ("details", dao.getDetails ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpinmedicapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("his_registration_id", hisRegistrationId); |
| | | map.put ("czybm", czybm); |
| | | map.put ("zflxbm", sqdh); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpindelmedicapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ksbm", ksbm); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamapplyinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("page", page); |
| | | map.put ("status", status); |
| | | map.put ("cardtype", cardtype); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamreportinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("wjzclrq", dto.getWjzclrq ()); |
| | | map.put ("sfkf", dto.getSfkf ()); |
| | | map.put ("yzid", dto.getYzid ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Examreportrecordinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamurgentinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getexamimageinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("cardtype", cardtype); |
| | | map.put ("mzorzy", mzorzy); |
| | | map.put ("ksbm", ksbm); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabapplyinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("pationid", pationid); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabreportinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | public AjaxResult Getlabgermrepinfo (String jybgid) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("jybgid", jybgid); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabgermrepinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | public AjaxResult Getlabgermdetailinfo (String jybgid) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("jybgid", jybgid); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabgermdetailinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("jybgid", jybgid); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlaburgentinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("jsrydm", jsrydm); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("jsyy", jsyy); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Labreportapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("pationid", pationid); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getlabreginfoinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("mxfyxmbm", dao.getMxfyxmbm ()); |
| | | map.put ("sfzhfy", dao.getSfzhfy ()); |
| | | map.put ("sl", dao.getSl ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Testcostapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("je", dao.getJe ()); |
| | | map.put ("sjje", dao.getSjje ()); |
| | | map.put ("details_mx", dao.getDetailsMx ()); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Testregapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getoutpatientcostinfo", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("ksrq", ksrq); |
| | | map.put ("pagecount", pagecount); |
| | | map.put ("page", page); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getoutaccountrecord", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | |
| | |
| | | map.put ("mzzybz", mzzybz); |
| | | map.put ("jsrq", jsrq); |
| | | map.put ("ksrq", ksrq); |
| | | String post = HttpClientUtils.sendPost (HIS_URL, map); |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Getpatientalterregrecord", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | | } |