Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.handler | |
org.openmrs.api.impl | |
org.openmrs.order |
Modifier and Type | Class and Description |
---|---|
class |
DrugOrder
DrugOrder
|
class |
TestOrder
This is a type of order that adds tests specific attributes like: laterality, clinical history,
etc.
|
Modifier and Type | Field and Description |
---|---|
protected Order |
Obs.order |
Modifier and Type | Method and Description |
---|---|
Order |
Order.cloneForDiscontinuing()
Creates a discontinuation order for this order, sets the previousOrder and action fields,
note that the discontinuation order needs to be saved for the discontinuation to take effect
|
Order |
Order.cloneForRevision()
Creates an order for revision from this order, sets the previousOrder and action field.
|
protected Order |
Order.cloneForRevisionHelper(Order target)
The purpose of this method is to allow subclasses of Order to delegate a portion of their
cloneForRevision() method back to the superclass, in case the base class implementation
changes.
|
Order |
Order.copy()
Performs a shallow copy of this Order.
|
protected Order |
Order.copyHelper(Order target)
The purpose of this method is to allow subclasses of Order to delegate a portion of their
copy() method back to the superclass, in case the base class implementation changes.
|
Order |
Obs.getOrder() |
Order |
Order.getPreviousOrder()
Gets the previous related order.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Order> |
Encounter.getOrders() |
Modifier and Type | Method and Description |
---|---|
void |
Encounter.addOrder(Order order)
Add the given Order to the list of orders for this Encounter
|
protected Order |
Order.cloneForRevisionHelper(Order target)
The purpose of this method is to allow subclasses of Order to delegate a portion of their
cloneForRevision() method back to the superclass, in case the base class implementation
changes.
|
protected Order |
Order.copyHelper(Order target)
The purpose of this method is to allow subclasses of Order to delegate a portion of their
copy() method back to the superclass, in case the base class implementation changes.
|
boolean |
DrugOrder.hasSameOrderableAs(Order otherOrder)
Checks whether orderable of this drug order is same as other order
|
boolean |
Order.hasSameOrderableAs(Order otherOrder)
Checks whether orderable of this order is same as other order
|
void |
Encounter.removeOrder(Order order)
Remove the given observation from the list of orders for this Encounter
|
void |
Obs.setOrder(Order order) |
void |
Order.setPreviousOrder(Order previousOrder)
Sets the previous order.
|
Modifier and Type | Method and Description |
---|---|
void |
Encounter.setOrders(java.util.Set<Order> orders) |
Modifier and Type | Method and Description |
---|---|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
java.lang.String reasonNonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.getDiscontinuationOrder(Order order)
Get discontinuation order for the given order, it is the un voided discontinuation order with
a previousOrder that matches the specified order.
|
Order |
OrderService.getOrder(java.lang.Integer orderId)
Get order by internal primary key identifier
|
Order |
OrderService.getOrderByOrderNumber(java.lang.String orderNumber)
Gets the order identified by a given order number
|
Order |
OrderService.getOrderByUuid(java.lang.String uuid)
Get Order by its UUID
|
Order |
OrderService.getRevisionOrder(Order order)
Get revision order for the given order, it is the order with the changes that was created as
a replacement for the specified order.
|
Order |
OrderService.saveOrder(Order order,
OrderContext orderContext)
Save or update the given
order in the database. |
Order |
OrderService.unvoidOrder(Order order)
Unvoid order record.
|
Order |
OrderService.voidOrder(Order order,
java.lang.String voidReason)
Mark an order as voided.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Order> |
OrderService.getActiveOrders(Patient patient,
OrderType orderType,
CareSetting careSetting,
java.util.Date asOfDate)
Gets all active orders for the specified patient matching the specified CareSetting,
OrderType as of the specified date.
|
java.util.List<Order> |
OrderService.getAllOrdersByPatient(Patient patient)
Gets all orders for the specified patient including discontinuation orders
|
java.util.List<Order> |
OrderService.getOrderHistoryByConcept(Patient patient,
Concept concept)
Gets all Order objects that use this Concept for a given patient.
|
java.util.List<Order> |
OrderService.getOrderHistoryByOrderNumber(java.lang.String orderNumber)
Gets the order matching the specified order number and its previous orders in the ordering
they occurred, i.e if this order has a previous order, fetch it and if it also has a previous
order then fetch it until the original one with no previous order is reached
|
java.util.List<Order> |
OrderService.getOrders(Patient patient,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided)
Gets all Orders that match the specified parameters excluding discontinuation orders
|
Modifier and Type | Method and Description |
---|---|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
java.lang.String reasonNonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.getDiscontinuationOrder(Order order)
Get discontinuation order for the given order, it is the un voided discontinuation order with
a previousOrder that matches the specified order.
|
Order |
OrderService.getRevisionOrder(Order order)
Get revision order for the given order, it is the order with the changes that was created as
a replacement for the specified order.
|
void |
OrderService.purgeOrder(Order order)
Completely delete an order from the database.
|
void |
OrderService.purgeOrder(Order order,
boolean cascade)
Completely delete an order from the database.
|
Order |
OrderService.saveOrder(Order order,
OrderContext orderContext)
Save or update the given
order in the database. |
Order |
OrderService.unvoidOrder(Order order)
Unvoid order record.
|
Order |
OrderService.voidOrder(Order order,
java.lang.String voidReason)
Mark an order as voided.
|
Modifier and Type | Method and Description |
---|---|
Order |
OrderDAO.getDiscontinuationOrder(Order order) |
Order |
OrderDAO.getOrder(java.lang.Integer orderId) |
Order |
OrderDAO.getOrderByOrderNumber(java.lang.String orderNumber) |
Order |
OrderDAO.getOrderByUuid(java.lang.String uuid)
Auto generated method comment
|
Order |
OrderDAO.getRevisionOrder(Order order) |
Order |
OrderDAO.saveOrder(Order order) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Order> |
OrderDAO.getActiveOrders(Patient patient,
java.util.List<OrderType> orderTypes,
CareSetting careSetting,
java.util.Date asOfDate) |
java.util.List<Order> |
OrderDAO.getOrders(OrderType orderType,
java.util.List<Patient> patients,
java.util.List<Concept> concepts,
java.util.List<User> orderers,
java.util.List<Encounter> encounters)
This searches for orders given the parameters.
|
java.util.List<Order> |
OrderDAO.getOrders(Patient patient,
CareSetting careSetting,
java.util.List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
Modifier and Type | Method and Description |
---|---|
void |
OrderDAO.deleteObsThatReference(Order order)
Delete Obs that references an order
|
void |
OrderDAO.deleteOrder(Order order) |
Order |
OrderDAO.getDiscontinuationOrder(Order order) |
java.util.List<java.util.List<java.lang.Object>> |
OrderDAO.getOrderFromDatabase(Order order,
boolean isOrderADrugOrder)
Get the fresh order from the database
|
Order |
OrderDAO.getRevisionOrder(Order order) |
Order |
OrderDAO.saveOrder(Order order) |
Modifier and Type | Method and Description |
---|---|
Order |
HibernateOrderDAO.getDiscontinuationOrder(Order order) |
Order |
HibernateOrderDAO.getOrder(java.lang.Integer orderId) |
Order |
HibernateOrderDAO.getOrderByOrderNumber(java.lang.String orderNumber) |
Order |
HibernateOrderDAO.getOrderByUuid(java.lang.String uuid) |
Order |
HibernateOrderDAO.getRevisionOrder(Order order) |
Order |
HibernateOrderDAO.saveOrder(Order order) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Order> |
HibernateOrderDAO.getActiveOrders(Patient patient,
java.util.List<OrderType> orderTypes,
CareSetting careSetting,
java.util.Date asOfDate) |
java.util.List<Order> |
HibernateOrderDAO.getOrders(OrderType orderType,
java.util.List<Patient> patients,
java.util.List<Concept> concepts,
java.util.List<User> orderers,
java.util.List<Encounter> encounters) |
java.util.List<Order> |
HibernateOrderDAO.getOrders(Patient patient,
CareSetting careSetting,
java.util.List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateOrderDAO.deleteObsThatReference(Order order)
Delete Obs that references (deleted) Order
|
void |
HibernateOrderDAO.deleteOrder(Order order) |
Order |
HibernateOrderDAO.getDiscontinuationOrder(Order order) |
java.util.List<java.util.List<java.lang.Object>> |
HibernateOrderDAO.getOrderFromDatabase(Order order,
boolean isOrderADrugOrder) |
Order |
HibernateOrderDAO.getRevisionOrder(Order order) |
Order |
HibernateOrderDAO.saveOrder(Order order) |
Modifier and Type | Method and Description |
---|---|
void |
OrderSaveHandler.handle(Order order,
User creator,
java.util.Date dateCreated,
java.lang.String other) |
Modifier and Type | Method and Description |
---|---|
Order |
OrderServiceImpl.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter) |
Order |
OrderServiceImpl.discontinueOrder(Order orderToDiscontinue,
java.lang.String reasonNonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter) |
Order |
OrderServiceImpl.getDiscontinuationOrder(Order order) |
Order |
OrderServiceImpl.getOrder(java.lang.Integer orderId) |
Order |
OrderServiceImpl.getOrderByOrderNumber(java.lang.String orderNumber) |
Order |
OrderServiceImpl.getOrderByUuid(java.lang.String uuid) |
Order |
OrderServiceImpl.getRevisionOrder(Order order) |
Order |
OrderServiceImpl.saveOrder(Order order,
OrderContext orderContext) |
Order |
OrderServiceImpl.unvoidOrder(Order order) |
Order |
OrderServiceImpl.voidOrder(Order order,
java.lang.String voidReason) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Order> |
OrderServiceImpl.getActiveOrders(Patient patient,
OrderType orderType,
CareSetting careSetting,
java.util.Date asOfDate) |
java.util.List<Order> |
OrderServiceImpl.getAllOrdersByPatient(Patient patient) |
java.util.List<Order> |
OrderServiceImpl.getOrderHistoryByConcept(Patient patient,
Concept concept) |
java.util.List<Order> |
OrderServiceImpl.getOrderHistoryByOrderNumber(java.lang.String orderNumber) |
java.util.List<Order> |
OrderServiceImpl.getOrders(Patient patient,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
Order |
OrderServiceImpl.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter) |
Order |
OrderServiceImpl.discontinueOrder(Order orderToDiscontinue,
java.lang.String reasonNonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter) |
Order |
OrderServiceImpl.getDiscontinuationOrder(Order order) |
Order |
OrderServiceImpl.getRevisionOrder(Order order) |
void |
OrderServiceImpl.purgeOrder(Order order) |
void |
OrderServiceImpl.purgeOrder(Order order,
boolean cascade) |
Order |
OrderServiceImpl.saveOrder(Order order,
OrderContext orderContext) |
Order |
OrderServiceImpl.unvoidOrder(Order order) |
Order |
OrderServiceImpl.voidOrder(Order order,
java.lang.String voidReason) |
Modifier and Type | Method and Description |
---|---|
static boolean |
OrderUtil.checkScheduleOverlap(Order order1,
Order order2)
Checks if the schedules of the specified orders overlap, Note this only makes a check that is
purely based on dates ignoring other properties like patient, voided, careSetting and the
orderable
|
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.