本文整理了Java中org.openmrs.Order.setOrderGroup()
方法的一些代码示例,展示了Order.setOrderGroup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.setOrderGroup()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:setOrderGroup
[英]Sets the OrderGroup for that order. If the order is ordered independently, it does not set an orderGroup for it. If the order is ordered as an orderGroup, then sets a link to the OrderGroup for that particular order.
[中]
代码示例来源:origin: openmrs/openmrs-core
public OrderBuilder withOrderGroup(OrderGroup orderGroup) {
order.setOrderGroup(orderGroup);
return this;
}
}
代码示例来源:origin: openmrs/openmrs-core
/**
* Adds a new order to the existing list of orders.
* The <tt>sortWeight</tt> for the order is auto calculated based on the given position.
*
* @param order the new order to be added
* @param position the position where the order has to be added
*/
public void addOrder(Order order, Integer position) {
if (order == null || getOrders().contains(order)) {
return;
}
order.setOrderGroup(this);
Integer listIndex = findListIndexForGivenPosition(position);
getOrders().add(listIndex, order);
if (order.getSortWeight() == null) {
order.setSortWeight(findSortWeight(listIndex));
}
}
代码示例来源:origin: openmrs/openmrs-core
/**
* @see Order#cloneForRevision()
*/
@Test
public void cloneForRevision_shouldSetAllTheRelevantFields() throws Exception {
Order newOrder = new Order();
OrderGroup orderGroup = new OrderGroup();
newOrder.setOrderGroup(orderGroup);
Order revisedOrder = newOrder.cloneForRevision();
assertThatAllFieldsAreCopied(revisedOrder, "cloneForRevision", "creator", "dateCreated", "action", "changedBy",
"dateChanged", "voided", "dateVoided", "voidedBy", "voidReason", "encounter", "orderNumber", "orderer",
"previousOrder", "dateActivated", "dateStopped", "accessionNumber");
}
代码示例来源:origin: openmrs/openmrs-core
target.setOrderReason(getOrderReason());
target.setOrderReasonNonCoded(getOrderReasonNonCoded());
target.setOrderGroup(getOrderGroup());
target.setSortWeight(getSortWeight());
target.setFulfillerStatus(getFulfillerStatus());
代码示例来源:origin: openmrs/openmrs-core
target.setDateChanged(getDateChanged());
target.setScheduledDate(getScheduledDate());
target.setOrderGroup(getOrderGroup());
target.setSortWeight(getSortWeight());
target.setFulfillerComment(getFulfillerComment());
内容来源于网络,如有侵权,请联系作者删除!