本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: getReviewerOhip
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
public String getReviewerOhip() {
Provider provider = EDocUtil.getProvider(reviewerId);
if (provider != null) {
return provider.getOhipNo();
}
return "";
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}