public class VisitSearchCriteria extends Object
| Constructor and Description |
|---|
VisitSearchCriteria(Collection<VisitType> visitTypes,
Collection<Patient> patients,
Collection<Location> locations,
Collection<Concept> indications,
Date minStartDatetime,
Date maxStartDatetime,
Date minEndDatetime,
Date maxEndDatetime,
Map<VisitAttributeType,String> serializedAttributeValues,
boolean includeInactive,
boolean includeVoided)
Constructs a VisitSearchCriteria with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Concept> |
getIndications() |
Collection<Location> |
getLocations() |
Date |
getMaxEndDatetime() |
Date |
getMaxStartDatetime() |
Date |
getMinEndDatetime() |
Date |
getMinStartDatetime() |
Collection<Patient> |
getPatients() |
Map<VisitAttributeType,String> |
getSerializedAttributeValues() |
Collection<VisitType> |
getVisitTypes() |
boolean |
isIncludeInactive() |
boolean |
isIncludeVoided() |
void |
setIncludeInactive(boolean includeInactive)
Sets whether inactive visits should be included in the search criteria.
|
void |
setIncludeVoided(boolean includeVoided)
Sets whether voided visits should be included in the search criteria.
|
void |
setIndications(Collection<Concept> indications)
Sets the collection of indications to be included in the search criteria.
|
void |
setLocations(Collection<Location> locations)
Sets the collection of locations to be included in the search criteria.
|
void |
setMaxEndDatetime(Date maxEndDatetime)
Sets the maximum end datetime to be included in the search criteria.
|
void |
setMaxStartDatetime(Date maxStartDatetime)
Sets the maximum start datetime to be included in the search criteria.
|
void |
setMinEndDatetime(Date minEndDatetime)
Sets the minimum end datetime to be included in the search criteria.
|
void |
setMinStartDatetime(Date minStartDatetime)
Sets the minimum start datetime to be included in the search criteria.
|
void |
setPatients(Collection<Patient> patients)
Sets the collection of patients to be included in the search criteria.
|
void |
setSerializedAttributeValues(Map<VisitAttributeType,String> serializedAttributeValues)
Sets the map of serialized attribute values to be included in the search criteria.
|
void |
setVisitTypes(Collection<VisitType> visitTypes)
Sets the collection of visit types to be included in the search criteria.
|
public VisitSearchCriteria(Collection<VisitType> visitTypes, Collection<Patient> patients, Collection<Location> locations, Collection<Concept> indications, Date minStartDatetime, Date maxStartDatetime, Date minEndDatetime, Date maxEndDatetime, Map<VisitAttributeType,String> serializedAttributeValues, boolean includeInactive, boolean includeVoided)
VisitSearchCriteriaBuilder.visitTypes - the types of visits to include in the searchpatients - the patients associated with the visits to include in the searchlocations - the locations associated with the visits to include in the searchindications - the indications associated with the visits to include in the searchminStartDatetime - the minimum start date of visits to include in the searchmaxStartDatetime - the maximum start date of visits to include in the searchminEndDatetime - the minimum end date of visits to include in the searchmaxEndDatetime - the maximum end date of visits to include in the searchserializedAttributeValues - a map of serialized attribute values to filter visits byincludeInactive - whether to include inactive visits in the searchincludeVoided - whether to include voided visits in the searchpublic Collection<VisitType> getVisitTypes()
public void setVisitTypes(Collection<VisitType> visitTypes)
visitTypes - the collection of visit types to set.public Collection<Patient> getPatients()
public void setPatients(Collection<Patient> patients)
patients - the collection of patients to set.public Collection<Location> getLocations()
public void setLocations(Collection<Location> locations)
locations - the collection of locations to set.public Collection<Concept> getIndications()
public void setIndications(Collection<Concept> indications)
indications - the collection of indications to set.public Date getMinStartDatetime()
public void setMinStartDatetime(Date minStartDatetime)
minStartDatetime - the minimum start datetime to set.public Date getMaxStartDatetime()
public void setMaxStartDatetime(Date maxStartDatetime)
maxStartDatetime - the maximum start datetime to set.public Date getMinEndDatetime()
public void setMinEndDatetime(Date minEndDatetime)
minEndDatetime - the minimum end datetime to set.public Date getMaxEndDatetime()
public void setMaxEndDatetime(Date maxEndDatetime)
maxEndDatetime - the maximum end datetime to set.public Map<VisitAttributeType,String> getSerializedAttributeValues()
public void setSerializedAttributeValues(Map<VisitAttributeType,String> serializedAttributeValues)
serializedAttributeValues - the map of serialized attribute values to set.public boolean isIncludeInactive()
public void setIncludeInactive(boolean includeInactive)
includeInactive - true to include inactive visits, false otherwise.public boolean isIncludeVoided()
public void setIncludeVoided(boolean includeVoided)
includeVoided - true to include voided visits, false otherwise.Copyright © 2024 OpenMRS Inc.. All rights reserved.