本文整理了Java中org.openmrs.Obs.getDateVoided()
方法的一些代码示例,展示了Obs.getDateVoided()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Obs.getDateVoided()
方法的具体详情如下:
包路径:org.openmrs.Obs
类名称:Obs
方法名:getDateVoided
暂无
代码示例来源:origin: openmrs/openmrs-core
assertNotNull(alreadyVoidedObs.getDateVoided());
assertNotNull(alreadyVoidedObs.getVoidReason());
assertNull(toBeVoidedObs.getDateVoided());
assertNull(toBeVoidedObs.getVoidReason());
assertNull(unVoidedObsToUpdate.getDateVoided());
assertNull(unVoidedObsToUpdate.getVoidReason());
assertNull(unVoidedObs.getDateVoided());
assertNull(unVoidedObs.getVoidReason());
assertNotNull(unVoidedObsToUpdate.getDateVoided());
assertNotNull(unVoidedObsToUpdate.getVoidReason());
assertNull(unVoidedObs.getDateVoided());
assertNull(unVoidedObs.getVoidReason());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
/**
* Calculates the date an encounter was last modified by checking the creation and voided times
* of all Obs and Orders associated with the Encounter
*
* @param encounter
* @return last modified time, as a Long
*/
public static long getEncounterModifiedDate(Encounter encounter) {
long ret = encounter.getDateCreated().getTime();
if (encounter.getDateVoided() != null)
ret = Math.max(ret, encounter.getDateVoided().getTime());
for (Obs o : encounter.getAllObs(true)) {
ret = Math.max(ret, o.getDateCreated().getTime());
if (o.getDateVoided() != null)
ret = Math.max(ret, o.getDateVoided().getTime());
}
for (Order o : encounter.getOrders()) {
ret = Math.max(ret, o.getDateCreated().getTime());
if (o.getDateVoided() != null)
ret = Math.max(ret, o.getDateVoided().getTime());
}
return ret;
}
代码示例来源:origin: openmrs/openmrs-core
assertNull(obs.getDateVoided());
assertNull(obs.getVoidedBy());
assertNull(obs.getVoidReason());
assertNotNull(obs.getDateVoided());
assertNotNull(obs.getVoidedBy());
assertNotNull(obs.getVoidReason());
代码示例来源:origin: openmrs/openmrs-core
assertTrue(childLeafObs.getVoided());
childLeafObs.setDateVoided(new Date(childLeafObs.getDateVoided().getTime() - 5000));
代码示例来源:origin: openmrs/openmrs-core
newObs.setVoided(obsToCopy.getVoided());
newObs.setVoidedBy(obsToCopy.getVoidedBy());
newObs.setDateVoided(obsToCopy.getDateVoided());
newObs.setVoidReason(obsToCopy.getVoidReason());
newObs.setStatus(obsToCopy.getStatus());
内容来源于网络,如有侵权,请联系作者删除!