public class OrderGroup extends BaseCustomizableData<OrderGroupAttribute>
Order
s that are ordered together within a single encounter,often driven by an OrderSet
.
Not all orders in an encounter need to be grouped this way, only those that have a specific connection to each other
(e.g. several orders that together make up a treatment protocol for some diagnosis could be grouped).Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
OrderGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addOrder(Order order)
Adds a new order to the existing list of orders
|
void |
addOrder(Order order,
Integer position)
Adds a new order to the existing list of orders.
|
void |
addOrders(List<Order> orders)
Adds
Order s to existing Order list |
Encounter |
getEncounter()
Gets the encounter
|
Integer |
getId() |
Set<OrderGroup> |
getNestedOrderGroups()
Gets the nested order groups to other order groups, to maintain linkages
between groups and support group nesting
|
Integer |
getOrderGroupId()
Gets the orderGroupId
|
Concept |
getOrderGroupReason()
Gets the order group reason which denotes the reason why the group was
ordered
|
List<Order> |
getOrders()
Gets the orders
|
OrderSet |
getOrderSet()
Gets the orderSet
|
OrderGroup |
getParentOrderGroup()
Gets the parent order group to maintain linkages between groups and support group nesting
|
Patient |
getPatient()
Gets the patient
|
OrderGroup |
getPreviousOrderGroup()
Gets the previous order group to other order groups, to maintain linkages
between groups and support group nesting
|
void |
setEncounter(Encounter encounter)
Sets the encounter
|
void |
setId(Integer id) |
void |
setNestedOrderGroups(Set<OrderGroup> nestedOrderGroups)
Sets the nested order groups to other order groups, to maintain linkages
between groups and support group nesting.
|
void |
setOrderGroupId(Integer orderGroupId)
Sets the orderGroupId
|
void |
setOrderGroupReason(Concept orderGroupReason)
Sets the order group reason which denotes the reason why the group was
ordered
|
void |
setOrders(List<Order> orders)
Sets the orders
|
void |
setOrderSet(OrderSet orderSet)
Sets the orderSet
|
void |
setParentOrderGroup(OrderGroup parentOrderGroup)
Sets the parent order group to maintain linkages between groups and support group nesting
|
void |
setPatient(Patient patient)
Sets the patient
|
void |
setPreviousOrderGroup(OrderGroup previousOrderGroup)
Sets the previous order group to other order groups, to maintain linkages
between groups and support group nesting
|
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes, setAttribute, setAttributes
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Integer getOrderGroupId()
public void setOrderGroupId(Integer orderGroupId)
orderGroupId
- the orderGroupId to setpublic Patient getPatient()
public void setPatient(Patient patient)
patient
- the patient to setpublic Encounter getEncounter()
public void setEncounter(Encounter encounter)
encounter
- the encounter to setpublic void setOrders(List<Order> orders)
orders
- the orders to setpublic void addOrder(Order order)
order
- the new order to be addedpublic void addOrders(List<Order> orders)
Order
s to existing Order listorders
- public void addOrder(Order order, Integer position)
order
- the new order to be addedposition
- the position where the order has to be addedpublic OrderSet getOrderSet()
public void setOrderSet(OrderSet orderSet)
orderSet
- the orderSet to setpublic Integer getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectpublic OrderGroup getParentOrderGroup()
public void setParentOrderGroup(OrderGroup parentOrderGroup)
parentOrderGroup
- the parent order group to set.public Concept getOrderGroupReason()
public void setOrderGroupReason(Concept orderGroupReason)
orderGroupReason,
- the order group reason to setpublic OrderGroup getPreviousOrderGroup()
returns
- the previous order grouppublic void setPreviousOrderGroup(OrderGroup previousOrderGroup)
previousOrderGroup
- The previous order group to setpublic Set<OrderGroup> getNestedOrderGroups()
returns
- the nested order groupspublic void setNestedOrderGroups(Set<OrderGroup> nestedOrderGroups)
nestedOrderGroup
- The nested order groups to setCopyright © 2024 OpenMRS Inc.. All rights reserved.