@Deprecated public class PatientSearchCriteria extends Object
Constructor and Description |
---|
PatientSearchCriteria(org.hibernate.SessionFactory sessionFactory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
QueryResult |
prepareCriteria(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Join<Encounter,Patient> patientJoin,
String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
boolean orderByNames,
boolean searchOnNamesOrIdentifiers)
Deprecated.
Prepare a
QueryResult for searching patients by name and/or identifier. |
public PatientSearchCriteria(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public QueryResult prepareCriteria(javax.persistence.criteria.CriteriaBuilder cb, javax.persistence.criteria.Join<Encounter,Patient> patientJoin, String name, String identifier, List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly, boolean orderByNames, boolean searchOnNamesOrIdentifiers)
QueryResult
for searching patients by name and/or identifier. The visibility of
this method remains public in order not to break OpenMRS modules that use this method. Instead of
calling this method consider using PatientService
or
PatientDAO
.cb
- patientJoin
- name
- identifier
- identifierTypes
- matchIdentifierExactly
- searchOnNamesOrIdentifiers
- specifies if the logic should find patients that match the name
or identifier otherwise find patients that match both the name and identifierQueryResult
Copyright © 2024 OpenMRS Inc.. All rights reserved.