| 
					
				 | 
			
			
				@ -1250,7 +1250,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                outpatientDao.save(outpatientDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //调用电子病历注册 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                manageType =2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                registDianziBingli(outPatientId,basePatientDO,manageType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                registDianziBingli(outpatientDO,basePatientDO,manageType,registerDO.getRegisterNo(),registerDO.getConNo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1288,7 +1288,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            registerDO.setCreateTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            registerDO.setDate(DateUtil.dateToStr(new Date(),"yyyy-MM-dd")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            patientRegisterDao.save(registerDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //调用电子病历注册 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            manageType = 1;//处理类型(1-新增 2-修改 3-删除) 必填 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            registDianziBingli(outpatientDO,basePatientDO,manageType,registerDO.getRegisterNo(),registerDO.getConNo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("-2".equals(rsCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1316,11 +1319,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            registerDO.setDate(DateUtil.dateToStr(new Date(),"yyyy-MM-dd")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            patientRegisterDao.save(registerDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        manageType = 1;//处理类型(1-新增 2-修改 3-删除) 必填 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //调用电子病历注册 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            manageType = 1;//处理类型(1-新增 2-修改 3-删除) 必填 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            registDianziBingli(outpatientDO,basePatientDO,manageType,registerDO.getRegisterNo(),registerDO.getConNo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        registDianziBingli(outPatientId,basePatientDO,manageType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //保存日志 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1337,93 +1341,168 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String registDianziBingli(String outPatientId,BasePatientDO basePatientDO,Integer manageType) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String registDianziBingli(WlyyOutpatientDO outpatientDO,BasePatientDO basePatientDO,Integer manageType,String RegisterSN,String registerCon) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //调用电子病历接口注册居民信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String patientMappingCode =  patientMappingService.findHisPatNoByIdCard(basePatientDO.getIdcard()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            DoctorMappingDO doctorMappingDO = doctorMappingService.findMappingCode(outpatientDO.getDoctor(),outpatientDO.getHospital()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Map<String,String> params = new HashedMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            params.put("type","PatientInfo"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String xmlStr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<HtRequest >" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientInfo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RecordFlow>"+outPatientId+"</RecordFlow >" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PID>"+patientMappingCode+"</PID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<InsuranceNo>"+basePatientDO.getIdcard()+"</InsuranceNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientName>"+basePatientDO.getName()+"</PatientName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<TmpFlag>正式</TmpFlag>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastName>"+basePatientDO.getName().substring(1,basePatientDO.getName().length())+"</LastName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FirstName>"+basePatientDO.getName().substring(0,1)+"</FirstName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PY>"+ PinYinUtils.getUpEname(basePatientDO.getName())+"</PY>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<WB></WB>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String _xmlStr="<?xml version='1.0' encoding='UTF-8'?>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<HtRequest>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OutRegister>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RecordFlow>"+outpatientDO.getId()+"</RecordFlow>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterSN>"+RegisterSN+"</RegisterSN>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<TreatDate>"+DateUtil.getStringDate("yyyyMMdd")+"</TreatDate>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterDeptCode>"+outpatientDO.getDept()+"</RegisterDeptCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterDeptName>"+outpatientDO.getDeptName()+"</RegisterDeptName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterDoctorID>"+doctorMappingDO.getMappingCode()+"</RegisterDoctorID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterDoctorName>"+doctorMappingDO.getDoctorName()+"</RegisterDoctorName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<DutyID></DutyID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<DutyName></DutyName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OutPatientTime></OutPatientTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NumClassCode></NumClassCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NumClassName></NumClassName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<JoinGroupCode></JoinGroupCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<JoinGroupName></JoinGroupName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NumClassNO></NumClassNO>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<AppointmentDateTime></AppointmentDateTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<AppointSN></AppointSN>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Pid>"+patientMappingCode+"</Pid>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<CardNO>"+outpatientDO.getCardNo()+"</CardNO>\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientName>"+basePatientDO.getName()+"</PatientName>"+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<SexCode>"+basePatientDO.getSex()+"</SexCode>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(1 == basePatientDO.getSex()){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                xmlStr = xmlStr + "<Sex>男</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                xmlStr = xmlStr +  "<Sex>女</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            xmlStr = xmlStr +    "<DateOfBirth>"+DateUtil.dateToStrShort(IdCardUtil.getBirthdayForIdcard(basePatientDO.getIdcard()))+"</DateOfBirth>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<TimeOfBirth></TimeOfBirth>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MarriageStatusCode></MarriageStatusCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MarriageStatus></MarriageStatus>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OccupationCode></OccupationCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Occupation></Occupation>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NationalityCode></NationalityCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Nationality></Nationality>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<CountryCode>CN</CountryCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Country>中国</Country>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FormalSchoolingCode></FormalSchoolingCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FormalSchooling></FormalSchooling>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Religion></Religion>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BirthPlaceCode></BirthPlaceCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BirthPlace></BirthPlace>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NativePlaceCode></NativePlaceCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NativePlace></NativePlace>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BloodType></BloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<CertTypeCode>111</CertTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<CertType>身份证</CertType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<CertNo>"+basePatientDO.getIdcard()+"</CertNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientClassCode></PatientClassCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if(1 == basePatientDO.getSex()){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        _xmlStr = _xmlStr + "<Sex>男</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        _xmlStr = _xmlStr +  "<Sex>女</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    _xmlStr = _xmlStr + "<Age>"+IdCardUtil.getAgeForIdcard(basePatientDO.getIdcard())+"</Age>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<AgeDesc>"+IdCardUtil.getAgeForIdcard(basePatientDO.getIdcard())+"岁</AgeDesc>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientClass></PatientClass>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FeeTypeCode></FeeTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FeeType></FeeType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Company></Company>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PublicExpenseNo></PublicExpenseNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContractUnitCode></ContractUnitCode> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContractUnit></ContractUnit>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BusinessAddressCode></BusinessAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BusinessAddress></BusinessAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BusinessPostCode></BusinessPostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BusinessPhone></BusinessPhone>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<HomeAddressCode></HomeAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<HomeAddress></HomeAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<HomePostCode></HomePostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MobilePhone></MobilePhone>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Contact></Contact>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RelationCode></RelationCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Relation></Relation>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContactEmail></ContactEmail>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContactMethod></ContactMethod>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<VIPType></VIPType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OperatorID></OperatorID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Operator></Operator>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OperatorTime>0</OperatorTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Available></Available>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<FeeTypeName></FeeTypeName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MedicalInsuranceType></MedicalInsuranceType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<IsFirst>N</IsFirst>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterDateTime>20200121</RegisterDateTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterUserID>"+patientMappingCode+"</RegisterUserID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterUserName></RegisterUserName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OutStatus>20</OutStatus>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ModifierID></ModifierID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Modifier></Modifier>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ModifyTime></ModifyTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RetreatDateTime></RetreatDateTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RetreatUserID></RetreatUserID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RetreatUserName></RetreatUserName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PaymentMethodCode></PaymentMethodCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PaymentMethod></PaymentMethod>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterFee></RegisterFee>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MedicalFee></MedicalFee>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<OtherFee></OtherFee>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<TotalFee></TotalFee>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MedicalFloor>N</MedicalFloor>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<MedicalAddress></MedicalAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastDeptCode></LastDeptCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastDeptName></LastDeptName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastDoctorID></LastDoctorID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastDoctorName></LastDoctorName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastTreatDateTime></LastTreatDateTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<LastOpid></LastOpid>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NumTypeCode>0</NumTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<NumTypeName></NumTypeName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisterSource>1</RegisterSource>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<AcctNO></AcctNO>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<IsAcct>N</IsAcct>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ManageType>"+manageType+"</ManageType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<InsuranceTypeCode></InsuranceTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<InsuranceType></InsuranceType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisteredAddressCode></RegisteredAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisteredAddress></RegisteredAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContactAddressCode></ContactAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContactAddress></ContactAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RegisteredPostCode></RegisteredPostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<ContactPostcode></ContactPostcode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<BloodType></BloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RhBloodType></RhBloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "</PatientInfo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "</HtRequest>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<Times>"+registerCon+"</Times>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "</OutRegister>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PatientInfo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<RecordFlow>"+outpatientDO.getId()+"</RecordFlow>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "<PID>"+patientMappingCode+"</PID></PatientInfo></HtRequest>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            String xmlStr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<HtRequest >" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PatientInfo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RecordFlow>"+outPatientId+"</RecordFlow >" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PID>"+patientMappingCode+"</PID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<InsuranceNo>"+basePatientDO.getIdcard()+"</InsuranceNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PatientName>"+basePatientDO.getName()+"</PatientName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<TmpFlag>正式</TmpFlag>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<LastName>"+basePatientDO.getName().substring(1,basePatientDO.getName().length())+"</LastName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<FirstName>"+basePatientDO.getName().substring(0,1)+"</FirstName>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PY>"+ PinYinUtils.getUpEname(basePatientDO.getName())+"</PY>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<WB></WB>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<SexCode>"+basePatientDO.getSex()+"</SexCode>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            if(1 == basePatientDO.getSex()){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                xmlStr = xmlStr + "<Sex>男</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                xmlStr = xmlStr +  "<Sex>女</Sex>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            xmlStr = xmlStr +    "<DateOfBirth>"+DateUtil.dateToStrShort(IdCardUtil.getBirthdayForIdcard(basePatientDO.getIdcard()))+"</DateOfBirth>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<TimeOfBirth></TimeOfBirth>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<MarriageStatusCode></MarriageStatusCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<MarriageStatus></MarriageStatus>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<OccupationCode></OccupationCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Occupation></Occupation>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<NationalityCode></NationalityCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Nationality></Nationality>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<CountryCode>CN</CountryCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Country>中国</Country>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<FormalSchoolingCode></FormalSchoolingCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<FormalSchooling></FormalSchooling>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Religion></Religion>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BirthPlaceCode></BirthPlaceCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BirthPlace></BirthPlace>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<NativePlaceCode></NativePlaceCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<NativePlace></NativePlace>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BloodType></BloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<CertTypeCode>111</CertTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<CertType>身份证</CertType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<CertNo>"+basePatientDO.getIdcard()+"</CertNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PatientClassCode></PatientClassCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PatientClass></PatientClass>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<FeeTypeCode></FeeTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<FeeType></FeeType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Company></Company>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<PublicExpenseNo></PublicExpenseNo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContractUnitCode></ContractUnitCode> " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContractUnit></ContractUnit>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BusinessAddressCode></BusinessAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BusinessAddress></BusinessAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BusinessPostCode></BusinessPostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BusinessPhone></BusinessPhone>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<HomeAddressCode></HomeAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<HomeAddress></HomeAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<HomePostCode></HomePostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<MobilePhone></MobilePhone>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Contact></Contact>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RelationCode></RelationCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Relation></Relation>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContactEmail></ContactEmail>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContactMethod></ContactMethod>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<VIPType></VIPType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<OperatorID></OperatorID>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Operator></Operator>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<OperatorTime>0</OperatorTime>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<Available></Available>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ManageType>"+manageType+"</ManageType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<InsuranceTypeCode></InsuranceTypeCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<InsuranceType></InsuranceType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RegisteredAddressCode></RegisteredAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RegisteredAddress></RegisteredAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContactAddressCode></ContactAddressCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContactAddress></ContactAddress>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RegisteredPostCode></RegisteredPostCode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<ContactPostcode></ContactPostcode>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<BloodType></BloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "<RhBloodType></RhBloodType>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "</PatientInfo>" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                    "</HtRequest>"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String returnValue = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            params.put("xmlStr",xmlStr); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            params.put("xmlStr",_xmlStr); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            returnValue = WebserviceUtil.post("http://192.10.33.34:9080/HtMzWebService/services/Manage", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    "http://business.htemr.haitaiinc.com", 
			 |