本文整理汇总了Java中org.oscarehr.common.model.Provider.setWorkPhone方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.setWorkPhone方法的具体用法?Java Provider.setWorkPhone怎么用?Java Provider.setWorkPhone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.oscarehr.common.model.Provider
的用法示例。
在下文中一共展示了Provider.setWorkPhone方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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;
}