public interface OrderDAO
This class should never be used directly. It should only be used through the
OrderService
OrderServiceOrder saveOrder(Order order) throws DAOException
void deleteOrder(Order order) throws DAOException
DAOExceptionOrderService.purgeOrder(Order)Order getOrder(Integer orderId) throws DAOException
DAOExceptionOrderService.getOrder(Integer)List<Order> getOrders(OrderType orderType, List<Patient> patients, List<Concept> concepts, List<User> orderers, List<Encounter> encounters)
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 toList<Order> getOrders(Patient patient, CareSetting careSetting, List<OrderType> orderTypes, boolean includeVoided, boolean includeDiscontinuationOrders)
List<Order> getOrders(OrderSearchCriteria orderSearchCriteria)
void deleteObsThatReference(Order order)
Long getNextOrderNumberSeedSequenceValue()
List<Order> getActiveOrders(Patient patient, List<OrderType> orderTypes, CareSetting careSetting, Date asOfDate)
CareSetting getCareSetting(Integer careSettingId)
careSettingId - CareSetting getCareSettingByUuid(String uuid)
CareSetting getCareSettingByName(String name)
List<CareSetting> getCareSettings(boolean includeRetired)
OrderService.getCareSettings(boolean)OrderType getOrderTypeByName(String orderTypeName)
OrderService.getOrderTypeByName(String)OrderFrequency getOrderFrequency(Integer orderFrequencyId)
OrderFrequency getOrderFrequencyByUuid(String uuid)
List<OrderFrequency> getOrderFrequencies(boolean includeRetired)
List<OrderFrequency> getOrderFrequencies(String searchPhrase, Locale locale, boolean exactLocale, boolean includeRetired)
OrderFrequency saveOrderFrequency(OrderFrequency orderFrequency)
void purgeOrderFrequency(OrderFrequency orderFrequency)
boolean isOrderFrequencyInUse(OrderFrequency orderFrequency)
orderFrequency - the order frequencyOrderFrequency getOrderFrequencyByConcept(Concept concept)
List<OrderType> getOrderTypes(boolean includeRetired)
OrderService.getOrderTypes(boolean)OrderType getOrderTypeByConceptClass(ConceptClass conceptClass)
void purgeOrderType(OrderType orderType)
boolean isOrderTypeInUse(OrderType orderType)
orderType - the order type to check the usageOrder getRevisionOrder(Order order) throws APIException
APIExceptionOrderService.getRevisionOrder(org.openmrs.Order)List<Object[]> getOrderFromDatabase(Order order, boolean isOrderADrugOrder) throws APIException
order - the order to get from the databaseisOrderADrugOrder - is the order a previous orderAPIExceptionOrderGroup saveOrderGroup(OrderGroup orderGroup) throws DAOException
orderGroup - DAOExceptionOrderGroup getOrderGroupByUuid(String uuid) throws DAOException
DAOExceptionOrderService.getOrderGroupByUuid(String)OrderGroup getOrderGroupById(Integer orderGroupId) throws DAOException
DAOExceptionOrderService.getOrderGroup(Integer)List<OrderGroup> getOrderGroupsByPatient(Patient patient) throws DAOException
DAOExceptionOrderService.getOrderGroupsByPatient(Patient)List<OrderGroup> getOrderGroupsByEncounter(Encounter encounter) throws DAOException
DAOExceptionOrderService.getOrderGroupsByEncounter(Encounter)OrderGroupAttribute getOrderGroupAttributeByUuid(String uuid) throws DAOException
DAOExceptionOrderService.getOrderGroupAttributeByUuid(String)List<OrderGroupAttributeType> getAllOrderGroupAttributeTypes() throws DAOException
DAOExceptionOrderService.getAllOrderGroupAttributeTypes()OrderGroupAttributeType getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) throws DAOException
DAOExceptionOrderService.getOrderGroupAttributeType(Integer)OrderGroupAttributeType getOrderGroupAttributeTypeByUuid(String uuid) throws DAOException
DAOExceptionOrderService.getOrderGroupAttributeTypeByUuid(String)OrderGroupAttributeType saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
void deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
OrderGroupAttributeType getOrderGroupAttributeTypeByName(String name) throws DAOException
DAOExceptionOrderService.getOrderGroupAttributeTypeByName(String)OrderAttribute getOrderAttributeByUuid(String uuid) throws DAOException
DAOExceptionOrderService.getOrderAttributeByUuid(String)List<OrderAttributeType> getAllOrderAttributeTypes() throws DAOException
DAOExceptionOrderService.getAllOrderAttributeTypes()OrderAttributeType getOrderAttributeTypeById(Integer orderAttributeTypeId) throws DAOException
DAOExceptionOrderService.getOrderAttributeTypeById(Integer)OrderAttributeType getOrderAttributeTypeByUuid(String uuid) throws DAOException
DAOExceptionOrderService.getOrderAttributeTypeByUuid(String)OrderAttributeType saveOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
DAOExceptionOrderService.saveOrderAttributeType(OrderAttributeType)void deleteOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
DAOExceptionOrderService.purgeOrderAttributeType(OrderAttributeType)OrderAttributeType getOrderAttributeTypeByName(String name) throws DAOException
DAOExceptionOrderService.getOrderAttributeTypeByName(String)List<Order> getActiveOrders(Patient patient, Visit visit, List<OrderType> orderTypes, CareSetting careSetting, Date asOfDate)
org.openmrs.api.OrderService#getActiveOrders(org.openmrs.Patient, org.openmrs.Visit, java.util.List,
org.openmrs.CareSetting, java.util.Date)List<Order> getOrders(Patient patient, Visit visit, CareSetting careSetting, List<OrderType> orderTypes, boolean includeVoided, boolean includeDiscontinuationOrders)
org.openmrs.api.OrderService#getOrders(org.openmrs.Patient, org.openmrs.Visit, org.openmrs.CareSetting, java.util.List,
boolean, boolean)Copyright © 2024 OpenMRS Inc.. All rights reserved.