当前位置: 首页>>代码示例>>Java>>正文


Java Provider.getOhipNo方法代码示例

本文整理汇总了Java中org.oscarehr.common.model.Provider.getOhipNo方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.getOhipNo方法的具体用法?Java Provider.getOhipNo怎么用?Java Provider.getOhipNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.common.model.Provider的用法示例。


在下文中一共展示了Provider.getOhipNo方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildProvider

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private boolean buildProvider(Provider provider, cdscihiphcvrs.ProviderDocument.Provider xmlProvider, Map<String,String> fileNamesMap) {
               if (provider==null || xmlProvider==null || fileNamesMap==null) return false;


       String seed = provider.getProviderNo() + provider.getOhipNo();
	String strHash = this.buildHash(seed);

	if( strHash.equals("")) {
		return false;
	}

	log.info("Seed: " + seed + " Provider: " + strHash);
	xmlProvider.setPrimaryPhysicianLastName(strHash);
	xmlProvider.setPrimaryPhysicianFirstName(strHash);
	xmlProvider.setPrimaryPhysicianCPSO(strHash);

	String filename = strHash + ".xml";
	fileNamesMap.put(provider.getProviderNo(), filename);

	return true;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:22,代码来源:CihiExportPHC_VRSAction.java

示例2: getCurTeamProviderStr

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public List<String> getCurTeamProviderStr(String provider_no) {
	List<String> retval = new ArrayList<String>();
	String proid = "";
	String proFirst = "";
	String proLast = "";
	String proOHIP = "";
	String specialty_code;
	String billinggroup_no;
	
	List<Provider> ps = providerDao.getCurrentTeamProviders(provider_no);
	for(Provider p:ps) {
		proid = p.getProviderNo();
		proLast = p.getLastName();
		proFirst = p.getFirstName();
		proOHIP = p.getOhipNo();
		billinggroup_no = getXMLStringWithDefault(p.getComments(), "xml_p_billinggroup_no", "0000");
		specialty_code = getXMLStringWithDefault(p.getComments(), "xml_p_specialty_code", "00");
		retval.add(proid + "|" + proLast + "|" + proFirst + "|" + proOHIP + "|" + billinggroup_no + "|" + specialty_code);
	}

	return retval;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:23,代码来源:JdbcBillingPageUtil.java

示例3: getCurProviderStr

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public List<String> getCurProviderStr() {
	List<String> retval = new ArrayList<String>();
	
	List<Provider> ps = providerDao.getBillableProviders();
	String proid = "";
	String proFirst = "";
	String proLast = "";
	String proOHIP = "";
	String specialty_code;
	String billinggroup_no;
	
	for(Provider p:ps) {
		proid = p.getProviderNo();
		proLast = p.getLastName();
		proFirst = p.getFirstName();
		proOHIP = p.getOhipNo();
		billinggroup_no = getXMLStringWithDefault(p.getComments(), "xml_p_billinggroup_no", "0000");
		specialty_code = getXMLStringWithDefault(p.getComments(), "xml_p_specialty_code", "00");
		retval.add(proid + "|" + proLast + "|" + proFirst + "|" + proOHIP + "|" + billinggroup_no + "|" + specialty_code);
	}
	
	return retval;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:24,代码来源:JdbcBillingPageUtil.java

示例4: getReviewerOhip

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getReviewerOhip() {
	Provider provider = EDocUtil.getProvider(reviewerId);
	if (provider != null) {
		return provider.getOhipNo();
	}
	return "";
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:8,代码来源:EDoc.java

示例5: getPracNo

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getPracNo(String provider_no) {
	ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
	Provider provider = dao.getProvider(provider_no);
	if (provider == null) return "";

	return provider.getOhipNo();
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:8,代码来源:BillingFormData.java

示例6: getCurSiteProviderStr

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public List<String> getCurSiteProviderStr(String provider_no) {
	List<String> retval = new ArrayList<String>();
	
	List<ProviderSite> sites = providerSiteDao.findByProviderNo(provider_no);
	List<Integer> siteIds =  new ArrayList<Integer>();
	for(ProviderSite site:sites) {
		siteIds.add(site.getId().getSiteId());
	}
	
	ProviderSiteDao dao = SpringUtils.getBean(ProviderSiteDao.class);
	
	String proid = "";
	String proFirst = "";
	String proLast = "";
	String proOHIP = "";
	String specialty_code;
	String billinggroup_no;
	
	try {
		for(Provider p : dao.findActiveProvidersWithSites(provider_no)) {
			proid = p.getProviderNo();
			proLast = p.getLastName();
			proFirst = p.getFirstName();
			proOHIP = p.getOhipNo();
			billinggroup_no = getXMLStringWithDefault(p.getComments(), "xml_p_billinggroup_no", "0000");
			specialty_code = getXMLStringWithDefault(p.getComments(), "xml_p_specialty_code", "00");
			
			retval.add(proid + "|" + proLast + "|" + proFirst + "|" + proOHIP + "|" + billinggroup_no + "|"
					+ specialty_code);
		}
	} catch (Exception e) {
		_logger.error("error", e);
	}

	return retval;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:37,代码来源:JdbcBillingPageUtil.java

示例7: getPropProviderOHIP

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public Properties getPropProviderOHIP() {
	Properties retval = new Properties();
	List<Provider> ps = providerDao.getBillableProviders();
	
	String proid = "";
	String proOHIP = "";
	
	for(Provider p:ps) {
		proid = p.getProviderNo();
		proOHIP = p.getOhipNo();
		retval.setProperty(proid, proOHIP);
	}
	
	return retval;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:16,代码来源:JdbcBillingPageUtil.java

示例8: getFormCustRecord

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public Properties getFormCustRecord(Properties props, String provNo) {
    
    ProviderDao providerDao = (ProviderDao)SpringUtils.getBean("providerDao");                
    Provider mrp = null;
    String demoProvider = props.getProperty("demoProvider","");   
    
    if (!demoProvider.isEmpty()) {
        mrp =  providerDao.getProvider(demoProvider);

        if (mrp != null) {
            props.setProperty("provName", "MRP: " + mrp.getFormattedName());            
        }
    }
                    
    OscarProperties oscarProps = OscarProperties.getInstance();
    
    if ((oscarProps.getProperty("lab_req_provider") != null) && (oscarProps.getProperty("lab_req_billing_no") != null)) {
        
        props.setProperty("reqProvName", oscarProps.getProperty("lab_req_provider"));
        props.setProperty("practitionerNo", oscarProps.getProperty("lab_req_billing_no"));
        
	} else {             
        Provider provider = providerDao.getProvider(provNo);
            
        String ohipNo = provider.getOhipNo();
        if (ohipNo == null || ohipNo.isEmpty()) {                
            provider = mrp;            
        }  
        
        if (provider != null) {
            
            String xmlSpecialtyCode = "<xml_p_specialty_code>";
            String xmlSpecialtyCode2 = "</xml_p_specialty_code>";
            String strSpecialtyCode = "00";
            String comments = provider.getComments();     

            if( comments.indexOf(xmlSpecialtyCode) != -1 ) {                                    
                String specialtyCode = comments.substring(comments.indexOf(xmlSpecialtyCode)+xmlSpecialtyCode.length(), comments.indexOf(xmlSpecialtyCode2));
                specialtyCode = specialtyCode.trim();
                if(!specialtyCode.isEmpty()) {
                    strSpecialtyCode = specialtyCode;
                }
            }                                            
            
            ohipNo = provider.getOhipNo();
        
            if (ohipNo != null && !ohipNo.isEmpty()) {                                        
                props.setProperty("reqProvName", provider.getFormattedName());
                props.setProperty("practitionerNo", "0000-" + ohipNo + "-" + strSpecialtyCode);
            }
        }
    }
                                             	    	    	    	
    //get local clinic information
    ClinicDAO clinicDao = (ClinicDAO)SpringUtils.getBean("clinicDAO");
	Clinic clinic = clinicDao.getClinic();

	props.setProperty("clinicName",clinic.getClinicName()==null?"":clinic.getClinicName());
	props.setProperty("clinicProvince",clinic.getClinicProvince()==null?"":clinic.getClinicProvince());
    props.setProperty("clinicAddress", clinic.getClinicAddress()==null?"":clinic.getClinicAddress());
    props.setProperty("clinicCity", clinic.getClinicCity()==null?"":clinic.getClinicCity());
    props.setProperty("clinicPC", clinic.getClinicPostal()==null?"":clinic.getClinicPostal());

    return props;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:66,代码来源:FrmLabReq10Record.java

示例9: getPracNo

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getPracNo(String provider_no) {
	Provider provider = getProvider(provider_no);
	if (provider == null) return "";
	return provider.getOhipNo();
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:6,代码来源:BillingFormData.java


注:本文中的org.oscarehr.common.model.Provider.getOhipNo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。