| 
					
				 | 
			
			
				@ -1096,7 +1096,7 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String  GetCheckBody()throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String  GetCheckBody(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetCheckBody"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1106,9 +1106,11 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <certificate>"+key+"</certificate> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String condition =""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!StringUtils.isEmpty(spellCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            condition = "<spell_code>"+spellCode+"</spell_code>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root>"+condition+"</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Map<String,String> params = new HashedMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.put("msgHeader",msgHeader); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.put("msgBody",msgBody); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1185,6 +1187,68 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(" GetLisApply json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 组装检查检验项目参数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String saveInspectToHospital(String IoFlag,String PayCardNo,String NullahNumber,String ApplyDept,String ApplyDoctor,List<WlyyInspectionDO> wlyyInspectionDOS) throws  Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "saveInspectToHospital"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <certificate>"+key+"</certificate> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String condition =""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition = "<IoFlag>"+IoFlag+"</IoFlag>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuffer inspectionList = new StringBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String applyDoctor = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition += "<PayCardNo>"+PayCardNo+"</PayCardNo>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition += "<NullahNumber>"+NullahNumber+"</NullahNumber>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition += "<ApplyDept>"+ApplyDept+"</ApplyDept>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition += "<ApplyDoctor>"+ApplyDoctor+"</ApplyDoctor>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (WlyyInspectionDO wlyyInspectionDO:wlyyInspectionDOS){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<PresInfo>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<ClinicCode>"+wlyyInspectionDO.getCode()+"</ClinicCode>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<ClinicNum>"+wlyyInspectionDO.getQuantity()+"</ClinicNum>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<ExecuteDept>"+wlyyInspectionDO.getDept()+"</ExecuteDept>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<CheckResult>"+wlyyInspectionDO.getYwjcResult()+"</CheckResult>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<CheckPart>"+wlyyInspectionDO.getCheckPart()+"</CheckPart>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<SickSynptom>"+"临床症状和体征 "+"</SickSynptom>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<Height>"+"身高"+"</Height>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<Weight>"+"体重"+"</Weight>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<SensitiveName>"+"过敏史"+"</SensitiveName>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<SampleCode>"+"标本类型"+"</SampleCode>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<ChiefComplaint>"+"主诉"+"</ChiefComplaint>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<MedicalHistory>"+"病史"+"</MedicalHistory>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<InspectionPurpose>"+wlyyInspectionDO.getGoal()+"</InspectionPurpose>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<PastHistory>"+"既往史"+"</PastHistory>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<LisCheckResult>"+"历史检验相关结果(化验单)"+"</LisCheckResult>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<InspectionResult>"+"相关辅助检查"+"</InspectionResult>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<InspectionNotice>"+"注意事项"+"</InspectionNotice>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("<Memo>"+wlyyInspectionDO.getCode()+"</Memo>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            inspectionList.append("</PresInfo>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        condition += "<PresDetail>" +inspectionList.toString()+"</PresDetail>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root>"+condition+"</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Map<String,String> params = new HashedMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.put("msgHeader",msgHeader); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        params.put("msgBody",msgBody); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("saveInspectToHospital params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(" saveInspectToHospital json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//=====================微信模板消息推送=================================== 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String sendMes(String wxId,String patient,String cardNo,String first,String noticeContent,String remark,String redirectUrl){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -2222,6 +2286,138 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查询检查部位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectCheckBody(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getCheckBody?spellCode="+spellCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        response = httpClientUtil.get(url,"GBK"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject object = JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray jsonArray = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(object.getInteger("status")==200){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String obj = object.getString("obj"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONArray array = JSONArray.parseArray(obj).getJSONArray(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (int i=0;i<array.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject jsonObject = array.getJSONObject(i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("@action","select"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("name",jsonObject.getString("NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("code",jsonObject.getString("CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("data",jsonObject.getString("DATA")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("memo",jsonObject.getString("MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("wb_code",jsonObject.getString("WBZX_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("sequence",jsonObject.getString("SEQUENCE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("valid",jsonObject.getString("VALID")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查询检查项目 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码或药品名字 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        public JSONArray selectExamApply(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getExamApply?spellCode="+spellCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        response = httpClientUtil.get(url,"GBK"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject object = JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray jsonArray = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(object.getInteger("status")==200){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String obj = object.getString("obj"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONArray array = JSONArray.parseArray(obj).getJSONArray(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (int i=0;i<array.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject jsonObject = array.getJSONObject(i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("@action","select"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("name",jsonObject.getString("ITEM_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("code",jsonObject.getString("ITEM_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("type",jsonObject.getString("ITEM_CLASS")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("charge_amount",jsonObject.getString("FACT_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("child_amount",jsonObject.getString("CHILD_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("charge_unit",jsonObject.getString("UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("wb_code",jsonObject.getString("FIVE_PEN_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("memo",jsonObject.getString("MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查询检验项目 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码或药品名字 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectLisApply(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getLisApply?spellCode="+spellCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        response = httpClientUtil.get(url,"GBK"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject object = JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray jsonArray = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(object.getInteger("status")==200){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String obj = object.getString("obj"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONArray array = JSONArray.parseArray(obj).getJSONArray(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            for (int i=0;i<array.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject jsonObject = array.getJSONObject(i); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject object1 = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("@action","select"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("name",jsonObject.getString("ITEM_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("code",jsonObject.getString("ITEM_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("type",jsonObject.getString("ITEM_CLASS")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("charge_amount",jsonObject.getString("FACT_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("child_amount",jsonObject.getString("CHILD_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("charge_unit",jsonObject.getString("UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("wb_code",jsonObject.getString("FIVE_PEN_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("memo",jsonObject.getString("MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 * 检查检验项目同步his 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 * @param msgBody 拼音码或药品名字 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				public Map checkSyncHis(String msgBody) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    Map resultMap=new HashMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    String url = entranceUrl+"saveInspectToHospital?msgBody="+msgBody; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    response = httpClientUtil.get(url,"GBK"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    JSONObject object = JSONObject.parseObject(response); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    if(object.getInteger("status")==200){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String obj = object.getString("obj"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject rootObject = JSONObject.parseObject(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (null!=rootObject&&"0".equalsIgnoreCase(rootObject.getString("code"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("success",rootObject.getString("success")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("code",rootObject.getString("code")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("msg",rootObject.getString("msg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject dataObj = JSONObject.parseObject(rootObject.getString("data")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (null!=dataObj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject presDetailobj = JSONObject.parseObject(dataObj.getString("PresDetail")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                resultMap.put("msg",presDetailobj.getString("PresNo")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                logger.info("his医嘱号:"+presDetailobj.getString("PresNo")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if(null!=rootObject&&!"0".equalsIgnoreCase(rootObject.getString("code"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("success",rootObject.getString("success")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("code",rootObject.getString("code")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("msg",rootObject.getString("msg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resultMap.put("success","obj转化失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resultMap.put("success","调用entrance接口返回失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    return resultMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//=====================hospital应用调用entrance应用============end================= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |