@Transactional public interface ConceptService extends OpenmrsService
To get a list of concepts:
List<Concept> concepts = Context.getConceptService().getAllConcepts();To get a single concept:
// if there is a concept row in the database with concept_id = 3845 Concept concept = Context.getConceptService().getConcept(3845); String name = concept.getPreferredName(Context.getLocale()).getName();To save a concept to the database
Concept concept = new Concept(); concept.setConceptClass(Context.getConceptService().getConceptClass(3)); concept.setDatatype(Context.getConceptService().getConceptDatatype(17)); concept.setName... ... // and other required values on the concept Context.getConceptService().saveConcept(concept);
Context| Modifier and Type | Method and Description | 
|---|---|
void | 
checkIfLocked()
Check if the concepts are locked and if so, throw exception during manipulation of concept 
 | 
java.util.Iterator<Concept> | 
conceptIterator()
Returns an iterator for all concepts, including retired and expired. 
 | 
void | 
convertBooleanConceptToCoded(Concept conceptToChange)
Changes the datatype of a concept from boolean to coded when it has observations it is
 associated to. 
 | 
void | 
createConcept(Concept concept)
Deprecated. 
 
use #saveConcept(Concept) 
 | 
void | 
createConcept(ConceptNumeric concept)
Deprecated. 
 
use #saveConcept(Concept) 
 | 
void | 
createDrug(Drug drug)
Deprecated. 
 
use #saveDrug(Drug) 
 | 
void | 
deleteConcept(Concept concept)
Deprecated. 
 
use #purgeConcept(Concept concept) 
 | 
void | 
deleteConceptStopWord(java.lang.Integer conceptStopWordId)
Delete the given  
ConceptStopWord in the database | 
java.util.List<ConceptSearchResult> | 
findConceptAnswers(java.lang.String phrase,
                  java.util.Locale locale,
                  Concept concept)
Finds concepts that are possible value coded answers to concept parameter 
 | 
java.util.List<ConceptWord> | 
findConceptAnswers(java.lang.String phrase,
                  java.util.Locale locale,
                  Concept concept,
                  boolean includeRetired)
Deprecated. 
 
 | 
java.util.List<ConceptWord> | 
findConcepts(java.lang.String phrase,
            java.util.List<java.util.Locale> searchLocales,
            boolean includeRetired,
            java.util.List<ConceptClass> requireClasses,
            java.util.List<ConceptClass> excludeClasses,
            java.util.List<ConceptDatatype> requireDatatypes,
            java.util.List<ConceptDatatype> excludeDatatypes)
 | 
java.util.List<ConceptWord> | 
findConcepts(java.lang.String phrase,
            java.util.Locale locale,
            boolean includeRetired)
 | 
java.util.List<ConceptWord> | 
findConcepts(java.lang.String phrase,
            java.util.Locale locale,
            boolean includeRetired,
            int start,
            int size)
 | 
java.util.List<ConceptWord> | 
findConcepts(java.lang.String phrase,
            java.util.Locale locale,
            boolean includeRetired,
            java.util.List<ConceptClass> requireClasses,
            java.util.List<ConceptClass> excludeClasses,
            java.util.List<ConceptDatatype> requireDatatypes,
            java.util.List<ConceptDatatype> excludeDatatypes)
 | 
java.util.List<Drug> | 
findDrugs(java.lang.String phrase,
         boolean includeVoided)
Deprecated. 
 
Use  
getDrugs(String) | 
java.util.List<ConceptProposal> | 
findMatchingConceptProposals(java.lang.String text)
Deprecated. 
 
 | 
java.util.List<Concept> | 
findProposedConcepts(java.lang.String text)
Deprecated. 
 
 | 
java.util.List<ConceptMapType> | 
getActiveConceptMapTypes()
Returns a list of concept map types currently in the database excluding hidden ones 
 | 
java.util.List<ConceptClass> | 
getAllConceptClasses()
Return a list of concept classes currently in the database 
 | 
java.util.List<ConceptClass> | 
getAllConceptClasses(boolean includeRetired)
Return a list of concept classes currently in the database 
 | 
java.util.List<ConceptDatatype> | 
getAllConceptDatatypes()
Return a list of all concept datatypes currently in the database 
 | 
java.util.List<ConceptDatatype> | 
getAllConceptDatatypes(boolean includeRetired)
Return a list of concept datatypes currently in the database 
 | 
java.util.List<ConceptNameTag> | 
getAllConceptNameTags()
Get all the concept name tags defined in the database, included voided ones 
 | 
java.util.List<ConceptProposal> | 
getAllConceptProposals(boolean includeCompleted)
Get a List of all concept proposals 
 | 
java.util.List<ConceptReferenceTerm> | 
getAllConceptReferenceTerms()
Gets a list of all concept reference terms saved in the database 
 | 
java.util.List<Concept> | 
getAllConcepts()
Return a list of unretired concepts sorted by concept id ascending and 
 | 
java.util.List<Concept> | 
getAllConcepts(java.lang.String sortBy,
              boolean asc,
              boolean includeRetired)
Return a list of concepts sorted on sortBy in dir direction (asc/desc) 
 | 
java.util.List<ConceptSource> | 
getAllConceptSources()
Return a list of concept sources currently in the database that are not voided 
 | 
java.util.List<ConceptStopWord> | 
getAllConceptStopWords()
Get all the concept stop words 
 | 
java.util.List<Drug> | 
getAllDrugs()
Return a list of drugs currently in the database that are not retired 
 | 
java.util.List<Drug> | 
getAllDrugs(boolean includeRetired)
Get drugs by concept. 
 | 
Concept | 
getConcept(java.lang.Integer conceptId)
Gets the concept with the given id 
 | 
Concept | 
getConcept(java.lang.String conceptIdOrName)
Get Concept by id or name convenience method 
 | 
ConceptAnswer | 
getConceptAnswer(java.lang.Integer conceptAnswerId)
Gets the ConceptAnswer with the given id 
 | 
ConceptAnswer | 
getConceptAnswerByUuid(java.lang.String uuid)
Get ConceptAnswer by its UUID 
 | 
java.util.List<ConceptWord> | 
getConceptAnswers(java.lang.String phrase,
                 java.util.Locale locale,
                 Concept concept)
Deprecated. 
 
 | 
Concept | 
getConceptByIdOrName(java.lang.String idOrName)
Deprecated. 
 
 | 
