public class PersonLuceneQuery extends Object
HibernatePatientDAO
,
HibernatePersonDAO
Constructor and Description |
---|
PersonLuceneQuery(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
LuceneQuery<PersonAttribute> |
getPatientAttributeQuery(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonAttribute> |
getPatientAttributeQueryWithOrParser(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonName> |
getPatientNameQuery(String query,
boolean includeVoided) |
LuceneQuery<PersonName> |
getPatientNameQuery(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonName> |
getPatientNameQueryWithOrParser(String query,
boolean includeVoided) |
LuceneQuery<PersonName> |
getPatientNameQueryWithOrParser(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonAttribute> |
getPersonAttributeQuery(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonAttribute> |
getPersonAttributeQueryWithOrParser(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonName> |
getPersonNameQuery(String query,
boolean includeVoided) |
LuceneQuery<PersonName> |
getPersonNameQuery(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonName> |
getPersonNameQueryWithOrParser(String query,
boolean includeVoided) |
LuceneQuery<PersonName> |
getPersonNameQueryWithOrParser(String query,
boolean includeVoided,
LuceneQuery<?> skipSame) |
LuceneQuery<PersonName> |
getSoundexPersonNameQuery(String query,
Integer birthyear,
boolean includeVoided,
String gender)
The method creates a Lucene search query for a Person based on a soundex search on the givenName, familyNames and middleName
|
LuceneQuery<PersonName> |
getSoundexPersonNameSearchOnNNames(String[] searchNames,
Integer birthyear,
boolean includeVoided,
String gender)
This method creates a Lucene search query for a Person based on a soundex search on n>3 names
|
LuceneQuery<PersonName> |
getSoundexPersonNameSearchOnThreeNames(String n1,
String n2,
String n3,
Integer birthyear,
boolean includeVoided,
String gender)
This method creates a Lucene search query for a Person based on a soundex search on the first name
|
LuceneQuery<PersonName> |
getSoundexPersonNameSearchOnTwoNames(String searchName1,
String searchName2,
Integer birthyear,
boolean includeVoided,
String gender)
This method creates a Lucene search query for a Person based on a soundex search
|
public PersonLuceneQuery(org.hibernate.SessionFactory sessionFactory)
public LuceneQuery<PersonName> getPersonNameQuery(String query, boolean includeVoided)
public LuceneQuery<PersonName> getPatientNameQuery(String query, boolean includeVoided)
public LuceneQuery<PersonName> getPersonNameQuery(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonName> getPatientNameQuery(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonName> getPersonNameQueryWithOrParser(String query, boolean includeVoided)
public LuceneQuery<PersonName> getPatientNameQueryWithOrParser(String query, boolean includeVoided)
public LuceneQuery<PersonName> getPersonNameQueryWithOrParser(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonName> getPatientNameQueryWithOrParser(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonName> getSoundexPersonNameSearchOnThreeNames(String n1, String n2, String n3, Integer birthyear, boolean includeVoided, String gender)
n1
- the first part of the name to be searched forn2
- the second part of the name to be searchedn3
- the third part of the name to be searchedbirthyear
- the birthyear the searched person should haveincludeVoided
- is true if voided person should be matchedgender
- the gender of the person to searchpublic LuceneQuery<PersonName> getSoundexPersonNameSearchOnTwoNames(String searchName1, String searchName2, Integer birthyear, boolean includeVoided, String gender)
searchName1
- the first part of the name to be searched forsearchName2
- the second part of the name to be searchedbirthyear
- the birthyear the searched person should haveincludeVoided
- is true if voided person should be matchedgender
- the gender of the person to searchpublic LuceneQuery<PersonName> getSoundexPersonNameSearchOnNNames(String[] searchNames, Integer birthyear, boolean includeVoided, String gender)
searchNames
- an array of names that should be searched forbirthyear
- the birthyear the searched person should haveincludeVoided
- is true if voided person should be matchedgender
- the gender of the person to searchpublic LuceneQuery<PersonName> getSoundexPersonNameQuery(String query, Integer birthyear, boolean includeVoided, String gender)
query
- the query that should be executed on the namesbirthyear
- the birthyear the searched person should haveincludeVoided
- is true if voided person should be matchedgender
- the gender of the person to searchpublic LuceneQuery<PersonAttribute> getPersonAttributeQuery(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonAttribute> getPatientAttributeQuery(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonAttribute> getPersonAttributeQueryWithOrParser(String query, boolean includeVoided, LuceneQuery<?> skipSame)
public LuceneQuery<PersonAttribute> getPatientAttributeQueryWithOrParser(String query, boolean includeVoided, LuceneQuery<?> skipSame)
Copyright © 2024 OpenMRS Inc.. All rights reserved.