本文整理汇总了Java中org.oscarehr.common.model.Provider.setEmail方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.setEmail方法的具体用法?Java Provider.setEmail怎么用?Java Provider.setEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Provider
的用法示例。
在下文中一共展示了Provider.setEmail方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parsePrdAsProvider
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
/**
* @return a detached and non-persisted Provider model object with data filed in from the PRD.
* @throws HL7Exception
*/
public static Provider parsePrdAsProvider(PRD prd) throws HL7Exception {
Provider provider = new Provider();
XPN xpn = prd.getProviderName(0);
provider.setLastName(StringUtils.trimToNull(xpn.getFamilyName().getSurname().getValue()));
provider.setFirstName(StringUtils.trimToNull(xpn.getGivenName().getValue()));
provider.setTitle(StringUtils.trimToNull(xpn.getPrefixEgDR().getValue()));
XAD xad = prd.getProviderAddress(0);
provider.setAddress(StringUtils.trimToNull(xad.getStreetAddress().getStreetOrMailingAddress().getValue()));
XTN xtn = prd.getProviderCommunicationInformation(0);
provider.setWorkPhone(StringUtils.trimToNull(xtn.getUnformattedTelephoneNumber().getValue()));
provider.setEmail(StringUtils.trimToNull(xtn.getCommunicationAddress().getValue()));
PLN pln = prd.getProviderIdentifiers(0);
provider.setProviderNo(StringUtils.trimToNull(pln.getIDNumber().getValue()));
return (provider);
}
示例2: parseRolAsProvider
import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
/**
* The provider returned is just a detached/unmanaged Provider object which may not represent an entry in the db, it is used as a data structure only.
*
* @throws HL7Exception
*/
public static Provider parseRolAsProvider(ROL rol) throws HL7Exception {
Provider provider = new Provider();
XCN xcn = rol.getRolePerson(0);
provider.setProviderNo(StringUtils.trimToNull(xcn.getIDNumber().getValue()));
provider.setLastName(StringUtils.trimToNull(xcn.getFamilyName().getSurname().getValue()));
provider.setFirstName(StringUtils.trimToNull(xcn.getGivenName().getValue()));
provider.setTitle(StringUtils.trimToNull(xcn.getPrefixEgDR().getValue()));
XAD xad = rol.getOfficeHomeAddressBirthplace(0);
provider.setAddress(StringUtils.trimToNull(xad.getStreetAddress().getStreetOrMailingAddress().getValue()));
XTN xtn = rol.getPhone(0);
provider.setPhone(StringUtils.trimToNull(xtn.getUnformattedTelephoneNumber().getValue()));
provider.setEmail(StringUtils.trimToNull(xtn.getCommunicationAddress().getValue()));
return (provider);
}
示例3: 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;
}
示例4: 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);
}
}