| | |
| | | package com.ltkj.web.controller.his; |
| | | |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.hisDto.*; |
| | |
| | | // @ApiOperation(value = "新增/修改门诊注册信息") |
| | | public AjaxResult Outpincreateapply (TjCustomer customer) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | if (null != customer.getCusId ()) { |
| | | map.put ("pationid", customer.getCusId ()); |
| | | if (null != customer.getPationId () && !customer.getPationId().equals("0")) { |
| | | map.put ("pationid", customer.getPationId ()); |
| | | } else { |
| | | map.put ("pationid", null); |
| | | } |
| | | map.put ("brxm", customer.getCusName ()); |
| | | map.put ("brxb", customer.getCusSex ()); |
| | | map.put ("csrq", customer.getCusBrithday ()); |
| | | 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 ("sfzh", customer.getCusIdcard ()); |
| | | map.put ("jhrxm", null); |
| | | map.put ("jhrsfzh", null); |
| | | map.put ("mz", customer.getCusNational ()); |
| | | map.put ("zy", customer.getCareer ()); |
| | | map.put ("mz", null); |
| | | map.put ("zy","职员"); |
| | | map.put ("fbbm", null); |
| | | map.put ("czy", customer.getCreateBy ()); |
| | | map.put ("jkkkh", customer.getIndexCard ()); |
| | | map.put ("mindex_id", customer.getIndexCard ()); |
| | | map.put ("czy", "00029"); |
| | | map.put ("jkkkh",null); |
| | | map.put ("mindex_id",null); |
| | | // map.put ("zybm","职员"); |
| | | //职业编码 |
| | | String post = HttpClientUtils.sendPost (HIS_URL+"Outpincreateapply", map); |
| | | return AjaxResult.success ().put ("data", post); |
| | | } |
| | |
| | | //jzrq = "接诊日期" |
| | | //jzysbm = "接诊医师" |
| | | public AjaxResult Outpinconapply (String jzh, |
| | | Date jzrq, |
| | | String jzrq, |
| | | String jzysbm) { |
| | | Map<String, Object> map = new HashMap<> (); |
| | | map.put ("his_registration_id", jzh); |