public class OrderSearchCriteriaBuilder extends Object
OrderSearchCriteria
. Create a builder, set
its properties to desired values and finally call build()
to create the actual search criteria instance.OrderSearchCriteria
Constructor and Description |
---|
OrderSearchCriteriaBuilder() |
public OrderSearchCriteriaBuilder setPatient(Patient patient)
patient
- the patient the order is forpublic OrderSearchCriteriaBuilder setVisit(Visit visit)
visit
- the visit the order is forpublic OrderSearchCriteriaBuilder setCareSetting(CareSetting careSetting)
careSetting
- the care setting to match onpublic OrderSearchCriteriaBuilder setConcepts(Collection<Concept> concepts)
concepts
- the concepts defining the order must be in this collectionpublic OrderSearchCriteriaBuilder setOrderTypes(Collection<OrderType> orderTypes)
orderTypes
- the order types to match on must be in this collectionpublic OrderSearchCriteriaBuilder setAccessionNumber(String accessionNumber)
accessionNumber
- the accessionNumber to match on (exact match, case-insensitive)public OrderSearchCriteriaBuilder setOrderNumber(String orderNumber)
orderNumber
- the orderNumber to match on (exact match, case-insensitive)public OrderSearchCriteriaBuilder setActivatedOnOrBeforeDate(Date activatedOnOrBeforeDate)
activatedOnOrBeforeDate
- orders must have dateActivated on or before this datepublic OrderSearchCriteriaBuilder setActivatedOnOrAfterDate(Date activatedOnOrAfterDate)
activatedOnOrAfterDate
- orders must have dateActivated on or after this datepublic OrderSearchCriteriaBuilder setIsStopped(boolean isStopped)
isStopped
- public OrderSearchCriteriaBuilder setAutoExpireOnOrBeforeDate(Date autoExpireOnOrBeforeDate)
autoExpireOnOrBeforeDate
- public OrderSearchCriteriaBuilder setCanceledOrExpiredOnOrBeforeDate(Date canceledOrExpiredOnOrBeforeDate)
canceledOrExpiredOnOrBeforeDate
- public OrderSearchCriteriaBuilder setAction(Order.Action action)
action
- public OrderSearchCriteriaBuilder setFulfillerStatus(Order.FulfillerStatus fulfillerStatus)
fulfillerStatus
- public OrderSearchCriteriaBuilder setIncludeNullFulfillerStatus(Boolean includeNullFulfillerStatus)
includeNullFulfillerStatus
- public OrderSearchCriteriaBuilder setExcludeCanceledAndExpired(boolean excludeCanceledAndExpired)
public OrderSearchCriteriaBuilder setExcludeDiscontinueOrders(boolean excludeDiscontinueOrders)
public OrderSearchCriteriaBuilder setIncludeVoided(boolean includeVoided)
includeVoided
- whether to include the voided orders or notpublic OrderSearchCriteria build()
OrderSearchCriteria
with the properties of this builder instance.Copyright © 2024 OpenMRS Inc.. All rights reserved.