Concept | 
getConceptByMapping(java.lang.String code,
                   java.lang.String sourceName)
Looks up a concept via  
ConceptMap This will return the Concept which contains
 a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode. | 
Concept | 
getConceptByMapping(java.lang.String code,
                   java.lang.String sourceName,
                   java.lang.Boolean includeRetired)
Looks up a concept via  
ConceptMap This will return the Concept which contains
 a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode . | 
Concept | 
getConceptByName(java.lang.String name)
Return a Concept that matches the name exactly 
 | 
Concept | 
getConceptByUuid(java.lang.String uuid)
Get Concept by its UUID 
 | 
ConceptClass | 
getConceptClass(java.lang.Integer conceptClassId)
Return a Concept class matching the given identifier 
 | 
ConceptClass | 
getConceptClassByName(java.lang.String name)
Return a Concept class matching the given name 
 | 
ConceptClass | 
getConceptClassByUuid(java.lang.String uuid)
Get ConceptClass by its UUID 
 | 
java.util.List<ConceptClass> | 
getConceptClasses()
Deprecated. 
 
 | 
ConceptComplex | 
getConceptComplex(java.lang.Integer conceptId)
Get a ComplexConcept with the given conceptId 
 | 
ConceptDatatype | 
getConceptDatatype(java.lang.Integer i)
Return a ConceptDatatype matching the given identifier 
 | 
ConceptDatatype | 
getConceptDatatypeByName(java.lang.String name)
Return a Concept datatype matching the given name 
 | 
ConceptDatatype | 
getConceptDatatypeByUuid(java.lang.String uuid)
Get ConceptDatatype by its UUID 
 | 
java.util.List<ConceptDatatype> | 
getConceptDatatypes(java.lang.String name)
Deprecated. 
 
you *probably* want to use
              
getConceptDatatypeByName(String) | 
ConceptDescription | 
getConceptDescriptionByUuid(java.lang.String uuid)
Get ConceptDescription by its UUID 
 | 
java.util.List<ConceptMap> | 
getConceptMappingsToSource(ConceptSource conceptSource)
Returns a list of mappings from concepts to terms in the given reference terminology 
 | 
ConceptMapType | 
getConceptMapType(java.lang.Integer conceptMapTypeId)
Return a concept map type matching the given concept map type id 
 | 
ConceptMapType | 
getConceptMapTypeByName(java.lang.String name)
Return a concept map type matching the given name 
 | 
ConceptMapType | 
getConceptMapTypeByUuid(java.lang.String uuid)
Return a concept map type matching the given uuid 
 | 
java.util.List<ConceptMapType> | 
getConceptMapTypes(boolean includeRetired,
                  boolean includeHidden)
Returns a list of concept map types currently in the database including or excluding retired
 and hidden ones as specified by the includeRetired and includeHidden arguments 
 | 
ConceptName | 
getConceptName(java.lang.Integer conceptNameId)
Gets the concept-name with the given id 
 | 
ConceptName | 
getConceptNameByUuid(java.lang.String uuid)
Get ConceptName by its UUID 
 | 
ConceptNameTag | 
getConceptNameTag(java.lang.Integer id)
Gets the  
ConceptNameTag with the given database primary key | 
ConceptNameTag | 
getConceptNameTagByName(java.lang.String tag)
Search for a ConceptNameTag by name 
 | 
ConceptNameTag | 
getConceptNameTagByUuid(java.lang.String uuid)
Get ConceptNameTag by its UUID 
 | 
ConceptNumeric | 
getConceptNumeric(java.lang.Integer conceptId)
Get the ConceptNumeric with the given id 
 | 
ConceptNumeric | 
getConceptNumericByUuid(java.lang.String uuid)
Get ConceptNumeric by its UUID 
 | 
ConceptProposal | 
getConceptProposal(java.lang.Integer conceptProposalId)
Get a ConceptProposal by conceptProposalId 
 | 
ConceptProposal | 
getConceptProposalByUuid(java.lang.String uuid)
Get ConceptProposal by its UUID 
 | 
java.util.List<ConceptProposal> | 
getConceptProposals(boolean includeCompleted)
Deprecated. 
 
 | 
java.util.List<ConceptProposal> | 
getConceptProposals(java.lang.String text)
Find matching concept proposals 
 | 
ConceptReferenceTerm | 
getConceptReferenceTerm(java.lang.Integer conceptReferenceTermId)
Gets the concept reference term with the specified concept reference term id 
 | 
ConceptReferenceTerm | 
getConceptReferenceTermByCode(java.lang.String code,
                             ConceptSource conceptSource)
Gets a concept reference term with the specified code from the specified concept source 
 | 
ConceptReferenceTerm | 
getConceptReferenceTermByName(java.lang.String name,
                             ConceptSource conceptSource)
Gets a concept reference term with the specified name from the specified concept source
 ignoring all retired ones 
 | 
ConceptReferenceTerm | 
getConceptReferenceTermByUuid(java.lang.String uuid)
Gets the concept reference term with the specified uuid 
 | 
java.util.List<ConceptReferenceTerm> | 
getConceptReferenceTerms(boolean includeRetired)
Gets a list of concept reference terms saved in the database 
 | 
java.util.List<ConceptReferenceTerm> | 
getConceptReferenceTerms(java.lang.String query,
                        ConceptSource conceptSource,
                        java.lang.Integer start,
                        java.lang.Integer length,
                        boolean includeRetired)
Finds the concept reference term in the database that have a code or name that contains the
 specified search phrase. 
 | 
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)
Searches for concepts by the given parameters. 
 | 
java.util.List<ConceptSearchResult> | 
getConcepts(java.lang.String phrase,
           java.util.Locale locale,
           boolean includeRetired)
Searches for concepts with the given parameters 
 | 
java.util.List<Concept> | 
getConcepts(java.lang.String sortBy,
           java.lang.String dir)
Deprecated. 
 
 | 
java.util.List<Concept> | 
getConceptsByAnswer(Concept concept)
Returns all possible Concepts to which this concept is a value-coded answer. 
 | 
java.util.List<Concept> | 
getConceptsByClass(ConceptClass cc)  | 
java.util.List<Concept> | 
getConceptsByConceptSet(Concept concept)
Return a List of all concepts within a concept set 
 | 
java.util.List<ConceptMap> | 
getConceptsByConceptSource(ConceptSource conceptSource)
Deprecated. 
 
as of version 1.9, use  
#getConceptMapsBySource(ConceptSource)) | 
java.util.List<Concept> | 
getConceptsByMapping(java.lang.String code,
                    java.lang.String sourceName)
Looks up a concept via  
ConceptMap This will return the list of concepts
 Concepts which contain a ConceptMap entry whose sourceCode is
 equal to the passed conceptCode and whose ConceptSource has either a
 name or hl7Code that is equal to the passed
 mappingCode | 
java.util.List<Concept> | 
getConceptsByMapping(java.lang.String code,
                    java.lang.String sourceName,
                    boolean includeRetired)
Looks up a concept via  
ConceptMap This will return the list of Concepts which
 contain a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode. | 
java.util.List<Concept> | 
getConceptsByName(java.lang.String name)
Returns a list of concepts matching any part of a concept name, this method is case
 insensitive to the concept name string 
 | 
java.util.List<Concept> | 
getConceptsByName(java.lang.String name,
                 java.util.Locale locale,
                 java.lang.Boolean exactLocale)
Returns a list of concepts with the same name in the given locale. 
 | 
ConceptSet | 
getConceptSetByUuid(java.lang.String uuid)
Get ConceptSet by its UUID 
 | 
java.util.List<ConceptSet> | 
getConceptSets(Concept concept)
Deprecated. 
 
 | 
java.util.List<ConceptSet> | 
getConceptSetsByConcept(Concept concept)
Return a list of the concept sets with concept_set matching concept 
 | 
java.util.List<Concept> | 
getConceptsInSet(Concept concept)
Deprecated. 
 
 | 
ConceptSource | 
getConceptSource(java.lang.Integer i)
Return a Concept source matching the given concept source id 
 | 
ConceptSource | 
getConceptSourceByName(java.lang.String conceptSourceName)
Lookup a ConceptSource by its name property 
 | 
ConceptSource | 
getConceptSourceByUuid(java.lang.String uuid)
Get ConceptSource by its UUID 
 | 
java.util.List<java.lang.String> | 
getConceptStopWords(java.util.Locale locale)
Gets the list of  
ConceptStopWord for given locale | 
java.util.List<Concept> | 
getConceptsWithDrugsInFormulary()
Convenience method for finding concepts associated with drugs in formulary. 
 | 
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.util.List<ConceptWord> | 
getConceptWords(java.lang.String phrase,
               java.util.Locale locale)
Deprecated. 
 
use  
#getConcepts(String, Locale) that returns a list of
             ConceptSearchResults | 
java.lang.Integer | 
getCountOfConceptReferenceTerms(java.lang.String query,
                               ConceptSource conceptSource,
                               boolean includeRetired)
Returns the count of concept reference terms that match the specified arguments 
 | 
java.lang.Integer | 
getCountOfConcepts(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)
Return the number of concepts matching a search phrase and the specified arguments 
 | 
java.lang.Integer | 
getCountOfDrugs(java.lang.String drugName,
               Concept concept,
               boolean searchOnPhrase,
               boolean searchDrugConceptNames,
               boolean includeRetired)
Return the number of drugs with matching names or concept drug names 
 | 
ConceptMapType | 
getDefaultConceptMapType()
Gets the concept map type to be used as the default. 
 | 
Drug | 
getDrug(java.lang.Integer drugId)
Get the Drug with the given id 
 | 
Drug | 
getDrug(java.lang.String drugNameOrId)
Return the drug object corresponding to the given name or drugId 
 | 
Drug | 
getDrugByNameOrId(java.lang.String drugId)
Return the drug object corresponding to the given name or drugId 
 | 
Drug | 
getDrugByUuid(java.lang.String uuid)
Get Drug by its UUID 
 | 
DrugIngredient | 
getDrugIngredientByUuid(java.lang.String uuid)
Get Drug Ingredient by its UUID 
 | 
java.util.List<Drug> | 
getDrugs()
Deprecated. 
 
use  
getAllDrugs() | 
java.util.List<Drug> | 
getDrugs(Concept concept)
Deprecated. 
 
 | 
java.util.List<Drug> | 
getDrugs(java.lang.String phrase)
Find drugs in the system. 
 | 
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)
Returns a list of drugs with matching names or concept drug names and returns a specific
 number of them from the specified starting position. 
 | 
java.util.List<Drug> | 
getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept 
 | 
Concept | 
getFalseConcept()
Returns the FALSE concept 
 | 
java.util.Set<java.util.Locale> | 
getLocalesOfConceptNames()
Gets the set of unique Locales used by existing concept names. 
 | 
java.lang.Integer | 
getMaxConceptId()
Gets the highest concept-id used by a concept. 
 | 
Concept | 
getNextConcept(Concept concept)
Finds the next concept in the dictionary that has the next largest concept id 
 | 
Concept | 
getPrevConcept(Concept concept)
Finds the previous concept in the dictionary that has the next lowest concept id 
 | 
java.util.List<Concept> | 
getProposedConcepts(java.lang.String text)
Find matching proposed concepts 
 | 
java.util.List<Concept> | 
getQuestionsForAnswer(Concept concept)
Deprecated. 
 
use #getConceptsByAnswer(Concept) 
 | 
java.util.List<ConceptReferenceTermMap> | 
getReferenceTermMappingsTo(ConceptReferenceTerm term)
Fetches all the  
ConceptReferenceTermMap where the specified reference term is the
 termB i.e mappings added to other terms pointing to it | 
java.util.List<ConceptSet> | 
getSetsContainingConcept(Concept concept)
Find all sets that the given concept is a member of 
 | 
Concept | 
getTrueConcept()
Returns the TRUE concept 
 | 
boolean | 
hasAnyObservation(Concept concept)
Checks if there are any observations (including voided observations) for a concept. 
 | 
boolean | 
hasAnyObservation(ConceptName conceptName)
Checks if there are any observations (including voided observations) using a conceptName. 
 | 
Concept | 
mapConceptProposalToConcept(ConceptProposal cp,
                           Concept mappedConcept)
Maps a concept proposal to a concept 
 | 
Concept | 
mapConceptProposalToConcept(ConceptProposal cp,
                           Concept mappedConcept,
                           java.util.Locale locale)
Maps a concept proposal to a concept 
 | 
void | 
proposeConcept(ConceptProposal conceptProposal)
Deprecated. 
 
 | 
void | 
purgeConcept(Concept conceptOrConceptNumeric)
Completely purge a  
Concept or ConceptNumeric from the database. | 
void | 
purgeConceptClass(ConceptClass cc)
Purge a ConceptClass 
 | 
void | 
purgeConceptDatatype(ConceptDatatype cd)
Deprecated. 
 
as of 1.9 because users should never delete datatypes, it could harm data and
             other code expecting them to be here 
 | 
void | 
purgeConceptMapType(ConceptMapType conceptMapType)
Completely purges a concept map type from the database 
 | 
void | 
purgeConceptProposal(ConceptProposal cp)
Removes a concept proposal from the database entirely. 
 | 
void | 
purgeConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Purges the specified concept reference term from the database 
 | 
ConceptSource | 
purgeConceptSource(ConceptSource cs)
Delete ConceptSource 
 | 
void | 
purgeDrug(Drug drug)
Completely purge a Drug from the database. 
 | 
void | 
rejectConceptProposal(ConceptProposal cp)
Deprecated. 
 
 | 
Concept | 
retireConcept(Concept conceptOrConceptNumeric,
             java.lang.String reason)
Retiring a concept essentially removes it from circulation 
 | 
ConceptMapType | 
retireConceptMapType(ConceptMapType conceptMapType,
                    java.lang.String retireReason)
Retiring a concept map type essentially removes it from circulation 
 | 
ConceptReferenceTerm | 
retireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm,
                          java.lang.String retireReason)
Retiring a concept reference term essentially removes it from circulation 
 | 
ConceptSource | 
retireConceptSource(ConceptSource cs,
                   java.lang.String reason)
This effectively removes a concept source from the database. 
 | 
Drug | 
retireDrug(Drug drug,
          java.lang.String reason)
Retiring a Drug essentially removes it from circulation 
 | 
Concept | 
saveConcept(Concept concept)
Save or update the given  
Concept or ConceptNumeric in the database | 
ConceptClass | 
saveConceptClass(ConceptClass cc)
Creates or updates a concept class 
 | 
ConceptDatatype | 
saveConceptDatatype(ConceptDatatype cd)
Deprecated. 
 
as of 1.9 because users should never change datatypes, it could harm data and
             other code expecting them to be here 
 | 
ConceptMapType | 
saveConceptMapType(ConceptMapType conceptMapType)
Saves or updates the specified concept map type in the database 
 | 
ConceptNameTag | 
saveConceptNameTag(ConceptNameTag nameTag)
Creates a new Concept name tag if none exists. 
 | 
ConceptProposal | 
saveConceptProposal(ConceptProposal conceptProposal)
Saves/updates/proposes a concept proposal 
 | 
ConceptReferenceTerm | 
saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Stores the specified concept reference term to the database 
 | 
ConceptSource | 
saveConceptSource(ConceptSource conceptSource)
Create a new ConceptSource 
 | 
ConceptStopWord | 
saveConceptStopWord(ConceptStopWord conceptStopWord)
Save the given  
ConceptStopWord in the database | 
Drug | 
saveDrug(Drug drug)
Save or update the given  
Drug in the database. | 
void | 
setConceptDAO(ConceptDAO dao)
Sets the data access object for Concepts. 
 | 
ConceptMapType | 
unretireConceptMapType(ConceptMapType conceptMapType)
Marks a concept map type that is currently retired as not retired. 
 | 
ConceptReferenceTerm | 
unretireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Marks a concept reference term that is currently retired as not retired. 
 | 
Drug | 
unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired. 
 | 
void | 
updateConcept(Concept concept)
Deprecated. 
 
use #saveConcept(Concept) 
 | 
void | 
updateConcept(ConceptNumeric concept)
Deprecated. 
 
use #saveConcept(Concept) 
 | 
void | 
updateConceptIndex(Concept concept)
Iterates over the words in names and synonyms (for each locale) and updates the concept
 index, note that this only updates the index of the specified concept. 
 | 
void | 
updateConceptIndexes()
Iterates over all concepts and calls upddateConceptIndexes(Concept concept) 
 | 
void | 
updateConceptIndexes(java.lang.Integer conceptIdStart,
                    java.lang.Integer conceptIdEnd)
Iterates over all concepts with conceptIds between  
conceptIdStart and
 conceptIdEnd (inclusive) and calls updateConceptIndexes(concept) | 
void | 
updateConceptSetDerived()
Iterates over all concepts calling updateConceptSetDerived(concept) 
 | 
void | 
updateConceptSetDerived(Concept concept)
Updates the concept set derived business table for this concept (bursting the concept sets) 
 | 
void | 
updateConceptWord(Concept concept)
Deprecated. 
 
 | 
void | 
updateConceptWords()
Deprecated. 
 
 | 
void | 
updateConceptWords(java.lang.Integer conceptIdStart,
                  java.lang.Integer conceptIdEnd)
Deprecated. 
 
 | 
void | 
updateDrug(Drug drug)
Deprecated. 
 
use #saveDrug(Drug) 
 | 
void | 
voidConcept(Concept concept,
           java.lang.String reason)
Deprecated. 
 
 | 
onShutdown, onStartupvoid setConceptDAO(ConceptDAO dao)
dao - The data access object to use@Deprecated @Authorized(value="Manage Concepts") void createConcept(Concept concept) throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void createConcept(ConceptNumeric concept) throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void updateConcept(Concept concept) throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConceptByUuid(java.lang.String uuid)
uuid - @Deprecated @Authorized(value="Manage Concepts") void updateConcept(ConceptNumeric concept) throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void createDrug(Drug drug) throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void updateDrug(Drug drug) throws APIException
APIException@Deprecated @Authorized(value="Purge Concepts") void deleteConcept(Concept concept) throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void voidConcept(Concept concept, java.lang.String reason) throws APIException
retireConcept(Concept, String)APIException@Authorized(value="Manage Concepts") Concept saveConcept(Concept concept) throws APIException
Concept or ConceptNumeric in the database
 
 If this is a new concept, the returned concept will have a new Concept.getConceptId()
 inserted into it that was generated by the database
