public class HibernateConceptDAO extends java.lang.Object implements ConceptDAO
ConceptService
to access these methodsConceptService
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
HibernateConceptDAO() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Concept> |
conceptIterator() |
void |
deleteConceptMapType(ConceptMapType conceptMapType) |
void |
deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
deleteConceptSource(ConceptSource cs) |
void |
deleteConceptStopWord(java.lang.Integer conceptStopWordId) |
java.util.List<ConceptClass> |
getAllConceptClasses(boolean includeRetired) |
java.util.List<ConceptDatatype> |
getAllConceptDatatypes(boolean includeRetired) |
java.util.List<ConceptNameTag> |
getAllConceptNameTags() |
java.util.List<ConceptProposal> |
getAllConceptProposals(boolean includeCompleted) |
java.util.List<Concept> |
getAllConcepts(java.lang.String sortBy,
boolean asc,
boolean includeRetired) |
java.util.List<ConceptSource> |
getAllConceptSources() |
java.util.List<ConceptStopWord> |
getAllConceptStopWords() |
Concept |
getConcept(java.lang.Integer conceptId) |
ConceptAnswer |
getConceptAnswer(java.lang.Integer conceptAnswerId) |
ConceptAnswer |
getConceptAnswerByUuid(java.lang.String uuid) |
Concept |
getConceptByUuid(java.lang.String uuid)
Auto generated method comment
|
ConceptClass |
getConceptClass(java.lang.Integer i) |
ConceptClass |
getConceptClassByUuid(java.lang.String uuid)
Auto generated method comment
|
java.util.List<ConceptClass> |
getConceptClasses(java.lang.String name) |
ConceptComplex |
getConceptComplex(java.lang.Integer conceptId)
Get a ConceptComplex.
|
ConceptDatatype |
getConceptDatatype(java.lang.Integer i) |
ConceptDatatype |
getConceptDatatypeByName(java.lang.String name) |
ConceptDatatype |
getConceptDatatypeByUuid(java.lang.String uuid)
Auto generated method comment
|
java.util.List<ConceptDatatype> |
getConceptDatatypes(java.lang.String name) |
ConceptDescription |
getConceptDescriptionByUuid(java.lang.String uuid) |
java.util.List<ConceptMap> |
getConceptMapsBySource(ConceptSource conceptSource) |
ConceptMapType |
getConceptMapType(java.lang.Integer conceptMapTypeId) |
ConceptMapType |
getConceptMapTypeByName(java.lang.String name) |
ConceptMapType |
getConceptMapTypeByUuid(java.lang.String uuid) |
java.util.List<ConceptMapType> |
getConceptMapTypes(boolean includeRetired,
boolean includeHidden) |
ConceptName |
getConceptName(java.lang.Integer conceptNameId) |
ConceptName |
getConceptNameByUuid(java.lang.String uuid) |
ConceptNameTag |
getConceptNameTag(java.lang.Integer i) |
ConceptNameTag |
getConceptNameTagByName(java.lang.String name) |
ConceptNameTag |
getConceptNameTagByUuid(java.lang.String uuid) |
ConceptNumeric |
getConceptNumeric(java.lang.Integer i) |
ConceptNumeric |
getConceptNumericByUuid(java.lang.String uuid)
Auto generated method comment
|
ConceptProposal |
getConceptProposal(java.lang.Integer conceptProposalId) |
ConceptProposal |
getConceptProposalByUuid(java.lang.String uuid)
Auto generated method comment
|
java.util.List<ConceptProposal> |
getConceptProposals(java.lang.String text) |
ConceptReferenceTerm |
getConceptReferenceTerm(java.lang.Integer conceptReferenceTermId) |
ConceptReferenceTerm |
getConceptReferenceTermByCode(java.lang.String code,
ConceptSource conceptSource) |
ConceptReferenceTerm |
getConceptReferenceTermByName(java.lang.String name,
ConceptSource conceptSource) |
ConceptReferenceTerm |
getConceptReferenceTermByUuid(java.lang.String uuid) |
java.util.List<ConceptReferenceTerm> |
getConceptReferenceTerms(boolean includeRetired) |
java.util.List<ConceptReferenceTerm> |
getConceptReferenceTerms(java.lang.String query,
ConceptSource conceptSource,
java.lang.Integer start,
java.lang.Integer length,
boolean includeRetired) |
java.util.List<ConceptReferenceTerm> |
getConceptReferenceTermsBySource(ConceptSource conceptSource) |
java.util.List<ConceptSearchResult> |
getConcepts(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
java.lang.Integer start,
java.lang.Integer size) |
java.util.List<Concept> |
getConcepts(java.lang.String name,
java.util.Locale loc,
boolean searchOnPhrase,
java.util.List<ConceptClass> classes,
java.util.List<ConceptDatatype> datatypes)
Returns a list of concepts based on the search criteria
|
java.util.List<Concept> |
getConceptsByAnswer(Concept concept)
gets questions for the given answer concept
|
java.util.List<Concept> |
getConceptsByMapping(java.lang.String code,
java.lang.String sourceName,
boolean includeRetired) |
java.util.List<Concept> |
getConceptsByName(java.lang.String name,
java.util.Locale locale,
java.lang.Boolean exactLocale) |
ConceptSet |
getConceptSetByUuid(java.lang.String uuid) |
ConceptSetDerived |
getConceptSetDerivedByUuid(java.lang.String uuid) |
java.util.List<ConceptSet> |
getConceptSetsByConcept(Concept concept) |
ConceptSource |
getConceptSource(java.lang.Integer conceptSourceId) |
ConceptSource |
getConceptSourceByName(java.lang.String conceptSourceName) |
ConceptSource |
getConceptSourceByUuid(java.lang.String uuid) |
java.util.List<java.lang.String> |
getConceptStopWords(java.util.Locale locale) |
java.util.List<Concept> |
getConceptsWithDrugsInFormulary() |
java.util.Map<java.lang.Integer,java.lang.String> |
getConceptUuids() |
ConceptWord |
getConceptWordByUuid(java.lang.String uuid) |
java.util.List<ConceptWord> |
getConceptWords(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
java.lang.Integer start,
java.lang.Integer size) |
java.lang.Long |
getCountOfConceptReferenceTerms(java.lang.String query,
ConceptSource conceptSource,
boolean includeRetired) |
java.lang.Long |
getCountOfConceptWords(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
boolean forUniqueConcepts)
Get the count of matching conceptWords
|
java.lang.Long |
getCountOfDrugs(java.lang.String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired) |
ConceptMapType |
getDefaultConceptMapType()
It is in the DAO, because it must be done in the MANUAL flush mode to prevent premature
flushes in
ConceptService.saveConcept(Concept) . |
Drug |
getDrug(java.lang.Integer drugId) |
Drug |
getDrugByMapping(java.lang.String code,
ConceptSource conceptSource,
java.util.Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
Drug |
getDrugByUuid(java.lang.String uuid)
Auto generated method comment
|
DrugIngredient |
getDrugIngredientByUuid(java.lang.String uuid) |
java.util.List<Drug> |
getDrugs(java.lang.String phrase) |
java.util.List<Drug> |
getDrugs(java.lang.String drugName,
Concept concept,
boolean includeRetired)
DAO for retrieving a list of drugs based on the following criteria
|
java.util.List<Drug> |
getDrugs(java.lang.String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
java.lang.Integer start,
java.lang.Integer length) |
java.util.List<Drug> |
getDrugs(java.lang.String searchPhrase,
java.util.Locale locale,
boolean exactLocale,
boolean includeRetired) |
java.util.List<Drug> |
getDrugsByMapping(java.lang.String code,
ConceptSource conceptSource,
java.util.Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
java.util.Set<java.util.Locale> |
getLocalesOfConceptNames() |
java.lang.Integer |
getMaxConceptId() |
java.lang.Integer |
getMinConceptId() |
Concept |
getNextConcept(Concept c) |
Concept |
getPrevConcept(Concept c) |
java.util.List<Concept> |
getProposedConcepts(java.lang.String text) |
java.util.List<ConceptReferenceTermMap> |
getReferenceTermMappingsTo(ConceptReferenceTerm term) |
ConceptDatatype |
getSavedConceptDatatype(Concept concept)
Gets the value of conceptDatatype currently saved in the database for the given concept,
bypassing any caches.
|
ConceptName |
getSavedConceptName(ConceptName conceptName)
Gets the persisted copy of the conceptName currently saved in the database for the given
conceptName, bypassing any caches.
|
java.util.List<ConceptSet> |
getSetsContainingConcept(Concept concept) |
boolean |
isConceptMapTypeInUse(ConceptMapType mapType)
Checks if there are any
ConceptReferenceTermMap s or ConceptMap s using the
specified mapType |
boolean |
isConceptReferenceTermInUse(ConceptReferenceTerm term)
Checks if there are any
ConceptReferenceTermMap s or ConceptMap s using the
specified term |
void |
purgeConcept(Concept concept) |
void |
purgeConceptClass(ConceptClass cc) |
void |
purgeConceptDatatype(ConceptDatatype cd) |
void |
purgeConceptProposal(ConceptProposal cp) |
void |
purgeDrug(Drug drug) |
Concept |
saveConcept(Concept concept) |
ConceptClass |
saveConceptClass(ConceptClass cc) |
ConceptDatatype |
saveConceptDatatype(ConceptDatatype cd) |
ConceptMapType |
saveConceptMapType(ConceptMapType conceptMapType) |
ConceptNameTag |
saveConceptNameTag(ConceptNameTag nameTag) |
ConceptProposal |
saveConceptProposal(ConceptProposal cp) |
ConceptReferenceTerm |
saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
saveConceptSource(ConceptSource conceptSource) |
ConceptStopWord |
saveConceptStopWord(ConceptStopWord conceptStopWord) |
Drug |
saveDrug(Drug drug) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Sets the session factory
|
void |
updateConceptSetDerived() |
void |
updateConceptSetDerived(Concept concept) |
void |
updateConceptWord(Concept concept) |
java.lang.Double |
weighConceptWord(ConceptWord word)
Computes and returns the weight of a conceptWord.
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public ConceptComplex getConceptComplex(java.lang.Integer conceptId)
ConceptDAO
getConceptComplex
in interface ConceptDAO
ConceptDAO.getConceptComplex(java.lang.Integer)
public Concept saveConcept(Concept concept) throws DAOException
saveConcept
in interface ConceptDAO
DAOException
ConceptDAO.saveConcept(org.openmrs.Concept)
public void purgeConcept(Concept concept) throws DAOException
purgeConcept
in interface ConceptDAO
DAOException
ConceptDAO.purgeConcept(org.openmrs.Concept)
public Concept getConcept(java.lang.Integer conceptId) throws DAOException
getConcept
in interface ConceptDAO
DAOException
ConceptDAO.getConcept(java.lang.Integer)
public ConceptName getConceptName(java.lang.Integer conceptNameId) throws DAOException
getConceptName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptName(java.lang.Integer)
public ConceptAnswer getConceptAnswer(java.lang.Integer conceptAnswerId) throws DAOException
getConceptAnswer
in interface ConceptDAO
DAOException
ConceptDAO.getConceptAnswer(java.lang.Integer)
public java.util.List<Concept> getAllConcepts(java.lang.String sortBy, boolean asc, boolean includeRetired) throws DAOException
getAllConcepts
in interface ConceptDAO
DAOException
ConceptDAO.getAllConcepts(java.lang.String, boolean, boolean)
public Drug saveDrug(Drug drug) throws DAOException
saveDrug
in interface ConceptDAO
DAOException
ConceptDAO.saveDrug(org.openmrs.Drug)
public Drug getDrug(java.lang.Integer drugId) throws DAOException
getDrug
in interface ConceptDAO
DAOException
ConceptDAO.getDrug(java.lang.Integer)
public java.util.List<Drug> getDrugs(java.lang.String drugName, Concept concept, boolean includeRetired) throws DAOException
ConceptDAO
getDrugs
in interface ConceptDAO
DAOException
ConceptDAO.getDrugs(java.lang.String, org.openmrs.Concept, boolean)
public java.util.List<Drug> getDrugs(java.lang.String phrase) throws DAOException
getDrugs
in interface ConceptDAO
DAOException
ConceptDAO.getDrugs(java.lang.String)
public ConceptClass getConceptClass(java.lang.Integer i) throws DAOException
getConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.getConceptClass(java.lang.Integer)
public java.util.List<ConceptClass> getConceptClasses(java.lang.String name) throws DAOException
getConceptClasses
in interface ConceptDAO
DAOException
ConceptDAO.getConceptClasses(java.lang.String)
public java.util.List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws DAOException
getAllConceptClasses
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptClasses(boolean)
public ConceptClass saveConceptClass(ConceptClass cc) throws DAOException
saveConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptClass(org.openmrs.ConceptClass)
public void purgeConceptClass(ConceptClass cc) throws DAOException
purgeConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptClass(org.openmrs.ConceptClass)
public ConceptDatatype getConceptDatatype(java.lang.Integer i)
getConceptDatatype
in interface ConceptDAO
ConceptDAO.getConceptDatatype(java.lang.Integer)
public java.util.List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
getAllConceptDatatypes
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptDatatypes(boolean)
public java.util.List<ConceptDatatype> getConceptDatatypes(java.lang.String name) throws DAOException
getConceptDatatypes
in interface ConceptDAO
DAOException
ConceptDAO.getConceptDatatypes(java.lang.String)
public ConceptDatatype getConceptDatatypeByName(java.lang.String name) throws DAOException
getConceptDatatypeByName
in interface ConceptDAO
ConceptDatatype
that matches name exactly or null if one does
not exist.DAOException
ConceptDAO.getConceptDatatypeByName(String)
public ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws DAOException
saveConceptDatatype
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptDatatype(org.openmrs.ConceptDatatype)
public void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
purgeConceptDatatype
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptDatatype(org.openmrs.ConceptDatatype)
public ConceptNumeric getConceptNumeric(java.lang.Integer i)
getConceptNumeric
in interface ConceptDAO
ConceptDAO.getConceptNumeric(java.lang.Integer)
public java.util.List<Concept> getConcepts(java.lang.String name, java.util.Locale loc, boolean searchOnPhrase, java.util.List<ConceptClass> classes, java.util.List<ConceptDatatype> datatypes) throws DAOException
ConceptDAO
getConcepts
in interface ConceptDAO
searchOnPhrase
- This puts wildcard characters around the concept name search criteriaDAOException
ConceptDAO.getConcepts(java.lang.String, java.util.Locale, boolean,
java.util.List, java.util.List)
public java.util.List<ConceptWord> getConceptWords(java.lang.String phrase, java.util.List<java.util.Locale> locales, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, java.lang.Integer start, java.lang.Integer size) throws DAOException
public java.util.List<Concept> getConceptsByAnswer(Concept concept)
getConceptsByAnswer
in interface ConceptDAO
ConceptDAO.getConceptsByAnswer(org.openmrs.Concept)
public Concept getPrevConcept(Concept c)
getPrevConcept
in interface ConceptDAO
ConceptDAO.getPrevConcept(org.openmrs.Concept)
public Concept getNextConcept(Concept c)
getNextConcept
in interface ConceptDAO
ConceptDAO.getNextConcept(org.openmrs.Concept)
public java.util.List<Concept> getConceptsWithDrugsInFormulary()
getConceptsWithDrugsInFormulary
in interface ConceptDAO
ConceptDAO.getConceptsWithDrugsInFormulary()
public void purgeDrug(Drug drug) throws DAOException
purgeDrug
in interface ConceptDAO
DAOException
ConceptDAO.purgeDrug(org.openmrs.Drug)
public void updateConceptWord(Concept concept) throws DAOException
updateConceptWord
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptWord(org.openmrs.Concept)
public ConceptProposal saveConceptProposal(ConceptProposal cp) throws DAOException
saveConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptProposal(org.openmrs.ConceptProposal)
public void purgeConceptProposal(ConceptProposal cp) throws DAOException
purgeConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptProposal(org.openmrs.ConceptProposal)
public java.util.List<ConceptProposal> getAllConceptProposals(boolean includeCompleted) throws DAOException
getAllConceptProposals
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptProposals(boolean)
public ConceptProposal getConceptProposal(java.lang.Integer conceptProposalId) throws DAOException
getConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.getConceptProposal(java.lang.Integer)
public java.util.List<ConceptProposal> getConceptProposals(java.lang.String text) throws DAOException
getConceptProposals
in interface ConceptDAO
DAOException
ConceptDAO.getConceptProposals(java.lang.String)
public java.util.List<Concept> getProposedConcepts(java.lang.String text) throws DAOException
getProposedConcepts
in interface ConceptDAO
DAOException
ConceptDAO.getProposedConcepts(java.lang.String)
public java.util.List<ConceptSet> getConceptSetsByConcept(Concept concept)
getConceptSetsByConcept
in interface ConceptDAO
ConceptDAO.getConceptSetsByConcept(org.openmrs.Concept)
public java.util.List<ConceptSet> getSetsContainingConcept(Concept concept)
getSetsContainingConcept
in interface ConceptDAO
ConceptDAO.getSetsContainingConcept(org.openmrs.Concept)
public void updateConceptSetDerived() throws DAOException
updateConceptSetDerived
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptSetDerived()
public void updateConceptSetDerived(Concept concept) throws DAOException
updateConceptSetDerived
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptSetDerived(org.openmrs.Concept)
public java.util.Set<java.util.Locale> getLocalesOfConceptNames()
getLocalesOfConceptNames
in interface ConceptDAO
ConceptDAO.getLocalesOfConceptNames()
public ConceptNameTag getConceptNameTag(java.lang.Integer i)
getConceptNameTag
in interface ConceptDAO
ConceptDAO.getConceptNameTag(java.lang.Integer)
public ConceptNameTag getConceptNameTagByName(java.lang.String name)
getConceptNameTagByName
in interface ConceptDAO
ConceptDAO.getConceptNameTagByName(java.lang.String)
public java.util.List<ConceptNameTag> getAllConceptNameTags()
getAllConceptNameTags
in interface ConceptDAO
ConceptDAO.getAllConceptNameTags()
public ConceptSource getConceptSource(java.lang.Integer conceptSourceId)
getConceptSource
in interface ConceptDAO
ConceptDAO.getConceptSource(java.lang.Integer)
public java.util.List<ConceptSource> getAllConceptSources()
getAllConceptSources
in interface ConceptDAO
ConceptDAO.getAllConceptSources()
public ConceptSource deleteConceptSource(ConceptSource cs) throws DAOException
deleteConceptSource
in interface ConceptDAO
DAOException
ConceptDAO.deleteConceptSource(org.openmrs.ConceptSource)
public ConceptSource saveConceptSource(ConceptSource conceptSource) throws DAOException
saveConceptSource
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptSource(org.openmrs.ConceptSource)
public ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
saveConceptNameTag
in interface ConceptDAO
ConceptDAO.saveConceptNameTag(org.openmrs.ConceptNameTag)
public java.lang.Integer getMinConceptId()
ConceptDAO.getMaxConceptId()
public java.lang.Integer getMaxConceptId()
getMaxConceptId
in interface ConceptDAO
ConceptDAO.getMaxConceptId()
public java.util.Iterator<Concept> conceptIterator()
conceptIterator
in interface ConceptDAO
ConceptDAO.conceptIterator()
public java.util.List<Concept> getConceptsByMapping(java.lang.String code, java.lang.String sourceName, boolean includeRetired)
getConceptsByMapping
in interface ConceptDAO
org.openmrs.api.db.ConceptDAO#getConceptsByMapping(java.lang.String, java.lang.String)
public Concept getConceptByUuid(java.lang.String uuid)
ConceptDAO
getConceptByUuid
in interface ConceptDAO
ConceptDAO.getConceptByUuid(java.lang.String)
public ConceptClass getConceptClassByUuid(java.lang.String uuid)
ConceptDAO
getConceptClassByUuid
in interface ConceptDAO
ConceptDAO.getConceptClassByUuid(java.lang.String)
public ConceptAnswer getConceptAnswerByUuid(java.lang.String uuid)
getConceptAnswerByUuid
in interface ConceptDAO
public ConceptName getConceptNameByUuid(java.lang.String uuid)
getConceptNameByUuid
in interface ConceptDAO
public ConceptSet getConceptSetByUuid(java.lang.String uuid)
getConceptSetByUuid
in interface ConceptDAO
public ConceptSetDerived getConceptSetDerivedByUuid(java.lang.String uuid)
getConceptSetDerivedByUuid
in interface ConceptDAO
public ConceptSource getConceptSourceByUuid(java.lang.String uuid)
getConceptSourceByUuid
in interface ConceptDAO
public ConceptWord getConceptWordByUuid(java.lang.String uuid)
getConceptWordByUuid
in interface ConceptDAO
public ConceptDatatype getConceptDatatypeByUuid(java.lang.String uuid)
ConceptDAO
getConceptDatatypeByUuid
in interface ConceptDAO
ConceptDAO.getConceptDatatypeByUuid(java.lang.String)
public ConceptNumeric getConceptNumericByUuid(java.lang.String uuid)
ConceptDAO
getConceptNumericByUuid
in interface ConceptDAO
ConceptDAO.getConceptNumericByUuid(java.lang.String)
public ConceptProposal getConceptProposalByUuid(java.lang.String uuid)
ConceptDAO
getConceptProposalByUuid
in interface ConceptDAO
ConceptDAO.getConceptProposalByUuid(java.lang.String)
public Drug getDrugByUuid(java.lang.String uuid)
ConceptDAO
getDrugByUuid
in interface ConceptDAO
ConceptDAO.getDrugByUuid(java.lang.String)
public DrugIngredient getDrugIngredientByUuid(java.lang.String uuid)
getDrugIngredientByUuid
in interface ConceptDAO
public java.util.Map<java.lang.Integer,java.lang.String> getConceptUuids()
getConceptUuids
in interface ConceptDAO
ConceptDAO.getConceptUuids()
public ConceptDescription getConceptDescriptionByUuid(java.lang.String uuid)
getConceptDescriptionByUuid
in interface ConceptDAO
ConceptDAO.getConceptDescriptionByUuid(java.lang.String)
public ConceptNameTag getConceptNameTagByUuid(java.lang.String uuid)
getConceptNameTagByUuid
in interface ConceptDAO
ConceptDAO.getConceptNameTagByUuid(java.lang.String)
public java.util.List<ConceptMap> getConceptMapsBySource(ConceptSource conceptSource) throws DAOException
getConceptMapsBySource
in interface ConceptDAO
DAOException
ConceptDAO.getConceptMapsBySource(ConceptSource)
public ConceptSource getConceptSourceByName(java.lang.String conceptSourceName) throws DAOException
getConceptSourceByName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptSourceByName(java.lang.String)
public ConceptDatatype getSavedConceptDatatype(Concept concept)
ConceptDAO
getSavedConceptDatatype
in interface ConceptDAO
concept
- for which the conceptDatatype should be fetchedConceptDAO.getSavedConceptDatatype(org.openmrs.Concept)
public ConceptName getSavedConceptName(ConceptName conceptName)
ConceptDAO
getSavedConceptName
in interface ConceptDAO
conceptName
- ConceptName to fetch from the databaseConceptDAO.getSavedConceptName(org.openmrs.ConceptName)
public java.util.List<java.lang.String> getConceptStopWords(java.util.Locale locale) throws DAOException
getConceptStopWords
in interface ConceptDAO
DAOException
ConceptDAO.getConceptStopWords(java.util.Locale)
public ConceptStopWord saveConceptStopWord(ConceptStopWord conceptStopWord) throws DAOException
saveConceptStopWord
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptStopWord(org.openmrs.ConceptStopWord)
public void deleteConceptStopWord(java.lang.Integer conceptStopWordId) throws DAOException
deleteConceptStopWord
in interface ConceptDAO
DAOException
ConceptDAO.deleteConceptStopWord(java.lang.Integer)
public java.util.List<ConceptStopWord> getAllConceptStopWords()
getAllConceptStopWords
in interface ConceptDAO
ConceptDAO.getAllConceptStopWords()
public java.lang.Long getCountOfConceptWords(java.lang.String phrase, java.util.List<java.util.Locale> locales, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, boolean forUniqueConcepts)
ConceptDAO
getCountOfConceptWords
in interface ConceptDAO
phrase
- text to search onlocales
- the locales to restrict toincludeRetired
- Specifies whether to include retired conceptsrequireClasses
- ListexcludeClasses
- ListrequireDatatypes
- ListexcludeDatatypes
- ListanswersToConcept
- all results will be a possible answer to this conceptforUniqueConcepts
- Specifies if conceptWords that are associated to multiple
conceptWords should be counted one or more times.org.openmrs.api.db.ConceptDAO#getCountOfConceptWords(String, List, boolean, List, List,
List, List, Concept)
public java.lang.Long getCountOfDrugs(java.lang.String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired) throws DAOException
getCountOfDrugs
in interface ConceptDAO
DAOException
ConceptService.getCountOfDrugs(String, Concept, boolean, boolean, boolean)
public java.util.List<Drug> getDrugs(java.lang.String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, java.lang.Integer start, java.lang.Integer length) throws DAOException
getDrugs
in interface ConceptDAO
DAOException
ConceptService.getDrugs(String, Concept, boolean, boolean, boolean, Integer, Integer)
public java.util.List<ConceptSearchResult> getConcepts(java.lang.String phrase, java.util.List<java.util.Locale> locales, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, java.lang.Integer start, java.lang.Integer size) throws DAOException
getConcepts
in interface ConceptDAO
DAOException
ConceptDAO.getConcepts(String, List, boolean, List, List, List, List, Concept, Integer,
Integer)
public java.lang.Double weighConceptWord(ConceptWord word)
ConceptDAO
weighConceptWord
in interface ConceptDAO
word
- the word for which to compute the weightConceptDAO.weighConceptWord(ConceptWord)
public java.util.List<ConceptMapType> getConceptMapTypes(boolean includeRetired, boolean includeHidden) throws DAOException
getConceptMapTypes
in interface ConceptDAO
DAOException
ConceptDAO.getConceptMapTypes(boolean, boolean)
public ConceptMapType getConceptMapType(java.lang.Integer conceptMapTypeId) throws DAOException
getConceptMapType
in interface ConceptDAO
DAOException
ConceptDAO.getConceptMapType(java.lang.Integer)
public ConceptMapType getConceptMapTypeByUuid(java.lang.String uuid) throws DAOException
getConceptMapTypeByUuid
in interface ConceptDAO
DAOException
ConceptDAO.getConceptMapTypeByUuid(java.lang.String)
public ConceptMapType getConceptMapTypeByName(java.lang.String name) throws DAOException
getConceptMapTypeByName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptMapTypeByName(java.lang.String)
public ConceptMapType saveConceptMapType(ConceptMapType conceptMapType) throws DAOException
saveConceptMapType
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptMapType(org.openmrs.ConceptMapType)
public void deleteConceptMapType(ConceptMapType conceptMapType) throws DAOException
deleteConceptMapType
in interface ConceptDAO
DAOException
ConceptDAO.deleteConceptMapType(org.openmrs.ConceptMapType)
public java.util.List<ConceptReferenceTerm> getConceptReferenceTerms(boolean includeRetired) throws DAOException
getConceptReferenceTerms
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTerms(boolean)
public ConceptReferenceTerm getConceptReferenceTerm(java.lang.Integer conceptReferenceTermId) throws DAOException
getConceptReferenceTerm
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTerm(java.lang.Integer)
public ConceptReferenceTerm getConceptReferenceTermByUuid(java.lang.String uuid) throws DAOException
getConceptReferenceTermByUuid
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTermByUuid(java.lang.String)
public java.util.List<ConceptReferenceTerm> getConceptReferenceTermsBySource(ConceptSource conceptSource) throws DAOException
getConceptReferenceTermsBySource
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTermsBySource(ConceptSource)
public ConceptReferenceTerm getConceptReferenceTermByName(java.lang.String name, ConceptSource conceptSource) throws DAOException
getConceptReferenceTermByName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTermByName(java.lang.String,
org.openmrs.ConceptSource)
public ConceptReferenceTerm getConceptReferenceTermByCode(java.lang.String code, ConceptSource conceptSource) throws DAOException
getConceptReferenceTermByCode
in interface ConceptDAO
DAOException
ConceptDAO.getConceptReferenceTermByCode(java.lang.String,
org.openmrs.ConceptSource)
public ConceptReferenceTerm saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws DAOException
saveConceptReferenceTerm
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptReferenceTerm(org.openmrs.ConceptReferenceTerm)
public void deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws DAOException
deleteConceptReferenceTerm
in interface ConceptDAO
DAOException
ConceptDAO.deleteConceptReferenceTerm(org.openmrs.ConceptReferenceTerm)
public java.lang.Long getCountOfConceptReferenceTerms(java.lang.String query, ConceptSource conceptSource, boolean includeRetired) throws DAOException
getCountOfConceptReferenceTerms
in interface ConceptDAO
DAOException
org.openmrs.api.db.ConceptDAO#getCountOfConceptReferenceTerms(java.lang.String, boolean)
public java.util.List<ConceptReferenceTerm> getConceptReferenceTerms(java.lang.String query, ConceptSource conceptSource, java.lang.Integer start, java.lang.Integer length, boolean includeRetired) throws APIException
getConceptReferenceTerms
in interface ConceptDAO
APIException
ConceptDAO.getConceptReferenceTerms(String, ConceptSource, Integer,
Integer, boolean)
public java.util.List<ConceptReferenceTermMap> getReferenceTermMappingsTo(ConceptReferenceTerm term) throws DAOException
getReferenceTermMappingsTo
in interface ConceptDAO
DAOException
ConceptDAO.getReferenceTermMappingsTo(ConceptReferenceTerm)
public boolean isConceptReferenceTermInUse(ConceptReferenceTerm term) throws DAOException
ConceptDAO
ConceptReferenceTermMap
s or ConceptMap
s using the
specified termisConceptReferenceTermInUse
in interface ConceptDAO
DAOException
ConceptDAO.isConceptReferenceTermInUse(org.openmrs.ConceptReferenceTerm)
public boolean isConceptMapTypeInUse(ConceptMapType mapType) throws DAOException
ConceptDAO
ConceptReferenceTermMap
s or ConceptMap
s using the
specified mapTypeisConceptMapTypeInUse
in interface ConceptDAO
DAOException
ConceptDAO.isConceptMapTypeInUse(org.openmrs.ConceptMapType)
public java.util.List<Concept> getConceptsByName(java.lang.String name, java.util.Locale locale, java.lang.Boolean exactLocale)
getConceptsByName
in interface ConceptDAO
ConceptDAO.getConceptsByName(java.lang.String, java.util.Locale,
java.lang.Boolean)
public ConceptMapType getDefaultConceptMapType() throws DAOException
ConceptDAO
ConceptService.saveConcept(Concept)
. It will be removed in 1.10 when we
have a better way to manage flush modes.getDefaultConceptMapType
in interface ConceptDAO
DAOException
ConceptDAO.getDefaultConceptMapType()
public java.util.List<Drug> getDrugs(java.lang.String searchPhrase, java.util.Locale locale, boolean exactLocale, boolean includeRetired)
getDrugs
in interface ConceptDAO
ConceptDAO.getDrugs(String, java.util.Locale, boolean, boolean)
public java.util.List<Drug> getDrugsByMapping(java.lang.String code, ConceptSource conceptSource, java.util.Collection<ConceptMapType> withAnyOfTheseTypes, boolean includeRetired) throws DAOException
getDrugsByMapping
in interface ConceptDAO
DAOException
ConceptDAO.getDrugsByMapping(String, ConceptSource, Collection,
boolean)
public Drug getDrugByMapping(java.lang.String code, ConceptSource conceptSource, java.util.Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) throws DAOException
getDrugByMapping
in interface ConceptDAO
DAOException
ConceptDAO.getDrugs(java.lang.String, org.openmrs.Concept, boolean)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.