public interface ConceptDAO
ConceptService
Concept saveConcept(Concept concept) throws DAOException
DAOException
ConceptService.saveConcept(org.openmrs.Concept)
void purgeConcept(Concept concept) throws DAOException
DAOException
Should purge concept
ConceptComplex getConceptComplex(Integer conceptId)
conceptId
- void purgeDrug(Drug drug) throws DAOException
DAOException
ConceptService.purgeDrug(org.openmrs.Drug)
Drug saveDrug(Drug drug) throws DAOException
DAOException
ConceptService.saveDrug(org.openmrs.Drug)
Concept getConcept(Integer conceptId) throws DAOException
DAOException
ConceptService.getConcept(java.lang.Integer)
ConceptName getConceptName(Integer conceptNameId) throws DAOException
conceptNameId
- DAOException
ConceptService.getConceptName(java.lang.Integer)
List<Concept> getAllConcepts(String sortBy, boolean asc, boolean includeRetired) throws DAOException
List<Concept> getConcepts(String name, Locale loc, boolean searchOnPhrase, List<ConceptClass> classes, List<ConceptDatatype> datatypes) throws DAOException
name
- loc
- searchOnPhrase
- This puts wildcard characters around the concept name search criteriaDAOException
- Should not return concepts with matching names that are voidedList<ConceptSearchResult> getConcepts(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, Integer start, Integer size) throws DAOException
DAOException
- Should return correct results for concept with names that contains words with more weight
Should return correct results if a concept name contains same word more than onceConceptService.getConcepts(String, List, boolean, List, List, List, List, Concept,
Integer, Integer)
Integer getCountOfConcepts(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept) throws DAOException
DAOException
ConceptAnswer getConceptAnswer(Integer conceptAnswerId) throws DAOException
DAOException
ConceptService.getConceptAnswer(java.lang.Integer)
Drug getDrug(Integer drugId) throws DAOException
DAOException
ConceptService.getDrug(java.lang.Integer)
List<Drug> getDrugs(String drugName, Concept concept, boolean includeRetired) throws DAOException
drugName
- concept
- includeRetired
- DAOException
List<Drug> getDrugs(String phrase) throws DAOException
DAOException
ConceptService.getDrugs(java.lang.String)
ConceptClass getConceptClass(Integer i) throws DAOException
DAOException
ConceptService.getConceptClass(java.lang.Integer)
List<ConceptClass> getConceptClasses(String name) throws DAOException
DAOException
ConceptService.getConceptClassByName(java.lang.String)
List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws DAOException
DAOException
ConceptService.getAllConceptClasses(boolean)
ConceptClass saveConceptClass(ConceptClass cc) throws DAOException
DAOException
ConceptService.saveConceptClass(org.openmrs.ConceptClass)
void purgeConceptClass(ConceptClass cc) throws DAOException
DAOException
ConceptService.purgeConceptClass(org.openmrs.ConceptClass)
void deleteConceptNameTag(ConceptNameTag cnt) throws DAOException
DAOException
ConceptService.purgeConceptNameTag(org.openmrs.ConceptNameTag)
List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
DAOException
ConceptService.getAllConceptDatatypes(boolean)
ConceptDatatype getConceptDatatypeByName(String name) throws DAOException
name
- ConceptDatatype
that matches name exactly or null if one does
not exist.DAOException
ConceptDatatype getConceptDatatype(Integer i) throws DAOException
DAOException
ConceptService.getConceptDatatype(java.lang.Integer)
ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws DAOException
DAOException
org.openmrs.api.ConceptService#saveConceptDatatype(org.openmrs.ConceptDatatype)
void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
DAOException
org.openmrs.api.ConceptService#purgeConceptDatatype(org.openmrs.ConceptDatatype)
List<ConceptSet> getConceptSetsByConcept(Concept c) throws DAOException
DAOException
ConceptService.getConceptSetsByConcept(org.openmrs.Concept)
List<ConceptSet> getSetsContainingConcept(Concept concept) throws DAOException
DAOException
ConceptService.getSetsContainingConcept(org.openmrs.Concept)
ConceptNumeric getConceptNumeric(Integer conceptId) throws DAOException
DAOException
ConceptService.getConceptNumeric(java.lang.Integer)
List<Concept> getConceptsByAnswer(Concept concept) throws DAOException
DAOException
Should return concepts for the given answer concept
Concept getPrevConcept(Concept c) throws DAOException
DAOException
ConceptService.getPrevConcept(org.openmrs.Concept)
Concept getNextConcept(Concept c) throws DAOException
DAOException
ConceptService.getNextConcept(org.openmrs.Concept)
List<ConceptProposal> getAllConceptProposals(boolean includeComplete) throws DAOException
DAOException
ConceptService.getAllConceptProposals(boolean)
ConceptProposal getConceptProposal(Integer i) throws DAOException
DAOException
ConceptService.getConceptProposal(java.lang.Integer)
List<ConceptProposal> getConceptProposals(String text) throws DAOException
DAOException
ConceptService.getConceptProposals(java.lang.String)
List<Concept> getProposedConcepts(String text) throws DAOException
DAOException
ConceptService.getProposedConcepts(java.lang.String)
ConceptProposal saveConceptProposal(ConceptProposal cp) throws DAOException
DAOException
ConceptService.saveConceptProposal(org.openmrs.ConceptProposal)
void purgeConceptProposal(ConceptProposal cp) throws DAOException
DAOException
ConceptService.purgeConceptProposal(org.openmrs.ConceptProposal)
List<Concept> getConceptsWithDrugsInFormulary() throws DAOException
DAOException
ConceptService.getConceptsWithDrugsInFormulary()
ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
ConceptNameTag getConceptNameTag(Integer i)
ConceptNameTag getConceptNameTagByName(String name)
List<ConceptNameTag> getAllConceptNameTags()
ConceptService.getAllConceptNameTags()
ConceptSource getConceptSource(Integer conceptSourceId) throws DAOException
DAOException
ConceptService.getConceptSource(java.lang.Integer)
List<ConceptSource> getAllConceptSources(boolean includeRetired) throws DAOException
DAOException
ConceptService.getAllConceptSources(boolean)
ConceptSource saveConceptSource(ConceptSource conceptSource) throws DAOException
DAOException
ConceptService.saveConceptSource(org.openmrs.ConceptSource)
ConceptSource deleteConceptSource(ConceptSource cs) throws DAOException
DAOException
ConceptService.purgeConceptSource(org.openmrs.ConceptSource)
Integer getMaxConceptId()
ConceptService.getMaxConceptId()
Iterator<Concept> conceptIterator()
ConceptService.conceptIterator()
@Deprecated List<Concept> getConceptsByMapping(String code, String sourceName, boolean includeRetired)
getConceptIdsByMapping(String, String, boolean)
List<Integer> getConceptIdsByMapping(String code, String sourceName, boolean includeRetired)
ConceptClass getConceptClassByUuid(String uuid)
uuid
- ConceptAnswer getConceptAnswerByUuid(String uuid)
ConceptName getConceptNameByUuid(String uuid)
ConceptSet getConceptSetByUuid(String uuid)
ConceptSource getConceptSourceByUuid(String uuid)
ConceptDatatype getConceptDatatypeByUuid(String uuid)
uuid
- ConceptNumeric getConceptNumericByUuid(String uuid)
uuid
- ConceptProposal getConceptProposalByUuid(String uuid)
uuid
- DrugIngredient getDrugIngredientByUuid(String uuid)
ConceptDescription getConceptDescriptionByUuid(String uuid)
ConceptNameTag getConceptNameTagByUuid(String uuid)
List<ConceptMap> getConceptMapsBySource(ConceptSource conceptSource) throws DAOException
DAOException
ConceptService.getConceptMappingsToSource(ConceptSource)
ConceptSource getConceptSourceByName(String conceptSourceName) throws DAOException
DAOException
ConceptService.getConceptSourceByName(java.lang.String)
ConceptSource getConceptSourceByUniqueId(String uniqueId)
ConceptSource getConceptSourceByHL7Code(String hl7Code)
ConceptDatatype getSavedConceptDatatype(Concept concept)
concept
- for which the conceptDatatype should be fetchedConceptName getSavedConceptName(ConceptName conceptName)
conceptName
- ConceptName to fetch from the databaseConceptStopWord saveConceptStopWord(ConceptStopWord conceptStopWord) throws DAOException
DAOException
ConceptService.saveConceptStopWord(org.openmrs.ConceptStopWord)
void deleteConceptStopWord(Integer conceptStopWordId) throws DAOException
DAOException
ConceptService.deleteConceptStopWord(Integer)
List<String> getConceptStopWords(Locale locale) throws DAOException
DAOException
ConceptService.getConceptStopWords(java.util.Locale)
List<ConceptStopWord> getAllConceptStopWords()
ConceptService.getAllConceptStopWords()
Long getCountOfDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired) throws DAOException
List<Drug> getDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, Integer start, Integer length) throws DAOException
List<ConceptMapType> getConceptMapTypes(boolean includeRetired, boolean includeHidden) throws DAOException
DAOException
ConceptService.getConceptMapTypes(boolean, boolean)
ConceptMapType getConceptMapType(Integer conceptMapTypeId) throws DAOException
DAOException
ConceptService.getConceptMapType(Integer)
ConceptMapType getConceptMapTypeByUuid(String uuid) throws DAOException
DAOException
ConceptService.getConceptMapTypeByUuid(String)
ConceptMapType getConceptMapTypeByName(String name) throws DAOException
DAOException
ConceptService.getConceptMapTypeByName(String)
ConceptMapType saveConceptMapType(ConceptMapType conceptMapType) throws DAOException
DAOException
ConceptService.saveConceptMapType(ConceptMapType)
void deleteConceptMapType(ConceptMapType conceptMapType) throws DAOException
DAOException
ConceptService.purgeConceptMapType(ConceptMapType)
List<ConceptReferenceTerm> getConceptReferenceTerms(boolean includeRetired) throws DAOException
DAOException
ConceptService.getConceptReferenceTerms(boolean)
ConceptReferenceTerm getConceptReferenceTerm(Integer conceptReferenceTermId) throws DAOException
DAOException
ConceptService.getConceptReferenceTerm(Integer)
ConceptReferenceTerm getConceptReferenceTermByUuid(String uuid) throws DAOException
DAOException
ConceptService.getConceptReferenceTermByUuid(String)
List<ConceptReferenceTerm> getConceptReferenceTermsBySource(ConceptSource conceptSource) throws DAOException
DAOException
ConceptReferenceTerm getConceptReferenceTermByName(String name, ConceptSource conceptSource) throws DAOException
ConceptReferenceTerm getConceptReferenceTermByCode(String code, ConceptSource conceptSource) throws DAOException
List<ConceptReferenceTerm> getConceptReferenceTermByCode(String code, ConceptSource conceptSource, boolean includeRetired) throws DAOException
ConceptReferenceTerm saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws DAOException
DAOException
ConceptService.saveConceptReferenceTerm(ConceptReferenceTerm)
void deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws DAOException
DAOException
ConceptService.purgeConceptReferenceTerm(ConceptReferenceTerm)
Long getCountOfConceptReferenceTerms(String query, ConceptSource conceptSource, boolean includeRetired) throws DAOException
List<ConceptReferenceTerm> getConceptReferenceTerms(String query, ConceptSource conceptSource, Integer start, Integer length, boolean includeRetired) throws APIException
List<ConceptReferenceTermMap> getReferenceTermMappingsTo(ConceptReferenceTerm term) throws DAOException
DAOException
ConceptService.getReferenceTermMappingsTo(ConceptReferenceTerm)
boolean isConceptReferenceTermInUse(ConceptReferenceTerm term) throws DAOException
ConceptReferenceTermMap
s or ConceptMap
s using the
specified termterm
- DAOException
- Should return true if a term has a conceptMap or more using it
Should return true if a term has a conceptReferenceTermMap or more using it
Should return false if a term has no maps using itboolean isConceptMapTypeInUse(ConceptMapType mapType) throws DAOException
ConceptReferenceTermMap
s or ConceptMap
s using the
specified mapTypemapType
- DAOException
- Should return true if a mapType has a conceptMap or more using it
Should return true if a mapType has a conceptReferenceTermMap or more using it
Should return false if a mapType has no maps using itConcept getConceptByName(String name)
ConceptService.getConceptByName(String)
ConceptMapType getDefaultConceptMapType() throws DAOException
ConceptService.saveConcept(Concept)
. It will be removed in 1.10 when we
have a better way to manage flush modes.DAOException
ConceptService.getDefaultConceptMapType()
boolean isConceptNameDuplicate(ConceptName name)
List<Drug> getDrugs(String searchPhrase, Locale locale, boolean exactLocale, boolean includeRetired)
List<Drug> getDrugsByMapping(String code, ConceptSource conceptSource, Collection<ConceptMapType> withAnyOfTheseTypes, boolean includeRetired) throws DAOException
Drug getDrugByMapping(String code, ConceptSource conceptSource, Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) throws DAOException
List<ConceptAttributeType> getAllConceptAttributeTypes()
ConceptAttributeType saveConceptAttributeType(ConceptAttributeType conceptAttributeType)
ConceptAttributeType getConceptAttributeType(Integer id)
ConceptAttributeType getConceptAttributeTypeByUuid(String uuid)
void deleteConceptAttributeType(ConceptAttributeType conceptAttributeType)
List<ConceptAttributeType> getConceptAttributeTypes(String name)
ConceptAttributeType getConceptAttributeTypeByName(String exactName)
ConceptAttribute getConceptAttributeByUuid(String uuid)
long getConceptAttributeCount(ConceptAttributeType conceptAttributeType)
List<Concept> getConceptsByClass(ConceptClass conceptClass)
Copyright © 2024 OpenMRS Inc.. All rights reserved.