本文整理了Java中org.openmrs.Order.getOrderReason()
方法的一些代码示例,展示了Order.getOrderReason()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.getOrderReason()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:getOrderReason
暂无
代码示例来源:origin: openmrs/openmrs-core
target.setUrgency(getUrgency());
target.setCommentToFulfiller(getCommentToFulfiller());
target.setOrderReason(getOrderReason());
target.setOrderReasonNonCoded(getOrderReasonNonCoded());
target.setOrderGroup(getOrderGroup());
代码示例来源:origin: openmrs/openmrs-core
/**
* @see OrderService#discontinueOrder(org.openmrs.Order, org.openmrs.Concept, java.util.Date,
* org.openmrs.Provider, org.openmrs.Encounter)
*/
@Test
public void discontinueOrder_shouldSetCorrectAttributesOnTheDiscontinueAndDiscontinuedOrders() {
executeDataSet("org/openmrs/api/include/OrderServiceTest-discontinueReason.xml");
Order order = orderService.getOrderByOrderNumber("111");
Encounter encounter = encounterService.getEncounter(3);
Provider orderer = providerService.getProvider(1);
Date discontinueDate = new Date();
Concept concept = Context.getConceptService().getConcept(1);
Order discontinueOrder = orderService.discontinueOrder(order, concept, discontinueDate, orderer, encounter);
Assert.assertEquals(order.getDateStopped(), discontinueDate);
Assert.assertNotNull(discontinueOrder);
Assert.assertNotNull(discontinueOrder.getId());
Assert.assertEquals(discontinueOrder.getDateActivated(), discontinueOrder.getAutoExpireDate());
Assert.assertEquals(discontinueOrder.getAction(), Action.DISCONTINUE);
Assert.assertEquals(discontinueOrder.getOrderReason(), concept);
Assert.assertEquals(discontinueOrder.getPreviousOrder(), order);
}
代码示例来源:origin: openmrs/openmrs-core
target.setDateCreated(getDateCreated());
target.dateStopped = getDateStopped();
target.setOrderReason(getOrderReason());
target.setOrderReasonNonCoded(getOrderReasonNonCoded());
target.setAccessionNumber(getAccessionNumber());
代码示例来源:origin: openmrs/openmrs-core
Assert.assertEquals(discontinueOrder.getDateActivated(), discontinueOrder.getAutoExpireDate());
Assert.assertEquals(discontinueOrder.getAction(), Action.DISCONTINUE);
Assert.assertEquals(discontinueOrder.getOrderReason(), concept);
Assert.assertEquals(discontinueOrder.getPreviousOrder(), order);
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
@Override
protected void matchStandardRegimenInExistingOrders(FormEntryContext context) {
Map<RegimenSuggestion, List<DrugOrder>> map = RegimenUtil1_10.findStrongestStandardRegimenInDrugOrders(
possibleRegimens, context.getRemainingExistingOrders());
if (map.size() == 1) {
existingStandardRegimen = map.keySet().iterator().next();
for (DrugOrder dor : map.get(existingStandardRegimen)) {
regDrugOrders.add(context.removeExistingDrugOrder(dor.getDrug()));
regWidget.setInitialValue(existingStandardRegimen.getCodeName());
careSettingWidget.setInitialValue(dor.getCareSetting());
}
discontinuedDateWidget.setInitialValue(getCommonDiscontinueDate(regDrugOrders));
Order discontinuationOrder = Context.getOrderService().getDiscontinuationOrder(regDrugOrders.get(0));
if (discontinuedReasonWidget != null && discontinuationOrder != null)
discontinuedReasonWidget.setInitialValue(discontinuationOrder.getOrderReason().getConceptId());
}
}
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
Order discontinuationOrder = Context.getOrderService().getDiscontinuationOrder(drugOrder);
if (discontinuedReasonWidget != null && discontinuationOrder != null)
discontinuedReasonWidget.setInitialValue(discontinuationOrder.getOrderReason()
.getConceptId());
内容来源于网络,如有侵权,请联系作者删除!