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


Java Provider.getLastName方法代码示例

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


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

示例1: getProviderName

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderName(String providerNo) {	

		String providerName = "";
		Provider provider = getProvider(providerNo);

		if (provider != null) {
			if (provider.getFirstName() != null) {
				providerName = provider.getFirstName() + " ";
			}
	
			if (provider.getLastName() != null) {
				providerName += provider.getLastName();
			}
	
			if (log.isDebugEnabled()) {
				log.debug("getProviderName: providerNo=" + providerNo + ",result=" + providerName);
			}
		}

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

示例2: getProviderNameLastFirst

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderNameLastFirst(String providerNo) {
	if (providerNo == null || providerNo.length() <= 0) {
		throw new IllegalArgumentException();
	}

	String providerName = "";
	Provider provider = getProvider(providerNo);

	if (provider != null) {
		if (provider.getLastName() != null) {
			providerName = provider.getLastName() + ", ";
		}

		if (provider.getFirstName() != null) {
			providerName += provider.getFirstName();
		}

		if (log.isDebugEnabled()) {
			log.debug("getProviderNameLastFirst: providerNo=" + providerNo + ",result=" + providerName);
		}
	}

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

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

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

示例5: getProviderName

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private String getProviderName(String providerNo){
	String providerName = "";
	Provider provider = providerDao.getProvider(providerNo);

	if (provider != null) {
		if (provider.getLastName() != null) {
			providerName = provider.getLastName() + ", ";
		}

		if (provider.getFirstName() != null) {
			providerName += provider.getFirstName();
		}
	}
	return providerName;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:16,代码来源:OngoingConcernDxRegSummary.java

示例6: getUserID

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private Security getUserID() {
	//this gets a pass on not being used by a manager because the user is not authenticated
	//I didn't want to add a non loggedInInfo method for getByUserName()
	SecurityDao securityDao = (SecurityDao) SpringUtils.getBean("securityDao");
	List<Security> results = securityDao.findByUserName(username);
	Security security = null;
	if (results.size() > 0) security = results.get(0);

	if (security == null) {
		return null;
	} else if (OscarProperties.isLdapAuthenticationEnabled()) {
		security = new LdapSecurity(security);
	}

	// find the detail of the user
	ProviderDao providerDao = (ProviderDao) SpringUtils.getBean("providerDao");
	Provider provider = providerDao.getProvider(security.getProviderNo());

	if (provider != null) {
		firstname = provider.getFirstName();
		lastname = provider.getLastName();
		profession = provider.getProviderType();
	}

	// retrieve the oscar roles for this Provider as a comma separated list
	SecUserRoleDao secUserRoleDao = (SecUserRoleDao) SpringUtils.getBean("secUserRoleDao");
	List<SecUserRole> roles = secUserRoleDao.getUserRoles(security.getProviderNo());
	for (SecUserRole role : roles) {
		if (rolename == null) {
			rolename = role.getRoleName();
		} else {
			rolename += "," + role.getRoleName();
		}
	}

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

示例7: buildProvider

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

	xmlProvider.setPrimaryPhysicianLastName(provider.getLastName());
	xmlProvider.setPrimaryPhysicianFirstName(provider.getFirstName());
	String cpso = StringUtils.noNull(provider.getPractitionerNo());
	xmlProvider.setPrimaryPhysicianCPSO(cpso);

	String filename = provider.getFirstName() + "_" + provider.getLastName() + "_" + cpso + ".xml";
	fileNamesMap.put(provider.getProviderNo(), filename);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:12,代码来源:CihiExportAction.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: 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

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

示例11: setNotePermissions

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public ActionForward setNotePermissions(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
	CaseManagementNoteDAO noteDao = (CaseManagementNoteDAO) SpringUtils.getBean("caseManagementNoteDAO");
	ProgramDao programDao = (ProgramDao) SpringUtils.getBean("programDao");
	SecroleDao secroleDao = (SecroleDao) SpringUtils.getBean("secroleDao");

	String noteId = request.getParameter("noteId");
	String newProgramNo = request.getParameter("program");
	String newRoleId = request.getParameter("role");

	HashMap<String, Object> hashMap = new HashMap<String, Object>();

	hashMap.put("noteId", noteId);

	LoggedInInfo loggedInInfo=LoggedInInfo.getLoggedInInfoFromSession(request);
	String providerNo=loggedInInfo.getLoggedInProviderNo();
	Provider provider = loggedInInfo.getLoggedInProvider();

	if (canNoteBeModified(providerNo, noteId)) {
		CaseManagementNote note = noteDao.getNote(Long.parseLong(noteId));


		// Are this note's permissions being changed after all?
		if (note.getReporter_caisi_role() != null && note.getReporter_caisi_role().equalsIgnoreCase(newRoleId)
				&& note.getProgram_no() != null && note.getProgram_no().equalsIgnoreCase(newProgramNo)) {
			hashMap.put("success", "NO_CHANGE");
		} else if (providerHasAccess(providerNo, newProgramNo, newRoleId, note.getDemographic_no())) {
			// Check if this provider has access to the requested program & role pair
			Program p = programDao.getProgram(Integer.parseInt(newProgramNo));
			Secrole r = secroleDao.getRole(Integer.parseInt(newRoleId));

			note.setProgram_no(newProgramNo);
			note.setReporter_caisi_role(newRoleId);
			Date newDate = new Date();
			note.setUpdate_date(newDate);

			String newNote = note.getNote();
			newNote += "\n[" + DateUtils.format(newDate, "yyyy-MM-dd") + " Program/role changed to: " + p.getName() + " (" + r.getName() + ") by " + provider.getLastName() + ", " + provider.getFirstName() + "]";
			note.setNote(newNote);

			Object id = noteDao.saveAndReturn(note);

			hashMap.put("success", "SAVED");
			hashMap.put("newProgramNo", newProgramNo);
			hashMap.put("newRoleId", newRoleId);
			hashMap.put("newProgramName", p.getName());
			hashMap.put("newRoleName", r.getName());
			hashMap.put("noteContent", newNote);
			hashMap.put("newNoteId", id);
		} else {
			// The provider making this modification won't be able to see the note if this change is made
			hashMap.put("error", "MAKES_INVISIBLE");
		}
	} else {
		// The provider doesn't have permission to see this note, so they can't modify it
		hashMap.put("error", "PERMISSION_DENIED");
	}

	JSONObject json = JSONObject.fromObject(hashMap);
	response.getOutputStream().write(json.toString().getBytes());

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

示例12: saveDocNote

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private void saveDocNote(final HttpServletRequest request, String docDesc, String demog, String documentId) {

		Date now = EDocUtil.getDmsDateTimeAsDate();
		// String docDesc=d.getDocdesc();
		CaseManagementNote cmn = new CaseManagementNote();
		cmn.setUpdate_date(now);
		cmn.setObservation_date(now);
		cmn.setDemographic_no(demog);
		HttpSession se = request.getSession();
		String user_no = (String) se.getAttribute("user");
		String prog_no = new EctProgram(se).getProgram(user_no);
		WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(se.getServletContext());
		CaseManagementManager cmm = (CaseManagementManager) ctx.getBean("caseManagementManager");
		cmn.setProviderNo("-1");// set the provider no to be -1 so the editor appear as 'System'.
		Provider provider = EDocUtil.getProvider(user_no);
		String provFirstName = "";
		String provLastName = "";
		if(provider!=null) {
			provFirstName=provider.getFirstName();
			provLastName=provider.getLastName();
		}
		String strNote = "Document" + " " + docDesc + " " + "created at " + now + " by " + provFirstName + " " + provLastName + ".";

		// String strNote="Document"+" "+docDesc+" "+ "created at "+now+".";
		cmn.setNote(strNote);
		cmn.setSigned(true);
		cmn.setSigning_provider_no("-1");
		cmn.setProgram_no(prog_no);
		
		SecRoleDao secRoleDao = (SecRoleDao) SpringUtils.getBean("secRoleDao");
		SecRole doctorRole = secRoleDao.findByName("doctor");		
		cmn.setReporter_caisi_role(doctorRole.getId().toString());
		
		cmn.setReporter_program_team("0");
		cmn.setPassword("NULL");
		cmn.setLocked(false);
		cmn.setHistory(strNote);
		cmn.setPosition(0);

		Long note_id = cmm.saveNoteSimpleReturnID(cmn);
		// Debugging purposes on the live server
		MiscUtils.getLogger().info("Document Note ID: "+note_id.toString());
		
		// Add a noteLink to casemgmt_note_link
		CaseManagementNoteLink cmnl = new CaseManagementNoteLink();
		cmnl.setTableName(CaseManagementNoteLink.DOCUMENT);
		cmnl.setTableId(Long.parseLong(documentId));
		cmnl.setNoteId(note_id);
		EDocUtil.addCaseMgmtNoteLink(cmnl);
	}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:51,代码来源:ManageDocumentAction.java

示例13: toBean

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private RptByExampleQueryBean toBean(ReportByExamples r, Provider p) {
	RptByExampleQueryBean query = new RptByExampleQueryBean(p.getLastName(), p.getFirstName(), r.getQuery(), ConversionUtils.toDateString(r.getDate()));
	return query;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:5,代码来源:RptByExampleQueryBeanHandler.java

示例14: init

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public boolean init(Integer demo, String type) {
    MeasurementTypes mt = MeasurementTypes.getInstance();
    EctMeasurementTypesBean mBean = mt.getByType(type);
    if ( mBean != null){
        ValidationsDao dao = SpringUtils.getBean(ValidationsDao.class);
        ProviderDao providerDao = SpringUtils.getBean(ProviderDao.class);            
        Provider provider = null;
        
        for(Object[] o : dao.findValidationsBy(demo, type, ConversionUtils.fromIntString(mBean.getValidation()))) {
        	Validations v = (Validations) o[0];   
        	Measurement m = (Measurement) o[1];
        	provider = providerDao.getProvider(m.getProviderNo());

            String canPlot = null;
            String firstName = null;
            String lastName = null;

            boolean isNumeric = v.isNumeric() != null && v.isNumeric();
            if (isNumeric || v.getName().equalsIgnoreCase("Blood Pressure"))
                canPlot = "true";
            else
                canPlot = null;

            if( provider != null ) {
            	firstName =  provider.getFirstName();
            	lastName =  provider.getLastName();
            }
            
            if (firstName == null && lastName == null){
                firstName = "Automatic";
                lastName = "";
            }
            //log.debug("canPlot value: " + canPlot);
            EctMeasurementsDataBean data = new EctMeasurementsDataBean(
            		m.getId().intValue(), 
            		m.getType(), 
            		mBean.getTypeDisplayName(),
            		mBean.getTypeDesc(), 
            		"" + m.getDemographicId(),
                    firstName, lastName,
                    m.getDataField(), 
                    m.getMeasuringInstruction(),
                    m.getComments(), 
                    ConversionUtils.toDateString(m.getDateObserved()),
                    ConversionUtils.toDateString(m.getCreateDate()), 
                    canPlot,
                    m.getDateObserved(),
                    m.getCreateDate());
            
            measurementsDataVector.add(data);

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


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