concept - The Concept or ConceptNumeric to save or updateConcept or ConceptNumeric that was saved or updatedAPIExceptionConceptsLockedExceptionConceptInUseException@Authorized(value="Manage Concepts") Drug saveDrug(Drug drug) throws APIException
Drug in the database. If this is a new drug, the
 returned drug object will have a new Drug.getDrugId() inserted into it that was
 generated by the databasedrug - The Drug to save or updateAPIException@Authorized(value="Purge Concepts") void purgeConcept(Concept conceptOrConceptNumeric) throws APIException
Concept or ConceptNumeric from the database.
 This should not typically be used unless desperately needed. Most should just be retired. See
 retireConcept(Concept, String)conceptOrConceptNumeric - The Concept or ConceptNumeric to
            remove from the systemAPIException@Authorized(value="Manage Concepts") Concept retireConcept(Concept conceptOrConceptNumeric, java.lang.String reason) throws APIException
conceptOrConceptNumeric - The Concept or ConceptNumeric to
            retirereason - The retire reasonConcept or ConceptNumericAPIException@Authorized(value="Manage Concepts") Drug retireDrug(Drug drug, java.lang.String reason) throws APIException
drug - The Drug to retirereason - The retire reasonAPIException@Authorized(value="Manage Concepts") Drug unretireDrug(Drug drug) throws APIException
drug - that is current set as retiredAPIException@Authorized(value="Purge Concepts") void purgeDrug(Drug drug) throws APIException
drug - The Drug to remove from the systemAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConcept(java.lang.Integer conceptId) throws APIException
conceptId - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptName getConceptName(java.lang.Integer conceptNameId) throws APIException
conceptNameId - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptAnswer getConceptAnswer(java.lang.Integer conceptAnswerId) throws APIException
conceptAnswerId - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Drug getDrug(java.lang.Integer drugId) throws APIException
drugId - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptNumeric getConceptNumeric(java.lang.Integer conceptId) throws APIException
conceptId - The ConceptNumeric idAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptClass getConceptClass(java.lang.Integer conceptClassId) throws APIException
conceptClassId - the concept class identifierAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getAllConcepts() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getAllConcepts(java.lang.String sortBy, boolean asc, boolean includeRetired) throws APIException
sortBy - The property name to sort by; if null or invalid, concept_id is used.asc - true = sort ascending; false = sort descendingincludeRetired - If true, retired concepts will also be returnedAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConcepts(java.lang.String sortBy, java.lang.String dir) throws APIException
getAllConcepts(String, boolean, boolean)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByName(java.lang.String name) throws APIException
name - The search stringAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConceptByName(java.lang.String name) throws APIException
name - The search stringAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConceptByIdOrName(java.lang.String idOrName) throws APIException
getConcept(String)Note: this just calls other impl methods; no DAO of its own
idOrName - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConcept(java.lang.String conceptIdOrName) throws APIException
conceptIdOrName - APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") 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 APIException
getConcepts(String, List, boolean, List, List, List, List, Concept, Integer, Integer)APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> getConceptWords(java.lang.String phrase, java.util.Locale locale) throws APIException
#getConcepts(String, Locale) that returns a list of
             ConceptSearchResultsAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> findConcepts(java.lang.String phrase, java.util.Locale locale, boolean includeRetired) throws APIException
