| 
					
				 | 
			
			
				@ -152,6 +152,9 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public net.sf.json.JSONObject qutpatientBalance(String cardNo, boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp =""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid=BS15017; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("EntranceService "+fid+" cardNo :"+cardNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(demoFlag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp=getJosnFileResullt(fid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -191,6 +194,8 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray BS15018(String SOCIAL_NO, String CARD_NO,boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid = BS15018; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("EntranceService "+fid+" SOCIAL_NO :"+SOCIAL_NO+"CARD_NO:"+CARD_NO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = getJosnFileResullt(fid); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -503,6 +508,8 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public  List<WlyyOutpatientVO> BS30025(String PAT_NO,String conNo,String startTime,String endTime,boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid = BS30025; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("EntranceService "+fid+" PAT_NO :"+PAT_NO+" conNo:"+conNo+" startTime:"+startTime+" endTime:"+endTime ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String orgCode = "350211A1002"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String orgName = "厦门市中山医院"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -644,6 +651,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sbs.append("<MsgInfo><endNum>1000</endNum><Msg></Msg><startNum>1</startNum></MsgInfo></ESBEntry>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resp= MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info(fid+" resp:"+resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return resp; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -690,6 +698,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info(fid+" resp:"+resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ConvertUtil.convertListEnvelopInBodyRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -726,6 +735,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info(fid+" resp:"+resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ConvertUtil.convertListEnvelopInBodyRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -743,6 +753,8 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public net.sf.json.JSONObject BS10111(String card_no, String doctor, String dept, String charge_type, String win_no, boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid=BS10111; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("EntranceService "+fid+" card_no :"+card_no+" doctor:"+doctor+" dept:"+dept+" charge_type:"+charge_type+" win_no:"+win_no ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = getJosnFileResullt(fid); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -759,6 +771,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //超时等待时间150s 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info(fid+" resp:"+resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ConvertUtil.convertListEnvelopInRequest(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -772,6 +785,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public net.sf.json.JSONObject BS10112(String jsonData, boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid=BS10112; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logger.info("EntranceService"+fid+" jsonData :"+jsonData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ObjectMapper objectMapper = new ObjectMapper(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyHisPrescriptionVO> patientSubscribeJkedus = objectMapper.readValue(jsonData,  new TypeReference<List<WlyyHisPrescriptionVO>>(){}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp=""; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -824,6 +838,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sbs.append("</root>]]></Msg><startNum>1</startNum></MsgInfo></ESBEntry>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            resp = MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            logger.info(fid+" resp:"+resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ConvertUtil.convertListEnvelopInRequestBS10112(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |