public interface OrderDAO
This class should never be used directly. It should only be used through the
OrderService
OrderService
Order saveOrder(Order order) throws DAOException
void deleteOrder(Order order) throws DAOException
DAOException
OrderService.purgeOrder(Order)
Order getOrder(Integer orderId) throws DAOException
DAOException
OrderService.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
APIException
OrderService.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 orderAPIException
OrderGroup saveOrderGroup(OrderGroup orderGroup) throws DAOException
orderGroup
- DAOException
OrderGroup getOrderGroupByUuid(String uuid) throws DAOException
DAOException
OrderService.getOrderGroupByUuid(String)
OrderGroup getOrderGroupById(Integer orderGroupId) throws DAOException
DAOException
OrderService.getOrderGroup(Integer)
List<OrderGroup> getOrderGroupsByPatient(Patient patient) throws DAOException
DAOException
OrderService.getOrderGroupsByPatient(Patient)
List<OrderGroup> getOrderGroupsByEncounter(Encounter encounter) throws DAOException
DAOException
OrderService.getOrderGroupsByEncounter(Encounter)
OrderGroupAttribute getOrderGroupAttributeByUuid(String uuid) throws DAOException
DAOException
OrderService.getOrderGroupAttributeByUuid(String)
List<OrderGroupAttributeType> getAllOrderGroupAttributeTypes() throws DAOException
DAOException
OrderService.getAllOrderGroupAttributeTypes()
OrderGroupAttributeType getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) throws DAOException
DAOException
OrderService.getOrderGroupAttributeType(Integer)
OrderGroupAttributeType getOrderGroupAttributeTypeByUuid(String uuid) throws DAOException
DAOException
OrderService.getOrderGroupAttributeTypeByUuid(String)
OrderGroupAttributeType saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
void deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) throws DAOException
OrderGroupAttributeType getOrderGroupAttributeTypeByName(String name) throws DAOException
DAOException
OrderService.getOrderGroupAttributeTypeByName(String)
OrderAttribute getOrderAttributeByUuid(String uuid) throws DAOException
DAOException
OrderService.getOrderAttributeByUuid(String)
List<OrderAttributeType> getAllOrderAttributeTypes() throws DAOException
DAOException
OrderService.getAllOrderAttributeTypes()
OrderAttributeType getOrderAttributeTypeById(Integer orderAttributeTypeId) throws DAOException
DAOException
OrderService.getOrderAttributeTypeById(Integer)
OrderAttributeType getOrderAttributeTypeByUuid(String uuid) throws DAOException
DAOException
OrderService.getOrderAttributeTypeByUuid(String)
OrderAttributeType saveOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
DAOException
OrderService.saveOrderAttributeType(OrderAttributeType)
void deleteOrderAttributeType(OrderAttributeType orderAttributeType) throws DAOException
DAOException
OrderService.purgeOrderAttributeType(OrderAttributeType)
OrderAttributeType getOrderAttributeTypeByName(String name) throws DAOException
DAOException
OrderService.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.