当前位置: 首页>>代码示例>>Java>>正文


Java Provider.setDob方法代码示例

本文整理汇总了Java中org.oscarehr.common.model.Provider.setDob方法的典型用法代码示例。如果您正苦于以下问题:Java Provider.setDob方法的具体用法?Java Provider.setDob怎么用?Java Provider.setDob使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.common.model.Provider的用法示例。


在下文中一共展示了Provider.setDob方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:ProviderConverter.java

示例2: testCreate

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Test
public void testCreate() throws Exception {
	Facility f = new Facility();
	f.setDescription("test");
	f.setDisabled(false);
	f.setName("test");
	f.setOcanServiceOrgNumber("0");
	f.setOrgId(0);
	f.setSectorId(0);
	facilityDao.persist(f);
	
	Demographic d = new Demographic();
	d.setFirstName("a");
	d.setLastName("b");
	d.setYearOfBirth("2000");
	d.setMonthOfBirth("1");
	d.setDateOfBirth("1");
	d.setSex("M");
	demographicDao.save(d);
	
	Provider p = new Provider();
	p.setLastName("x");
	p.setFirstName("y");
	p.setProviderNo("111111");
	p.setProviderType("doctor");
	p.setSex("M");
	p.setDob(new java.util.Date());
	p.setSpecialty("MD");
	providerDao.saveProvider(p);
	
	HnrDataValidation entity = new HnrDataValidation();
	EntityDataGenerator.generateTestDataForModelClass(entity);
	entity.setFacilityId(f.getId());
	entity.setClientId(d.getDemographicNo());
	entity.setValidatorProviderNo(p.getProviderNo());
	entity.setValidationType(HnrDataValidation.Type.HC_INFO);
	dao.persist(entity);
	assertNotNull(entity.getId());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:40,代码来源:HnrDataValidationDaoTest.java

示例3: testManyToManyRelationship

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Test
public void testManyToManyRelationship() throws Exception {
	Site entity = new Site();
	EntityDataGenerator.generateTestDataForModelClass(entity);
	entity.setStatus((byte)1);
	entity.setShortName("name1");
	dao.persist(entity);
	assertNotNull(entity.getId());
	Integer siteId1 = entity.getId();

	entity = new Site();
	EntityDataGenerator.generateTestDataForModelClass(entity);
	entity.setStatus((byte)1);
	entity.setShortName("name2");
	dao.persist(entity);
	assertNotNull(entity.getId());
	Integer siteId2 = entity.getId();

	//create a provider
	Provider p = new Provider();
	p.setProviderNo("000001");
	p.setLastName("Smith");
	p.setFirstName("John");
	p.setProviderType("doctor");
	p.setDob(new Date());
	p.setLastUpdateUser("999998");
	p.setLastUpdateDate(new Date());
	p.setSex("M");
	p.setSpecialty("");
	ProviderDao providerDao = (ProviderDao)SpringUtils.getBean("providerDao");
	providerDao.saveProvider(p);

	ProviderSiteDao providerSiteDao = SpringUtils.getBean(ProviderSiteDao.class);
	ProviderSite ps = new ProviderSite();
	ps.setId(new ProviderSitePK());
	ps.getId().setProviderNo(p.getProviderNo());
	ps.getId().setSiteId(siteId1);
	providerSiteDao.persist(ps);

	ps = new ProviderSite();
	ps.setId(new ProviderSitePK());
	ps.getId().setProviderNo(p.getProviderNo());
	ps.getId().setSiteId(siteId2);
	providerSiteDao.persist(ps);

	Site s = dao.find(siteId1);
	assertNotNull(s.getProviders());
	assertEquals(s.getProviders().size(),1);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:50,代码来源:SiteDaoTest.java

示例4: testCreate

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Test
public void testCreate() throws Exception {
	Facility f = new Facility();
	f.setDescription("test");
	f.setDisabled(false);
	f.setName("test");
	f.setOcanServiceOrgNumber("0");
	f.setOrgId(0);
	f.setSectorId(0);
	facilityDao.persist(f);
	
	Demographic d = new Demographic();
	d.setFirstName("a");
	d.setLastName("b");
	d.setYearOfBirth("2000");
	d.setMonthOfBirth("1");
	d.setDateOfBirth("1");
	d.setSex("M");
	demographicDao.save(d);
	
	Provider p = new Provider();
	p.setLastName("x");
	p.setFirstName("y");
	p.setProviderNo("111111");
	p.setProviderType("doctor");
	p.setSex("M");
	p.setDob(new java.util.Date());
	p.setSpecialty("MD");
	providerDao.saveProvider(p);
	
	IntegratorConsent entity = new IntegratorConsent();
	EntityDataGenerator.generateTestDataForModelClass(entity);
	entity.setClientConsentStatus(ConsentStatus.GIVEN);
	entity.setSignatureStatus(SignatureStatus.ELECTRONIC);
	entity.setDemographicId(d.getDemographicNo());
	entity.setDigitalSignatureId(null);
	entity.setFacilityId(f.getId());
	entity.setProviderNo(p.getProviderNo());
	
	dao.persist(entity);
	assertNotNull(entity.getId());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:43,代码来源:IntegratorConsentDaoTest.java

示例5: testCreate

import org.oscarehr.common.model.Provider; //导入方法依赖的package包/类
@Test
public void testCreate() throws Exception {
	Facility f = new Facility();
	f.setDescription("test");
	f.setDisabled(false);
	f.setName("test");
	f.setOcanServiceOrgNumber("0");
	f.setOrgId(0);
	f.setSectorId(0);
	facilityDao.persist(f);
	
	Demographic d = new Demographic();
	d.setFirstName("a");
	d.setLastName("b");
	d.setYearOfBirth("2000");
	d.setMonthOfBirth("1");
	d.setDateOfBirth("1");
	d.setSex("M");
	demographicDao.save(d);
	
	Provider p = new Provider();
	p.setLastName("x");
	p.setFirstName("y");
	p.setProviderNo("111111");
	p.setProviderType("doctor");
	p.setSex("M");
	p.setDob(new java.util.Date());
	p.setSpecialty("MD");
	providerDao.saveProvider(p);
	
	DigitalSignature entity = new DigitalSignature();
	EntityDataGenerator.generateTestDataForModelClass(entity);
	entity.setDemographicId(d.getDemographicNo());
	entity.setFacilityId(f.getId());
	entity.setProviderNo(p.getProviderNo());
	byte[] b = new byte[1024];
	for(int x=0;x<b.length;x++) {
		b[x] = (byte)0x01;
	}
	entity.setSignatureImage(b);
	dao.persist(entity);
	assertNotNull(entity.getId());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:44,代码来源:DigitalSignatureDaoTest.java


注:本文中的org.oscarehr.common.model.Provider.setDob方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。