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


Java Provider.getProviderNo方法代码示例

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


在下文中一共展示了Provider.getProviderNo方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: getLoggedInProviderNo

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getLoggedInProviderNo()
{
	Provider p = getLoggedInProvider();
	if( p != null ) {
		return(p.getProviderNo());
	}
	
	return null;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:10,代码来源:LoggedInInfo.java

示例5: notifyOlisError

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private static void notifyOlisError(Provider provider, String errorMsg) {
	HashSet<String> sendToProviderList = new HashSet<String>();

	String providerNoTemp = "999998";
	sendToProviderList.add(providerNoTemp);

	if (provider != null) {
		// manual prompts always send to admin
		sendToProviderList.add(providerNoTemp);

		providerNoTemp = provider.getProviderNo();
		sendToProviderList.add(providerNoTemp);
	}

	// no one wants to hear about the problem
	if (sendToProviderList.size() == 0) return;

	String message = "OSCAR attempted to perform a fetch of OLIS data at " + new Date() + " but there was an error during the task.\n\nSee below for the error message:\n" + errorMsg;

	oscar.oscarMessenger.data.MsgMessageData messageData = new oscar.oscarMessenger.data.MsgMessageData();

	ArrayList<MsgProviderData> sendToProviderListData = new ArrayList<MsgProviderData>();
	for (String providerNo : sendToProviderList) {
		MsgProviderData mpd = new MsgProviderData();
		mpd.providerNo = providerNo;
		mpd.locationId = "145";
		sendToProviderListData.add(mpd);
	}

	String sentToString = messageData.createSentToString(sendToProviderListData);
	messageData.sendMessage2(message, "OLIS Retrieval Error", "System", sentToString, "-1", sendToProviderListData, null, null);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:33,代码来源:Driver.java

示例6: init

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public boolean init() {
	ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
	for (Provider p : dao.getProviders()) {
		ProviderNameBean pNameBean = new ProviderNameBean(p.getFormattedName(), p.getProviderNo());
		providerNameVector.add(pNameBean);
		if (p.getProviderType().equalsIgnoreCase("doctor")) {
			doctorNameVector.add(pNameBean);
		}
	}
	return true;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:12,代码来源:ProviderNameBeanHandler.java

示例7: getProviderList

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public BillingPhysician[] getProviderList() {
	List<BillingPhysician> lst = new ArrayList<BillingPhysician>();
	ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
	for (Provider p : dao.getProvidersWithNonEmptyOhip()) {
		BillingPhysician billingphysician = new BillingPhysician(p.getFormattedName(), p.getProviderNo());
		lst.add(billingphysician);
	}

	return lst.toArray(new BillingPhysician[] {});
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:11,代码来源:BillingFormData.java

示例8: 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

示例9: 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

示例10: getPropProviderName

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

示例11: getProviderDisplayString

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private String getProviderDisplayString(String actionRole) throws HL7Exception
{
	Provider provider=OruR01.getProviderByActionRole(oruR01, actionRole);
	
	StringBuilder sb = new StringBuilder();

	sb.append(provider.getLastName());
	sb.append(", ");
	sb.append(provider.getFirstName());

	if (provider.getProviderNo() != null) {
		sb.append(" (");
		sb.append(provider.getProviderNo());
		sb.append(')');
	}

	if (provider.getPhone() != null) {
		sb.append(", ");
		sb.append(provider.getPhone());
	}

	if (provider.getEmail() != null) {
		sb.append(", ");
		sb.append(provider.getEmail());
	}

	if (provider.getAddress() != null) {
		sb.append(", ");
		sb.append(provider.getAddress());
	}

	return (StringEscapeUtils.escapeHtml(sb.toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:34,代码来源:ViewOruR01UIBean.java

示例12: getProviders

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String[] getProviders() {
    List<String> vRet = new ArrayList<String>();
    List<Provider> providers = providerDao.getActiveProviders();
    for(Provider p:providers) {
    	String data = p.getProviderNo() + "/" + p.getLastName() + ", " + p.getFirstName();
    	vRet.add(data);
    }
    
   
    String ret[] = new String[vRet.size()];
    ret = vRet.toArray(ret);
    return ret;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:EctImmImmunizationData.java

示例13: notifyProvider

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private void notifyProvider(EaapsMessageSupport message, Demographic demo) {
	String providerId = demo.getProviderNo();
	if (providerId == null || providerId.isEmpty()) {
		if (logger.isInfoEnabled()) {
			logger.info("MRP ID is not available for " + demo + " - skipping message generation");
		}
		return;
	}
	
	Provider provider = providerDao.getProvider(providerId);
	if (provider == null) {
		if (logger.isInfoEnabled()) {
			logger.info("Can't find MRP record for " + demo + " - skipping message generation");
		}
		return;
	}

	String mrpNote = message.getProviderNote();
	if (mrpNote == null || mrpNote.isEmpty()) {
		if (logger.isInfoEnabled()) {
			logger.info("MRP note content is null for " + demo + "- skipping message generation");
		}
		return;
	}

	MsgMessageData messageData = new MsgMessageData();

	String[] providerIds = new String[] { provider.getProviderNo() };
	ArrayList<MsgProviderData> providerListing = messageData.getProviderStructure(providerIds);
	ArrayList<MsgProviderData> remoteProviders = messageData.getRemoteProvidersStructure();

	String sentToWho;
	if (messageData.isLocals()) {
		sentToWho = messageData.createSentToString(providerIds);
	} else {
		sentToWho = "";
	}

	if (messageData.isRemotes()) {
		sentToWho = sentToWho + " " + messageData.getRemoteNames(remoteProviders);
	}

	String subject = "eAAPS: Recommendations ready for " + demo.getFormattedName();
	String userName = "System";
	String userNo = SYSTEM_USER_ID;
	String attachment = null;
	String pdfAttachment = null;
	String messageId = messageData.sendMessage2(mrpNote, subject, userName, sentToWho, userNo, providerListing, attachment, pdfAttachment);

	MsgDemoMap msgDemoMap = new MsgDemoMap();
	msgDemoMap.linkMsg2Demo(messageId, demo.getDemographicNo().toString());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:53,代码来源:EaapsHandler.java

示例14: getLetterheadList

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private List<LetterheadTo1> getLetterheadList() {
	List<LetterheadTo1> letterheadList = new ArrayList<LetterheadTo1>();
	
	//clinic letterhead
	Clinic clinic = clinicDAO.getClinic();
	LetterheadTo1 letterhead = new LetterheadTo1(clinic.getClinicName(), clinic.getClinicName());
	
	String clinicPhone = StringUtils.trimToEmpty(clinic.getClinicPhone());
	String clinicAddress = buildAddress(clinic.getClinicAddress(), clinic.getClinicCity(), clinic.getClinicProvince(), clinic.getClinicPostal());
	
	letterhead.setPhone(clinicPhone);
	letterhead.setAddress(clinicAddress);
	
	letterheadList.add(letterhead);
	
	//provider letterheads
	//- find non-empty phone/address in the following priority:
	//- 1) UserProperty ("property" table)
	//- 2) Provider
	//- 3) Clinic
	List<Provider> providerList = providerDao.getActiveProviders();
	for (Provider provider : providerList) {
		String providerNo = provider.getProviderNo();
		if (providerNo.equals("-1")) continue; //skip user "system"

		letterhead = new LetterheadTo1(providerNo, provider.getFormattedName());
		
       	String propValue = readProperty(providerNo, "rxPhone");
       	if (propValue!=null) {
       		letterhead.setPhone(propValue);
       	}
       	else if (StringUtils.isNotBlank(provider.getWorkPhone())) {
       		letterhead.setPhone(provider.getWorkPhone().trim());
       	}
       	else {
       		letterhead.setPhone(clinicPhone);
       	}
		
		propValue = readProperty(providerNo, "rxAddress");
		if (propValue!=null) {
			letterhead.setAddress(buildAddress(propValue, readProperty(providerNo, "rxCity"), readProperty(providerNo, "rxProvince"), readProperty(providerNo, "rxPostal")));
		}
		else if (StringUtils.isNotBlank(provider.getAddress())) {
			letterhead.setAddress(provider.getAddress().trim());
		}
		else {
			letterhead.setAddress(clinicAddress);
		}
		
		letterheadList.add(letterhead);
	}
	
	return letterheadList;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:55,代码来源:ConsultationWebService.java


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