public class HibernateOrderDAO extends Object implements OrderDAO
OrderService
,
OrderDAO
Constructor and Description |
---|
HibernateOrderDAO() |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public Order saveOrder(Order order) throws DAOException
saveOrder
in interface OrderDAO
DAOException
OrderDAO.saveOrder(org.openmrs.Order)
,
OrderService.saveOrder(org.openmrs.Order, org.openmrs.api.OrderContext)
public void deleteOrder(Order order) throws DAOException
deleteOrder
in interface OrderDAO
DAOException
OrderDAO.deleteOrder(org.openmrs.Order)
,
OrderService.purgeOrder(org.openmrs.Order)
public Order getOrder(Integer orderId) throws DAOException
getOrder
in interface OrderDAO
DAOException
OrderService.getOrder(java.lang.Integer)
public List<Order> getOrders(OrderType orderType, List<Patient> patients, List<Concept> concepts, List<User> orderers, List<Encounter> encounters)
OrderDAO
getOrders
in interface OrderDAO
orderType
- The type of Order to getpatients
- The patients to get orders forconcepts
- The concepts in order.getConcept to get orders fororderers
- The orderers to match onencounters
- The encounters that the orders are assigned toOrderDAO.getOrders(org.openmrs.OrderType, java.util.List,
java.util.List, java.util.List, java.util.List)
public List<Order> getOrders(OrderSearchCriteria searchCriteria)
getOrders
in interface OrderDAO
OrderDAO.getOrders(OrderSearchCriteria)
public List<Order> getOrders(Patient patient, CareSetting careSetting, List<OrderType> orderTypes, boolean includeVoided, boolean includeDiscontinuationOrders)
getOrders
in interface OrderDAO
OrderDAO.getOrders(org.openmrs.Patient, org.openmrs.CareSetting, java.util.List,
boolean, boolean)
public List<Order> getOrders(Patient patient, Visit visit, CareSetting careSetting, List<OrderType> orderTypes, boolean includeVoided, boolean includeDiscontinuationOrders)
getOrders
in interface OrderDAO
OrderDAO.getOrders(org.openmrs.Patient, org.openmrs.Visit, org.openmrs.CareSetting, java.util.List,
boolean, boolean)
public Order getOrderByUuid(String uuid)
getOrderByUuid
in interface OrderDAO
OrderDAO.getOrderByUuid(java.lang.String)
public Order getDiscontinuationOrder(Order order)
getDiscontinuationOrder
in interface OrderDAO
OrderDAO.getRevisionOrder(org.openmrs.Order)
public Order getRevisionOrder(Order order) throws APIException
getRevisionOrder
in interface OrderDAO
APIException
OrderService.getRevisionOrder(org.openmrs.Order)
public List<Object[]> getOrderFromDatabase(Order order, boolean isOrderADrugOrder) throws APIException
OrderDAO
getOrderFromDatabase
in interface OrderDAO
order
- the order to get from the databaseisOrderADrugOrder
- is the order a previous orderAPIException
public OrderGroup saveOrderGroup(OrderGroup orderGroup) throws DAOException
OrderDAO
saveOrderGroup
in interface OrderDAO
DAOException
OrderDAO.saveOrderGroup(OrderGroup)
public OrderGroup getOrderGroupByUuid(String uuid) throws DAOException
getOrderGroupByUuid
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupByUuid(String)
,
OrderService.getOrderGroupByUuid(String)
public OrderGroup getOrderGroupById(Integer orderGroupId) throws DAOException
getOrderGroupById
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupById(Integer)
,
OrderService.getOrderGroup(Integer)
public void deleteObsThatReference(Order order)
deleteObsThatReference
in interface OrderDAO
public Order getOrderByOrderNumber(String orderNumber)
getOrderByOrderNumber
in interface OrderDAO
OrderDAO.getOrderByOrderNumber(java.lang.String)
public Long getNextOrderNumberSeedSequenceValue()
OrderDAO
getNextOrderNumberSeedSequenceValue
in interface OrderDAO
OrderDAO.getNextOrderNumberSeedSequenceValue()
public List<Order> getActiveOrders(Patient patient, List<OrderType> orderTypes, CareSetting careSetting, Date asOfDate)
getActiveOrders
in interface OrderDAO
OrderDAO.getActiveOrders(org.openmrs.Patient, java.util.List,
org.openmrs.CareSetting, java.util.Date)
public List<Order> getActiveOrders(Patient patient, Visit visit, List<OrderType> orderTypes, CareSetting careSetting, Date asOfDate)
getActiveOrders
in interface OrderDAO
OrderDAO.getActiveOrders(org.openmrs.Patient, org.openmrs.Visit, java.util.List,
org.openmrs.CareSetting, java.util.Date)
public CareSetting getCareSetting(Integer careSettingId)
OrderDAO
getCareSetting
in interface OrderDAO
OrderDAO.getCareSetting(Integer)
public CareSetting getCareSettingByUuid(String uuid)
getCareSettingByUuid
in interface OrderDAO
OrderDAO.getCareSettingByUuid(String)
public CareSetting getCareSettingByName(String name)
getCareSettingByName
in interface OrderDAO
OrderDAO.getCareSettingByName(String)
public List<CareSetting> getCareSettings(boolean includeRetired)
getCareSettings
in interface OrderDAO
OrderDAO.getCareSettings(boolean)
public OrderType getOrderTypeByName(String orderTypeName)
getOrderTypeByName
in interface OrderDAO
OrderDAO.getOrderTypeByName(java.lang.String)
public OrderFrequency getOrderFrequency(Integer orderFrequencyId)
getOrderFrequency
in interface OrderDAO
OrderDAO.getOrderFrequency(java.lang.Integer)
public OrderFrequency getOrderFrequencyByUuid(String uuid)
getOrderFrequencyByUuid
in interface OrderDAO
OrderDAO.getOrderFrequencyByUuid(java.lang.String)
public List<OrderFrequency> getOrderFrequencies(boolean includeRetired)
getOrderFrequencies
in interface OrderDAO
OrderDAO.getOrderFrequencies(boolean)
public List<OrderFrequency> getOrderFrequencies(String searchPhrase, Locale locale, boolean exactLocale, boolean includeRetired)
getOrderFrequencies
in interface OrderDAO
OrderDAO.getOrderFrequencies(String, java.util.Locale, boolean, boolean)
public OrderFrequency saveOrderFrequency(OrderFrequency orderFrequency)
saveOrderFrequency
in interface OrderDAO
OrderDAO.saveOrderFrequency(org.openmrs.OrderFrequency)
public void purgeOrderFrequency(OrderFrequency orderFrequency)
purgeOrderFrequency
in interface OrderDAO
OrderDAO.purgeOrderFrequency(org.openmrs.OrderFrequency)
public boolean isOrderFrequencyInUse(OrderFrequency orderFrequency)
OrderDAO
isOrderFrequencyInUse
in interface OrderDAO
orderFrequency
- the order frequencyOrderDAO.isOrderFrequencyInUse(org.openmrs.OrderFrequency)
public OrderFrequency getOrderFrequencyByConcept(Concept concept)
getOrderFrequencyByConcept
in interface OrderDAO
OrderDAO.getOrderFrequencyByConcept(org.openmrs.Concept)
public OrderType getOrderType(Integer orderTypeId)
getOrderType
in interface OrderDAO
OrderDAO.getOrderType(Integer)
public OrderType getOrderTypeByUuid(String uuid)
getOrderTypeByUuid
in interface OrderDAO
OrderDAO.getOrderTypeByUuid(String)
public List<OrderType> getOrderTypes(boolean includeRetired)
getOrderTypes
in interface OrderDAO
OrderDAO.getOrderTypes(boolean)
public OrderType getOrderTypeByConceptClass(ConceptClass conceptClass)
getOrderTypeByConceptClass
in interface OrderDAO
OrderDAO.getOrderTypeByConceptClass(org.openmrs.ConceptClass)
public OrderType saveOrderType(OrderType orderType)
saveOrderType
in interface OrderDAO
OrderService.saveOrderType(org.openmrs.OrderType)
public void purgeOrderType(OrderType orderType)
purgeOrderType
in interface OrderDAO
OrderService.purgeOrderType(org.openmrs.OrderType)
public List<OrderType> getOrderSubtypes(OrderType orderType, boolean includeRetired)
getOrderSubtypes
in interface OrderDAO
OrderService.getSubtypes(org.openmrs.OrderType, boolean)
public boolean isOrderTypeInUse(OrderType orderType)
OrderDAO
isOrderTypeInUse
in interface OrderDAO
orderType
- the order type to check the usagepublic List<OrderGroup> getOrderGroupsByPatient(Patient patient)
getOrderGroupsByPatient
in interface OrderDAO
OrderDAO.getOrderGroupsByPatient(Patient)
public List<OrderGroup> getOrderGroupsByEncounter(Encounter encounter)
getOrderGroupsByEncounter
in interface OrderDAO
OrderDAO.getOrderGroupsByEncounter(Encounter)
public List<OrderGroupAttributeType> getAllOrderGroupAttributeTypes()
getAllOrderGroupAttributeTypes
in interface OrderDAO
OrderDAO.getAllOrderGroupAttributeTypes()
public OrderGroupAttributeType getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) throws DAOException
getOrderGroupAttributeType
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupAttributeType(java.lang.Integer)
public OrderGroupAttributeType getOrderGroupAttributeTypeByUuid(String uuid) throws DAOException
getOrderGroupAttributeTypeByUuid
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupAttributeTypeByUuid(java.lang.String)
public OrderGroupAttributeType saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
saveOrderGroupAttributeType
in interface OrderDAO
DAOException
OrderDAO.saveOrderGroupAttributeType(org.openmrs.OrderGroupAttributeType)
public void deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
deleteOrderGroupAttributeType
in interface OrderDAO
DAOException
OrderDAO.deleteOrderGroupAttributeType(org.openmrs.OrderGroupAttributeType)
public OrderGroupAttribute getOrderGroupAttributeByUuid(String uuid) throws DAOException
getOrderGroupAttributeByUuid
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupAttributeByUuid(String)
public OrderGroupAttributeType getOrderGroupAttributeTypeByName(String name) throws DAOException
getOrderGroupAttributeTypeByName
in interface OrderDAO
DAOException
OrderDAO.getOrderGroupAttributeTypeByName(String)
public OrderAttribute getOrderAttributeByUuid(String uuid) throws DAOException
getOrderAttributeByUuid
in interface OrderDAO
uuid
- The uuid associated with the order attribute to retrieve.DAOException
OrderDAO.getOrderAttributeByUuid(String)
public List<OrderAttributeType> getAllOrderAttributeTypes() throws DAOException
getAllOrderAttributeTypes
in interface OrderDAO
DAOException
OrderDAO.getAllOrderAttributeTypes()
public OrderAttributeType getOrderAttributeTypeById(Integer orderAttributeTypeId) throws DAOException
getOrderAttributeTypeById
in interface OrderDAO
orderAttributeTypeId
- The orderAttributeTypeId for the order attribute type to retrieve.DAOException
OrderDAO.getOrderAttributeTypeById(Integer)
public OrderAttributeType getOrderAttributeTypeByUuid(String uuid) throws DAOException
getOrderAttributeTypeByUuid
in interface OrderDAO
uuid
- The uuid associated with the order attribute type to retrieveDAOException
OrderDAO.getOrderAttributeTypeByUuid(String)
public OrderAttributeType saveOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
saveOrderAttributeType
in interface OrderDAO
orderAttributeType
- The orderAttributeType to saveDAOException
OrderDAO.saveOrderAttributeType(OrderAttributeType)
public void deleteOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
deleteOrderAttributeType
in interface OrderDAO
orderAttributeType
- The orderAttributeType to retireDAOException
org.openmrs.api.db.OrderDAO#purgeOrderAttributeType(OrderAttributeType)
public OrderAttributeType getOrderAttributeTypeByName(String name) throws DAOException
getOrderAttributeTypeByName
in interface OrderDAO
name
- The name of the order attribute type to retrieveDAOException
OrderDAO.getOrderAttributeTypeByName(String)
Copyright © 2024 OpenMRS Inc.. All rights reserved.