本文整理了Java中org.openmrs.Obs.getCreator()
方法的一些代码示例,展示了Obs.getCreator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Obs.getCreator()
方法的具体详情如下:
包路径:org.openmrs.Obs
类名称:Obs
方法名:getCreator
暂无
代码示例来源:origin: openmrs/openmrs-core
/**
* @param creator
* @see Auditable#setCreator(User)
*/
@Override
public void setCreator(User creator) {
markAsDirty(getCreator(), creator);
super.setCreator(creator);
}
代码示例来源:origin: openmrs/openmrs-core
/**
* @see ObsService#saveObs(Obs,String)
*/
@Test
public void saveObs_shouldSetCreatorAndDateCreatedOnNewObs() {
Obs o = new Obs();
o.setConcept(Context.getConceptService().getConcept(3));
o.setPerson(new Patient(2));
o.setEncounter(new Encounter(3));
o.setObsDatetime(new Date());
o.setLocation(new Location(1));
o.setValueNumeric(50d);
Context.getObsService().saveObs(o, null);
assertNotNull(o.getDateCreated());
assertNotNull(o.getCreator());
}
代码示例来源:origin: openmrs/openmrs-core
assertEquals(creator, createdObs.getCreator());
代码示例来源:origin: openmrs/openmrs-core
newObs.setComment(obsToCopy.getComment());
newObs.setEncounter(obsToCopy.getEncounter());
newObs.setCreator(obsToCopy.getCreator());
newObs.setDateCreated(obsToCopy.getDateCreated());
newObs.setVoided(obsToCopy.getVoided());
内容来源于网络,如有侵权,请联系作者删除!