public interface ConceptDAO
ConceptService
Concept saveConcept(Concept concept) throws DAOException
DAOException
ConceptService.saveConcept(org.openmrs.Concept)
void purgeConcept(Concept concept) throws DAOException
DAOException
ConceptService.purgeConcept(org.openmrs.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
List<ConceptWord> getConceptWords(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
List<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
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)
List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
DAOException
ConceptService.getAllConceptDatatypes(boolean)
@Deprecated List<ConceptDatatype> getConceptDatatypes(String name) throws DAOException
DAOException
ConceptService.getConceptDatatypes(java.lang.String)
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
ConceptService.saveConceptDatatype(org.openmrs.ConceptDatatype)
void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
DAOException
ConceptService.purgeConceptDatatype(org.openmrs.ConceptDatatype)
void updateConceptSetDerived(Concept concept) throws DAOException
DAOException
ConceptService.updateConceptSetDerived(org.openmrs.Concept)
void updateConceptSetDerived() throws DAOException
DAOException
ConceptService.updateConceptSetDerived()
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
ConceptService.getConceptsByAnswer(org.openmrs.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()
void updateConceptWord(Concept concept) throws DAOException
DAOException
ConceptService.updateConceptWord(org.openmrs.Concept)
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() throws DAOException
DAOException
ConceptService.getAllConceptSources()
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()
List<Concept> getConceptsByMapping(String code, String sourceName, boolean includeRetired)
org.openmrs.api.ConceptService@getConceptsByMapping(java.lang.String, java.lang.String)
Concept getConceptByUuid(String uuid)
uuid
- ConceptClass getConceptClassByUuid(String uuid)
uuid
- ConceptAnswer getConceptAnswerByUuid(String uuid)
ConceptName getConceptNameByUuid(String uuid)
ConceptSet getConceptSetByUuid(String uuid)
ConceptSetDerived getConceptSetDerivedByUuid(String uuid)
ConceptSource getConceptSourceByUuid(String uuid)
ConceptWord getConceptWordByUuid(String uuid)
ConceptDatatype getConceptDatatypeByUuid(String uuid)
uuid
- ConceptNumeric getConceptNumericByUuid(String uuid)
uuid
- ConceptProposal getConceptProposalByUuid(String uuid)
uuid
- Drug getDrugByUuid(String uuid)
uuid
- DrugIngredient getDrugIngredientByUuid(String uuid)
Map<Integer,String> getConceptUuids()
org.openmrs.api.ConceptService#getConceptUuids()
ConceptDescription getConceptDescriptionByUuid(String uuid)
ConceptNameTag getConceptNameTagByUuid(String uuid)
List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSourceName) throws DAOException
ConceptSource getConceptSourceByName(String conceptSourceName) throws DAOException
DAOException
ConceptService.getConceptSourceByName(java.lang.String)
ConceptDatatype getSavedConceptDatatype(Concept concept)
concept
- for which the conceptDatatype should be fetchedConceptName getSavedConceptName(ConceptName conceptName)
conceptName
- ConceptName to fetch from the databaseInteger getCountOfConceptWords(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, boolean forUniqueConcepts)
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.Integer 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
Double weighConceptWord(ConceptWord word)
word
- the word for which to compute the weightCopyright © 2018 OpenMRS LLC.. All Rights Reserved.