本文整理了Java中org.openmrs.Order.setVoidReason()
方法的一些代码示例,展示了Order.setVoidReason()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.setVoidReason()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:setVoidReason
暂无
代码示例来源:origin: openmrs/openmrs-core
/**
* @see OrderValidator#validate(Object,Errors)
*/
@Test
public void validate_shouldPassValidationIfFieldLengthsAreCorrect() {
Order order = new Order();
Encounter encounter = new Encounter();
order.setConcept(Context.getConceptService().getConcept(88));
order.setOrderer(Context.getProviderService().getProvider(1));
Patient patient = Context.getPatientService().getPatient(2);
encounter.setPatient(patient);
order.setPatient(patient);
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH, cal.get(Calendar.DAY_OF_MONTH) - 1);
order.setDateActivated(cal.getTime());
order.setAutoExpireDate(new Date());
order.setCareSetting(new CareSetting());
order.setEncounter(encounter);
order.setUrgency(Order.Urgency.ROUTINE);
order.setAction(Order.Action.NEW);
order.setOrderReasonNonCoded("orderReasonNonCoded");
order.setAccessionNumber("accessionNumber");
order.setCommentToFulfiller("commentToFulfiller");
order.setVoidReason("voidReason");
Errors errors = new BindException(order, "order");
new OrderValidator().validate(order, errors);
Assert.assertFalse(errors.hasErrors());
}
代码示例来源:origin: openmrs/openmrs-core
.setCommentToFulfiller("too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text");
order
.setVoidReason("too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text too long text");
代码示例来源:origin: openmrs/openmrs-core
target.setVoidedBy(getVoidedBy());
target.setDateVoided(getDateVoided());
target.setVoidReason(getVoidReason());
target.setUrgency(getUrgency());
target.setCommentToFulfiller(getCommentToFulfiller());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
o.setVoided(true);
o.setVoidedBy(Context.getAuthenticatedUser());
o.setVoidReason(voidReason);
o.setDateVoided(new Date());
matched = true;
内容来源于网络,如有侵权,请联系作者删除!