public interface ConceptDAO
ConceptServiceConcept saveConcept(Concept concept) throws DAOException
DAOExceptionConceptService.saveConcept(org.openmrs.Concept)void purgeConcept(Concept concept) throws DAOException
DAOExceptionShould purge conceptConceptComplex getConceptComplex(Integer conceptId)
conceptId - void purgeDrug(Drug drug) throws DAOException
DAOExceptionConceptService.purgeDrug(org.openmrs.Drug)Drug saveDrug(Drug drug) throws DAOException
DAOExceptionConceptService.saveDrug(org.openmrs.Drug)Concept getConcept(Integer conceptId) throws DAOException
DAOExceptionConceptService.getConcept(java.lang.Integer)ConceptName getConceptName(Integer conceptNameId) throws DAOException
conceptNameId - DAOExceptionConceptService.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
DAOExceptionConceptAnswer getConceptAnswer(Integer conceptAnswerId) throws DAOException
DAOExceptionConceptService.getConceptAnswer(java.lang.Integer)Drug getDrug(Integer drugId) throws DAOException
DAOExceptionConceptService.getDrug(java.lang.Integer)List<Drug> getDrugs(String drugName, Concept concept, boolean includeRetired) throws DAOException
drugName - concept - includeRetired - DAOExceptionList<Drug> getDrugs(String phrase) throws DAOException
DAOExceptionConceptService.getDrugs(java.lang.String)ConceptClass getConceptClass(Integer i) throws DAOException
DAOExceptionConceptService.getConceptClass(java.lang.Integer)List<ConceptClass> getConceptClasses(String name) throws DAOException
DAOExceptionConceptService.getConceptClassByName(java.lang.String)List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws DAOException
DAOExceptionConceptService.getAllConceptClasses(boolean)ConceptClass saveConceptClass(ConceptClass cc) throws DAOException
DAOExceptionConceptService.saveConceptClass(org.openmrs.ConceptClass)void purgeConceptClass(ConceptClass cc) throws DAOException
DAOExceptionConceptService.purgeConceptClass(org.openmrs.ConceptClass)void deleteConceptNameTag(ConceptNameTag cnt) throws DAOException
DAOExceptionConceptService.purgeConceptNameTag(org.openmrs.ConceptNameTag)List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
DAOExceptionConceptService.getAllConceptDatatypes(boolean)ConceptDatatype getConceptDatatypeByName(String name) throws DAOException
name - ConceptDatatype that matches name exactly or null if one does
not exist.DAOExceptionConceptDatatype getConceptDatatype(Integer i) throws DAOException
DAOExceptionConceptService.getConceptDatatype(java.lang.Integer)ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws DAOException
DAOExceptionorg.openmrs.api.ConceptService#saveConceptDatatype(org.openmrs.ConceptDatatype)void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
DAOExceptionorg.openmrs.api.ConceptService#purgeConceptDatatype(org.openmrs.ConceptDatatype)List<ConceptSet> getConceptSetsByConcept(Concept c) throws DAOException
DAOExceptionConceptService.getConceptSetsByConcept(org.openmrs.Concept)List<ConceptSet> getSetsContainingConcept(Concept concept) throws DAOException
DAOExceptionConceptService.getSetsContainingConcept(org.openmrs.Concept)ConceptNumeric getConceptNumeric(Integer conceptId) throws DAOException
DAOExceptionConceptService.getConceptNumeric(java.lang.Integer)List<Concept> getConceptsByAnswer(Concept concept) throws DAOException
DAOExceptionShould return concepts for the given answer conceptConcept getPrevConcept(Concept c) throws DAOException
DAOExceptionConceptService.getPrevConcept(org.openmrs.Concept)Concept getNextConcept(Concept c) throws DAOException
DAOExceptionConceptService.getNextConcept(org.openmrs.Concept)List<ConceptProposal> getAllConceptProposals(boolean includeComplete) throws DAOException
DAOExceptionConceptService.getAllConceptProposals(boolean)ConceptProposal getConceptProposal(Integer i) throws DAOException
DAOExceptionConceptService.getConceptProposal(java.lang.Integer)List<ConceptProposal> getConceptProposals(String text) throws DAOException
DAOExceptionConceptService.getConceptProposals(java.lang.String)List<Concept> getProposedConcepts(String text) throws DAOException
DAOExceptionConceptService.getProposedConcepts(java.lang.String)ConceptProposal saveConceptProposal(ConceptProposal cp) throws DAOException
DAOExceptionConceptService.saveConceptProposal(org.openmrs.ConceptProposal)void purgeConceptProposal(ConceptProposal cp) throws DAOException
DAOExceptionConceptService.purgeConceptProposal(org.openmrs.ConceptProposal)List<Concept> getConceptsWithDrugsInFormulary() throws DAOException
DAOExceptionConceptService.getConceptsWithDrugsInFormulary()ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
ConceptNameTag getConceptNameTag(Integer i)
ConceptNameTag getConceptNameTagByName(String name)
List<ConceptNameTag> getAllConceptNameTags()
ConceptService.getAllConceptNameTags()ConceptSource getConceptSource(Integer conceptSourceId) throws DAOException
DAOExceptionConceptService.getConceptSource(java.lang.Integer)List<ConceptSource> getAllConceptSources(boolean includeRetired) throws DAOException
DAOExceptionConceptService.getAllConceptSources(boolean)ConceptSource saveConceptSource(ConceptSource conceptSource) throws DAOException
DAOExceptionConceptService.saveConceptSource(org.openmrs.ConceptSource)ConceptSource deleteConceptSource(ConceptSource cs) throws DAOException
DAOExceptionConceptService.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
DAOExceptionConceptService.getConceptMappingsToSource(ConceptSource)ConceptSource getConceptSourceByName(String conceptSourceName) throws DAOException
DAOExceptionConceptService.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
DAOExceptionConceptService.saveConceptStopWord(org.openmrs.ConceptStopWord)void deleteConceptStopWord(Integer conceptStopWordId) throws DAOException
DAOExceptionConceptService.deleteConceptStopWord(Integer)List<String> getConceptStopWords(Locale locale) throws DAOException
DAOExceptionConceptService.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
DAOExceptionConceptService.getConceptMapTypes(boolean, boolean)ConceptMapType getConceptMapType(Integer conceptMapTypeId) throws DAOException
DAOExceptionConceptService.getConceptMapType(Integer)ConceptMapType getConceptMapTypeByUuid(String uuid) throws DAOException
DAOExceptionConceptService.getConceptMapTypeByUuid(String)ConceptMapType getConceptMapTypeByName(String name) throws DAOException
DAOExceptionConceptService.getConceptMapTypeByName(String)ConceptMapType saveConceptMapType(ConceptMapType conceptMapType) throws DAOException
DAOExceptionConceptService.saveConceptMapType(ConceptMapType)void deleteConceptMapType(ConceptMapType conceptMapType) throws DAOException
DAOExceptionConceptService.purgeConceptMapType(ConceptMapType)List<ConceptReferenceTerm> getConceptReferenceTerms(boolean includeRetired) throws DAOException
DAOExceptionConceptService.getConceptReferenceTerms(boolean)ConceptReferenceTerm getConceptReferenceTerm(Integer conceptReferenceTermId) throws DAOException
DAOExceptionConceptService.getConceptReferenceTerm(Integer)ConceptReferenceTerm getConceptReferenceTermByUuid(String uuid) throws DAOException
DAOExceptionConceptService.getConceptReferenceTermByUuid(String)List<ConceptReferenceTerm> getConceptReferenceTermsBySource(ConceptSource conceptSource) throws DAOException
DAOExceptionConceptReferenceTerm 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
DAOExceptionConceptService.saveConceptReferenceTerm(ConceptReferenceTerm)void deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws DAOException
DAOExceptionConceptService.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
DAOExceptionConceptService.getReferenceTermMappingsTo(ConceptReferenceTerm)boolean isConceptReferenceTermInUse(ConceptReferenceTerm term) throws DAOException
ConceptReferenceTermMaps or ConceptMaps 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
ConceptReferenceTermMaps or ConceptMaps 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.DAOExceptionConceptService.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.