| 
					
				 | 
			
			
				@ -951,6 +951,240 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("updatePreStatus json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取icd10字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode spellCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetICD10Dict(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetICD10Dict"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetICD10Dict params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetICD10Dict json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取药品字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode spellCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetDrugDict(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetDrugDict"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetDrugDict params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetDrugDict json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  查询药品用药方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetMedicineUsed(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetMedicineUsed"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetMedicineUsed params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetMedicineUsed json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取药品用药频次字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetFrequencyDict()throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetFrequencyDict"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <certificate>"+key+"</certificate> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String condition =""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        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("GetFrequencyDict params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetFrequencyDict json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取检查部位字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String  GetCheckBody()throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetCheckBody"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <certificate>"+key+"</certificate> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "</root>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String condition =""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        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(" GetCheckBody params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(" GetCheckBody json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取检查单据信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetExamApply(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetExamApply"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetExamApply params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(" GetExamApply json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     *  获取检验单据信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String GetLisApply(String spellCode)throws Exception{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String api = "GetLisApply"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "<root> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <serverName>"+api+"</serverName>  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <format>xml</format>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <callOperator></callOperator> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                "   <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); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("GetLisApply params:"+params.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String xml = getXzzxWebServiceInfo("CallInterface",params,getSelectUrl()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        XMLSerializer xmlSerializer = new XMLSerializer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String json = xmlSerializer.read(xml).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(" GetLisApply json:"+json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//=====================微信模板消息推送=================================== 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String sendMes(String wxId,String patient,String cardNo,String first,String noticeContent,String remark,String redirectUrl){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1119,7 +1353,6 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return array; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1817,6 +2050,178 @@ public class XzzxEntranceService{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取icd10字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectIcd10Dict(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getICD10Dict?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("add_code",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("code",jsonObject.getString("ICD10_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("d_code",jsonObject.getString("")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("name",jsonObject.getString("ICD10_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("valid_flag",jsonObject.getString("VALID_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("icd10_type",jsonObject.getString("ICD10_TYPE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("icd10_class",jsonObject.getString("ICD10_CLASS")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取icd10字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectDrugDict(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getDrugDict?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("charge_code",jsonObject.getString("PHYSIC_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("serial",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("group_no",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("drugname",jsonObject.getString("PHYSIC_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("dosage",jsonObject.getString("DOSE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("mini_unit",jsonObject.getString("MIN_DOSE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("pack_size",jsonObject.getString("PACK_SPEC")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("retprice",jsonObject.getString("RETAIL_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("specification",jsonObject.getString("PHYSIC_SPEC")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("pack_retprice",jsonObject.getString("RETAIL_PRICE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("stock_amount",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("visible_flag",jsonObject.getString("VALID_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("drug_flag",jsonObject.getString("OTC_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("pack_unit",jsonObject.getString("PACK_SPEC")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("manu_name",jsonObject.getString("SUPPLIER_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("weigh_unit",jsonObject.getString("DOSE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("vol_unit",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("mini_unit_name",jsonObject.getString("PHYSIC_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("pack_unit_name",jsonObject.getString("PRICE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("weigh_unit_name",jsonObject.getString("DOSE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("vol_unit_name",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("win_no",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("jbyw",jsonObject.getString("BASE_PHYSIC_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("gwyp",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_dosage",jsonObject.getString("DOSEAGE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_supply",jsonObject.getString("USAGE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_supply_name",jsonObject.getString("USAGE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_unit",jsonObject.getString("DOSEAGE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_unit_name",jsonObject.getString("DOSEAGE_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_usage",jsonObject.getString("FREQUENCY")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("bz_usage_name",jsonObject.getString("FREQUENCY")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("QUANTITY",jsonObject.getString("QUANTITY")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("DAY_COUNT",jsonObject.getString("DAY_COUNT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 查询药品用药方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param spellCode 拼音码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectMedicineUsed(String spellCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getMedicineUsed?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("d_code",jsonObject.getString("ITEM_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("supply_code",jsonObject.getString("TAKE_MEDICINE_WAYS_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("supply_name",jsonObject.getString("TAKE_MEDICINE_WAYS_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("py_code",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("del_flag",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("yb_code",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("yb_name",jsonObject.getString("MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("print_name",jsonObject.getString("TAKE_MEDICINE_WAYS_NAME")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取药品用药频次字典 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray selectFrequencyDict() throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String response=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String url = entranceUrl+"getFrequencyDict"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        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("DAILY_TIMES",jsonObject.getString("FREQ_COUNT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_CODE",jsonObject.getString("FREQ_DESCRIBE_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_DESCRIBE",jsonObject.getString("FREQ_DESCRIBE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("PHYSIC_NOTUSE_FLAG",jsonObject.getString("PHYSIC_NOTUSE_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_NAME",jsonObject.getString("FREQ_MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("INSUR_FREQ_DESCRIBE",jsonObject.getString("INSUR_FREQ_DESCRIBE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_INTERVAL",jsonObject.getString("FREQ_INTERVAL")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_INTERVAL_UNIT",jsonObject.getString("FREQ_INTERVAL_UNIT")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("DEFAULT_SCHEDULE",jsonObject.getString("DEFAULT_SCHEDULE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("EXECUTE_TIME_FLAG",jsonObject.getString("EXECUTE_TIME_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("DAY_FLAG",jsonObject.getString("DAY_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_FLAG",jsonObject.getString("WEEK_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_1",jsonObject.getString("WEEK_1")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_2",jsonObject.getString("WEEK_2")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_3",jsonObject.getString("WEEK_3")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_4",jsonObject.getString("WEEK_4")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_5",jsonObject.getString("WEEK_5")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_6",jsonObject.getString("WEEK_6")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEK_7",jsonObject.getString("WEEK_7")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("SPELL_CODE",jsonObject.getString("SPELL_CODE")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("VALID_FLAG",jsonObject.getString("VALID_FLAG")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("WEEKLY_TIMES",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("IS_OP_IP",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("HOSP_CODE",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                object1.put("FREQ_SP",jsonObject.getString("MEMO")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(object1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//=====================hospital应用调用entrance应用============end================= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |