public class VisitSearchCriteriaBuilder extends Object
VisitSearchCriteria
.
This builder allows for the flexible creation of VisitSearchCriteria
objects by providing a simple interface to set various fields.Constructor and Description |
---|
VisitSearchCriteriaBuilder()
Constructs a new
VisitSearchCriteriaBuilder instance. |
Modifier and Type | Method and Description |
---|---|
VisitSearchCriteria |
build()
Builds and returns a
VisitSearchCriteria instance based on the current state of the builder. |
VisitSearchCriteriaBuilder |
includeInactive(boolean includeInactive)
Sets whether inactive visits should be included in the search criteria.
|
VisitSearchCriteriaBuilder |
includeVoided(boolean includeVoided)
Sets whether voided visits should be included in the search criteria.
|
VisitSearchCriteriaBuilder |
indications(Collection<Concept> indications)
Sets the indications to include in the search criteria.
|
VisitSearchCriteriaBuilder |
locations(Collection<Location> locations)
Sets the locations to include in the search criteria.
|
VisitSearchCriteriaBuilder |
maxEndDatetime(Date maxEndDatetime)
Sets the maximum end datetime for visits to include in the search criteria.
|
VisitSearchCriteriaBuilder |
maxStartDatetime(Date maxStartDatetime)
Sets the maximum start datetime for visits to include in the search criteria.
|
VisitSearchCriteriaBuilder |
minEndDatetime(Date minEndDatetime)
Sets the minimum end datetime for visits to include in the search criteria.
|
VisitSearchCriteriaBuilder |
minStartDatetime(Date minStartDatetime)
Sets the minimum start datetime for visits to include in the search criteria.
|
VisitSearchCriteriaBuilder |
patient(Patient patient)
Sets a single patient to include in the search criteria.
|
VisitSearchCriteriaBuilder |
patients(Collection<Patient> patients)
Sets the patients to include in the search criteria.
|
VisitSearchCriteriaBuilder |
serializedAttributeValues(Map<VisitAttributeType,String> serializedAttributeValues)
Sets the serialized attribute values to filter visits by in the search criteria.
|
VisitSearchCriteriaBuilder |
visitTypes(Collection<VisitType> visitTypes)
Sets the visit types to include in the search criteria.
|
public VisitSearchCriteriaBuilder()
VisitSearchCriteriaBuilder
instance.public VisitSearchCriteriaBuilder visitTypes(Collection<VisitType> visitTypes)
visitTypes
- the collection of VisitType
to include.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder patients(Collection<Patient> patients)
patients
- the collection of Patient
to include.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder patient(Patient patient)
patient
- the Patient
to include.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder locations(Collection<Location> locations)
locations
- the collection of Location
to include.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder indications(Collection<Concept> indications)
indications
- the collection of Concept
to include.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder minStartDatetime(Date minStartDatetime)
minStartDatetime
- the minimum start Date
.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder maxStartDatetime(Date maxStartDatetime)
maxStartDatetime
- the maximum start Date
.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder minEndDatetime(Date minEndDatetime)
minEndDatetime
- the minimum end Date
.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder maxEndDatetime(Date maxEndDatetime)
maxEndDatetime
- the maximum end Date
.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder serializedAttributeValues(Map<VisitAttributeType,String> serializedAttributeValues)
serializedAttributeValues
- a map of VisitAttributeType
to their corresponding serialized values.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder includeInactive(boolean includeInactive)
includeInactive
- true to include inactive visits, false otherwise.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteriaBuilder includeVoided(boolean includeVoided)
includeVoided
- true to include voided visits, false otherwise.VisitSearchCriteriaBuilder
for method chaining.public VisitSearchCriteria build()
VisitSearchCriteria
instance based on the current state of the builder.VisitSearchCriteria
.Copyright © 2024 OpenMRS Inc.. All rights reserved.