|  | @ -202,6 +202,151 @@ public class YkyyEntranceService {
 | 
	
		
			
				|  |  |         return "success";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 检验信息列表
 | 
	
		
			
				|  |  |      * @param patient
 | 
	
		
			
				|  |  |      * @param page
 | 
	
		
			
				|  |  |      * @param size
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public JSONArray vlisReportMasterlist(String patient,Integer page,Integer size) throws Exception{
 | 
	
		
			
				|  |  |         PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
 | 
	
		
			
				|  |  |         if(patientMappingDO==null){
 | 
	
		
			
				|  |  |             return new JSONArray();
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String sql ="select * from VLIS_REPORT_MASTER where PATIENT_ID = '"+patientMappingDO.getMappingCode()+"' order by REPORT_TIME desc";
 | 
	
		
			
				|  |  |         Map<String,Object> params = new HashedMap();
 | 
	
		
			
				|  |  |         params.put("sql",sql);
 | 
	
		
			
				|  |  |         params.put("size",size);
 | 
	
		
			
				|  |  |         params.put("page",page);
 | 
	
		
			
				|  |  |         logger.info("vpacsReportList:"+sql);
 | 
	
		
			
				|  |  |         HttpResponse response = HttpUtils.doGet(url,params);
 | 
	
		
			
				|  |  |         String content = response.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+content);
 | 
	
		
			
				|  |  |         JSONObject rs = JSON.parseObject(content);
 | 
	
		
			
				|  |  |         Integer status = rs.getInteger("status");
 | 
	
		
			
				|  |  |         if(status!=null&&status == 200){
 | 
	
		
			
				|  |  |             return rs.getJSONArray("detailModelList");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return new JSONArray();
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 检验信息明细
 | 
	
		
			
				|  |  |      * @param REPORT_ID
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public JSONObject vlisReportMasterDetail(String REPORT_ID) throws Exception{
 | 
	
		
			
				|  |  |         String sql ="select * from VLIS_REPORT_MASTER where REPORT_ID = '"+REPORT_ID+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> params = new HashedMap();
 | 
	
		
			
				|  |  |         params.put("sql",sql);
 | 
	
		
			
				|  |  |         logger.info("vlisReportMasterDetail:"+sql);
 | 
	
		
			
				|  |  |         HttpResponse response = HttpUtils.doGet(url,params);
 | 
	
		
			
				|  |  |         String content = response.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+content);
 | 
	
		
			
				|  |  |         JSONObject rs = JSON.parseObject(content);
 | 
	
		
			
				|  |  |         Integer status = rs.getInteger("status");
 | 
	
		
			
				|  |  |         JSONObject res = new JSONObject();
 | 
	
		
			
				|  |  |         if(status!=null&&status == 200){
 | 
	
		
			
				|  |  |             res = rs.getJSONArray("detailModelList").getJSONObject(0);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //LIS 常规报告细视图
 | 
	
		
			
				|  |  |         String detail1 = "select * from VLIS_REPORT_DETAIL where REPORT_ID = '"+REPORT_ID+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> detailParams1 = new HashedMap();
 | 
	
		
			
				|  |  |         detailParams1.put("sql",detail1);
 | 
	
		
			
				|  |  |         logger.info("VLIS_REPORT_DETAIL:"+detail1);
 | 
	
		
			
				|  |  |         HttpResponse detailresponse1 = HttpUtils.doGet(url,detailParams1);
 | 
	
		
			
				|  |  |         String detailcontent1 = detailresponse1.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+detailcontent1);
 | 
	
		
			
				|  |  |         JSONObject detailrs1 = JSON.parseObject(detailcontent1);
 | 
	
		
			
				|  |  |         if(detailrs1.getInteger("status")!=null&&detailrs1.getInteger("status") == 200){
 | 
	
		
			
				|  |  |             res.put("detail1",detailrs1.getJSONArray("detailModelList"));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //LIS 药敏报告细视图
 | 
	
		
			
				|  |  |         String detail2 = "select * from VLIS_REPORT_DETAIL2 where REPORT_ID = '"+REPORT_ID+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> detailParams2 = new HashedMap();
 | 
	
		
			
				|  |  |         detailParams2.put("sql",detail2);
 | 
	
		
			
				|  |  |         logger.info("VLIS_REPORT_DETAIL2:"+detail2);
 | 
	
		
			
				|  |  |         HttpResponse detailresponse2 = HttpUtils.doGet(url,detailParams2);
 | 
	
		
			
				|  |  |         String detailcontent2 = detailresponse2.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+detailcontent2);
 | 
	
		
			
				|  |  |         JSONObject detailrs2 = JSON.parseObject(detailcontent2);
 | 
	
		
			
				|  |  |         if(detailrs2.getInteger("status")!=null&&detailrs2.getInteger("status") == 200){
 | 
	
		
			
				|  |  |             res.put("detail2",detailrs2.getJSONArray("detailModelList"));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //LIS 细菌培养说明细视图
 | 
	
		
			
				|  |  | /*        String detail3 = "select * from VLIS_REPORT_DETAIL3 where REPORT_ID = '"+REPORT_ID+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> detailParams3 = new HashedMap();
 | 
	
		
			
				|  |  |         detailParams3.put("sql",detail3);
 | 
	
		
			
				|  |  |         logger.info("VLIS_REPORT_DETAIL:"+detail3);
 | 
	
		
			
				|  |  |         HttpResponse detailresponse3 = HttpUtils.doGet(url,detailParams3);
 | 
	
		
			
				|  |  |         String detailcontent3 = detailresponse3.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+detailcontent3);
 | 
	
		
			
				|  |  |         JSONObject detailrs3 = JSON.parseObject(detailcontent3);
 | 
	
		
			
				|  |  |         if(detailrs3.getInteger("status")!=null&&detailrs3.getInteger("status") == 200){
 | 
	
		
			
				|  |  |             res.put("detail3",detailrs3.getJSONArray("detailModelList"));
 | 
	
		
			
				|  |  |         }*/
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         return res;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 检查信息列表
 | 
	
		
			
				|  |  |      * @param patient
 | 
	
		
			
				|  |  |      * @param page
 | 
	
		
			
				|  |  |      * @param size
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public JSONArray vpacsReportList(String patient,Integer page,Integer size) throws Exception{
 | 
	
		
			
				|  |  |         PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
 | 
	
		
			
				|  |  |         if(patientMappingDO==null){
 | 
	
		
			
				|  |  |             return null;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String sql ="select * from VPACS_REPORT where PATIENT_ID = '"+patientMappingDO.getMappingCode()+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> params = new HashedMap();
 | 
	
		
			
				|  |  |         params.put("sql",sql);
 | 
	
		
			
				|  |  |         params.put("size",size);
 | 
	
		
			
				|  |  |         params.put("page",page);
 | 
	
		
			
				|  |  |         logger.info("vpacsReportList:"+sql);
 | 
	
		
			
				|  |  |         HttpResponse response = HttpUtils.doGet(url,params);
 | 
	
		
			
				|  |  |         String content = response.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+content);
 | 
	
		
			
				|  |  |         JSONObject rs = JSON.parseObject(content);
 | 
	
		
			
				|  |  |         Integer status = rs.getInteger("status");
 | 
	
		
			
				|  |  |         if(status!=null&&status == 200){
 | 
	
		
			
				|  |  |             return rs.getJSONArray("detailModelList");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return new JSONArray();
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 检查信息明细
 | 
	
		
			
				|  |  |      * @param REPORT_ID
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public JSONObject vpacsReportDetail(String REPORT_ID) throws Exception{
 | 
	
		
			
				|  |  |         String sql ="select * from VPACS_REPORT where REPORT_ID = '"+REPORT_ID+"'";
 | 
	
		
			
				|  |  |         Map<String,Object> params = new HashedMap();
 | 
	
		
			
				|  |  |         params.put("sql",sql);
 | 
	
		
			
				|  |  |         logger.info("vpacsReportDetail:"+sql);
 | 
	
		
			
				|  |  |         HttpResponse response = HttpUtils.doGet(url,params);
 | 
	
		
			
				|  |  |         String content = response.getContent();
 | 
	
		
			
				|  |  |         logger.info("response:"+content);
 | 
	
		
			
				|  |  |         JSONObject rs = JSON.parseObject(content);
 | 
	
		
			
				|  |  |         Integer status = rs.getInteger("status");
 | 
	
		
			
				|  |  |         if(status!=null&&status == 200){
 | 
	
		
			
				|  |  |             return rs.getJSONArray("detailModelList").getJSONObject(0);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return new JSONObject();
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 患者门诊就诊记录
 |