Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.impl | |
org.openmrs.propertyeditor | |
org.openmrs.util |
Shared utilities for OpenMRS classes
|
Modifier and Type | Field and Description |
---|---|
protected Drug |
Obs.valueDrug |
Modifier and Type | Method and Description |
---|---|
Drug |
ConceptAnswer.getAnswerDrug() |
Drug |
MedicationDispense.getDrug() |
Drug |
DrugReferenceMap.getDrug() |
Drug |
DrugOrder.getDrug()
Gets the drug
|
Drug |
DrugIngredient.getDrug() |
Drug |
Obs.getValueDrug() |
Modifier and Type | Method and Description |
---|---|
void |
ConceptAnswer.setAnswerDrug(Drug answerDrug) |
void |
MedicationDispense.setDrug(Drug drug) |
void |
DrugReferenceMap.setDrug(Drug drug) |
void |
DrugOrder.setDrug(Drug drug)
Sets the drug
|
void |
DrugIngredient.setDrug(Drug drug) |
void |
Obs.setValueDrug(Drug valueDrug) |
Constructor and Description |
---|
ConceptAnswer(Concept answerConcept,
Drug d) |
Modifier and Type | Method and Description |
---|---|
Drug |
ConceptService.getDrug(Integer drugId)
Get the Drug with the given id
|
Drug |
ConceptService.getDrug(String drugNameOrId)
Return the drug object corresponding to the given name or drugId
|
Drug |
ConceptService.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference)
Gets the "best" matching drug, i.e. matching the earliest ConceptMapType passed in e.g.
|
Drug |
ConceptService.getDrugByUuid(String uuid)
Get Drug by its UUID
|
Drug |
ConceptService.retireDrug(Drug drug,
String reason)
Retiring a Drug essentially removes it from circulation
|
Drug |
ConceptService.saveDrug(Drug drug)
Save or update the given
Drug in the database. |
Drug |
ConceptService.unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired.
|
Modifier and Type | Method and Description |
---|---|
List<Drug> |
ConceptService.getAllDrugs()
Return a list of drugs currently in the database that are not retired
|
List<Drug> |
ConceptService.getAllDrugs(boolean includeRetired)
Get drugs by concept.
|
List<Drug> |
ConceptService.getDrugs(String phrase)
Find drugs in the system.
|
List<Drug> |
ConceptService.getDrugs(String drugName,
Concept concept,
boolean searchKeywords,
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> |
ConceptService.getDrugs(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired)
Fetches un retired drugs that match the specified search phrase.
|
List<Drug> |
ConceptService.getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept
|
List<Drug> |
ConceptService.getDrugsByIngredient(Concept ingredient)
Gets drugs by the given ingredient, which can be either the drug itself or any ingredient.
|
List<Drug> |
ConceptService.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired)
Fetches all drugs with reference mappings to the specified concept source that match the
specified code and concept map types
|
Modifier and Type | Method and Description |
---|---|
void |
ConceptService.purgeDrug(Drug drug)
Completely purge a Drug from the database.
|
Drug |
ConceptService.retireDrug(Drug drug,
String reason)
Retiring a Drug essentially removes it from circulation
|
Drug |
ConceptService.saveDrug(Drug drug)
Save or update the given
Drug in the database. |
Drug |
ConceptService.unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired.
|
Modifier and Type | Method and Description |
---|---|
Drug |
ConceptDAO.getDrug(Integer drugId) |
Drug |
ConceptDAO.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
Drug |
ConceptDAO.getDrugByUuid(String uuid) |
Drug |
ConceptDAO.saveDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
List<Drug> |
ConceptDAO.getDrugs(String phrase) |
List<Drug> |
ConceptDAO.getDrugs(String drugName,
Concept concept,
boolean includeRetired)
DAO for retrieving a list of drugs based on the following criteria
|
List<Drug> |
ConceptDAO.getDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length) |
List<Drug> |
ConceptDAO.getDrugs(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired) |
List<Drug> |
ConceptDAO.getDrugsByIngredient(Concept ingredient) |
List<Drug> |
ConceptDAO.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
Modifier and Type | Method and Description |
---|---|
void |
ConceptDAO.purgeDrug(Drug drug) |
Drug |
ConceptDAO.saveDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
Drug |
HibernateConceptDAO.getDrug(Integer drugId) |
Drug |
HibernateConceptDAO.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
Drug |
HibernateConceptDAO.getDrugByUuid(String uuid) |
Drug |
HibernateConceptDAO.saveDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
List<Drug> |
HibernateConceptDAO.getDrugs(String phrase) |
List<Drug> |
HibernateConceptDAO.getDrugs(String drugName,
Concept concept,
boolean includeRetired) |
List<Drug> |
HibernateConceptDAO.getDrugs(String drugName,
Concept concept,
boolean searchKeywords,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length)
Should return a drug if either the drug name or concept name matches the phase not both
Should return distinct drugs
Should return a drug, if phrase match concept_name No need to match both concept_name and
drug_name
Should return drug when phrase match drug_name even searchDrugConceptNames is false
Should return a drug if phrase match drug_name No need to match both concept_name and
drug_name
|
List<Drug> |
HibernateConceptDAO.getDrugs(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired) |
List<Drug> |
HibernateConceptDAO.getDrugsByIngredient(Concept ingredient) |
List<Drug> |
HibernateConceptDAO.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateConceptDAO.purgeDrug(Drug drug) |
Drug |
HibernateConceptDAO.saveDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
Drug |
ConceptServiceImpl.getDrug(Integer drugId) |
Drug |
ConceptServiceImpl.getDrug(String drugNameOrId) |
Drug |
ConceptServiceImpl.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
Drug |
ConceptServiceImpl.getDrugByUuid(String uuid) |
Drug |
ConceptServiceImpl.retireDrug(Drug drug,
String reason) |
Drug |
ConceptServiceImpl.saveDrug(Drug drug) |
Drug |
ConceptServiceImpl.unretireDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
List<Drug> |
ConceptServiceImpl.getAllDrugs() |
List<Drug> |
ConceptServiceImpl.getAllDrugs(boolean includeRetired) |
List<Drug> |
ConceptServiceImpl.getDrugs(String phrase) |
List<Drug> |
ConceptServiceImpl.getDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length) |
List<Drug> |
ConceptServiceImpl.getDrugs(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired) |
List<Drug> |
ConceptServiceImpl.getDrugsByConcept(Concept concept) |
List<Drug> |
ConceptServiceImpl.getDrugsByIngredient(Concept ingredient) |
List<Drug> |
ConceptServiceImpl.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
Modifier and Type | Method and Description |
---|---|
void |
ConceptServiceImpl.purgeDrug(Drug drug) |
Drug |
ConceptServiceImpl.retireDrug(Drug drug,
String reason) |
Drug |
ConceptServiceImpl.saveDrug(Drug drug) |
Drug |
ConceptServiceImpl.unretireDrug(Drug drug) |
Modifier and Type | Method and Description |
---|---|
protected Drug |
DrugEditor.getObjectById(Integer id) |
protected Drug |
DrugEditor.getObjectByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
int |
DrugsByNameComparator.compare(Drug d1,
Drug d2) |
static String |
FormUtil.drugToString(Drug drug)
Turn the given drug into a string acceptable for hl7 and forms
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.