|  | @ -28,6 +28,7 @@ import com.yihu.jw.hospital.mapping.dao.PatientMappingDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.dao.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.service.entrance.util.AES;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.base.doctor.BaseDoctorVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.hospital.prescription.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.common.IdCardUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.date.DateUtil;
 | 
	
	
		
			
				|  | @ -1206,7 +1207,6 @@ public class XzzxEntranceService{
 | 
	
		
			
				|  |  |         String condition ="";
 | 
	
		
			
				|  |  |         condition = "<IoFlag>"+IoFlag+"</IoFlag>";
 | 
	
		
			
				|  |  |         StringBuffer inspectionList = new StringBuffer();
 | 
	
		
			
				|  |  |         String applyDoctor = "";
 | 
	
		
			
				|  |  |         condition += "<PayCardNo>"+PayCardNo+"</PayCardNo>";
 | 
	
		
			
				|  |  |         condition += "<NullahNumber>"+NullahNumber+"</NullahNumber>";
 | 
	
		
			
				|  |  |         condition += "<ApplyDept>"+ApplyDept+"</ApplyDept>";
 | 
	
	
		
			
				|  | @ -1224,11 +1224,11 @@ public class XzzxEntranceService{
 | 
	
		
			
				|  |  |             inspectionList.append("<SensitiveName>"+"过敏史"+"</SensitiveName>");
 | 
	
		
			
				|  |  |             inspectionList.append("<SampleCode>"+"标本类型"+"</SampleCode>");
 | 
	
		
			
				|  |  |             inspectionList.append("<ChiefComplaint>"+"主诉"+"</ChiefComplaint>");
 | 
	
		
			
				|  |  |             inspectionList.append("<MedicalHistory>"+"病史"+"</MedicalHistory>");
 | 
	
		
			
				|  |  |             inspectionList.append("<MedicalHistory>"+wlyyInspectionDO.getInformation()+"</MedicalHistory>");
 | 
	
		
			
				|  |  |             inspectionList.append("<InspectionPurpose>"+wlyyInspectionDO.getGoal()+"</InspectionPurpose>");
 | 
	
		
			
				|  |  |             inspectionList.append("<PastHistory>"+"既往史"+"</PastHistory>");
 | 
	
		
			
				|  |  |             inspectionList.append("<LisCheckResult>"+"历史检验相关结果(化验单)"+"</LisCheckResult>");
 | 
	
		
			
				|  |  |             inspectionList.append("<InspectionResult>"+"相关辅助检查"+"</InspectionResult>");
 | 
	
		
			
				|  |  |             inspectionList.append("<LisCheckResult>"+wlyyInspectionDO.getYwjcResult()+"</LisCheckResult>");
 | 
	
		
			
				|  |  |             inspectionList.append("<InspectionResult>"+wlyyInspectionDO.getAdresult()+"</InspectionResult>");
 | 
	
		
			
				|  |  |             inspectionList.append("<InspectionNotice>"+"注意事项"+"</InspectionNotice>");
 | 
	
		
			
				|  |  |             inspectionList.append("<Memo>"+wlyyInspectionDO.getCode()+"</Memo>");
 | 
	
		
			
				|  |  |             inspectionList.append("</PresInfo>");
 | 
	
	
		
			
				|  | @ -1247,7 +1247,23 @@ public class XzzxEntranceService{
 | 
	
		
			
				|  |  |         return json;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     /*
 | 
	
		
			
				|  |  |      *合理用药审核接口
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public String checkPrescription(JSONObject patientAndDoctor,List<WlyyPrescriptionInfoDO> infos){
 | 
	
		
			
				|  |  |         String checkDate = "";
 | 
	
		
			
				|  |  |         String postBody = "<CheckInput TAG=\"2\" INPATIENT=\"否\">"+checkDate+"</CheckInput>";
 | 
	
		
			
				|  |  |     return  null;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //组装审药参数
 | 
	
		
			
				|  |  |     public void checkInpit(String prescriptionId){
 | 
	
		
			
				|  |  |         JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |         WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(prescriptionId);
 | 
	
		
			
				|  |  |         if(null!=prescriptionDO){
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //=====================微信模板消息推送===================================
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -2322,7 +2338,7 @@ public class XzzxEntranceService{
 | 
	
		
			
				|  |  |      * @param spellCode 拼音码或药品名字
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |         public JSONArray selectExamApply(String spellCode) throws Exception {
 | 
	
		
			
				|  |  |     public JSONArray selectExamApply(String spellCode) throws Exception {
 | 
	
		
			
				|  |  |         String response="";
 | 
	
		
			
				|  |  |         String url = entranceUrl+"getExamApply?spellCode="+spellCode;
 | 
	
		
			
				|  |  |         response = httpClientUtil.get(url,"GBK");
 | 
	
	
		
			
				|  | @ -2383,13 +2399,15 @@ public class XzzxEntranceService{
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | /**
 | 
	
		
			
				|  |  |  * 检查检验项目同步his
 | 
	
		
			
				|  |  |  * @param msgBody 拼音码或药品名字
 | 
	
		
			
				|  |  |  * @param
 | 
	
		
			
				|  |  |  * @return
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | public Map checkSyncHis(String msgBody) throws Exception {
 | 
	
		
			
				|  |  | public Map checkSyncHis(String IoFlag,String PayCardNo,String NullahNumber,String ApplyDept,String ApplyDoctor,String wlyyInspectionS) throws Exception {
 | 
	
		
			
				|  |  |     String response="";
 | 
	
		
			
				|  |  |     Map resultMap=new HashMap();
 | 
	
		
			
				|  |  |     String url = entranceUrl+"saveInspectToHospital?msgBody="+msgBody;
 | 
	
		
			
				|  |  |     String url = entranceUrl+"saveInspectToHospital?IoFlag="+IoFlag+"&PayCardNo="+PayCardNo+"&NullahNumber="+NullahNumber+
 | 
	
		
			
				|  |  |             "&ApplyDept="+ApplyDept+
 | 
	
		
			
				|  |  |             "&ApplyDoctor="+ApplyDoctor+"&wlyyInspectionS="+wlyyInspectionS;
 | 
	
		
			
				|  |  |     response = httpClientUtil.get(url,"GBK");
 | 
	
		
			
				|  |  |     JSONObject object = JSONObject.parseObject(response);
 | 
	
		
			
				|  |  |     if(object.getInteger("status")==200){
 |