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


Java SET类代码示例

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


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

示例1: getAllergen

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
protected ArrayList<Participant2> getAllergen() {
	Participant2 participant = new Participant2(ParticipationType.Consumable, ContextControl.OverridingPropagating);
	ParticipantRole participantRole = new ParticipantRole(new CD<String>(Constants.RoleClass.MANU.toString()));
	PlayingEntity playingEntity = new PlayingEntity(EntityClassRoot.ManufacturedMaterial);

	CE<String> code = new CE<String>();
	if(!EverestUtils.isNullorEmptyorWhitespace(allergy.getRegionalIdentifier())) {
		code.setCodeEx(allergy.getRegionalIdentifier());
		code.setCodeSystem(Constants.CodeSystems.DIN_OID);
		code.setCodeSystemName(Constants.CodeSystems.DIN_NAME);
	} else {
		code.setNullFlavor(NullFlavor.NoInformation);
	}

	SET<PN> names = new SET<PN>(new PN(null, Arrays.asList(new ENXP(allergy.getDescription()))));

	playingEntity.setCode(code);
	playingEntity.setName(names);

	participantRole.setPlayingEntityChoice(playingEntity);
	participant.setParticipantRole(participantRole);

	return new ArrayList<Participant2>(Arrays.asList(participant));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:25,代码来源:AllergiesModel.java

示例2: setParticipant

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
private void setParticipant() {
	Participant2 participant = new Participant2(ParticipationType.LOC, ContextControl.OverridingPropagating);
	ParticipantRole participantRole = new ParticipantRole(new CD<String>(Constants.RoleClass.SDLOC.toString()));
	PlayingEntity playingEntity = new PlayingEntity(EntityClassRoot.Organization);

	if(!EverestUtils.isNullorEmptyorWhitespace(immunization.getPreventionMap().get(Constants.PreventionExtKeys.location.toString()))) {
		SET<PN> names = new SET<PN>();
		ArrayList<ENXP> name = new ArrayList<ENXP>();
		name.add(new ENXP(immunization.getPreventionMap().get(Constants.PreventionExtKeys.location.toString())));
		names.add(new PN(null, name));
		playingEntity.setName(names);
	}

	participantRole.setPlayingEntityChoice(playingEntity);
	participant.setParticipantRole(participantRole);

	this.participant = new ArrayList<Participant2>(Arrays.asList(participant));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:19,代码来源:ImmunizationsModel.java

示例3: getInterpretationCode

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
private SET<CE<ObservationInterpretation>> getInterpretationCode() {
	String abnormal = labComponent.getMeasurementsMap().get(Constants.MeasurementsExtKeys.abnormal.toString());
	SET<CE<ObservationInterpretation>> interpretationCodes = null;
	if(!EverestUtils.isNullorEmptyorWhitespace(abnormal)) {
		CE<ObservationInterpretation> interpretation = new CE<ObservationInterpretation>();
		if(abnormal.equalsIgnoreCase(Labs.ABNORMAL_CODE)) {
			interpretation.setCodeEx(ObservationInterpretation.Abnormal);
			interpretation.setDisplayName(Labs.ABNORMAL);
		} else {
			interpretation.setCodeEx(ObservationInterpretation.Normal);
			interpretation.setDisplayName(Labs.NORMAL);
		}
		interpretationCodes = new SET<CE<ObservationInterpretation>>(interpretation);
	}

	return interpretationCodes;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:18,代码来源:ResultComponentModel.java

示例4: getPerformer

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
private ArrayList<Performer2> getPerformer() {
	String labname = labComponent.getMeasurementsMap().get(Constants.MeasurementsExtKeys.labname.toString());
	ArrayList<Performer2> performers = null;
	if(!EverestUtils.isNullorEmptyorWhitespace(labname)) {
		Performer2 performer = new Performer2();
		AssignedEntity assignedEntity = new AssignedEntity();
		Organization organization = new Organization();

		II ii = new II();
		ii.setNullFlavor(NullFlavor.NoInformation);
		ON on = new ON(EntityNameUse.OfficialRecord, Arrays.asList(new ENXP(labname)));
		organization.setName(new SET<ON>(on));

		assignedEntity.setId(new SET<II>(ii));
		assignedEntity.setRepresentedOrganization(organization);

		performer.setTemplateId(Arrays.asList(new II(Constants.TemplateOids.PERFORMER_PARTICIPATION_TEMPLATE_ID)));
		performer.setTime(getTime());
		performer.setAssignedEntity(assignedEntity);
		performers = new ArrayList<Performer2>(Arrays.asList(performer));
	}

	return performers;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:25,代码来源:ResultComponentModel.java

示例5: setIds

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
private void setIds() {
	II id = new II();
	if(!EverestUtils.isNullorEmptyorWhitespace(provider.getPractitionerNo())) {
		id.setRoot(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_ID_OID);
		id.setAssigningAuthorityName(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_NAME);
		id.setExtension(provider.getPractitionerNo());
	} else if (!EverestUtils.isNullorEmptyorWhitespace(provider.getOhipNo())) {
		id.setRoot(Constants.DocumentHeader.MEDICAL_SERVICES_PLAN_BILLING_NUMBER_OID);
		id.setAssigningAuthorityName(Constants.DocumentHeader.MEDICAL_SERVICES_PLAN_BILLING_NUMBER_NAME);
		id.setExtension(provider.getOhipNo());
	} else if (provider.getId() != null) {
		id.setRoot(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_OID);
		id.setAssigningAuthorityName(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_NAME);
		id.setExtension(provider.getId());
	} else {
		id.setNullFlavor(NullFlavor.NoInformation);
	}
	this.ids = new SET<II>(id);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:20,代码来源:AuthorModel.java

示例6: populateNullFlavorClinicalStatement

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
@Override
public ClinicalStatement populateNullFlavorClinicalStatement() {
	Observation observation = new Observation(x_ActMoodDocumentObservation.RQO);

	observation.setId(EverestUtils.buildUniqueId(Constants.IdPrefixes.Referrals, 0));
	observation.setCode(new CD<String>() {{setNullFlavor(NullFlavor.NoInformation);}});
	observation.setText(new ED() {{setNullFlavor(NullFlavor.NoInformation);}});
	observation.setEffectiveTime(new IVL<TS>() {{setNullFlavor(NullFlavor.NoInformation);}});

	II ii = new II();
	ii.setNullFlavor(NullFlavor.NoInformation);
	AssignedEntity assignedEntity = new AssignedEntity();
	assignedEntity.setId(new SET<II>(ii));
	Performer2 performer = new Performer2(assignedEntity);
	observation.setPerformer(new ArrayList<Performer2>(Arrays.asList(performer)));
	observation.setAuthor(new ArrayList<Author>(Arrays.asList(new AuthorParticipationModel().getAuthor(null))));

	return observation;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:20,代码来源:OrdersAndRequestsPopulator.java

示例7: providerParticipationStructureTest

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
@Test
public void providerParticipationStructureTest() {
	Participant2 provider = new ProviderParticipationModel(Constants.Runtime.VALID_PROVIDER.toString()).getProvider();
	assertNotNull(provider);
	assertEquals(ParticipationType.PrimaryPerformer, provider.getTypeCode().getCode());
	assertEquals(ContextControl.OverridingPropagating, provider.getContextControlCode().getCode());
	assertTrue(provider.getTemplateId().contains(new II(Constants.TemplateOids.PROVIDER_PARTICIPATION_TEMPLATE_ID)));

	ParticipantRole participantRole = provider.getParticipantRole();
	assertNotNull(participantRole);
	assertNotNull(participantRole.getId());

	PlayingEntity playingEntity = participantRole.getPlayingEntityChoiceIfPlayingEntity();
	assertNotNull(playingEntity);
	assertNotNull(playingEntity.getDesc());

	SET<PN> names = playingEntity.getName();
	assertNotNull(names);
	assertFalse(names.isNull());
	assertFalse(names.isEmpty());
	assertNotNull(names.get(0));
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:23,代码来源:ProviderParticipationModelTest.java

示例8: providerParticipationNullTest

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
@Test
public void providerParticipationNullTest() {
	Participant2 provider = new ProviderParticipationModel(null).getProvider();
	assertNotNull(provider);
	assertEquals(ParticipationType.PrimaryPerformer, provider.getTypeCode().getCode());
	assertEquals(ContextControl.OverridingPropagating, provider.getContextControlCode().getCode());
	assertTrue(provider.getTemplateId().contains(new II(Constants.TemplateOids.PROVIDER_PARTICIPATION_TEMPLATE_ID)));

	ParticipantRole participantRole = provider.getParticipantRole();
	assertNotNull(participantRole);
	assertNotNull(participantRole.getId());

	PlayingEntity playingEntity = participantRole.getPlayingEntityChoiceIfPlayingEntity();
	assertNotNull(playingEntity);
	assertNotNull(playingEntity.getDesc());

	SET<PN> names = playingEntity.getName();
	assertNotNull(names);
	assertFalse(names.isNull());
	assertFalse(names.isEmpty());
	assertNotNull(names.get(0));
	assertTrue(names.get(0).isNull());
	assertEquals(NullFlavor.NoInformation, names.get(0).getNullFlavor().getCode());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:25,代码来源:ProviderParticipationModelTest.java

示例9: 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

示例10: 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

示例11: nameFullTest

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
@Test
public void nameFullTest() {
	SET<PN> names = recordTargetModel.getNames();
	assertNotNull(names);
	assertEquals(1, names.size());

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

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

示例12: 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

示例13: 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

示例14: ProviderIdLens

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
public ProviderIdLens() {
	get = source -> {
		SET<II> ids = source.getRight().get(0).getAssignedAuthor().getId();

		if(ids == null) {
			ids = new AuthorIdLens().get(source.getLeft());
		}

		source.getRight().get(0).getAssignedAuthor().setId(ids);
		return new ImmutablePair<>(source.getLeft(), source.getRight());
	};

	put = (source, target) -> {
		return new ImmutablePair<>(target.getLeft(), target.getRight());
	};
}
 
开发者ID:jujaga,项目名称:bxe2e,代码行数:17,代码来源:ProviderIdLens.java

示例15: ProviderTelecomLens

import org.marc.everest.datatypes.generic.SET; //导入依赖的package包/类
public ProviderTelecomLens() {
	get = source -> {
		Provider provider = EverestUtils.getProviderFromString(source.getLeft());
		SET<TEL> telecoms = source.getRight().get(0).getAssignedAuthor().getTelecom();

		if(telecoms == null && provider != null) {
			ArrayList<TEL> tels = new ArrayList<>();
			tels.add(new TelecomPartLens(TelecomType.TELEPHONE, TelecommunicationsAddressUse.Home).get(provider.getPhone()));
			tels.add(new TelecomPartLens(TelecomType.TELEPHONE, TelecommunicationsAddressUse.WorkPlace).get(provider.getWorkPhone()));
			tels.add(new TelecomPartLens(TelecomType.EMAIL, TelecommunicationsAddressUse.Home).get(provider.getEmail()));
			tels.removeAll(Collections.singleton(null));

			if(!tels.isEmpty()) {
				telecoms = new SET<>(tels);
			}
		}

		source.getRight().get(0).getAssignedAuthor().setTelecom(telecoms);
		return new ImmutablePair<>(source.getLeft(), source.getRight());
	};

	put = (source, target) -> {
		return new ImmutablePair<>(target.getLeft(), target.getRight());
	};
}
 
开发者ID:jujaga,项目名称:bxe2e,代码行数:26,代码来源:ProviderTelecomLens.java


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