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


Java IVL类代码示例

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


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

示例1: getDuration

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private ISetComponent<TS> getDuration() {
	IVL<TS> ivl = new IVL<TS>();

	try {
		if(!EverestUtils.isNullorEmptyorWhitespace(drug.getDuration()) && drug.getDuration() != "0" &&
				!EverestUtils.isNullorEmptyorWhitespace(drug.getDurUnit())) {
			BigDecimal duration = new BigDecimal(drug.getDuration());
			ivl.setWidth(new PQ(duration, drug.getDurUnit()));
		} else {
			ivl.setNullFlavor(NullFlavor.Unknown);
		}
	} catch (NumberFormatException e) {
		log.warn("Duration " + drug.getDuration() + " not a number");
		ivl.setNullFlavor(NullFlavor.Unknown);
	}

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

示例2: populateNullFlavorClinicalStatement

import org.marc.everest.datatypes.generic.IVL; //导入依赖的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

示例3: effectiveTimeNullTest

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
@Test
public void effectiveTimeNullTest() {
	nullDrug.setRxDate(null);

	SubstanceAdministration substanceAdministration = substanceAdministrationHelper(nullDrug);
	ArrayList<ISetComponent<TS>> effectiveTime = substanceAdministration.getEffectiveTime();
	assertNotNull(effectiveTime);
	assertEquals(1, effectiveTime.size());

	IVL<TS> ivl = (IVL<TS>) effectiveTime.get(0);
	assertNotNull(ivl);
	assertEquals(SetOperator.Inclusive, ivl.getOperator());
	assertTrue(ivl.getLow().isNull());
	assertEquals(NullFlavor.Unknown, ivl.getLow().getNullFlavor().getCode());
	assertNull(ivl.getHigh());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:17,代码来源:MedicationPrescriptionEventModelTest.java

示例4: reasonObservationAllTest

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
@Test
public void reasonObservationAllTest() {
	Observation observation = reactionObservationStructureTestHelper(test, time, Constants.Runtime.VALID_PROVIDER.toString(), test);

	IVL<TS> ivl = observation.getEffectiveTime();
	assertNotNull(ivl);
	assertEquals(EverestUtils.buildTSFromDate(time), ivl.getLow());

	ArrayList<Author> authors = observation.getAuthor();
	assertNotNull(authors);
	assertEquals(1, authors.size());

	ArrayList<EntryRelationship> entryRelationships = observation.getEntryRelationship();
	assertNotNull(entryRelationships);
	assertEquals(1, entryRelationships.size());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:17,代码来源:ReactionObservationModelTest.java

示例5: reasonObservationCommentOnlyTest

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
@Test
public void reasonObservationCommentOnlyTest() {
	Observation observation = reasonObservationStructureTestHelper(test, null, null);
	ED text = observation.getText();
	assertNotNull(text);
	assertEquals(test, new String(text.getData()));

	IVL<TS> ivl = observation.getEffectiveTime();
	assertNotNull(ivl);
	assertTrue(ivl.isNull());
	assertEquals(NullFlavor.NoInformation, ivl.getNullFlavor().getCode());

	ArrayList<Author> authors = observation.getAuthor();
	assertNotNull(authors);
	assertTrue(authors.isEmpty());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:17,代码来源:ReasonObservationModelTest.java

示例6: problemsEffectiveTimeLensGetTest

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
@Test
public void problemsEffectiveTimeLensGetTest() {
	ProblemsEffectiveTimeLens lens = new ProblemsEffectiveTimeLens();
	assertNotNull(lens);

	Pair<Dxresearch, Entry> pair = lens.get(getPair);
	assertNotNull(pair);
	assertNotNull(pair.getLeft());
	assertNotNull(pair.getRight());

	IVL<TS> effectiveTime = pair.getRight().getClinicalStatementIfObservation().getEffectiveTime();
	assertNotNull(effectiveTime);
	assertFalse(effectiveTime.isNull());
	assertFalse(effectiveTime.getLow().isNull());
	assertFalse(effectiveTime.getLow().isInvalidDate());
	assertEquals(new TSDateLens().get(problem.getStartDate()), effectiveTime.getLow());
}
 
开发者ID:jujaga,项目名称:bxe2e,代码行数:18,代码来源:ProblemsLensesTest.java

示例7: problemsDiagnosisDateLensGetTest

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
@Test
public void problemsDiagnosisDateLensGetTest() {
	ProblemsDiagnosisDateLens lens = new ProblemsDiagnosisDateLens();
	assertNotNull(lens);

	Pair<Dxresearch, Entry> pair = lens.get(getPair);
	assertNotNull(pair);
	assertNotNull(pair.getLeft());
	assertNotNull(pair.getRight());

	ArrayList<EntryRelationship> entryRelationships = pair.getRight().getClinicalStatementIfObservation().getEntryRelationship();
	EntryRelationship entryRelationship = EverestUtils.findEntryRelationship(entryRelationships, Constants.ObservationOids.DATE_OBSERVATION_TEMPLATE_ID);
	assertNotNull(entryRelationship);

	IVL<TS> ivl = entryRelationship.getClinicalStatementIfObservation().getEffectiveTime();
	assertNotNull(ivl);
	assertFalse(ivl.isNull());
	assertFalse(ivl.getLow().isNull());
	assertFalse(ivl.getLow().isInvalidDate());
	assertEquals(new TSDateLens().get(problem.getUpdateDate()), ivl.getLow());
}
 
开发者ID:jujaga,项目名称:bxe2e,代码行数:22,代码来源:ProblemsLensesTest.java

示例8: setEffectiveTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private void setEffectiveTime() {
	IVL<TS> ivl = null;
	TS startTime = EverestUtils.buildTSFromDate(problem.getStartDate());
	if(startTime != null) {
		ivl = new IVL<TS>(startTime, null);
	}

	this.effectiveTime = ivl;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:10,代码来源:ProblemsModel.java

示例9: setEffectiveTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private void setEffectiveTime() {
	IVL<TS> ivl = null;
	TS startTime = EverestUtils.buildTSFromDate(encounter.getObservation_date());
	if(startTime != null) {
		ivl = new IVL<TS>(startTime, null);
	}

	this.effectiveTime = ivl;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:10,代码来源:EncountersModel.java

示例10: setEffectiveTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private void setEffectiveTime() {
	IVL<TS> ivl = new IVL<TS>();
	TS startTime = EverestUtils.buildTSFromDate(allergy.getEntryDate());
	if(startTime != null) {
		ivl.setLow(startTime);
	} else {
		ivl.setNullFlavor(NullFlavor.Unknown);
	}

	this.effectiveTime = ivl;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:12,代码来源:AllergiesModel.java

示例11: getOnsetDate

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
protected IVL<TS> getOnsetDate() {
	IVL<TS> ivl = new IVL<TS>();
	TS startTime = EverestUtils.buildTSFromDate(allergy.getStartDate());
	if(startTime != null) {
		ivl.setLow(startTime);
	} else {
		ivl.setNullFlavor(NullFlavor.Unknown);
	}

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

示例12: setEffectiveTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private void setEffectiveTime() {
	IVL<TS> ivl = new IVL<TS>();
	TS startTime = EverestUtils.buildTSFromDate(familyHistory.getFamilyHistory().getObservation_date());
	if(startTime != null) {
		ivl.setLow(startTime);
	} else {
		ivl.setNullFlavor(NullFlavor.NoInformation);
	}

	this.effectiveTime = ivl;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:12,代码来源:FamilyHistoryModel.java

示例13: getObservationDate

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
protected IVL<TS> getObservationDate() {
	IVL<TS> ivl = null;
	TS startTime = EverestUtils.buildTSFromDate(riskFactor.getObservation_date());
	if(startTime != null) {
		ivl = new IVL<TS>(startTime, null);
	}

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

示例14: setEffectiveTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private void setEffectiveTime() {
	IVL<TS> ivl = new IVL<TS>();
	TS startTime = EverestUtils.buildTSFromDate(alert.getObservation_date());
	if(startTime != null) {
		ivl.setLow(startTime);
	} else {
		ivl.setNullFlavor(NullFlavor.NoInformation);
	}

	this.effectiveTime = ivl;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:12,代码来源:AlertsModel.java

示例15: getComponentTime

import org.marc.everest.datatypes.generic.IVL; //导入依赖的package包/类
private IVL<TS> getComponentTime() {
	IVL<TS> ivl = null;
	TS startTime = EverestUtils.buildTSFromDate(measurement.getDateObserved(), TS.SECONDNOTIMEZONE);
	if(startTime != null) {
		ivl = new IVL<TS>(startTime, null);
	}

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


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