本文整理汇总了Java中org.oscarehr.common.model.Provider.getFormattedName方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.getFormattedName方法的具体用法?Java Provider.getFormattedName怎么用?Java Provider.getFormattedName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Provider
的用法示例。
在下文中一共展示了Provider.getFormattedName方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProviderName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private String getProviderName(String providerNo) {
if(providerNo == null || providerNo.length()==0) {
return "";
}
Provider p = providerDao.getProvider(providerNo);
if(p != null) {
return p.getFormattedName();
}
return "";
}
示例2: 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;
}
示例3: 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[] {});
}
示例4: getProviderName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderName(String id) {
if(id == null || id.length()==0)
return "";
ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
Provider p = dao.getProvider(id);
if (p != null) {
return p.getFormattedName();
}
return "";
}
示例5: getUsername
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
protected String getUsername(HttpServletRequest request) {
Provider provider = (Provider) request.getSession().getAttribute("provider");
return provider.getFormattedName();
}
示例6: getPreviousConsentProvider
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getPreviousConsentProvider()
{
Provider provider=providerDao.getProvider(previousConsentToView.getProviderNo());
return(provider.getFormattedName());
}
示例7: 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;
}
示例8: fillContactName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private static DemographicContact fillContactName( DemographicContact demographicContact ) {
if(demographicContact == null) {
return demographicContact;
}
Provider provider;
Contact contact;
ProfessionalSpecialist professionalSpecialist;
ContactSpecialty specialty;
String providerFormattedName = "";
ContactDao contactDao = SpringUtils.getBean(ContactDao.class);
ContactSpecialtyDao contactSpecialtyDao = SpringUtils.getBean(ContactSpecialtyDao.class);
ProviderDao providerDao = SpringUtils.getBean(ProviderDao.class);
ProfessionalSpecialistDao professionalSpecialistDao = SpringUtils.getBean(ProfessionalSpecialistDao.class);
String demographicContactRole = ( demographicContact.getRole() ).trim();
Integer roleid = null;
if( StringUtils.isNumeric(demographicContactRole) ) {
roleid = oscar.util.ConversionUtils.fromIntString(demographicContactRole);
} else {
demographicContact.setRole( demographicContactRole );
}
if( roleid != null ) {
specialty = contactSpecialtyDao.find( roleid );
demographicContact.setRole( specialty.getSpecialty() );
}
if( demographicContact.getType() == DemographicContact.TYPE_PROVIDER ) {
provider = providerDao.getProvider( demographicContact.getContactId() );
if(provider != null){
providerFormattedName = provider.getFormattedName();
}
if(StringUtils.isBlank(providerFormattedName)) {
providerFormattedName = "Error: Contact Support";
logger.error("Formatted name for provder was not avaialable. Contact number: " + demographicContact.getContactId());
}
demographicContact.setContactName(providerFormattedName);
contact = new ProfessionalContact();
contact.setWorkPhone("internal");
contact.setFax("internal");
demographicContact.setDetails(contact);
}
if( demographicContact.getType() == DemographicContact.TYPE_CONTACT ) {
contact = contactDao.find( Integer.parseInt( demographicContact.getContactId() ) );
demographicContact.setContactName( contact.getFormattedName() );
demographicContact.setDetails(contact);
}
if( demographicContact.getType() == DemographicContact.TYPE_PROFESSIONALSPECIALIST ) {
professionalSpecialist = professionalSpecialistDao.find( Integer.parseInt( demographicContact.getContactId() ) );
demographicContact.setContactName( professionalSpecialist.getFormattedName() );
contact = buildContact( professionalSpecialist );
demographicContact.setDetails(contact);
}
return demographicContact;
}
示例9: fillContactNames
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Deprecated
/**
* Use org.oscarehr.util.HealthCareTeamCreator getHealthCareTeam
*/
public static List<DemographicContact> fillContactNames(List<DemographicContact> contacts) {
Provider provider;
Contact contact;
ProfessionalSpecialist professionalSpecialist;
ContactSpecialty specialty;
String providerFormattedName = "";
String role = "";
for( DemographicContact c : contacts ) {
role = c.getRole();
if( StringUtils.isNumeric( c.getRole() ) && ! role.isEmpty() ) {
specialty = contactSpecialtyDao.find( Integer.parseInt( c.getRole().trim() ) );
c.setRole( specialty.getSpecialty() );
}
if( c.getType() == DemographicContact.TYPE_DEMOGRAPHIC ) {
c.setContactName(demographicDao.getClientByDemographicNo( Integer.parseInt( c.getContactId() ) ).getFormattedName() );
}
if( c.getType() == DemographicContact.TYPE_PROVIDER ) {
provider = providerDao.getProvider( c.getContactId() );
if(provider != null){
providerFormattedName = provider.getFormattedName();
}
if(StringUtils.isBlank(providerFormattedName)) {
providerFormattedName = "Error: Contact Support";
logger.error("Formatted name for provder was not avaialable. Contact number: " + c.getContactId());
}
c.setContactName(providerFormattedName);
contact = new ProfessionalContact();
contact.setWorkPhone("internal");
contact.setFax("internal");
c.setDetails(contact);
}
if( c.getType() == DemographicContact.TYPE_CONTACT ) {
contact = contactDao.find( Integer.parseInt( c.getContactId() ) );
c.setContactName( contact.getFormattedName() );
c.setDetails(contact);
}
if( c.getType() == DemographicContact.TYPE_PROFESSIONALSPECIALIST ) {
professionalSpecialist = professionalSpecialistDao.find( Integer.parseInt( c.getContactId() ) );
c.setContactName( professionalSpecialist.getFormattedName() );
contact = buildContact( professionalSpecialist );
c.setDetails(contact);
}
}
return contacts;
}
示例10: getObserverOfDataPersonName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
private static String getObserverOfDataPersonName(Provider p)
{
if (p==null) return(null);
return(p.getFormattedName());
}
示例11: getProviderName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderName(String provider_no) {
Provider provider = getProvider(provider_no);
if (provider == null) return "";
return provider.getFormattedName();
}
示例12: getProviderName
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getProviderName(String provider_no) {
ProviderDao dao = SpringUtils.getBean(ProviderDao.class);
Provider provider = dao.getProvider(provider_no);
if (provider == null) return "";
return provider.getFormattedName();
}
示例13: estConsultationVecByDemographic
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public boolean estConsultationVecByDemographic(LoggedInInfo loggedInInfo, String demoNo) {
ids = new Vector<String>();
status = new Vector<String>();
patient = new Vector<String>();
provider = new Vector<String>();
service = new Vector<String>();
date = new Vector<String>();
this.patientWillBook = new Vector<String>();
urgency = new Vector<String>();
apptDate = new Vector<String>();
boolean verdict = true;
try {
ConsultationRequestDao consultReqDao = (ConsultationRequestDao) SpringUtils.getBean("consultationRequestDao");
ProviderDao providerDao = (ProviderDao) SpringUtils.getBean("providerDao");
DemographicManager demoManager = SpringUtils.getBean(DemographicManager.class);
ConsultationServiceDao serviceDao = (ConsultationServiceDao) SpringUtils.getBean("consultationServiceDao");
ConsultationRequest consult;
Provider prov;
Demographic demo;
ConsultationServices services;
String providerId, providerName;
List consultList = consultReqDao.getConsults(Integer.parseInt(demoNo));
for( int idx = 0; idx < consultList.size(); ++idx ) {
consult = (ConsultationRequest)consultList.get(idx);
demo = demoManager.getDemographic(loggedInInfo, consult.getDemographicId());
providerId = demo.getProviderNo();
if( providerId != null && !providerId.equals("")) {
prov = providerDao.getProvider(demo.getProviderNo());
providerName = prov.getFormattedName();
}
else {
providerName = "N/A";
}
services = serviceDao.find(consult.getServiceId());
ids.add(consult.getId().toString());
status.add(consult.getStatus());
patient.add(demo.getFormattedName());
provider.add(providerName);
service.add(services.getServiceDesc());
urgency.add(consult.getUrgency());
patientWillBook.add(""+consult.isPatientWillBook());
date.add(DateFormatUtils.ISO_DATE_FORMAT.format(consult.getReferralDate()));
}
} catch(Exception e) {
MiscUtils.getLogger().error("Error", e);
verdict = false;
}
return verdict;
}