public class ConceptServiceImpl extends BaseOpenmrsService implements ConceptService
to access these methods| Modifier and Type | Field and Description |
|---|---|
static String |
CONCEPT_WORD_UPDATE_TASK_NAME |
| Constructor and Description |
|---|
ConceptServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIfLocked()
Check if the concepts are locked and if so, throw exception during manipulation of concept
|
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.
|
void |
createConcept(ConceptNumeric concept)
Deprecated.
|
void |
createDrug(Drug drug)
Deprecated.
use #saveDrug(Drug)
|
void |
deleteConcept(Concept concept)
Deprecated.
use #purgeConcept(Concept concept)
|
List<ConceptSearchResult> |
findConceptAnswers(String phrase,
Locale locale,
Concept concept)
Finds concepts that are possible value coded answers to concept parameter
|
List<ConceptWord> |
findConceptAnswers(String phrase,
Locale locale,
Concept concept,
boolean includeRetired)
Deprecated.
|
List<ConceptWord> |
findConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes)
Deprecated.
|
List<ConceptWord> |
findConcepts(String phrase,
Locale locale,
boolean includeRetired)
Deprecated.
|
List<ConceptWord> |
findConcepts(String phrase,
Locale locale,
boolean includeRetired,
int start,
int size)
Deprecated.
|
List<ConceptWord> |
findConcepts(String phrase,
Locale locale,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes)
Deprecated.
|
List<Drug> |
findDrugs(String phrase,
boolean includeRetired)
Deprecated.
Use
getDrugs(String) |
List<ConceptProposal> |
findMatchingConceptProposals(String text)
Deprecated.
|
List<Concept> |
findProposedConcepts(String text)
Deprecated.
|
List<ConceptClass> |
getAllConceptClasses()
Return a list of concept classes currently in the database
|
List<ConceptClass> |
getAllConceptClasses(boolean includeRetired)
Return a list of concept classes currently in the database
|
List<ConceptDatatype> |
getAllConceptDatatypes()
Return a list of all concept datatypes currently in the database
|
List<ConceptDatatype> |
getAllConceptDatatypes(boolean includeRetired)
Return a list of concept datatypes currently in the database
|
List<ConceptNameTag> |
getAllConceptNameTags()
Get all the concept name tags defined in the database, included voided ones
|
List<ConceptProposal> |
getAllConceptProposals(boolean includeCompleted)
Get a List of all concept proposals
|
List<Concept> |
getAllConcepts()
Return a list of unretired concepts sorted by concept id ascending and
|
List<Concept> |
getAllConcepts(String sortBy,
boolean asc,
boolean includeRetired)
Return a list of concepts sorted on sortBy in dir direction (asc/desc)
|
List<ConceptSource> |
getAllConceptSources()
Return a list of concept sources currently in the database that are not voided
|
List<Drug> |
getAllDrugs()
Return a list of drugs currently in the database that are not retired
|
List<Drug> |
getAllDrugs(boolean includeRetired)
Get drugs by concept.
|
Concept |
getConcept(Integer conceptId)
Gets the concept with the given id
|
Concept |
getConcept(String conceptIdOrName)
Get Concept by id or name convenience method
|
ConceptAnswer |
getConceptAnswer(Integer conceptAnswerId)
Gets the ConceptAnswer with the given id
|
ConceptAnswer |
getConceptAnswerByUuid(String uuid)
Get ConceptAnswer by its UUID
|
List<ConceptWord> |
getConceptAnswers(String phrase,
Locale locale,
Concept concept)
Deprecated.
|
Concept |
getConceptByIdOrName(String idOrName)
Deprecated.
|
Concept |
getConceptByMapping(String code,
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(String code,
String sourceName,
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(String name)
Return a Concept that matches the name exactly
|
Concept |
getConceptByUuid(String uuid)
Get Concept by its UUID
|
ConceptClass |
getConceptClass(Integer i)
Return a Concept class matching the given identifier
|
ConceptClass |
getConceptClassByName(String name)
Return a Concept class matching the given name
|
ConceptClass |
getConceptClassByUuid(String uuid)
Get ConceptClass by its UUID
|
List<ConceptClass> |
getConceptClasses()
Deprecated.
|
ConceptComplex |
getConceptComplex(Integer conceptId)
Get a ComplexConcept with the given conceptId
|
ConceptDatatype |
getConceptDatatype(Integer i)
Return a ConceptDatatype matching the given identifier
|
ConceptDatatype |
getConceptDatatypeByName(String name)
Return a Concept datatype matching the given name
|
ConceptDatatype |
getConceptDatatypeByUuid(String uuid)
Get ConceptDatatype by its UUID
|
List<ConceptDatatype> |
getConceptDatatypes()
Deprecated.
|
List<ConceptDatatype> |
getConceptDatatypes(String name)
Find concept datatypes that contain the given name string
|
ConceptDescription |
getConceptDescriptionByUuid(String uuid)
Get ConceptDescription by its UUID
|
ConceptName |
getConceptName(Integer conceptNameId)
Gets the concept-name with the given id
|
ConceptName |
getConceptNameByUuid(String uuid)
Get ConceptName by its UUID
|
ConceptNameTag |
getConceptNameTag(Integer id)
Gets the
ConceptNameTag with the given database primary key |
ConceptNameTag |
getConceptNameTagByName(String tagName)
Search for a ConceptNameTag by name
|
ConceptNameTag |
getConceptNameTagByUuid(String uuid)
Get ConceptNameTag by its UUID
|
ConceptNumeric |
getConceptNumeric(Integer conceptId)
Get the ConceptNumeric with the given id
|
ConceptNumeric |
getConceptNumericByUuid(String uuid)
Get ConceptNumeric by its UUID
|
ConceptProposal |
getConceptProposal(Integer conceptProposalId)
Get a ConceptProposal by conceptProposalId
|
ConceptProposal |
getConceptProposalByUuid(String uuid)
Get ConceptProposal by its UUID
|
List<ConceptProposal> |
getConceptProposals(boolean includeCompleted)
Deprecated.
|
List<ConceptProposal> |
getConceptProposals(String cp)
Find matching concept proposals
|
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)
Searches for concepts by the given parameters
|
List<ConceptSearchResult> |
getConcepts(String phrase,
Locale locale,
boolean includeRetired)
Searches for concepts with the given parameters
|
List<Concept> |
getConcepts(String sortBy,
String dir)
Deprecated.
|
List<Concept> |
getConceptsByAnswer(Concept concept)
Returns all possible Concepts to which this concept is a value-coded answer.
|
List<Concept> |
getConceptsByClass(ConceptClass cc) |
List<Concept> |
getConceptsByConceptSet(Concept c)
Return a List of all concepts within a concept set
|
List<ConceptMap> |
getConceptsByConceptSource(ConceptSource conceptSource)
Looks up a list of ConceptMaps for a given ConceptSource
|
List<Concept> |
getConceptsByMapping(String code,
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 |
List<Concept> |
getConceptsByMapping(String code,
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. |
List<Concept> |
getConceptsByName(String name)
Returns a list of concepts matching any part of a concept name, this method is case
insensitive to the concept name string
|
List<Concept> |
getConceptsByName(String name,
Locale locale,
Boolean exactLocale)
Returns a list of concepts with the same name in the given locale.
|
ConceptSet |
getConceptSetByUuid(String uuid)
Get ConceptSet by its UUID
|
List<ConceptSet> |
getConceptSets(Concept c)
Deprecated.
|
List<ConceptSet> |
getConceptSetsByConcept(Concept concept)
Return a list of the concept sets with concept_set matching concept
|
List<Concept> |
getConceptsInSet(Concept c)
Deprecated.
|
ConceptSource |
getConceptSource(Integer conceptSourceId)
Return a Concept source matching the given concept source id
|
ConceptSource |
getConceptSourceByName(String conceptSourceName)
Lookup a ConceptSource by its name property
|
ConceptSource |
getConceptSourceByUuid(String uuid)
Get ConceptSource by its UUID
|
List<Concept> |
getConceptsWithDrugsInFormulary()
Convenience method for finding concepts associated with drugs in formulary.
|
List<ConceptWord> |
getConceptWords(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answerToConcept,
Integer start,
Integer size)
Deprecated.
|
List<ConceptWord> |
getConceptWords(String phrase,
Locale locale)
Deprecated.
|
Integer |
getCountOfConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept)
Return the number of concepts matching a search phrase and the specified arguments
|
Integer |
getCountOfDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired)
Return the number of drugs with matching names or concept drug names
|
Drug |
getDrug(Integer drugId)
Get the Drug with the given id
|
Drug |
getDrug(String drugNameOrId)
Return the drug object corresponding to the given name or drugId
|
Drug |
getDrugByNameOrId(String drugNameOrId)
Deprecated.
use
getDrug(String) |
Drug |
getDrugByUuid(String uuid)
Get Drug by its UUID
|
List<Drug> |
getDrugs()
Deprecated.
use
getAllDrugs() |
List<Drug> |
getDrugs(boolean includeVoided)
Deprecated.
|
List<Drug> |
getDrugs(Concept concept)
Deprecated.
|
List<Drug> |
getDrugs(Concept concept,
boolean includeRetired)
Deprecated.
|
List<Drug> |
getDrugs(String phrase)
<<<<<<< HEAD
Find drugs in the system.
|
List<Drug> |
getDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
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.
|
List<Drug> |
getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept
|
Concept |
getFalseConcept()
Returns the FALSE concept
|
Set<Locale> |
getLocalesOfConceptNames()
Gets the set of unique Locales used by existing concept names.
|
Integer |
getMaxConceptId()
Gets the highest concept-id used by a concept.
|
Concept |
getNextConcept(Concept c)
Finds the next concept in the dictionary that has the next largest concept id
|
Concept |
getPrevConcept(Concept c)
Finds the previous concept in the dictionary that has the next lowest concept id
|
List<Concept> |
getProposedConcepts(String text)
Find matching proposed concepts
|
List<Concept> |
getQuestionsForAnswer(Concept concept)
Deprecated.
|
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,
Locale locale)
Maps a concept proposal to a concept
|
void |
proposeConcept(ConceptProposal conceptProposal)
Deprecated.
|
void |
purgeConcept(Concept concept)
Completely purge a
Concept or ConceptNumeric from the database. |
void |
purgeConceptClass(ConceptClass cc)
Purge a ConceptClass
|
void |
purgeConceptDatatype(ConceptDatatype cd)
Purge a ConceptDatatype.
|
void |
purgeConceptProposal(ConceptProposal cp)
Removes a concept proposal from the database entirely.
|
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 concept,
String reason)
Retiring a concept essentially removes it from circulation
|
ConceptSource |
retireConceptSource(ConceptSource cs,
String reason)
This effectively removes a concept source from the database.
|
Drug |
retireDrug(Drug drug,
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)
Create or update a ConceptDatatype
|
ConceptNameTag |
saveConceptNameTag(ConceptNameTag nameTag)
Creates a new Concept name tag if none exists.
|
ConceptProposal |
saveConceptProposal(ConceptProposal conceptProposal)
Saves/updates/proposes a concept proposal
|
ConceptSource |
saveConceptSource(ConceptSource conceptSource)
Create a new ConceptSource
|
Drug |
saveDrug(Drug drug)
Save or update the given
Drug in the database. |
void |
setConceptDAO(ConceptDAO dao)
Sets the data access object for Concepts.
|
Drug |
unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired.
|
void |
updateConcept(Concept concept)
Deprecated.
|
void |
updateConcept(ConceptNumeric concept)
Deprecated.
|
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(Integer conceptIdStart,
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(Integer conceptIdStart,
Integer conceptIdEnd)
Deprecated.
|
void |
updateDrug(Drug drug)
Deprecated.
Use #saveDrug(Drug)
|
void |
voidConcept(Concept concept,
String reason)
Deprecated.
use
retireConcept(Concept, String)etireConcept |
protected List<ConceptWord> |
weightWords(String phrase,
List<Locale> locales,
List<ConceptWord> conceptWords)
This will weight and sort the concepts according to how many of the words in the name match
the words in the search phrase.
|
onShutdown, onStartupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutdown, onStartuppublic static final String CONCEPT_WORD_UPDATE_TASK_NAME
public void setConceptDAO(ConceptDAO dao)
ConceptServicesetConceptDAO in interface ConceptServicedao - The data access object to useConceptService.setConceptDAO(org.openmrs.api.db.ConceptDAO)@Deprecated public void createConcept(Concept concept)
saveConcept(Concept)createConcept in interface ConceptService@Deprecated public void createConcept(ConceptNumeric concept)
saveConcept(Concept)createConcept in interface ConceptService@Deprecated public void updateConcept(Concept concept)
saveConcept(Concept)updateConcept in interface ConceptService@Deprecated public void updateConcept(ConceptNumeric concept)
saveConcept(Concept)updateConcept in interface ConceptService@Deprecated public void createDrug(Drug drug)
createDrug in interface ConceptService@Deprecated public void updateDrug(Drug drug)
updateDrug in interface ConceptService@Deprecated public void deleteConcept(Concept concept)
deleteConcept in interface ConceptService@Deprecated public void voidConcept(Concept concept, String reason)
retireConcept(Concept, String)etireConceptvoidConcept in interface ConceptServicepublic Concept saveConcept(Concept concept) throws APIException
ConceptServiceConcept 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
saveConcept in interface ConceptServiceconcept - The Concept or ConceptNumeric to save or updateConcept or ConceptNumeric that was saved or updatedAPIExceptionConceptsLockedExceptionConceptInUseExceptionConceptService.saveConcept(org.openmrs.Concept)public Drug saveDrug(Drug drug) throws APIException
ConceptServiceDrug 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 databasesaveDrug in interface ConceptServicedrug - The Drug to save or updateAPIExceptionConceptService.saveDrug(org.openmrs.Drug)public void purgeConcept(Concept concept) throws APIException
ConceptServiceConcept or ConceptNumeric from the database.
This should not typically be used unless desperately needed. Most should just be retired. See
ConceptService.retireConcept(Concept, String)purgeConcept in interface ConceptServiceconcept - The Concept or ConceptNumeric to
remove from the systemAPIExceptionConceptService.purgeConcept(Concept)public Concept retireConcept(Concept concept, String reason) throws APIException
ConceptServiceretireConcept in interface ConceptServiceconcept - The Concept or ConceptNumeric to
retirereason - The retire reasonConcept or ConceptNumericAPIExceptionConceptService.retireConcept(org.openmrs.Concept, java.lang.String)public Drug retireDrug(Drug drug, String reason) throws APIException
ConceptServiceretireDrug in interface ConceptServicedrug - The Drug to retirereason - The retire reasonAPIExceptionConceptService.retireDrug(org.openmrs.Drug, java.lang.String)public Drug unretireDrug(Drug drug) throws APIException
ConceptServiceunretireDrug in interface ConceptServicedrug - that is current set as retiredAPIExceptionConceptService.unretireDrug(org.openmrs.Drug)public void purgeDrug(Drug drug) throws APIException
ConceptServicepurgeDrug in interface ConceptServicedrug - The Drug to remove from the systemAPIExceptionConceptService.purgeDrug(org.openmrs.Drug)public Concept getConcept(Integer conceptId) throws APIException
ConceptServicegetConcept in interface ConceptServiceAPIExceptionConceptService.getConcept(java.lang.Integer)public ConceptName getConceptName(Integer conceptNameId) throws APIException
ConceptServicegetConceptName in interface ConceptServiceAPIExceptionConceptService.getConceptName(java.lang.Integer)public ConceptAnswer getConceptAnswer(Integer conceptAnswerId) throws APIException
ConceptServicegetConceptAnswer in interface ConceptServiceAPIExceptionConceptService.getConceptAnswer(java.lang.Integer)public Drug getDrug(Integer drugId) throws APIException
ConceptServicegetDrug in interface ConceptServiceAPIExceptionConceptService.getDrug(java.lang.Integer)public ConceptNumeric getConceptNumeric(Integer conceptId) throws APIException
ConceptServicegetConceptNumeric in interface ConceptServiceconceptId - The ConceptNumeric idAPIExceptionConceptService.getConceptNumeric(java.lang.Integer)public ConceptComplex getConceptComplex(Integer conceptId)
ConceptServicegetConceptComplex in interface ConceptServiceconceptId - of the ComplexConceptConceptService.getConceptComplex(java.lang.Integer)public List<Concept> getAllConcepts() throws APIException
ConceptServicegetAllConcepts in interface ConceptServiceAPIExceptionConceptService.getAllConcepts()public List<Concept> getAllConcepts(String sortBy, boolean asc, boolean includeRetired) throws APIException
ConceptServicegetAllConcepts in interface ConceptServicesortBy - 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 returnedAPIExceptionConceptService.getAllConcepts(java.lang.String, boolean, boolean)@Deprecated public List<Concept> getConcepts(String sortBy, String dir) throws APIException
getAllConcepts(String, boolean, boolean)getConcepts in interface ConceptServiceAPIExceptionpublic List<Concept> getConceptsByName(String name) throws APIException
ConceptServicegetConceptsByName in interface ConceptServicename - The search stringAPIExceptionConceptService.getConceptsByName(java.lang.String)public Concept getConceptByName(String name)
ConceptServicegetConceptByName in interface ConceptServicename - The search stringConceptService.getConceptByName(java.lang.String)@Deprecated public Concept getConceptByIdOrName(String idOrName)
getConcept(String)ConceptServiceNote: this just calls other impl methods; no DAO of its own
getConceptByIdOrName in interface ConceptServiceConceptService.getConceptByIdOrName(java.lang.String)public Concept getConcept(String conceptIdOrName)
ConceptServicegetConcept in interface ConceptServiceConceptService.getConcept(java.lang.String)@Deprecated public List<ConceptWord> getConceptWords(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answerToConcept, Integer start, Integer size)
getConceptWords in interface ConceptServiceConceptService.getConcepts(String, List, boolean, List, List, List, List, Concept,
Integer, Integer)@Deprecated public List<ConceptWord> getConceptWords(String phrase, Locale locale) throws APIException
getConceptWords in interface ConceptServiceAPIExceptionConceptService.getConceptWords(String, Locale)@Deprecated public List<ConceptWord> findConcepts(String phrase, Locale locale, boolean includeRetired, int start, int size)
findConcepts in interface ConceptServiceConceptService.findConcepts(String, Locale, boolean, int, int)@Deprecated public List<ConceptWord> findConcepts(String phrase, Locale locale, boolean includeRetired)
findConcepts in interface ConceptServiceConceptService.findConcepts(String, Locale, boolean)@Deprecated public List<ConceptWord> findConcepts(String phrase, Locale locale, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes)
findConcepts in interface ConceptServiceConceptService.findConcepts(String, Locale, boolean, List, List, List, List)@Deprecated public List<ConceptWord> findConcepts(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes)
findConcepts in interface ConceptServiceConceptService.findConcepts(String, List, boolean, List, List, List, List)public Drug getDrug(String drugNameOrId)
ConceptServicegetDrug in interface ConceptServicedrugNameOrId - String name or drugId to match exactly onConceptService.getDrug(java.lang.String)@Deprecated public Drug getDrugByNameOrId(String drugNameOrId)
getDrug(String)ConceptServicegetDrugByNameOrId in interface ConceptServicedrugNameOrId - StringConceptService.getDrugByNameOrId(java.lang.String)@Deprecated public List<Drug> getDrugs()
getAllDrugs()getDrugs in interface ConceptServicepublic List<Drug> getAllDrugs()
ConceptServicegetAllDrugs in interface ConceptServiceConceptService.getAllDrugs()public List<Drug> getAllDrugs(boolean includeRetired)
ConceptServicegetAllDrugs in interface ConceptServiceincludeRetired - If true then the search will include voided DrugsConceptService.getAllDrugs(boolean)@Deprecated public List<Drug> getDrugs(Concept concept)
getDrugsByConcept(Concept)getDrugs in interface ConceptServiceConceptService.getDrugs(org.openmrs.Concept)public List<Drug> getDrugsByConcept(Concept concept)
ConceptServicegetDrugsByConcept in interface ConceptServiceConceptService.getDrugsByConcept(org.openmrs.Concept)@Deprecated public List<Drug> getDrugs(Concept concept, boolean includeRetired)
getDrugsByConcept(Concept)ConceptService.getDrugs(Concept)@Deprecated public List<Drug> getDrugs(boolean includeVoided)
getAllDrugs(boolean)ConceptService.getAllDrugs(boolean)@Deprecated public List<Drug> findDrugs(String phrase, boolean includeRetired)
getDrugs(String)findDrugs in interface ConceptServiceConceptService.findDrugs(java.lang.String, boolean)public List<Drug> getDrugs(String phrase)
ConceptServicegetDrugs in interface ConceptServicephrase - Search phraseConceptService.getDrugs(java.lang.String)public List<Concept> getConceptsByClass(ConceptClass cc)
getConceptsByClass in interface ConceptServicecc - ConceptClassConceptService.getConceptsByClass(org.openmrs.ConceptClass)@Deprecated public List<ConceptClass> getConceptClasses()
ConceptServicegetConceptClasses in interface ConceptServiceConceptService.getConceptClasses()public List<ConceptClass> getAllConceptClasses(boolean includeRetired)
ConceptServicegetAllConceptClasses in interface ConceptServiceincludeRetired - include retired concept classes in the search results?ConceptService.getAllConceptClasses(boolean)public ConceptClass getConceptClass(Integer i)
ConceptServicegetConceptClass in interface ConceptServicei - the concept class identifierConceptService.getConceptClass(java.lang.Integer)public ConceptClass getConceptClassByName(String name)
ConceptServicegetConceptClassByName in interface ConceptServiceConceptService.getConceptClassByName(java.lang.String)public List<ConceptClass> getAllConceptClasses() throws APIException
ConceptServicegetAllConceptClasses in interface ConceptServiceAPIExceptionConceptService.getAllConceptClasses(boolean)public ConceptClass saveConceptClass(ConceptClass cc) throws APIException
ConceptServicesaveConceptClass in interface ConceptServicecc - ConceptClass to create or updateAPIExceptionConceptService.saveConceptClass(org.openmrs.ConceptClass)public void purgeConceptClass(ConceptClass cc)
ConceptServicepurgeConceptClass in interface ConceptServicecc - ConceptClass to deleteConceptService.purgeConceptClass(org.openmrs.ConceptClass)public void purgeConceptDatatype(ConceptDatatype cd) throws APIException
ConceptServicepurgeConceptDatatype in interface ConceptServicecd - ConceptDatatype to purgeAPIExceptionConceptService.purgeConceptDatatype(org.openmrs.ConceptDatatype)public ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws APIException
ConceptServicesaveConceptDatatype in interface ConceptServicecd - ConceptDatatype to create or updateAPIExceptionConceptService.saveConceptDatatype(org.openmrs.ConceptDatatype)@Deprecated public List<ConceptDatatype> getConceptDatatypes()
getAllConceptDatatypes()ConceptService.getAllConceptDatatypes()public List<ConceptDatatype> getAllConceptDatatypes()
ConceptServicegetAllConceptDatatypes in interface ConceptServiceConceptService.getAllConceptDatatypes()public List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws APIException
ConceptServicegetAllConceptDatatypes in interface ConceptServiceincludeRetired - boolean - include the retired datatypes?APIExceptionConceptService.getAllConceptDatatypes(boolean)public ConceptDatatype getConceptDatatype(Integer i)
ConceptServicegetConceptDatatype in interface ConceptServicei - Integer for the requested ConceptDatatypeConceptService.getConceptDatatype(java.lang.Integer)public List<ConceptDatatype> getConceptDatatypes(String name)
ConceptServicegetConceptDatatypes in interface ConceptServiceConceptService.getConceptDatatypes(java.lang.String)public ConceptDatatype getConceptDatatypeByName(String name)
ConceptServicegetConceptDatatypeByName in interface ConceptServiceConceptService.getConceptDatatypeByName(java.lang.String)public void updateConceptSetDerived(Concept concept) throws APIException
ConceptServiceupdateConceptSetDerived in interface ConceptServiceAPIExceptionConceptService.updateConceptSetDerived(org.openmrs.Concept)public void updateConceptSetDerived()
throws APIException
ConceptServiceupdateConceptSetDerived in interface ConceptServiceAPIExceptionConceptService.updateConceptSetDerived()@Deprecated public List<ConceptSet> getConceptSets(Concept c)
getConceptSetsByConcept(Concept)getConceptSets in interface ConceptServiceConceptService.getConceptSets(org.openmrs.Concept)public List<ConceptSet> getConceptSetsByConcept(Concept concept) throws APIException
ConceptServiceFor example to find all concepts for ARVs, you would do getConceptSets(getConcept("ANTIRETROVIRAL MEDICATIONS")) and then take the conceptIds from the resulting list.
getConceptSetsByConcept in interface ConceptServiceconcept - The concept representing the concept setAPIExceptionConceptService.getConceptSetsByConcept(org.openmrs.Concept)@Deprecated public List<Concept> getConceptsInSet(Concept c)
getConceptsByConceptSet(Concept)getConceptsInSet in interface ConceptServiceConceptService.getConceptsInSet(org.openmrs.Concept)public List<Concept> getConceptsByConceptSet(Concept c)
ConceptServicegetConceptsByConceptSet in interface ConceptServicec - The concept representing the concept setConceptService.getConceptsInSet(org.openmrs.Concept)public List<ConceptSet> getSetsContainingConcept(Concept concept)
ConceptServicegetSetsContainingConcept in interface ConceptServiceConceptService.getSetsContainingConcept(org.openmrs.Concept)public ConceptProposal getConceptProposal(Integer conceptProposalId)
ConceptServicegetConceptProposal in interface ConceptServiceconceptProposalId - the Integer concept proposal IdConceptService.getConceptProposal(java.lang.Integer)@Deprecated public List<ConceptProposal> getConceptProposals(boolean includeCompleted)
getAllConceptProposals(boolean)getConceptProposals in interface ConceptServiceConceptService.getConceptProposals(boolean)public List<ConceptProposal> getAllConceptProposals(boolean includeCompleted)
ConceptServicegetAllConceptProposals in interface ConceptServiceincludeCompleted - boolean - include completed proposals as well?ConceptService.getAllConceptProposals(boolean)public List<ConceptProposal> getConceptProposals(String cp)
ConceptServicegetConceptProposals in interface ConceptServiceConceptService.getConceptProposals(java.lang.String)@Deprecated public List<Concept> findProposedConcepts(String text)
findProposedConcepts in interface ConceptServiceConceptService.findProposedConcepts(java.lang.String)public List<Concept> getProposedConcepts(String text)
ConceptServicegetProposedConcepts in interface ConceptServiceConceptService.getProposedConcepts(java.lang.String)@Deprecated public void proposeConcept(ConceptProposal conceptProposal)
proposeConcept in interface ConceptServiceConceptService.proposeConcept(org.openmrs.ConceptProposal)public ConceptProposal saveConceptProposal(ConceptProposal conceptProposal) throws APIException
ConceptServicesaveConceptProposal in interface ConceptServiceconceptProposal - The ConceptProposal to saveAPIExceptionConceptService.saveConceptProposal(org.openmrs.ConceptProposal)public void purgeConceptProposal(ConceptProposal cp) throws APIException
ConceptServicepurgeConceptProposal in interface ConceptServiceAPIExceptionConceptService.purgeConceptProposal(org.openmrs.ConceptProposal)public Concept mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept) throws APIException
ConceptServicemapConceptProposalToConcept in interface ConceptServiceAPIExceptionConceptService.mapConceptProposalToConcept(org.openmrs.ConceptProposal,
org.openmrs.Concept)public Concept mapConceptProposalToConcept(ConceptProposal cp, Concept mappedConcept, Locale locale) throws APIException
ConceptServicemapConceptProposalToConcept in interface ConceptServicelocale - of concept proposalAPIExceptionConceptService.mapConceptProposalToConcept(org.openmrs.ConceptProposal,
org.openmrs.Concept, java.util.Locale)@Deprecated public void rejectConceptProposal(ConceptProposal cp)
ConceptProposal.rejectConceptProposal()rejectConceptProposal in interface ConceptServiceConceptService.rejectConceptProposal(org.openmrs.ConceptProposal)@Deprecated public List<ConceptProposal> findMatchingConceptProposals(String text)
getConceptProposals(String)findMatchingConceptProposals in interface ConceptServiceConceptService.findMatchingConceptProposals(String text)@Deprecated public List<ConceptWord> findConceptAnswers(String phrase, Locale locale, Concept concept, boolean includeRetired)
findConceptAnswers in interface ConceptServiceConceptService.findConceptAnswers(String, Locale, Concept, boolean)@Deprecated public List<ConceptWord> getConceptAnswers(String phrase, Locale locale, Concept concept) throws APIException
getConceptAnswers in interface ConceptServiceAPIExceptionConceptService.findConceptAnswers(String, Locale, Concept)@Deprecated public List<Concept> getQuestionsForAnswer(Concept concept)
getConceptsByAnswer(Concept)getQuestionsForAnswer in interface ConceptServiceConceptService.getQuestionsForAnswer(org.openmrs.Concept)public List<Concept> getConceptsByAnswer(Concept concept) throws APIException
ConceptServicegetConceptsByAnswer in interface ConceptServiceAPIExceptionConceptService.getConceptsByAnswer(org.openmrs.Concept)public Concept getPrevConcept(Concept c)
ConceptServicegetPrevConcept in interface ConceptServicec - the offset ConceptConceptService.getPrevConcept(org.openmrs.Concept)public Concept getNextConcept(Concept c)
ConceptServicegetNextConcept in interface ConceptServicec - the offset ConceptConceptService.getNextConcept(org.openmrs.Concept)public void checkIfLocked()
throws ConceptsLockedException
ConceptServicecheckIfLocked in interface ConceptServiceConceptsLockedExceptionConceptService.checkIfLocked()public List<Concept> getConceptsWithDrugsInFormulary()
ConceptServicegetConceptsWithDrugsInFormulary in interface ConceptServiceConceptService.getConceptsWithDrugsInFormulary()@Deprecated public void updateConceptWords() throws APIException
updateConceptWords in interface ConceptServiceAPIExceptionConceptService.updateConceptWords()@Deprecated public void updateConceptWord(Concept concept) throws APIException
updateConceptWord in interface ConceptServiceAPIExceptionConceptService.updateConceptWord(org.openmrs.Concept)@Deprecated public void updateConceptWords(Integer conceptIdStart, Integer conceptIdEnd) throws APIException
updateConceptWords in interface ConceptServiceAPIExceptionConceptService.updateConceptWords(java.lang.Integer, java.lang.Integer)public Integer getMaxConceptId()
ConceptServicegetMaxConceptId in interface ConceptServiceConceptService.getMaxConceptId()protected List<ConceptWord> weightWords(String phrase, List<Locale> locales, List<ConceptWord> conceptWords)
phrase - that was used to get this searchlocales - ListconceptWords - the words that were found via a db search and now must be weighted before
being shown to the userConceptWordspublic ConceptNameTag getConceptNameTagByName(String tagName)
ConceptServicegetConceptNameTagByName in interface ConceptServicetagName - String name of ConceptNameTagConceptService.getConceptNameTagByName(java.lang.String)public Set<Locale> getLocalesOfConceptNames()
ConceptServicegetLocalesOfConceptNames in interface ConceptServiceConceptService.getLocalesOfConceptNames()public ConceptSource getConceptSource(Integer conceptSourceId)
ConceptServicegetConceptSource in interface ConceptServiceconceptSourceId - Integer conceptSourceIdConceptService.getConceptSource(java.lang.Integer)public List<ConceptSource> getAllConceptSources()
ConceptServicegetAllConceptSources in interface ConceptServiceConceptService.getAllConceptSources()public ConceptSource purgeConceptSource(ConceptSource cs) throws APIException
ConceptServicepurgeConceptSource in interface ConceptServicecs - ConceptSource object deleteAPIExceptionConceptService.purgeConceptSource(org.openmrs.ConceptSource)public ConceptSource retireConceptSource(ConceptSource cs, String reason) throws APIException
ConceptServiceretireConceptSource in interface ConceptServicecs - the concept source to retirereason - why the concept source is to be retired, must not be empty of nullAPIExceptionConceptService.retireConceptSource(org.openmrs.ConceptSource,String)public ConceptSource saveConceptSource(ConceptSource conceptSource) throws APIException
ConceptServicesaveConceptSource in interface ConceptServiceconceptSource - ConceptSource to createAPIExceptionConceptService.saveConceptSource(org.openmrs.ConceptSource)public ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
ConceptServicesaveConceptNameTag in interface ConceptServicenameTag - the concept name tag to be savedConceptService.saveConceptNameTag(org.openmrs.ConceptNameTag)public Iterator<Concept> conceptIterator()
ConceptServiceconceptIterator in interface ConceptServiceConceptService.conceptIterator()public Concept getConceptByUuid(String uuid)
ConceptServicegetConceptByUuid in interface ConceptServiceConceptService.getConceptByUuid(java.lang.String)public ConceptClass getConceptClassByUuid(String uuid)
ConceptServicegetConceptClassByUuid in interface ConceptServiceConceptService.getConceptClassByUuid(java.lang.String)public ConceptAnswer getConceptAnswerByUuid(String uuid)
ConceptServicegetConceptAnswerByUuid in interface ConceptServicepublic ConceptName getConceptNameByUuid(String uuid)
ConceptServicegetConceptNameByUuid in interface ConceptServicepublic ConceptSet getConceptSetByUuid(String uuid)
ConceptServicegetConceptSetByUuid in interface ConceptServicepublic ConceptSource getConceptSourceByUuid(String uuid)
ConceptServicegetConceptSourceByUuid in interface ConceptServicepublic ConceptDatatype getConceptDatatypeByUuid(String uuid)
ConceptServicegetConceptDatatypeByUuid in interface ConceptServiceConceptService.getConceptDatatypeByUuid(java.lang.String)public ConceptNumeric getConceptNumericByUuid(String uuid)
ConceptServicegetConceptNumericByUuid in interface ConceptServiceConceptService.getConceptNumericByUuid(java.lang.String)public ConceptProposal getConceptProposalByUuid(String uuid)
ConceptServicegetConceptProposalByUuid in interface ConceptServiceConceptService.getConceptProposalByUuid(java.lang.String)public Drug getDrugByUuid(String uuid)
ConceptServicegetDrugByUuid in interface ConceptServiceConceptService.getDrugByUuid(java.lang.String)public ConceptDescription getConceptDescriptionByUuid(String uuid)
ConceptServicegetConceptDescriptionByUuid in interface ConceptServiceConceptService.getConceptDescriptionByUuid(java.lang.String)public ConceptNameTag getConceptNameTagByUuid(String uuid)
ConceptServicegetConceptNameTagByUuid in interface ConceptServiceConceptService.getConceptNameTagByUuid(java.lang.String)public List<ConceptNameTag> getAllConceptNameTags()
ConceptServicegetAllConceptNameTags in interface ConceptServiceConceptService.getAllConceptNameTags()public ConceptNameTag getConceptNameTag(Integer id)
ConceptServiceConceptNameTag with the given database primary keygetConceptNameTag in interface ConceptServiceid - the concept name tag id to findConceptNameTag or null if none foundConceptService.getConceptNameTag(java.lang.Integer)public Concept getConceptByMapping(String code, String sourceName) throws APIException
ConceptServiceConceptMap 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=truegetConceptByMapping in interface ConceptServicecode - 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 foundAPIExceptionConceptService.getConceptByMapping(java.lang.String, java.lang.String)public Concept getConceptByMapping(String code, String sourceName, Boolean includeRetired) throws APIException
ConceptServiceConceptMap 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 appliesgetConceptByMapping in interface ConceptServicecode - 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 foundAPIExceptionConceptService.getConceptByMapping(java.lang.String, java.lang.String,
java.lang.Boolean)public List<Concept> getConceptsByMapping(String code, String sourceName) throws APIException
ConceptServiceConceptMap 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
mappingCodegetConceptsByMapping in interface ConceptServicecode - 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 conceptConceptServicepublic List<Concept> getConceptsByMapping(String code, String sourceName, boolean includeRetired) throws APIException
ConceptServiceConceptMap 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=truegetConceptsByMapping in interface ConceptServicecode - 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 conceptConceptServicepublic Concept getFalseConcept()
ConceptServicegetFalseConcept in interface ConceptServiceConceptService.getFalseConcept()public Concept getTrueConcept()
ConceptServicegetTrueConcept in interface ConceptServiceConceptService.getTrueConcept()public List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSource) throws APIException
ConceptServicegetConceptsByConceptSource in interface ConceptServiceAPIExceptionConceptService.getConceptsByConceptSource(org.openmrs.ConceptSource)public ConceptSource getConceptSourceByName(String conceptSourceName) throws APIException
ConceptServicegetConceptSourceByName in interface ConceptServiceAPIExceptionConceptService.getConceptSourceByName(java.lang.String)public boolean hasAnyObservation(Concept concept)
ConceptServicehasAnyObservation in interface ConceptServiceconcept - which used or not used by an observationConceptService.hasAnyObservation(org.openmrs.Concept)public void convertBooleanConceptToCoded(Concept conceptToChange) throws APIException
ConceptServiceconvertBooleanConceptToCoded in interface ConceptServiceconceptToChange - the concept which to changeAPIExceptionConceptService.convertBooleanConceptToCoded(org.openmrs.Concept)public boolean hasAnyObservation(ConceptName conceptName) throws APIException
ConceptServicehasAnyObservation in interface ConceptServiceconceptName - which is used or not used by an observationAPIExceptionConceptService.hasAnyObservation(org.openmrs.ConceptName)public List<ConceptSearchResult> findConceptAnswers(String phrase, Locale locale, Concept concept) throws APIException
ConceptServicefindConceptAnswers in interface ConceptServiceconcept - the answers to match onAPIExceptionConceptService.findConceptAnswers(String, Locale, Concept)public 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 APIException
ConceptServicegetConcepts in interface ConceptServicephrase - matched to the start of any word in any of the names of a conceptlocales - 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
removedAPIExceptionConceptService.getConcepts(String, List, boolean, List, List, List, List, Concept,
Integer, Integer)public void updateConceptIndexes(Integer conceptIdStart, Integer conceptIdEnd) throws APIException
ConceptServiceconceptIdStart and
conceptIdEnd (inclusive) and calls updateConceptIndexes(concept)updateConceptIndexes in interface ConceptServiceconceptIdStart - starts update with this concept_idconceptIdEnd - ends update with this concept_idAPIExceptionConceptService.updateConceptIndexes(Integer, Integer)public void updateConceptIndex(Concept concept) throws APIException
ConceptServiceConceptService.updateConceptIndexes() if you wish to update the entire concept index.updateConceptIndex in interface ConceptServiceconcept - the concept whose index is to be updatedAPIExceptionConceptService#updateConceptNameIndex(Concept)public void updateConceptIndexes()
throws APIException
ConceptServiceupdateConceptIndexes in interface ConceptServiceAPIExceptionConceptService#updateConceptNameIndexes()public Integer getCountOfConcepts(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept)
ConceptServicegetCountOfConcepts in interface ConceptServicephrase - 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 conceptConceptService.getCountOfConcepts(String, List, boolean, List, List, List, List,
Concept)public Integer getCountOfDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired) throws APIException
ConceptServicegetCountOfDrugs in interface ConceptServicedrugName - 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 drugsAPIExceptionConceptService.getCountOfDrugs(String, Concept, boolean, boolean, boolean)public List<Drug> getDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, Integer start, Integer length) throws APIException
ConceptServicegetDrugs in interface ConceptServicedrugName - 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 batchAPIExceptionConceptService.getDrugs(String, Concept, boolean, boolean, boolean, Integer, Integer)public List<ConceptSearchResult> getConcepts(String phrase, Locale locale, boolean includeRetired) throws APIException
ConceptServicegetConcepts in interface ConceptServicephrase - the string to search againstlocale - the locale in which to search for the conceptsincludeRetired - Specifies whether to include retired conceptsAPIExceptionConceptService.getConcepts(String, Locale, boolean)public List<Concept> getConceptsByName(String name, Locale locale, Boolean exactLocale) throws APIException
ConceptServiceThis 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.
getConceptsByName in interface ConceptServicelocale - null = all localesexactLocale - false if search for both global and country specific, true if nullAPIExceptionConceptService.getConceptsByName(java.lang.String, java.util.Locale, java.lang.Boolean)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.