getConcepts(String, List, boolean, List, List, List, List, Concept, Integer, Integer)APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> findConcepts(java.lang.String phrase, java.util.Locale locale, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes) throws APIException
getConcepts(String, List, boolean, List, List, List, List, Concept, Integer, Integer)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Drug getDrugByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") DrugIngredient getDrugIngredientByUuid(java.lang.String uuid)
uuid - the uuid for the drug ingredient to get@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> findConcepts(java.lang.String phrase, java.util.Locale locale, boolean includeRetired, int start, int size) throws APIException
getConceptWords(String, List, boolean, List, List, List, List, Concept, Integer, Integer)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Drug getDrug(java.lang.String drugNameOrId) throws APIException
drugNameOrId - String name or drugId to match exactly onAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Drug getDrugByNameOrId(java.lang.String drugId) throws APIException
drugId - StringAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getDrugs() throws APIException
getAllDrugs()APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getAllDrugs() throws APIException
APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getDrugs(Concept concept) throws APIException
getDrugsByConcept(Concept)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getDrugsByConcept(Concept concept) throws APIException
concept - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getAllDrugs(boolean includeRetired)
includeRetired - If true then the search will include voided Drugs@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> findDrugs(java.lang.String phrase, boolean includeVoided) throws APIException
getDrugs(String)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Drug> getDrugs(java.lang.String phrase) throws APIException
phrase - Search phraseAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByClass(ConceptClass cc) throws APIException
cc - ConceptClassAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concept Classes") java.util.List<ConceptClass> getConceptClasses() throws APIException
getAllConceptClasses(boolean)APIException@Transactional(readOnly=true) @Authorized(value="View Concept Classes") ConceptClass getConceptClassByName(java.lang.String name) throws APIException
name - APIException@Transactional(readOnly=true) @Authorized(value="View Concept Classes") java.util.List<ConceptClass> getAllConceptClasses() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concept Classes") java.util.List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws APIException
includeRetired - include retired concept classes in the search results?APIException@Transactional(readOnly=true) @Authorized(value="View Concept Classes") ConceptClass getConceptClassByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptAnswer getConceptAnswerByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptName getConceptNameByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptSet getConceptSetByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concept Sources") ConceptSource getConceptSourceByUuid(java.lang.String uuid)
uuid - @Authorized(value="Manage Concept Classes") ConceptClass saveConceptClass(ConceptClass cc) throws APIException
cc - ConceptClass to create or updateAPIException@Authorized(value="Purge Concept Classes") void purgeConceptClass(ConceptClass cc) throws APIException
cc - ConceptClass to deleteAPIException@Authorized(value="Manage Concept Datatypes") @Deprecated ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws org.apache.commons.lang.NotImplementedException
cd - ConceptDatatype to create or updateorg.apache.commons.lang.NotImplementedException@Authorized(value="Purge Concept Datatypes") @Deprecated void purgeConceptDatatype(ConceptDatatype cd) throws org.apache.commons.lang.NotImplementedException
cd - ConceptDatatype to purgeorg.apache.commons.lang.NotImplementedException@Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") java.util.List<ConceptDatatype> getAllConceptDatatypes() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") java.util.List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws APIException
includeRetired - boolean - include the retired datatypes?APIException@Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") @Deprecated java.util.List<ConceptDatatype> getConceptDatatypes(java.lang.String name) throws APIException
getConceptDatatypeByName(String)name - APIException@Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") ConceptDatatype getConceptDatatype(java.lang.Integer i) throws APIException
i - Integer for the requested ConceptDatatypeAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") ConceptDatatype getConceptDatatypeByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concept Datatypes") ConceptDatatype getConceptDatatypeByName(java.lang.String name) throws APIException
name - APIException@Authorized(value="Manage Concepts") void updateConceptSetDerived(Concept concept) throws APIException
concept - APIException@Authorized(value="Manage Concepts") void updateConceptSetDerived() throws APIException
APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptSet> getConceptSets(Concept concept) throws APIException
getConceptSetsByConcept(Concept)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptSet> getConceptSetsByConcept(Concept concept) throws APIException
For example to find all concepts for ARVs, you would do getConceptSets(getConcept("ANTIRETROVIRAL MEDICATIONS")) and then take the conceptIds from the resulting list.
concept - The concept representing the concept setAPIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsInSet(Concept concept) throws APIException
getConceptsByConceptSet(Concept)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByConceptSet(Concept concept) throws APIException
concept - The concept representing the concept setAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptSet> getSetsContainingConcept(Concept concept) throws APIException
concept - APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concept Proposals") java.util.List<ConceptProposal> getConceptProposals(boolean includeCompleted) throws APIException
getAllConceptProposals(boolean)APIException@Transactional(readOnly=true) @Authorized(value="View Concept Proposals") java.util.List<ConceptProposal> getAllConceptProposals(boolean includeCompleted) throws APIException
includeCompleted - boolean - include completed proposals as well?APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptNumeric getConceptNumericByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concept Proposals") ConceptProposal getConceptProposal(java.lang.Integer conceptProposalId) throws APIException
conceptProposalId - the Integer concept proposal IdAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Proposals") java.util.List<ConceptProposal> getConceptProposals(java.lang.String text) throws APIException
text - APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concept Proposals") java.util.List<Concept> findProposedConcepts(java.lang.String text) throws APIException
getProposedConcepts(String)APIException@Transactional(readOnly=true) @Authorized(value="View Concept Proposals") java.util.List<Concept> getProposedConcepts(java.lang.String text) throws APIException
text - APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> findConcepts(java.lang.String phrase, java.util.List<java.util.Locale> searchLocales, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes)
@Deprecated @Authorized(value="Add Concept Proposals") void proposeConcept(ConceptProposal conceptProposal) throws APIException
saveConceptProposal(ConceptProposal)APIException@Authorized(value={"Add Concept Proposals","Edit Concept Proposals"}) ConceptProposal saveConceptProposal(ConceptProposal conceptProposal) throws APIException
conceptProposal - The ConceptProposal to saveAPIException@Authorized(value="Purge Concept Proposals") void purgeConceptProposal(ConceptProposal cp) throws APIException
cp - APIException@Authorized(value="Manage Concepts") Concept mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept) throws APIException
cp - mappedConcept - APIException@Authorized(value="Manage Concepts") Concept mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept, java.util.Locale locale) throws APIException
cp - mappedConcept - locale - of concept proposalAPIException@Deprecated @Authorized(value="Edit Concept Proposals") void rejectConceptProposal(ConceptProposal cp) throws APIException
ConceptProposal.rejectConceptProposal()APIException@Deprecated @Authorized(value="Add Concept Proposals") java.util.List<ConceptProposal> findMatchingConceptProposals(java.lang.String text)
getConceptProposals(String)@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptWord> findConceptAnswers(java.lang.String phrase, java.util.Locale locale, Concept concept, boolean includeRetired) throws APIException
findConceptAnswers(String, Locale, Concept)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") @Deprecated java.util.List<ConceptWord> getConceptAnswers(java.lang.String phrase, java.util.Locale locale, Concept concept) throws APIException
findConceptAnswers(String, Locale, Concept)APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getQuestionsForAnswer(Concept concept) throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByAnswer(Concept concept) throws APIException
concept - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getPrevConcept(Concept concept) throws APIException
concept - the offset ConceptAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getNextConcept(Concept concept) throws APIException
concept - the offset ConceptAPIException@Transactional(readOnly=true)
void checkIfLocked()
                                          throws ConceptsLockedException
ConceptsLockedException@Transactional(readOnly=true) @Authorized(value="View Concept Proposals") ConceptProposal getConceptProposalByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsWithDrugsInFormulary() throws APIException
APIException@Deprecated @Authorized(value="Manage Concepts") void updateConceptWord(Concept concept) throws APIException
updateConceptWord(Concept)APIException@Deprecated @Authorized(value="Manage Concepts") void updateConceptWords() throws APIException
updateConceptWords()APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptNameTag getConceptNameTagByUuid(java.lang.String uuid)
uuid - Concept.setPreferredName(ConceptName), 
Concept.setFullySpecifiedName(ConceptName), 
Concept.setShortName(ConceptName)@Deprecated @Authorized(value="Manage Concepts") void updateConceptWords(java.lang.Integer conceptIdStart, java.lang.Integer conceptIdEnd) throws APIException
updateConceptIndexes(Integer, Integer)APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptComplex getConceptComplex(java.lang.Integer conceptId)
conceptId - of the ComplexConcept@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptNameTag getConceptNameTagByName(java.lang.String tag)
tag - String name of ConceptNameTagConcept.getPreferredName(Locale), 
Concept.getFullySpecifiedName(Locale), 
Concept.getShortNameInLocale(Locale), 
Concept.getShortestName(Locale, Boolean)@Transactional(readOnly=true) java.util.Set<java.util.Locale> getLocalesOfConceptNames()
@Transactional(readOnly=true) @Authorized(value="View Concept Sources") java.util.List<ConceptSource> getAllConceptSources() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concept Sources") ConceptSource getConceptSource(java.lang.Integer i) throws APIException
i - Integer conceptSourceIdAPIException@Authorized(value="Manage Concept Sources") ConceptSource saveConceptSource(ConceptSource conceptSource) throws APIException
conceptSource - ConceptSource to createAPIException@Authorized(value="Purge Concept Sources") ConceptSource purgeConceptSource(ConceptSource cs) throws APIException
cs - ConceptSource object deleteAPIException@Authorized(value="Purge Concept Sources") ConceptSource retireConceptSource(ConceptSource cs, java.lang.String reason) throws APIException
cs - the concept source to retirereason - why the concept source is to be retired, must not be empty of nullAPIException@Authorized(value="Manage Concept Name tags") ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
nameTag - the concept name tag to be saved@Transactional(readOnly=true) java.lang.Integer getMaxConceptId()
@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.Iterator<Concept> conceptIterator()
@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConceptByMapping(java.lang.String code, java.lang.String sourceName) throws APIException
ConceptMap This will return the Concept which contains
 a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode. Delegates to
 getConceptByMapping(code,sourceName,includeRetired) with includeRetired=truecode - the code associated with a concept within a given ConceptSourcesourceName - the name or hl7Code of the ConceptSource to checkConcept that has the given mapping, or null if no Concept foundAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") Concept getConceptByMapping(java.lang.String code, java.lang.String sourceName, java.lang.Boolean includeRetired) throws APIException
