本文整理汇总了Java中org.oscarehr.common.model.Provider.setOhipNo方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.setOhipNo方法的具体用法?Java Provider.setOhipNo怎么用?Java Provider.setOhipNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Provider
的用法示例。
在下文中一共展示了Provider.setOhipNo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAsDomainObject
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Override
public Provider getAsDomainObject(LoggedInInfo loggedInInfo,ProviderTo1 t) throws ConversionException {
Provider d = new Provider();
d.setProviderNo(t.getProviderNo());
d.setComments(t.getComments());
d.setPhone(t.getPhone());
d.setBillingNo(t.getBillingNo());
d.setWorkPhone(t.getWorkPhone());
d.setAddress(t.getAddress().getAddress());
d.setTeam(t.getTeam());
d.setStatus(ConversionUtils.toBoolString(t.isEnabled()));
d.setLastUpdateDate(t.getLastUpdateDate());
d.setProviderType(t.getProviderActivity());
if (t.getSex() != null) {
d.setSex(t.getSex().name());
}
d.setOhipNo(t.getOhipNo());
d.setSpecialty(t.getSpecialty());
d.setDob(t.getDob());
d.setHsoNo(t.getHsoNo());
d.setProviderActivity(t.getProviderActivity());
d.setFirstName(t.getFirstName());
d.setLastName(t.getLastName());
d.setRmaNo(t.getRmaNo());
d.setSignedConfidentiality(t.getSignedConfidentiality());
d.setPractitionerNo(t.getPractitionerNo());
d.setEmail(t.getEmail());
d.setTitle(t.getTitle());
d.setLastUpdateUser(t.getLastUpdateUser());
d.setLastUpdateDate(t.getLastUpdateDate());
return d;
}
示例2: getProvider
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
Provider getProvider(String firstName,String lastName,String providerNo,String ohipNo,String providerType,String specialty,String sex){
Provider provider = new Provider();
provider.setFirstName(firstName);
provider.setLastName(lastName);
provider.setProviderNo(providerNo);
provider.setOhipNo(ohipNo);
provider.setSpecialty(specialty);
provider.setProviderType(providerType);
provider.setSex(sex);
provider.setSignedConfidentiality(new Date());
provider.setStatus("1");
return provider;
}
示例3: addProvider
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Override
public void addProvider(Attributes attributes) {
Provider provider = new Provider();
provider.setProviderNo(attributes.getValue("no"));
String gender = attributes.getValue("gender");
if (gender != null) {
provider.setSex("" + gender.charAt(0));
}
provider.setTitle(attributes.getValue("title"));
provider.setFirstName(attributes.getValue("firstName"));
provider.setLastName(attributes.getValue("lastName"));
provider.setAddress(attributes.getValue("address"));
provider.setEmail(attributes.getValue("email"));
provider.setPhone(attributes.getValue("phone"));
provider.setProviderType(attributes.getValue("type"));
provider.setSpecialty("specialty");
provider.setLastUpdateDate(new Date());
provider.setStatus("1");
providerDao.saveProvider(provider);
provider.setOhipNo(provider.getProviderNo());
provider.setBillingNo(provider.getProviderNo());
providerDao.updateProvider(provider);
if (logger.isInfoEnabled()) {
logger.info("Created new provider: " + provider);
}
}