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 OrderDAODAOExceptionOrderDAO.saveOrder(org.openmrs.Order),
OrderService.saveOrder(org.openmrs.Order, org.openmrs.api.OrderContext)public void deleteOrder(Order order) throws DAOException
deleteOrder in interface OrderDAODAOExceptionOrderDAO.deleteOrder(org.openmrs.Order),
OrderService.purgeOrder(org.openmrs.Order)public Order getOrder(Integer orderId) throws DAOException
getOrder in interface OrderDAODAOExceptionOrderService.getOrder(java.lang.Integer)public List<Order> getOrders(OrderType orderType, List<Patient> patients, List<Concept> concepts, List<User> orderers, List<Encounter> encounters)
OrderDAOgetOrders in interface OrderDAOorderType - 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 OrderDAOOrderDAO.getOrders(OrderSearchCriteria)public List<Order> getOrders(Patient patient, CareSetting careSetting, List<OrderType> orderTypes, boolean includeVoided, boolean includeDiscontinuationOrders)
getOrders in interface OrderDAOOrderDAO.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 OrderDAOOrderDAO.getOrders(org.openmrs.Patient, org.openmrs.Visit, org.openmrs.CareSetting, java.util.List,
boolean, boolean)public Order getOrderByUuid(String uuid)
getOrderByUuid in interface OrderDAOOrderDAO.getOrderByUuid(java.lang.String)public Order getDiscontinuationOrder(Order order)
getDiscontinuationOrder in interface OrderDAOOrderDAO.getRevisionOrder(org.openmrs.Order)public Order getRevisionOrder(Order order) throws APIException
getRevisionOrder in interface OrderDAOAPIExceptionOrderService.getRevisionOrder(org.openmrs.Order)public List<Object[]> getOrderFromDatabase(Order order, boolean isOrderADrugOrder) throws APIException
OrderDAOgetOrderFromDatabase in interface OrderDAOorder - the order to get from the databaseisOrderADrugOrder - is the order a previous orderAPIExceptionpublic OrderGroup saveOrderGroup(OrderGroup orderGroup) throws DAOException
OrderDAOsaveOrderGroup in interface OrderDAODAOExceptionOrderDAO.saveOrderGroup(OrderGroup)public OrderGroup getOrderGroupByUuid(String uuid) throws DAOException
getOrderGroupByUuid in interface OrderDAODAOExceptionOrderDAO.getOrderGroupByUuid(String),
OrderService.getOrderGroupByUuid(String)public OrderGroup getOrderGroupById(Integer orderGroupId) throws DAOException
getOrderGroupById in interface OrderDAODAOExceptionOrderDAO.getOrderGroupById(Integer),
OrderService.getOrderGroup(Integer)public void deleteObsThatReference(Order order)
deleteObsThatReference in interface OrderDAOpublic Order getOrderByOrderNumber(String orderNumber)
getOrderByOrderNumber in interface OrderDAOOrderDAO.getOrderByOrderNumber(java.lang.String)public Long getNextOrderNumberSeedSequenceValue()
OrderDAOgetNextOrderNumberSeedSequenceValue in interface OrderDAOOrderDAO.getNextOrderNumberSeedSequenceValue()public List<Order> getActiveOrders(Patient patient, List<OrderType> orderTypes, CareSetting careSetting, Date asOfDate)
getActiveOrders in interface OrderDAOOrderDAO.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 OrderDAOOrderDAO.getActiveOrders(org.openmrs.Patient, org.openmrs.Visit, java.util.List,
org.openmrs.CareSetting, java.util.Date)public CareSetting getCareSetting(Integer careSettingId)
OrderDAOgetCareSetting in interface OrderDAOOrderDAO.getCareSetting(Integer)public CareSetting getCareSettingByUuid(String uuid)
getCareSettingByUuid in interface OrderDAOOrderDAO.getCareSettingByUuid(String)public CareSetting getCareSettingByName(String name)
getCareSettingByName in interface OrderDAOOrderDAO.getCareSettingByName(String)public List<CareSetting> getCareSettings(boolean includeRetired)
getCareSettings in interface OrderDAOOrderDAO.getCareSettings(boolean)public OrderType getOrderTypeByName(String orderTypeName)
getOrderTypeByName in interface OrderDAOOrderDAO.getOrderTypeByName(java.lang.String)public OrderFrequency getOrderFrequency(Integer orderFrequencyId)
getOrderFrequency in interface OrderDAOOrderDAO.getOrderFrequency(java.lang.Integer)public OrderFrequency getOrderFrequencyByUuid(String uuid)
getOrderFrequencyByUuid in interface OrderDAOOrderDAO.getOrderFrequencyByUuid(java.lang.String)public List<OrderFrequency> getOrderFrequencies(boolean includeRetired)
getOrderFrequencies in interface OrderDAOOrderDAO.getOrderFrequencies(boolean)public List<OrderFrequency> getOrderFrequencies(String searchPhrase, Locale locale, boolean exactLocale, boolean includeRetired)
getOrderFrequencies in interface OrderDAOOrderDAO.getOrderFrequencies(String, java.util.Locale, boolean, boolean)public OrderFrequency saveOrderFrequency(OrderFrequency orderFrequency)
saveOrderFrequency in interface OrderDAOOrderDAO.saveOrderFrequency(org.openmrs.OrderFrequency)public void purgeOrderFrequency(OrderFrequency orderFrequency)
purgeOrderFrequency in interface OrderDAOOrderDAO.purgeOrderFrequency(org.openmrs.OrderFrequency)public boolean isOrderFrequencyInUse(OrderFrequency orderFrequency)
OrderDAOisOrderFrequencyInUse in interface OrderDAOorderFrequency - the order frequencyOrderDAO.isOrderFrequencyInUse(org.openmrs.OrderFrequency)public OrderFrequency getOrderFrequencyByConcept(Concept concept)
getOrderFrequencyByConcept in interface OrderDAOOrderDAO.getOrderFrequencyByConcept(org.openmrs.Concept)public OrderType getOrderType(Integer orderTypeId)
getOrderType in interface OrderDAOOrderDAO.getOrderType(Integer)public OrderType getOrderTypeByUuid(String uuid)
getOrderTypeByUuid in interface OrderDAOOrderDAO.getOrderTypeByUuid(String)public List<OrderType> getOrderTypes(boolean includeRetired)
getOrderTypes in interface OrderDAOOrderDAO.getOrderTypes(boolean)public OrderType getOrderTypeByConceptClass(ConceptClass conceptClass)
getOrderTypeByConceptClass in interface OrderDAOOrderDAO.getOrderTypeByConceptClass(org.openmrs.ConceptClass)public OrderType saveOrderType(OrderType orderType)
saveOrderType in interface OrderDAOOrderService.saveOrderType(org.openmrs.OrderType)public void purgeOrderType(OrderType orderType)
purgeOrderType in interface OrderDAOOrderService.purgeOrderType(org.openmrs.OrderType)public List<OrderType> getOrderSubtypes(OrderType orderType, boolean includeRetired)
getOrderSubtypes in interface OrderDAOOrderService.getSubtypes(org.openmrs.OrderType, boolean)public boolean isOrderTypeInUse(OrderType orderType)
OrderDAOisOrderTypeInUse in interface OrderDAOorderType - the order type to check the usagepublic List<OrderGroup> getOrderGroupsByPatient(Patient patient)
getOrderGroupsByPatient in interface OrderDAOOrderDAO.getOrderGroupsByPatient(Patient)public List<OrderGroup> getOrderGroupsByEncounter(Encounter encounter)
getOrderGroupsByEncounter in interface OrderDAOOrderDAO.getOrderGroupsByEncounter(Encounter)public List<OrderGroupAttributeType> getAllOrderGroupAttributeTypes()
getAllOrderGroupAttributeTypes in interface OrderDAOOrderDAO.getAllOrderGroupAttributeTypes()public OrderGroupAttributeType getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) throws DAOException
getOrderGroupAttributeType in interface OrderDAODAOExceptionOrderDAO.getOrderGroupAttributeType(java.lang.Integer)public OrderGroupAttributeType getOrderGroupAttributeTypeByUuid(String uuid) throws DAOException
getOrderGroupAttributeTypeByUuid in interface OrderDAODAOExceptionOrderDAO.getOrderGroupAttributeTypeByUuid(java.lang.String)public OrderGroupAttributeType saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
saveOrderGroupAttributeType in interface OrderDAODAOExceptionOrderDAO.saveOrderGroupAttributeType(org.openmrs.OrderGroupAttributeType)public void deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
deleteOrderGroupAttributeType in interface OrderDAODAOExceptionOrderDAO.deleteOrderGroupAttributeType(org.openmrs.OrderGroupAttributeType)public OrderGroupAttribute getOrderGroupAttributeByUuid(String uuid) throws DAOException
getOrderGroupAttributeByUuid in interface OrderDAODAOExceptionOrderDAO.getOrderGroupAttributeByUuid(String)public OrderGroupAttributeType getOrderGroupAttributeTypeByName(String name) throws DAOException
getOrderGroupAttributeTypeByName in interface OrderDAODAOExceptionOrderDAO.getOrderGroupAttributeTypeByName(String)public OrderAttribute getOrderAttributeByUuid(String uuid) throws DAOException
getOrderAttributeByUuid in interface OrderDAOuuid - The uuid associated with the order attribute to retrieve.DAOExceptionOrderDAO.getOrderAttributeByUuid(String)public List<OrderAttributeType> getAllOrderAttributeTypes() throws DAOException
getAllOrderAttributeTypes in interface OrderDAODAOExceptionOrderDAO.getAllOrderAttributeTypes()public OrderAttributeType getOrderAttributeTypeById(Integer orderAttributeTypeId) throws DAOException
getOrderAttributeTypeById in interface OrderDAOorderAttributeTypeId - The orderAttributeTypeId for the order attribute type to retrieve.DAOExceptionOrderDAO.getOrderAttributeTypeById(Integer)public OrderAttributeType getOrderAttributeTypeByUuid(String uuid) throws DAOException
getOrderAttributeTypeByUuid in interface OrderDAOuuid - The uuid associated with the order attribute type to retrieveDAOExceptionOrderDAO.getOrderAttributeTypeByUuid(String)public OrderAttributeType saveOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
saveOrderAttributeType in interface OrderDAOorderAttributeType - The orderAttributeType to saveDAOExceptionOrderDAO.saveOrderAttributeType(OrderAttributeType)public void deleteOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
deleteOrderAttributeType in interface OrderDAOorderAttributeType - The orderAttributeType to retireDAOExceptionorg.openmrs.api.db.OrderDAO#purgeOrderAttributeType(OrderAttributeType)public OrderAttributeType getOrderAttributeTypeByName(String name) throws DAOException
getOrderAttributeTypeByName in interface OrderDAOname - The name of the order attribute type to retrieveDAOExceptionOrderDAO.getOrderAttributeTypeByName(String)Copyright © 2024 OpenMRS Inc.. All rights reserved.