ConceptMap This will return the Concept which contains
 a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode . Operates under
 the assumption that each mappingCode in a ConceptSource references one and only one
 non-retired {@link Concept): if the underlying dao method returns more than one non-retired concept, this
 method will throw an exception; if the underlying dao method returns more than one concept, but
 only one non-retired concept, this method will return the non-retired concept; if the dao only
 returns retired concepts, this method will simply return the first concept in the list returns by
 the dao method; retired concepts can be excluded by setting the includeRetired parameter to false,
 but the above logic still appliescode - the code associated with a concept within a given ConceptSourcesourceName - the name or hl7Code of the ConceptSource to checkincludeRetired - whether or not to include retired conceptsConcept that has the given mapping, or null if no Concept foundAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByMapping(java.lang.String code, java.lang.String sourceName) throws APIException
ConceptMap This will return the list of concepts
 Concepts which contain a ConceptMap entry whose sourceCode is
 equal to the passed conceptCode and whose ConceptSource has either a
 name or hl7Code that is equal to the passed
 mappingCodecode - the code associated with a concept within a given ConceptSourcesourceName - the name or hl7Code of the ConceptSource to checkConcepts that has the given mapping, or null if no
         Concept foundAPIException - if the specified source+code maps to more than one concept@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByMapping(java.lang.String code, java.lang.String sourceName, boolean includeRetired) throws APIException
ConceptMap This will return the list of Concepts which
 contain a ConceptMap entry whose sourceCode is equal to the passed
 conceptCode and whose ConceptSource has either a name or
 hl7Code that is equal to the passed mappingCode. Delegates to
 getConceptsByMapping(code,sourceName,includeRetired) with includeRetired=truecode - the code associated with a concept within a given ConceptSourcesourceName - the name or hl7Code of the ConceptSource to checkincludeRetired - whether or not to include retired conceptsConcepts that has the given mapping, or null if no
         Concept foundAPIException - if the specified source+code maps to more than one concept@Transactional(readOnly=true) java.util.List<ConceptNameTag> getAllConceptNameTags()
@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptNameTag getConceptNameTag(java.lang.Integer id)
ConceptNameTag with the given database primary keyid - the concept name tag id to findConceptNameTag or null if none found@Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptDescription getConceptDescriptionByUuid(java.lang.String uuid)
uuid - @Transactional(readOnly=true) @Authorized(value="View Concepts") ConceptSource getConceptSourceByName(java.lang.String conceptSourceName) throws APIException
conceptSourceName - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSource) throws APIException
#getConceptMapsBySource(ConceptSource))conceptSource - APIException@Transactional(readOnly=true) @Authorized(value="View Concepts") boolean hasAnyObservation(Concept concept)
concept - which used or not used by an observationAPIException@Transactional(readOnly=true) Concept getTrueConcept()
@Transactional(readOnly=true) Concept getFalseConcept()
@Authorized(value="Manage Concepts") void convertBooleanConceptToCoded(Concept conceptToChange) throws APIException
conceptToChange - the concept which to changeAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") boolean hasAnyObservation(ConceptName conceptName) throws APIException
conceptName - which is used or not used by an observationAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") 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 APIException
phrase - matched to the start of any word in any of the names of a concept (if
            blank/null, matches all concepts)locales - ListincludeRetired - boolean if false, will exclude retired conceptsrequireClasses - ListexcludeClasses - ListrequireDatatypes - ListexcludeDatatypes - ListanswersToConcept - all results will be a possible answer to this conceptstart - all results less than this number will be removedsize - if non zero, all results after start + size will be
            removedAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptSearchResult> findConceptAnswers(java.lang.String phrase, java.util.Locale locale, Concept concept) throws APIException
phrase - locale - concept - the answers to match onAPIException@Authorized(value="Manage Concepts") void updateConceptIndex(Concept concept) throws APIException
updateConceptIndexes() if you wish to update the entire concept index.concept - the concept whose index is to be updatedAPIException@Authorized(value="Manage Concepts") void updateConceptIndexes() throws APIException
APIException@Authorized(value="Manage Concepts") void updateConceptIndexes(java.lang.Integer conceptIdStart, java.lang.Integer conceptIdEnd) throws APIException
conceptIdStart and
 conceptIdEnd (inclusive) and calls updateConceptIndexes(concept)conceptIdStart - starts update with this concept_idconceptIdEnd - ends update with this concept_idAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptSearchResult> getConcepts(java.lang.String phrase, java.util.Locale locale, boolean includeRetired) throws APIException
phrase - the string to search against (if blank/null, matches all concepts)locale - the locale in which to search for the conceptsincludeRetired - Specifies whether to include retired conceptsAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.lang.Integer getCountOfConcepts(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)
phrase - matched to the start of any word in any of the names of a conceptlocales - ListincludeRetired - Specifies whether to include retired conceptsrequireClasses - ListexcludeClasses - ListrequireDatatypes - ListexcludeDatatypes - ListanswersToConcept - all results will be a possible answer to this conceptAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.lang.Integer getCountOfDrugs(java.lang.String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired) throws APIException
drugName - the name of the drugconcept - the drug conceptsearchOnPhrase - Specifies if the search should match names starting with or contain the
            textsearchDrugConceptNames - Specifies whether a search on concept names for the drug's
            concept should be done or notincludeRetired - specifies whether to include retired drugsAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") 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 APIException
