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


Java SET.get方法代码示例

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


在下文中一共展示了SET.get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: telecomFullTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void telecomFullTest() {
	SET<TEL> telecoms = authorModel.getTelecoms();
	assertNotNull(telecoms);
	assertEquals(3, telecoms.size());

	TEL tel0 = telecoms.get(0);
	assertNotNull(tel0);
	assertTrue(TEL.isValidPhoneFlavor(tel0));
	assertEquals("tel:" + provider.getPhone().replaceAll("-", ""), tel0.getValue());

	TEL tel1 = telecoms.get(1);
	assertNotNull(tel1);
	assertTrue(TEL.isValidPhoneFlavor(tel1));
	assertEquals("tel:" + provider.getWorkPhone().replaceAll("-", ""), tel1.getValue());

	TEL tel2 = telecoms.get(2);
	assertNotNull(tel2);
	assertTrue(TEL.isValidEMailFlavor(tel2));
	assertEquals("mailto:" + provider.getEmail(), tel2.getValue());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:22,代码来源:AuthorModelTest.java

示例2: addressFullTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void addressFullTest() {
	SET<AD> addrSet = recordTargetModel.getAddresses();
	assertNotNull(addrSet);
	assertEquals(1, addrSet.size());

	AD addr = addrSet.get(0);
	assertNotNull(addr);
	assertEquals(1, addr.getUse().size());
	assertEquals(PostalAddressUse.HomeAddress, addr.getUse().get(0).getCode());

	assertEquals(4, addr.getPart().size());
	assertTrue(addr.getPart().contains(new ADXP(demographic.getAddress(), AddressPartType.Delimiter)));
	assertTrue(addr.getPart().contains(new ADXP(demographic.getCity(), AddressPartType.City)));
	assertTrue(addr.getPart().contains(new ADXP(demographic.getProvince(), AddressPartType.State)));
	assertTrue(addr.getPart().contains(new ADXP(demographic.getPostal(), AddressPartType.PostalCode)));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:18,代码来源:RecordTargetModelTest.java

示例3: telecomFullTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void telecomFullTest() {
	SET<TEL> telecoms = recordTargetModel.getTelecoms();
	assertNotNull(telecoms);
	assertEquals(3, telecoms.size());

	TEL tel0 = telecoms.get(0);
	assertNotNull(tel0);
	assertTrue(TEL.isValidPhoneFlavor(tel0));
	assertEquals("tel:" + demographic.getPhone().replaceAll("-", ""), tel0.getValue());

	TEL tel1 = telecoms.get(1);
	assertNotNull(tel1);
	assertTrue(TEL.isValidPhoneFlavor(tel1));
	assertEquals("tel:" + demographic.getPhone2().replaceAll("-", ""), tel1.getValue());

	TEL tel2 = telecoms.get(2);
	assertNotNull(tel2);
	assertTrue(TEL.isValidEMailFlavor(tel2));
	assertEquals("mailto:" + demographic.getEmail(), tel2.getValue());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:22,代码来源:RecordTargetModelTest.java

示例4: personFullTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void personFullTest() {
	Person person = authorModel.getPerson();
	assertNotNull(person);

	SET<PN> names = person.getName();
	assertNotNull(names);
	assertEquals(1, names.size());

	PN name = names.get(0);
	assertNotNull(name);
	assertEquals(EntityNameUse.OfficialRecord, name.getUse().get(0).getCode());

	List<ENXP> nameParts = name.getParts();
	assertNotNull(nameParts);
	assertEquals(2, nameParts.size());
	assertTrue(nameParts.contains(new ENXP(provider.getFirstName(), EntityNamePartType.Given)));
	assertTrue(nameParts.contains(new ENXP(provider.getLastName(), EntityNamePartType.Family)));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:20,代码来源:AuthorModelTest.java

示例5: idPractitionerNoTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idPractitionerNoTest() {
	SET<II> ids = authorModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_ID_OID, id.getRoot());
	assertEquals(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_NAME, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertEquals(provider.getPractitionerNo(), id.getExtension());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:13,代码来源:AuthorModelTest.java

示例6: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = riskFactorsModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.RiskFactors.toString()));
	assertTrue(id.getExtension().contains(riskFactor.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:RiskFactorsModelTest.java

示例7: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = immunizationsModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.Immunizations.toString()));
	assertTrue(id.getExtension().contains(prevention.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:ImmunizationsModelTest.java

示例8: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = encountersModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.Encounters.toString()));
	assertTrue(id.getExtension().contains(encounter.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:EncountersModelTest.java

示例9: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = medicationsModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.Medications.toString()));
	assertTrue(id.getExtension().contains(drug.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:MedicationsModelTest.java

示例10: personNullTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void personNullTest() {
	Person person = nullAuthorModel.getPerson();
	assertNotNull(person);

	SET<PN> names = person.getName();
	assertNotNull(names);
	assertEquals(1, names.size());

	PN name = names.get(0);
	assertNotNull(name);
	assertTrue(name.isNull());
	assertEquals(NullFlavor.NoInformation, name.getNullFlavor().getCode());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:15,代码来源:AuthorModelTest.java

示例11: deviceIdTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void deviceIdTest() {
	SET<II> ids = authorModel.getDeviceIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertTrue(id.isNull());
	assertEquals(NullFlavor.NoInformation, id.getNullFlavor().getCode());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:11,代码来源:AuthorModelTest.java

示例12: idProviderNoTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idProviderNoTest() {
	nullProvider.set("1");
	AuthorModel model = new AuthorModel(nullProvider);

	SET<II> ids = model.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_OID, id.getRoot());
	assertEquals(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_NAME, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertEquals(nullProvider.getId(), id.getExtension());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:16,代码来源:AuthorModelTest.java

示例13: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = problemsModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.ProblemList.toString()));
	assertTrue(id.getExtension().contains(problem.getDxresearchNo().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:ProblemsModelTest.java

示例14: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = alertsModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.Alerts.toString()));
	assertTrue(id.getExtension().contains(alert.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:AlertsModelTest.java

示例15: idTest

import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
@Test
public void idTest() {
	SET<II> ids = allergiesModel.getIds();
	assertNotNull(ids);

	II id = ids.get(0);
	assertNotNull(id);
	assertEquals(Constants.EMR.EMR_OID, id.getRoot());
	assertEquals(Constants.EMR.EMR_VERSION, id.getAssigningAuthorityName());
	assertFalse(EverestUtils.isNullorEmptyorWhitespace(id.getExtension()));
	assertTrue(id.getExtension().contains(Constants.IdPrefixes.Allergies.toString()));
	assertTrue(id.getExtension().contains(allergy.getId().toString()));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:14,代码来源:AllergiesModelTest.java


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