public class PatientSearchCriteria
extends java.lang.Object
Constructor and Description |
---|
PatientSearchCriteria(org.hibernate.SessionFactory sessionFactory,
org.hibernate.Criteria criteria) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.Criteria |
prepareCriteria(java.lang.String name,
java.lang.String identifier,
java.util.List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
boolean orderByNames,
boolean searchOnNamesOrIdentifiers)
Prepare a hibernate criteria using the patient identifier.
|
public PatientSearchCriteria(org.hibernate.SessionFactory sessionFactory, org.hibernate.Criteria criteria)
sessionFactory
- criteria
- public org.hibernate.Criteria prepareCriteria(java.lang.String name, java.lang.String identifier, java.util.List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly, boolean orderByNames, boolean searchOnNamesOrIdentifiers)
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 identifierCriteria
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.