本文整理汇总了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());
}
示例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)));
}
示例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());
}
示例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)));
}
示例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());
}
示例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()));
}
示例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()));
}
示例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()));
}
示例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()));
}
示例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());
}
示例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());
}
示例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());
}
示例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()));
}
示例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()));
}
示例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()));
}