public class EncounterSearchCriteriaBuilder extends Object
EncounterSearchCriteria
. Create a builder, set
its properties to desired values and finally call createEncounterSearchCriteria()
to create the actual search criteria instance.EncounterSearchCriteria
Constructor and Description |
---|
EncounterSearchCriteriaBuilder() |
Modifier and Type | Method and Description |
---|---|
EncounterSearchCriteria |
createEncounterSearchCriteria()
Create an
EncounterSearchCriteria with the properties of this builder instance. |
EncounterSearchCriteriaBuilder |
setDateChanged(Date dateChanged) |
EncounterSearchCriteriaBuilder |
setEncounterTypes(Collection<EncounterType> encounterTypes) |
EncounterSearchCriteriaBuilder |
setEnteredViaForms(Collection<Form> enteredViaForms) |
EncounterSearchCriteriaBuilder |
setFromDate(Date fromDate) |
EncounterSearchCriteriaBuilder |
setIncludeVoided(boolean includeVoided) |
EncounterSearchCriteriaBuilder |
setLocation(Location location) |
EncounterSearchCriteriaBuilder |
setPatient(Patient patient) |
EncounterSearchCriteriaBuilder |
setProviders(Collection<Provider> providers) |
EncounterSearchCriteriaBuilder |
setToDate(Date toDate) |
EncounterSearchCriteriaBuilder |
setVisits(Collection<Visit> visits) |
EncounterSearchCriteriaBuilder |
setVisitTypes(Collection<VisitType> visitTypes) |
public EncounterSearchCriteriaBuilder setPatient(Patient patient)
patient
- the patient the encounter is forpublic EncounterSearchCriteriaBuilder setLocation(Location location)
location
- the location the encounter took placepublic EncounterSearchCriteriaBuilder setFromDate(Date fromDate)
fromDate
- the minimum date (inclusive) the encounter took placepublic EncounterSearchCriteriaBuilder setToDate(Date toDate)
toDate
- the maximum date (exclusive) the encounter took placepublic EncounterSearchCriteriaBuilder setDateChanged(Date dateChanged)
dateChanged
- the minimum date the encounter was changedpublic EncounterSearchCriteriaBuilder setEnteredViaForms(Collection<Form> enteredViaForms)
enteredViaForms
- the form that entered the encounter must be in this collection.
This search parameter is omitted if the set is null or empty.public EncounterSearchCriteriaBuilder setEncounterTypes(Collection<EncounterType> encounterTypes)
encounterTypes
- the type of the encounter must be in this collection.
This search parameter is omitted if the set is null or empty.public EncounterSearchCriteriaBuilder setProviders(Collection<Provider> providers)
providers
- the provider of the encounter must be in this collection.
This search parameter is omitted if the set is null or empty.public EncounterSearchCriteriaBuilder setVisitTypes(Collection<VisitType> visitTypes)
visitTypes
- the visit types of the encounter must be in this collection.
This search parameter is omitted if the set is null or empty.public EncounterSearchCriteriaBuilder setVisits(Collection<Visit> visits)
visits
- the visits of the encounter must be in this collection.
This search parameter is omitted if the set is null or empty.public EncounterSearchCriteriaBuilder setIncludeVoided(boolean includeVoided)
includeVoided
- whether to include the voided encounters or notpublic EncounterSearchCriteria createEncounterSearchCriteria()
EncounterSearchCriteria
with the properties of this builder instance.Copyright © 2024 OpenMRS Inc.. All rights reserved.