drugName - the name of the drugconcept - the drug conceptsearchOnPhrase - Specifies if the search should match names starting with or contain the
            textsearchDrugConceptNames - Specifies whether a search on concept names for the drug's
            concept should be done or notincludeRetired - specifies whether to include retired drugsstart - beginning index for the batchlength - number of drugs to return in the batchAPIException@Transactional(readOnly=true) java.util.List<java.lang.String> getConceptStopWords(java.util.Locale locale)
ConceptStopWord for given localelocale - The locale in which to search for the ConceptStopWord@Authorized(value="Manage Concept Stop Words") ConceptStopWord saveConceptStopWord(ConceptStopWord conceptStopWord) throws APIException
ConceptStopWord in the database
 
 If this is a new concept stop word, the returned concept stop word will have a new
 ConceptStopWord.getConceptStopWordId() inserted into it that was
 generated by the database
 
conceptStopWord - The ConceptStopWord to save or updateConceptStopWord that was saved or updatedAPIException@Authorized(value="Manage Concept Stop Words") void deleteConceptStopWord(java.lang.Integer conceptStopWordId) throws APIException
ConceptStopWord in the databaseconceptStopWordId - The ConceptStopWord to deleteAPIException@Transactional(readOnly=true) java.util.List<ConceptStopWord> getAllConceptStopWords()
ConceptStopWord@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") java.util.List<ConceptMapType> getActiveConceptMapTypes() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") java.util.List<ConceptMapType> getConceptMapTypes(boolean includeRetired, boolean includeHidden) throws APIException
includeRetired - specifies if retired concept map types should be includedAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") ConceptMapType getConceptMapType(java.lang.Integer conceptMapTypeId) throws APIException
conceptMapTypeId - Integer concept map type idAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") ConceptMapType getConceptMapTypeByUuid(java.lang.String uuid) throws APIException
uuid - the uuid to search againstAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") ConceptMapType getConceptMapTypeByName(java.lang.String name) throws APIException
name - the name to search againstAPIException@Authorized(value="Manage Concept Map Types") ConceptMapType saveConceptMapType(ConceptMapType conceptMapType) throws APIException
conceptMapType - the concept map type to saveAPIException@Authorized(value="Manage Concept Map Types") ConceptMapType retireConceptMapType(ConceptMapType conceptMapType, java.lang.String retireReason) throws APIException
conceptMapType - the concept map type to retireretireReason - the reason why the concept map type is being retiredAPIException@Authorized(value="Manage Concept Map Types") ConceptMapType unretireConceptMapType(ConceptMapType conceptMapType) throws APIException
conceptMapType - the concept map type to unretireAPIException@Authorized(value="Purge Concept Map Types") void purgeConceptMapType(ConceptMapType conceptMapType) throws APIException
conceptMapType - the concept map type to purge from the databaseAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<ConceptMap> getConceptMappingsToSource(ConceptSource conceptSource) throws APIException
conceptSource - APIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") java.util.List<ConceptReferenceTerm> getAllConceptReferenceTerms() throws APIException
APIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") java.util.List<ConceptReferenceTerm> getConceptReferenceTerms(boolean includeRetired) throws APIException
includeRetired - specifies if retired concept reference terms should be includedAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") ConceptReferenceTerm getConceptReferenceTerm(java.lang.Integer conceptReferenceTermId) throws APIException
conceptReferenceTermId - the concept reference term id to search againstAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") ConceptReferenceTerm getConceptReferenceTermByUuid(java.lang.String uuid) throws APIException
uuid - the uuid to search againstAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") ConceptReferenceTerm getConceptReferenceTermByName(java.lang.String name, ConceptSource conceptSource) throws APIException
name - the name to match againstconceptSource - the concept source to match againstAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") ConceptReferenceTerm getConceptReferenceTermByCode(java.lang.String code, ConceptSource conceptSource) throws APIException
code - the code to match againstconceptSource - the concept source to match againstAPIException@Authorized(value="Manage Concept Reference Terms") ConceptReferenceTerm saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws APIException
conceptReferenceTerm - the concept reference term object to saveAPIException@Authorized(value="Manage Concept Reference Terms") ConceptReferenceTerm retireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm, java.lang.String retireReason) throws APIException
conceptReferenceTerm - the concept reference term object to retireretireReason - the reason why the concept reference term is being retiredAPIException@Authorized(value="Manage Concept Reference Terms") ConceptReferenceTerm unretireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws APIException
conceptReferenceTerm - the concept reference term to unretireAPIException@Authorized(value="Purge Concept Reference Terms") void purgeConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) throws APIException
conceptReferenceTerm - the concept reference term object to purgeAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") java.util.List<ConceptReferenceTerm> getConceptReferenceTerms(java.lang.String query, ConceptSource conceptSource, java.lang.Integer start, java.lang.Integer length, boolean includeRetired) throws APIException
query - the string to match against the reference term names or codesconceptSource - the concept source from which the terms should be looked upstart - beginning index for the batchlength - number of terms to return in the batchincludeRetired - specifies if the retired terms should be includedConceptReferenceTermsAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") java.lang.Integer getCountOfConceptReferenceTerms(java.lang.String query, ConceptSource conceptSource, boolean includeRetired) throws APIException
query - the string to match against the reference term namesconceptSource - the concept source from which the terms should be looked upincludeRetired - specifies if retired concept reference terms should be includedAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Reference Terms") java.util.List<ConceptReferenceTermMap> getReferenceTermMappingsTo(ConceptReferenceTerm term) throws APIException
ConceptReferenceTermMap where the specified reference term is the
 termB i.e mappings added to other terms pointing to itterm - the term to match againstConceptReferenceTermMapsAPIException@Transactional(readOnly=true) @Authorized(value="View Concepts") java.util.List<Concept> getConceptsByName(java.lang.String name, java.util.Locale locale, java.lang.Boolean exactLocale) throws APIException
This method is case insensitive. It searches for exactly matching names and close matching locales (if exactLocale = false). It considers only non-voided names and all concepts.
name - locale - null = all localesexactLocale - false if search for both global and country specific,
            true if nullAPIException@Transactional(readOnly=true) @Authorized(value="View Concept Map Types") ConceptMapType getDefaultConceptMapType() throws APIException
concept.defaultConceptMapType global property.ConceptMapTypeAPIExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.