Package | Description |
---|---|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.hl7 |
OpenMRS HL7 module.
|
org.openmrs.notification | |
org.openmrs.scheduler | |
org.openmrs.util |
Shared utilities for OpenMRS classes
|
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortService.addPatientToCohort(Cohort cohort,
Patient patient)
Adds a new patient to a Cohort.
|
void |
UserService.changeHashedPassword(User user,
String hashedPassword,
String salt)
Changes the current user's password directly.
|
void |
UserService.changePassword(User u,
String pw)
Changes the
user |
void |
UserService.changeQuestionAnswer(User u,
String question,
String answer)
Changes the passed user's secret question and answer.
|
void |
ProgramWorkflowService.changeToState(PatientProgram patientProgram,
ProgramWorkflow workflow,
ProgramWorkflowState state,
Date onDate)
Deprecated.
|
void |
PatientService.checkPatientIdentifier(PatientIdentifier patientIdentifier)
Deprecated.
|
void |
PatientService.checkPatientIdentifiers(Patient patient)
Convenience method to validate all identifiers for a given patient
|
Iterator<Concept> |
ConceptService.conceptIterator()
Returns an iterator for all concepts, including retired and expired.
|
void |
ConceptService.convertBooleanConceptToCoded(Concept conceptToChange)
Changes the datatype of a concept from boolean to coded when it has observations it is
associated to.
|
Cohort |
CohortService.createCohort(Cohort cohort)
Deprecated.
replaced by saveCohort(Cohort)
|
void |
ConceptService.createConcept(Concept concept)
Deprecated.
use #saveConcept(Concept)
|
void |
ConceptService.createConcept(ConceptNumeric concept)
Deprecated.
use #saveConcept(Concept)
|
void |
ProgramWorkflowService.createConceptStateConversion(ConceptStateConversion conceptStateConversion)
|
void |
ConceptService.createDrug(Drug drug)
Deprecated.
use #saveDrug(Drug)
|
void |
EncounterService.createEncounter(Encounter encounter)
Deprecated.
replaced by
EncounterService.saveEncounter(Encounter) |
void |
FormService.createField(Field field)
Deprecated.
|
Form |
FormService.createForm(Form form)
Deprecated.
|
void |
FormService.createFormField(FormField formField)
Deprecated.
|
void |
AdministrationService.createMimeType(MimeType mimeType)
Deprecated.
|
void |
ObsService.createObs(Obs obs)
Deprecated.
|
void |
ObsService.createObsGroup(Obs[] obs)
Deprecated.
This method should no longer need to be called on the api. This was meant as
temporary until we created a true ObsGroup pojo. Replaced by
ObsService.saveObs(Obs, String) |
void |
OrderService.createOrder(Order order)
Deprecated.
use #saveOrder(Order)
|
void |
OrderService.createOrdersAndEncounter(Patient p,
Collection<Order> orders)
Creates a collection of orders and an encounter to hold them.
|
void |
OrderService.createOrderType(OrderType orderType)
Deprecated.
use #saveOrderType(OrderType)
|
void |
ProgramWorkflowService.createOrUpdateProgram(Program program)
Deprecated.
|
Patient |
PatientService.createPatient(Patient patient)
Deprecated.
replaced by #savePatient(Patient)
|
void |
ProgramWorkflowService.createPatientProgram(PatientProgram patientProgram)
Deprecated.
|
Person |
PersonService.createPerson(Person person)
Deprecated.
replaced by #savePerson(Person)
|
void |
PersonService.createPersonAttributeType(PersonAttributeType type)
|
void |
PersonService.createRelationship(Relationship relationship)
Deprecated.
replaced by #saveRelationship(Relationship)
|
void |
PersonService.createRelationshipType(RelationshipType relationshipType)
Deprecated.
replaced with #saveRelationshipType(RelationshipType)
|
User |
UserService.createUser(User user,
String password)
Deprecated.
replaced by
UserService.saveUser(User, String) |
void |
ProgramWorkflowService.createWorkflow(ProgramWorkflow programWorkflow)
Deprecated.
|
void |
ConceptService.deleteConcept(Concept concept)
Deprecated.
use #purgeConcept(Concept concept)
|
void |
EncounterService.deleteEncounter(Encounter encounter)
Deprecated.
replaced by
EncounterService.purgeEncounter(Encounter) |
void |
FormService.deleteField(Field field)
Deprecated.
|
void |
FormService.deleteForm(Form form)
Deprecated.
|
void |
FormService.deleteFormField(FormField formField)
Deprecated.
|
void |
AdministrationService.deleteMimeType(MimeType mimeType)
Deprecated.
|
void |
ObsService.deleteObs(Obs obs)
Deprecated.
use #purgeObs(Obs)
|
void |
OrderService.deleteOrder(Order order)
Deprecated.
use #purgeOrder(Order)
|
void |
OrderService.deleteOrderType(OrderType orderType)
Deprecated.
use #purgeOrderType(OrderType)
|
void |
PatientService.deletePatient(Patient patient)
Deprecated.
replaced by
PatientService.purgePatient(Patient) |
void |
PersonService.deletePerson(Person person)
Deprecated.
replaced by #purgePerson(Person)
|
void |
PersonService.deletePersonAttributeType(Integer attrTypeId)
Deprecated.
use (@link #purgePersonAttributeType(PersonAttributeType))
|
void |
PersonService.deletePersonAttributeType(PersonAttributeType type)
Deprecated.
replaced by #purgePersonAttributeType(PersonAttributeType)
|
void |
PersonService.deleteRelationship(Relationship relationship)
Deprecated.
replaced by #purgeRelationship(Relationship)
|
void |
PersonService.deleteRelationshipType(RelationshipType relationshipType)
Deprecated.
replaced by #purgeRelationshipType(RelationshipType)
|
void |
UserService.deleteUser(User user)
Deprecated.
|
void |
OrderService.discontinueAllOrders(Patient patient,
Concept discontinueReason,
Date discontinueDate)
Deprecated.
|
void |
OrderService.discontinueDrugSet(Patient patient,
String drugSetId,
Concept discontinueReason,
Date discontinueDate)
Deprecated.
|
Order |
OrderService.discontinueOrder(Order order,
Concept discontinueReason,
Date discontinueDate)
Mark the given order as discontinued.
|
Form |
FormService.duplicateForm(Form form)
Duplicate this form and form_fields associated with this form
|
void |
ProgramWorkflowService.enrollPatientInProgram(Patient patient,
Program program,
Date enrollmentDate,
Date completionDate,
User creator)
Deprecated.
use {new PatientProgram(...) followed by @link
#savePatientProgram(PatientProgram)}
|
ReportData |
ReportService.evaluate(ReportSchema reportSchema,
Cohort inputCohort,
EvaluationContext context)
Deprecated.
This method evaluates a ReportSchema object for the given EvaluationContext and input Cohort.
|
List<List<Object>> |
AdministrationService.executeSQL(String sql,
boolean selectOnly)
Runs the
sql on the database. |
void |
PatientService.exitFromCare(Patient patient,
Date dateExited,
Concept reasonForExit)
Convenience method to establish that a patient has left the care center.
|
List<ConceptSearchResult> |
ConceptService.findConceptAnswers(String phrase,
Locale locale,
Concept concept)
Finds concepts that are possible value coded answers to concept parameter
|
List<ConceptWord> |
ConceptService.findConceptAnswers(String phrase,
Locale locale,
Concept concept,
boolean includeRetired)
Deprecated.
|
List<ConceptWord> |
ConceptService.findConcepts(String phrase,
List<Locale> searchLocales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes)
|
List<ConceptWord> |
ConceptService.findConcepts(String phrase,
Locale locale,
boolean includeRetired)
|
List<ConceptWord> |
ConceptService.findConcepts(String phrase,
Locale locale,
boolean includeRetired,
int start,
int size)
|
List<ConceptWord> |
ConceptService.findConcepts(String phrase,
Locale locale,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes)
|
List<Drug> |
ConceptService.findDrugs(String phrase,
boolean includeVoided)
Deprecated.
|
List<Patient> |
PatientService.findDuplicatePatients(Set<String> attributes)
Deprecated.
|
List<EncounterType> |
EncounterService.findEncounterTypes(String name)
Find Encounter Types with name matching the beginning of the search string.
|
List<Field> |
FormService.findFields(Concept concept)
Deprecated.
|
List<Field> |
FormService.findFields(String searchPhrase)
Deprecated.
|
List<Form> |
FormService.findForms(String text,
boolean includeUnpublished,
boolean includeRetired)
|
List<Location> |
EncounterService.findLocations(String name)
Deprecated.
replaced by
LocationService.getLocations(String) |
List<ConceptProposal> |
ConceptService.findMatchingConceptProposals(String text)
Deprecated.
|
List<Obs> |
ObsService.findObsByGroupId(Integer obsGroupId)
|
List<Obs> |
ObsService.findObservations(String search,
boolean includeVoided,
Integer personType)
Deprecated.
|
Patient |
PatientService.findPatient(Patient patientToMatch)
Deprecated.
use #getPatientByExample(Patient)
|
List<Patient> |
PatientService.findPatients(String query,
boolean includeVoided)
Deprecated.
use #getPatients(String)
|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided)
Deprecated.
@see #getPeople(...)
|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided,
List<String> roles)
Deprecated.
@see #getPeople(...)
|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided,
String roles)
Deprecated.
@see #getPeople(...)
|
List<Concept> |
ConceptService.findProposedConcepts(String text)
Deprecated.
|
List<User> |
UserService.findUsers(String name,
List<String> roles,
boolean includeVoided)
Deprecated.
|
List<User> |
UserService.findUsers(String givenName,
String familyName,
boolean includeVoided)
Deprecated.
|
List<Cohort> |
CohortService.getAllCohorts()
Gets all Cohorts (not including voided ones)
|
List<Cohort> |
CohortService.getAllCohorts(boolean includeVoided)
Gets all Cohorts, possibly including the voided ones
|
List<ConceptClass> |
ConceptService.getAllConceptClasses()
Return a list of concept classes currently in the database
|
List<ConceptClass> |
ConceptService.getAllConceptClasses(boolean includeRetired)
Return a list of concept classes currently in the database
|
List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes()
Return a list of all concept datatypes currently in the database
|
List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes(boolean includeRetired)
Return a list of concept datatypes currently in the database
|
List<ConceptProposal> |
ConceptService.getAllConceptProposals(boolean includeCompleted)
Get a List of all concept proposals
|
List<Concept> |
ConceptService.getAllConcepts()
Return a list of unretired concepts sorted by concept id ascending and
|
List<Concept> |
ConceptService.getAllConcepts(String sortBy,
boolean asc,
boolean includeRetired)
Return a list of concepts sorted on sortBy in dir direction (asc/desc)
|
List<ConceptSource> |
ConceptService.getAllConceptSources()
Return a list of concept sources currently in the database that are not voided
|
List<ConceptStateConversion> |
ProgramWorkflowService.getAllConceptStateConversions()
Returns all conceptStateConversions
|
List<ConceptStateConversion> |
ProgramWorkflowService.getAllConversions()
Deprecated.
|
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<EncounterType> |
EncounterService.getAllEncounterTypes()
Get all encounter types (including retired)
|
List<EncounterType> |
EncounterService.getAllEncounterTypes(boolean includeRetired)
Get all encounter types.
|
List<Allergy> |
PatientService.getAllergies(Person p)
Returns a sorted set of Allergies, sorted on sort_weight
|
Allergy |
PatientService.getAllergy(Integer allergyListId)
Returns the Allergy
|
List<Field> |
FormService.getAllFields()
Fetches all Fields in the database, including retired ones
|
List<Field> |
FormService.getAllFields(boolean includeRetired)
Fetches all Fields in the database, possibly including retired ones
|
List<FieldType> |
FormService.getAllFieldTypes()
Get all field types in the database including the retired ones
|
List<FieldType> |
FormService.getAllFieldTypes(boolean includeRetired)
Get all field types in the database with or without retired ones
|
List<FormField> |
FormService.getAllFormFields()
Returns all FormFields in the database
|
List<Form> |
FormService.getAllForms()
Gets all Forms, including retired ones.
|
List<Form> |
FormService.getAllForms(boolean includeRetired)
Gets all forms, possibly including retired ones
|
List<GlobalProperty> |
AdministrationService.getAllGlobalProperties()
Get a list of all global properties in the system
|
List<Location> |
LocationService.getAllLocations()
Returns all locations, includes retired locations.
|
List<Location> |
LocationService.getAllLocations(boolean includeRetired)
Returns all locations.
|
List<LocationTag> |
LocationService.getAllLocationTags()
Returns all location tags, includes retired location tags.
|
List<LocationTag> |
LocationService.getAllLocationTags(boolean includeRetired)
Returns all location tags.
|
List<MimeType> |
ObsService.getAllMimeTypes()
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
List<MimeType> |
ObsService.getAllMimeTypes(boolean includeRetired)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
List<OrderType> |
OrderService.getAllOrderTypes()
Get all order types, including retired ones
|
List<OrderType> |
OrderService.getAllOrderTypes(boolean includeRetired)
Get all order types, only showing ones not marked as retired if includeRetired is true
|
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes()
Get all patientIdentifier types
|
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes(boolean includeRetired)
Get all patientIdentifier types
|
List<Patient> |
PatientService.getAllPatients()
Returns all non voided patients in the system
|
List<Patient> |
PatientService.getAllPatients(boolean includeVoided)
Returns patients in the system
|
List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes()
Get all PersonAttributeTypes in the database
|
List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes(boolean includeRetired)
Get all PersonAttributeTypes in the database with the option of including the retired types
|
List<Program> |
ProgramWorkflowService.getAllPrograms()
Returns all programs, includes retired programs.
|
List<Program> |
ProgramWorkflowService.getAllPrograms(boolean includeRetired)
Returns all programs
|
List<Relationship> |
PersonService.getAllRelationships()
Get list of relationships that are not voided
|
List<Relationship> |
PersonService.getAllRelationships(boolean includeVoided)
Get list of relationships optionally including the voided ones or not
|
List<RelationshipType> |
PersonService.getAllRelationshipTypes()
Get all relationshipTypes Includes retired relationship types
|
List<RelationshipType> |
PersonService.getAllRelationshipTypes(boolean includeRetired)
Get all relationshipTypes with the option of including the retired types
|
List<User> |
UserService.getAllUsers()
Returns all users in the system
|
List<User> |
UserService.getAllUsers(List<Role> roles,
boolean includeVoided)
Deprecated.
|
Cohort |
CohortService.getCohort(Integer id)
Gets a Cohort by its database primary key
|
Cohort |
CohortService.getCohort(String name)
Gets a non voided Cohort by its name
|
Cohort |
CohortService.getCohortByUuid(String uuid)
Get Cohort by its UUID
|
List<Cohort> |
CohortService.getCohorts()
Deprecated.
replaced by getAllCohorts()
|
List<Cohort> |
CohortService.getCohortsContainingPatient(Patient patient)
Find all Cohorts that contain the given patient.
|
List<Cohort> |
CohortService.getCohortsContainingPatientId(Integer patientId)
Find all Cohorts that contain the given patientId.
|
Obs |
ObsService.getComplexObs(Integer obsId,
String view)
Get a complex observation.
|
Concept |
ConceptService.getConcept(Integer conceptId)
Gets the concept with the given id
|
Concept |
ConceptService.getConcept(String conceptIdOrName)
Get Concept by id or name convenience method
|
ConceptAnswer |
ConceptService.getConceptAnswer(Integer conceptAnswerId)
Gets the ConceptAnswer with the given id
|
ConceptAnswer |
ConceptService.getConceptAnswerByUuid(String uuid)
Get ConceptAnswer by its UUID
|
List<ConceptWord> |
ConceptService.getConceptAnswers(String phrase,
Locale locale,
Concept concept)
Deprecated.
|
Concept |
ConceptService.getConceptByIdOrName(String idOrName)
Deprecated.
|
Concept |
ConceptService.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 |
ConceptService.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 |
ConceptService.getConceptByName(String name)
Return a Concept that matches the name exactly
|
Concept |
ConceptService.getConceptByUuid(String uuid)
Get Concept by its UUID
|
ConceptClass |
ConceptService.getConceptClass(Integer conceptClassId)
Return a Concept class matching the given identifier
|
ConceptClass |
ConceptService.getConceptClassByName(String name)
Return a Concept class matching the given name
|
ConceptClass |
ConceptService.getConceptClassByUuid(String uuid)
Get ConceptClass by its UUID
|
List<ConceptClass> |
ConceptService.getConceptClasses()
Deprecated.
|
ConceptComplex |
ConceptService.getConceptComplex(Integer conceptId)
Get a ComplexConcept with the given conceptId
|
ConceptDatatype |
ConceptService.getConceptDatatype(Integer i)
Return a ConceptDatatype matching the given identifier
|
ConceptDatatype |
ConceptService.getConceptDatatypeByName(String name)
Return a Concept datatype matching the given name
|
ConceptDatatype |
ConceptService.getConceptDatatypeByUuid(String uuid)
Get ConceptDatatype by its UUID
|
List<ConceptDatatype> |
ConceptService.getConceptDatatypes(String name)
Deprecated.
you *probably* want to use
ConceptService.getConceptDatatypeByName(String) |
ConceptDescription |
ConceptService.getConceptDescriptionByUuid(String uuid)
Get ConceptDescription by its UUID
|
ConceptName |
ConceptService.getConceptName(Integer conceptNameId)
Gets the concept-name with the given id
|
ConceptName |
ConceptService.getConceptNameByUuid(String uuid)
Get ConceptName by its UUID
|
ConceptNameTag |
ConceptService.getConceptNameTag(Integer id)
Gets the
ConceptNameTag with the given database primary key |
ConceptNameTag |
ConceptService.getConceptNameTagByName(String tag)
Search for a ConceptNameTag by name
|
ConceptNameTag |
ConceptService.getConceptNameTagByUuid(String uuid)
Get ConceptNameTag by its UUID
|
ConceptNumeric |
ConceptService.getConceptNumeric(Integer conceptId)
Get the ConceptNumeric with the given id
|
ConceptNumeric |
ConceptService.getConceptNumericByUuid(String uuid)
Get ConceptNumeric by its UUID
|
ConceptProposal |
ConceptService.getConceptProposal(Integer conceptProposalId)
Get a ConceptProposal by conceptProposalId
|
ConceptProposal |
ConceptService.getConceptProposalByUuid(String uuid)
Get ConceptProposal by its UUID
|
List<ConceptProposal> |
ConceptService.getConceptProposals(boolean includeCompleted)
Deprecated.
|
List<ConceptProposal> |
ConceptService.getConceptProposals(String text)
Find matching concept proposals
|
List<ConceptSearchResult> |
ConceptService.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> |
ConceptService.getConcepts(String phrase,
Locale locale,
boolean includeRetired)
Searches for concepts with the given parameters
|
List<Concept> |
ConceptService.getConcepts(String sortBy,
String dir)
Deprecated.
|
List<Concept> |
ConceptService.getConceptsByAnswer(Concept concept)
Returns all possible Concepts to which this concept is a value-coded answer.
|
List<Concept> |
ConceptService.getConceptsByClass(ConceptClass cc) |
List<Concept> |
ConceptService.getConceptsByConceptSet(Concept concept)
Return a List of all concepts within a concept set
|
List<ConceptMap> |
ConceptService.getConceptsByConceptSource(ConceptSource conceptSource)
Looks up a list of ConceptMaps for a given ConceptSource
|
List<Concept> |
ConceptService.getConceptsByMapping(String code,
String sourceName)
Looks up a concept via
ConceptMap This will return the list of concepts
Concept s 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> |
ConceptService.getConceptsByMapping(String code,
String sourceName,
boolean includeRetired)
Looks up a concept via
ConceptMap This will return the list of Concept s 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> |
ConceptService.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> |
ConceptService.getConceptsByName(String name,
Locale locale,
Boolean exactLocale)
Returns a list of concepts with the same name in the given locale.
|
ConceptSet |
ConceptService.getConceptSetByUuid(String uuid)
Get ConceptSet by its UUID
|
List<ConceptSet> |
ConceptService.getConceptSets(Concept concept)
Deprecated.
|
List<ConceptSet> |
ConceptService.getConceptSetsByConcept(Concept concept)
Return a list of the concept sets with concept_set matching concept
|
List<Concept> |
ConceptService.getConceptsInSet(Concept concept)
Deprecated.
|
ConceptSource |
ConceptService.getConceptSource(Integer i)
Return a Concept source matching the given concept source id
|
ConceptSource |
ConceptService.getConceptSourceByName(String conceptSourceName)
Lookup a ConceptSource by its name property
|
ConceptSource |
ConceptService.getConceptSourceByUuid(String uuid)
Get ConceptSource by its UUID
|
ConceptStateConversion |
ProgramWorkflowService.getConceptStateConversion(Integer conceptStateConversionId)
Returns a conceptStateConversion given that conceptStateConversions primary key
conceptStateConversionId A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId. |
List<Concept> |
ConceptService.getConceptsWithDrugsInFormulary()
Convenience method for finding concepts associated with drugs in formulary.
|
List<ConceptWord> |
ConceptService.getConceptWords(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
Integer start,
Integer size)
|
List<ConceptWord> |
ConceptService.getConceptWords(String phrase,
Locale locale)
Deprecated.
use
#getConcepts(String, Locale) that returns a list of
ConceptSearchResults |
Integer |
ConceptService.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 |
ConceptService.getCountOfDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired)
Return the number of drugs with matching names or concept drug names
|
Integer |
EncounterService.getCountOfEncounters(String query,
boolean includeVoided)
Return the number of encounters matching a patient name or patient identifier
|
Integer |
LocationService.getCountOfLocations(String nameFragment,
Boolean includeRetired)
Return the number of all locations that start with the given name fragment, if the name
fragment is null or an empty string, then the number of all locations will be returned
|
Integer |
PatientService.getCountOfPatients(String query)
Return the number of unvoided patients with names or patient identifiers starting with or
equal to the specified text
|
Integer |
UserService.getCountOfUsers(String name,
List<Role> roles,
boolean includeRetired)
Return the number of users with a matching name or system id and have at least one of the
given roles assigned to them
|
Collection<PatientProgram> |
ProgramWorkflowService.getCurrentPrograms(Patient patient,
Date onDate)
|
Set<ProgramWorkflow> |
ProgramWorkflowService.getCurrentWorkflowsByPatient(Patient patient)
Deprecated.
No current use outside of this service. Should be retrieved from Patient,
PatientProgram, and PatientState
|
Set<ProgramWorkflow> |
ProgramWorkflowService.getCurrentWorkflowsByPatientProgram(PatientProgram program)
Deprecated.
No current use outside of this service. Should be retrieved from Patient,
PatientProgram, and PatientState
|
Location |
LocationService.getDefaultLocation()
Returns the default location for this implementation.
|
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.getDrugByNameOrId(String drugId)
Return the drug object corresponding to the given name or drugId
|
Drug |
ConceptService.getDrugByUuid(String uuid)
Get Drug by its UUID
|
DrugOrder |
OrderService.getDrugOrder(Integer drugOrderId)
Deprecated.
use
OrderService.getOrder(Integer, Class) with DrugOrder.class as second parameter
instead |
List<DrugOrder> |
OrderService.getDrugOrders()
Deprecated.
this method would return a very large list for most systems and doesn't make
sense to be used. If _all_ Orders are really what is wanted, use
OrderService.getOrders(Class, List, List, org.openmrs.api.OrderService.ORDER_STATUS, List, List, List)
with empty parameters |
List<DrugOrder> |
OrderService.getDrugOrdersByPatient(Patient patient)
Get all orders for the given
patient |
List<DrugOrder> |
OrderService.getDrugOrdersByPatient(Patient patient,
int whatToShow)
|
List<DrugOrder> |
OrderService.getDrugOrdersByPatient(Patient patient,
int whatToShow,
boolean includeVoided)
|
List<DrugOrder> |
OrderService.getDrugOrdersByPatient(Patient patient,
OrderService.ORDER_STATUS orderStatus)
Get drug orders for a given patient, not including voided orders
|
List<DrugOrder> |
OrderService.getDrugOrdersByPatient(Patient patient,
OrderService.ORDER_STATUS orderStatus,
boolean includeVoided)
Get drug orders for a given patient
|
List<Drug> |
ConceptService.getDrugs()
Deprecated.
|
List<Drug> |
ConceptService.getDrugs(Concept concept)
Deprecated.
|
List<Drug> |
ConceptService.getDrugs(String phrase)
<<<<<<< HEAD
Find drugs in the system.
|
List<Drug> |
ConceptService.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> |
ConceptService.getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept
|
Map<String,String> |
OrderService.getDrugSetHeadersByDrugSetIdList(String drugSetIds)
Deprecated.
|
Map<Concept,List<DrugOrder>> |
OrderService.getDrugSetsByConcepts(List<DrugOrder> drugOrders,
List<Concept> drugSets)
Deprecated.
|
Map<String,List<DrugOrder>> |
OrderService.getDrugSetsByDrugSetIdList(List<DrugOrder> orderList,
String drugSetIdList,
String delimiter)
Deprecated.
|
List<Patient> |
PatientService.getDuplicatePatientsByAttributes(List<String> attributes)
Search the database for patients that both share the given attributes.
|
Encounter |
EncounterService.getEncounter(Integer encounterId)
Get encounter by internal identifier
|
Encounter |
EncounterService.getEncounterByUuid(String uuid)
Get Encounter by its UUID
|
Collection<Encounter> |
EncounterService.getEncounters(Date fromDate,
Date toDate)
|
Collection<Encounter> |
EncounterService.getEncounters(Location loc,
Date fromDate,
Date toDate)
|
List<Encounter> |
EncounterService.getEncounters(Patient who)
Deprecated.
replaced by
EncounterService.getEncountersByPatient(Patient) |
List<Encounter> |
EncounterService.getEncounters(Patient who,
boolean includeVoided)
Deprecated.
replaced by
EncounterService.getEncountersByPatient(Patient) |
List<Encounter> |
EncounterService.getEncounters(Patient who,
Date fromDate,
Date toDate)
|
List<Encounter> |
EncounterService.getEncounters(Patient who,
Location where)
|
List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
Date fromDate,
Date toDate,
Collection<Form> enteredViaForms,
Collection<EncounterType> encounterTypes,
boolean includeVoided)
|
List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
Date fromDate,
Date toDate,
Collection<Form> enteredViaForms,
Collection<EncounterType> encounterTypes,
Collection<User> providers,
boolean includeVoided)
Get all encounters that match a variety of (nullable) criteria.
|
List<Encounter> |
EncounterService.getEncounters(String query,
Integer start,
Integer length,
boolean includeVoided)
Search for encounters by patient name or patient identifier and returns a specific number of
them from the specified starting position.
|
List<Encounter> |
EncounterService.getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient, sorted by encounterDatetime ascending.
|
List<Encounter> |
EncounterService.getEncountersByPatient(String query)
Search for encounters by patient name or patient identifier.
|
List<Encounter> |
EncounterService.getEncountersByPatient(String query,
boolean includeVoided)
Search for encounters by patient name or patient identifier.
|
List<Encounter> |
EncounterService.getEncountersByPatientId(Integer patientId)
Get encounters for a patientId
|
List<Encounter> |
EncounterService.getEncountersByPatientId(Integer patientId,
boolean includeVoided)
Deprecated.
|
List<Encounter> |
EncounterService.getEncountersByPatientIdentifier(String identifier)
Get encounters (not voided) for a patient identifier
|
List<Encounter> |
EncounterService.getEncountersByPatientIdentifier(String identifier,
boolean includeVoided)
Deprecated.
|
EncounterType |
EncounterService.getEncounterType(Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
EncounterService.getEncounterType(String name)
Get encounterType by exact name
|
EncounterType |
EncounterService.getEncounterTypeByUuid(String uuid)
Get EncounterType by its UUID
|
List<EncounterType> |
EncounterService.getEncounterTypes()
Deprecated.
replaced by
EncounterService.getAllEncounterTypes() |
Field |
FormService.getField(Integer fieldId)
Gets a Field by internal database id
|
List<Field> |
FormService.getFields()
Deprecated.
|
List<Field> |
FormService.getFields(Collection<Form> forms,
Collection<FieldType> fieldTypes,
Collection<Concept> concepts,
Collection<String> tableNames,
Collection<String> attributeNames,
Boolean selectMultiple,
Collection<FieldAnswer> containsAllAnswers,
Collection<FieldAnswer> containsAnyAnswer,
Boolean retired)
Returns all Fields that match these (nullable) criteria
|
List<Field> |
FormService.getFields(String fuzzySearchPhrase)
Find all Fields whose names are similar to or contain the given phrase.
|
List<Field> |
FormService.getFieldsByConcept(Concept concept)
Finds all Fields that point to the given concept, including retired ones.
|
FieldType |
FormService.getFieldType(Integer fieldTypeId)
Get fieldType by internal identifier
|
List<FieldType> |
FormService.getFieldTypes()
Deprecated.
|
Form |
FormService.getForm(Integer formId)
Get form by internal form identifier
|
Form |
FormService.getForm(String name)
Get form by exact name match.
|
Form |
FormService.getForm(String name,
String version)
Get form by exact name & version match.
|
Integer |
FormService.getFormCount(String partialNameSearch,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields)
Same as
FormService.getForms(String, Boolean, Collection, Boolean, Collection, Collection, Collection)
except that it returns an integer that is the size of the list that would be returned |
FormField |
FormService.getFormField(Form form,
Concept concept)
Finds the FormField defined for this form/concept combination Calls
FormService.getFormField(Form, Concept, Collection, boolean) with an empty ignore list and with
force set to false |
FormField |
FormService.getFormField(Form form,
Concept concept,
Collection<FormField> ignoreFormFields,
boolean force)
Finds the FormField defined for this form/concept combination while discounting any form
field found in the
ignoreFormFields collection This method was added when
needing to relate observations to form fields during a display. |
FormField |
FormService.getFormField(Integer formFieldId)
Gets a FormField by internal database id
|
List<FormField> |
FormService.getFormFields(Form form)
Deprecated.
|
List<Form> |
FormService.getForms()
Deprecated.
|
List<Form> |
FormService.getForms(boolean publishedOnly)
Deprecated.
|
List<Form> |
FormService.getForms(boolean publishedOnly,
boolean includeRetired)
|
Set<Form> |
FormService.getForms(Concept c)
Deprecated.
|
List<Form> |
FormService.getForms(String fuzzyName,
boolean onlyLatestVersion)
Gets all forms with name similar to the given name.
|
List<Form> |
FormService.getForms(String partialNameSearch,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields)
|
List<Form> |
FormService.getForms(String partialNameSearch,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields)
Gets all forms that match all the (nullable) criteria
|
List<Form> |
FormService.getFormsContainingConcept(Concept concept)
Returns all forms that contain the given concept as a field in their schema.
|
ImplementationId |
AdministrationService.getImplementationId()
Get the implementation id stored for this server Returns null if no implementation id has
been successfully set yet
|
List<Obs> |
ObsService.getLastNObservations(Integer n,
Person who,
Concept question,
boolean includeVoided)
|
PatientState |
ProgramWorkflowService.getLatestState(PatientProgram patientProgram,
ProgramWorkflow programWorkflow)
Deprecated.
|
Location |
LocationService.getLocation(Integer locationId)
Returns a location given that locations primary key
locationId A null value is
returned if no location exists with this location. |
Location |
EncounterService.getLocation(Integer locationId)
Deprecated.
replaced by
LocationService.getLocation(Integer) |
Location |
LocationService.getLocation(String name)
Returns a location given the location's exact
name A null value is returned if
there is no location with this name |
Location |
EncounterService.getLocationByName(String name)
Deprecated.
replaced by
LocationService.getLocation(String) |
Location |
LocationService.getLocationByUuid(String uuid)
Returns a location by uuid
|
List<Location> |
EncounterService.getLocations()
Deprecated.
replaced by
LocationService.getAllLocations() |
List<Location> |
LocationService.getLocations(String nameFragment)
Returns locations that match the beginning of the given string.
|
List<Location> |
LocationService.getLocations(String nameFragment,
boolean includeRetired,
Integer start,
Integer length)
Returns a specific number locations from the specified starting position that match the
beginning of the given string.
|
List<Location> |
LocationService.getLocationsByTag(LocationTag tag)
Returns locations that contain the given tag.
|
List<Location> |
LocationService.getLocationsHavingAllTags(List<LocationTag> tags)
Returns locations that are mapped to all given tags.
|
List<Location> |
LocationService.getLocationsHavingAnyTag(List<LocationTag> tags)
Returns locations that are mapped to any of the given tags.
|
LocationTag |
LocationService.getLocationTag(Integer locationTagId)
Returns a location tag given that locations primary key
locationTagId . |
LocationTag |
LocationService.getLocationTagByName(String tag)
Returns a location tag given the location's exact name (tag).
|
LocationTag |
LocationService.getLocationTagByUuid(String uuid)
Returns a location tag by uuid
|
List<LocationTag> |
LocationService.getLocationTags(String search)
Returns location tags that match the beginning of the given string.
|
MimeType |
ObsService.getMimeType(Integer mimeTypeId)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
List<MimeType> |
ObsService.getMimeTypes()
Deprecated.
|
Concept |
ConceptService.getNextConcept(Concept concept)
Finds the next concept in the dictionary that has the next largest concept id
|
List<Object[]> |
ObsService.getNumericAnswersForConcept(Concept answer,
Boolean sortByValue,
Integer personType,
boolean includeVoided)
|
Obs |
ObsService.getObs(Integer obsId)
Get an observation
|
Obs |
ObsService.getObsByUuid(String uuid)
Get Obs by its UUID
|
Integer |
ObsService.getObservationCount(List<ConceptName> conceptNames,
boolean includeVoided)
Gets the number of observations(including voided ones) that are using the specified
conceptNames as valueCodedName answers
|
Integer |
ObsService.getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs)
This method fetches the count of observations according to the criteria in the given
arguments.
|
List<Obs> |
ObsService.getObservations(Cohort patients,
List<Concept> concepts,
Date fromDate,
Date toDate)
|
List<Obs> |
ObsService.getObservations(Concept c,
Location loc,
String sort,
Integer personType,
boolean includeVoided)
|
List<Obs> |
ObsService.getObservations(Concept question,
String sort,
Integer personType,
boolean includeVoided)
|
Set<Obs> |
ObsService.getObservations(Encounter whichEncounter)
Deprecated.
use
org.openmrs |
List<Obs> |
ObsService.getObservations(List<Concept> concepts,
Date fromDate,
Date toDate)
|
List<Obs> |
ObsService.getObservations(List<Concept> concepts,
Date fromDate,
Date toDate,
boolean includeVoided)
|
List<Obs> |
ObsService.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sort,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs)
This method fetches observations according to the criteria in the given arguments.
|
Set<Obs> |
ObsService.getObservations(Person who,
boolean includeVoided)
Deprecated.
|
Set<Obs> |
ObsService.getObservations(Person who,
Concept question,
boolean includeVoided)
Deprecated.
|
List<Obs> |
ObsService.getObservations(String searchString)
This method searches the obs table based on the given
searchString . |
List<Obs> |
ObsService.getObservationsAnsweredByConcept(Concept answer,
Integer personType,
boolean includeVoided)
|
List<Obs> |
ObsService.getObservationsByPerson(Person who)
Get all Observations for the given person, sorted by obsDatetime ascending.
|
List<Obs> |
ObsService.getObservationsByPersonAndConcept(Person who,
Concept question)
Get all nonvoided observations for the given patient with the given concept as the question
concept (conceptId)
|
Order |
OrderService.getOrder(Integer orderId)
Get order by internal primary key identifier
|
<Ord extends Order> |
OrderService.getOrder(Integer orderId,
Class<Ord> orderClassType)
Gets the order with the associated order id
|
List<Order> |
OrderService.getOrders()
Deprecated.
this method would return a very large list for most systems and doesn't make
sense to be used. If _all_ Orders are really what is wanted, use
OrderService.getOrders(Class, List, List, org.openmrs.api.OrderService.ORDER_STATUS, List, List, List)
with empty parameters |
<Ord extends Order> |
OrderService.getOrders(Class<Ord> orderClassType,
List<Patient> patients,
List<Concept> concepts,
OrderService.ORDER_STATUS status,
List<User> orderers,
List<Encounter> encounters,
List<OrderType> orderTypes)
This searches for orders given the parameters.
|
List<Order> |
OrderService.getOrdersByPatient(Patient patient)
Get all orders by Patient
|
List<Order> |
OrderService.getOrdersByUser(User user)
Get all orders by the User that is marked as their orderer
|
OrderType |
OrderService.getOrderType(Integer orderTypeId)
Get orderType by internal identifier
|
List<OrderType> |
OrderService.getOrderTypes()
Deprecated.
use #getAllOrderTypes()
|
Patient |
PatientService.getPatient(Integer patientId)
Get patient by internal identifier
|
Patient |
PatientService.getPatientByExample(Patient patientToMatch)
This method tries to find a patient in the database given the attributes on the given
patientToMatch object. |
Patient |
PatientService.getPatientByUuid(String uuid)
Get patient by universally unique identifier.
|
PatientIdentifier |
PatientService.getPatientIdentifier(Integer patientIdentifierId)
Returns a patient identifier that matches the given patientIndentifier id
|
PatientIdentifier |
PatientService.getPatientIdentifierByUuid(String uuid)
Get patient identifier by universally unique identifier.
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiers(PatientIdentifierType patientIdentifierType)
Deprecated.
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred)
Get all patientIdentifiers that match all of the given criteria Voided identifiers are not
returned
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiers(String identifier,
PatientIdentifierType pit)
Deprecated.
|
PatientIdentifierType |
PatientService.getPatientIdentifierType(Integer patientIdentifierTypeId)
Get patientIdentifierType by internal identifier
|
PatientIdentifierType |
PatientService.getPatientIdentifierType(String name)
Deprecated.
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByName(String name)
Get patientIdentifierType by exact name
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByUuid(String uuid)
Get patient identifierType by universally unique identifier
|
List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes()
Deprecated.
replaced by
PatientService.getAllPatientIdentifierTypes() |
List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit)
Get all patientIdentifier types that match the given criteria
|
Patient |
PatientService.getPatientOrPromotePerson(Integer patientOrPersonId)
Get patient by internal identifier.
|
PatientProgram |
ProgramWorkflowService.getPatientProgram(Integer patientProgramId)
Returns a PatientProgram given that PatientPrograms primary key
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId. |
List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Cohort cohort,
Collection<Program> programs)
TODO: refactor?
|
Collection<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Patient patient)
|
List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters.
|
List<Patient> |
PatientService.getPatients(String query)
Generic search on patients based on the given string.
|
List<Patient> |
PatientService.getPatients(String query,
Integer start,
Integer length)
Generic search on patients based on the given string and returns a specific number of them
from the specified starting position.
|
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes)
Deprecated.
replaced by a call to
PatientService.getPatients(String, String, List, boolean) with
"false" as the last parameter |
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly)
Get patients based on given criteria The identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX All parameters are optional and
nullable. |
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length)
Get a limited size of patients from a given start index based on given criteria The
identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX
All parameters are optional and nullable. |
List<Patient> |
PatientService.getPatientsByIdentifierPattern(String identifier,
boolean includeVoided)
Deprecated.
replaced by getPatients( ... )
|
List<Patient> |
PatientService.getPatientsByName(String name)
Deprecated.
replaced by
PatientService.getPatients(String, String, List) |
List<Patient> |
PatientService.getPatientsByName(String name,
boolean includeVoided)
Deprecated.
replaced by getPatients( ... )
|
PatientState |
ProgramWorkflowService.getPatientState(Integer patientStateId)
Deprecated.
|
List<Person> |
PersonService.getPeople(String searchPhrase,
Boolean dead)
Find a person matching the searchPhrase search string
|
Person |
PersonService.getPerson(Integer personId)
Gets a person by internal id
|
Person |
PersonService.getPerson(Patient pat)
Deprecated.
|
Person |
PersonService.getPerson(User user)
Deprecated.
|
PersonAddress |
PersonService.getPersonAddressByUuid(String uuid)
Get PersonAddress by its UUID
|
PersonAttribute |
PersonService.getPersonAttribute(Integer id)
Get a PersonAttribute from the database with the given PersonAttributeid
|
PersonAttribute |
PersonService.getPersonAttributeByUuid(String uuid)
Get PersonAttribute by its UUID
|
PersonAttributeType |
PersonService.getPersonAttributeType(Integer typeId)
Get the PersonAttributeType given the type's PersonAttributeTypeId
|
PersonAttributeType |
PersonService.getPersonAttributeType(String typeName)
Deprecated.
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByName(String typeName)
Get the PersonAttributeType given the type's name
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByUuid(String uuid)
Gets a person attribute type with the given uuid.
|
List<PersonAttributeType> |
PersonService.getPersonAttributeTypes()
Deprecated.
|
List<PersonAttributeType> |
PersonService.getPersonAttributeTypes(String exactName,
String format,
Integer foreignKey,
Boolean searchable)
Find person attribute types matching the given parameters.
|
Person |
PersonService.getPersonByUuid(String uuid)
Get Person by its UUID
|
PersonName |
PersonService.getPersonNameByUuid(String uuid)
Get PersonName by its UUID
|
List<ProgramWorkflowState> |
ProgramWorkflowService.getPossibleNextStates(PatientProgram patientProgram,
ProgramWorkflow workflow)
Deprecated.
|
Concept |
ConceptService.getPrevConcept(Concept concept)
Finds the previous concept in the dictionary that has the next lowest concept id
|
Problem |
PatientService.getProblem(Integer problemListId)
Returns the Problem
|
List<Problem> |
PatientService.getProblems(Person p)
Get a list of the problems for the patient, sorted on sort_weight
|
Program |
ProgramWorkflowService.getProgram(Integer programId)
Returns a program given that programs primary key
programId A null value is
returned if no program exists with this programId. |
Program |
ProgramWorkflowService.getProgramByName(String name)
Returns a program given the program's exact
name A null value is returned if
there is no program with this name |
List<Program> |
ProgramWorkflowService.getPrograms()
Deprecated.
|
List<Program> |
ProgramWorkflowService.getPrograms(String nameFragment)
Returns programs that match the given string.
|
List<Concept> |
ConceptService.getProposedConcepts(String text)
Find matching proposed concepts
|
List<Form> |
FormService.getPublishedForms()
Returns all published forms (not including retired ones)
|
List<Concept> |
ConceptService.getQuestionsForAnswer(Concept concept)
Deprecated.
use #getConceptsByAnswer(Concept)
|
Relationship |
PersonService.getRelationship(Integer relationshipId)
Get relationship by internal relationship identifier
|
Relationship |
PersonService.getRelationshipByUuid(String uuid)
Get Relationship by its UUID
|
Map<Person,List<Person>> |
PersonService.getRelationshipMap(RelationshipType relationshipType)
Get all relationships for a given type of relationship mapped from the personA to all of the
personB's
|
List<Relationship> |
PersonService.getRelationships()
Deprecated.
|
List<Relationship> |
PersonService.getRelationships(Person p)
Deprecated.
|
List<Relationship> |
PersonService.getRelationships(Person p,
boolean showVoided)
Deprecated.
|
List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
Get relationships stored in the database that
|
List<Relationship> |
PersonService.getRelationshipsByPerson(Person p)
Get list of relationships that include Person in person_id or relative_id Does not include
voided relationships
|
List<Relationship> |
PersonService.getRelationshipsTo(Person toPerson,
RelationshipType relType)
Deprecated.
|
RelationshipType |
PersonService.getRelationshipType(Integer relationshipTypeId)
Get relationshipType by internal identifier
|
RelationshipType |
PersonService.getRelationshipTypeByName(String relationshipTypeName)
Find relationshipType by exact name match
|
RelationshipType |
PersonService.getRelationshipTypeByUuid(String uuid)
Gets the relationship type with the given uuid.
|
List<RelationshipType> |
PersonService.getRelationshipTypes(String searchString)
Get relationshipTypes by searching through the names and loosely matching to the given
searchString
|
List<RelationshipType> |
PersonService.getRelationshipTypes(String relationshipTypeName,
Boolean preferred)
Find relationshipTypes by exact name match and/or preferred status
|
List<ConceptSet> |
ConceptService.getSetsContainingConcept(Concept concept)
Find all sets that the given concept is a member of
|
Set<Person> |
PersonService.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender)
Find a similar person given the attributes.
|
List<RegimenSuggestion> |
OrderService.getStandardRegimens()
The standard regimens are currently stored in the application context file.
|
ProgramWorkflowState |
ProgramWorkflowService.getState(Integer id)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
ProgramWorkflowState |
ProgramWorkflowService.getState(ProgramWorkflow programWorkflow,
String name)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
List<ProgramWorkflowState> |
ProgramWorkflowService.getStates()
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
List<ProgramWorkflowState> |
ProgramWorkflowService.getStates(boolean includeVoided)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
SortedMap<String,String> |
AdministrationService.getSystemVariables()
Get a listing or important variables used in openmrs
|
User |
UserService.getUser(Integer userId)
Get user by internal user identifier.
|
User |
UserService.getUserByUsername(String username)
Get user by username (user's login identifier)
|
User |
UserService.getUserByUuid(String uuid)
Get user by the given uuid.
|
List<User> |
UserService.getUsers()
Deprecated.
|
List<User> |
UserService.getUsers(String nameSearch,
List<Role> roles,
boolean includeVoided)
Return a list of users sorted by personName (see
PersonByNameComparator ) if any part
of the search matches first/last/system id and the user has one at least one of the given
roles assigned to them |
List<User> |
UserService.getUsers(String name,
List<Role> roles,
boolean includeRetired,
Integer start,
Integer length)
Return a batch of users of a specific size sorted by personName (see
PersonByNameComparator ) if any part of the search matches first/last/system id and
the user has one at least one of the given roles assigned to them. |
List<User> |
UserService.getUsersByName(String givenName,
String familyName,
boolean includeVoided)
Search for a list of users by exact first name and last name.
|
List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
List<User> |
UserService.getUsersByRole(Role role)
Get users by role granted
|
List<Obs> |
ObsService.getVoidedObservations()
|
ProgramWorkflow |
ProgramWorkflowService.getWorkflow(Integer id)
Deprecated.
ProgramWorkflows should not be retrieved directly, but rather through the
programs they belong to: use
Program.getWorkflows() |
ProgramWorkflow |
ProgramWorkflowService.getWorkflow(Program program,
String name)
Deprecated.
|
void |
UserService.grantUserRole(User user,
Role role)
Deprecated.
|
boolean |
ConceptService.hasAnyObservation(Concept concept)
Checks if there are any observations (including voided observations) for a concept.
|
boolean |
ConceptService.hasAnyObservation(ConceptName conceptName)
Checks if there are any observations (including voided observations) using a conceptName.
|
boolean |
UserService.hasDuplicateUsername(User user)
true/false if username or systemId is already in db in username or system_id columns
|
boolean |
PatientService.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
Checks whether the given patient identifier is already assigned to a patient other than
patientIdentifier.patient
|
boolean |
ProgramWorkflowService.isInProgram(Patient patient,
Program program,
Date fromDate,
Date toDate)
|
boolean |
ProgramWorkflowService.isLegalTransition(ProgramWorkflowState fromState,
ProgramWorkflowState toState)
|
Concept |
ConceptService.mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept)
Maps a concept proposal to a concept
|
Concept |
ConceptService.mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept,
Locale locale)
Maps a concept proposal to a concept
|
int |
FormService.mergeDuplicateFields()
Audit form, consolidate similar fields
|
void |
PatientService.mergePatients(Patient preferred,
Patient notPreferred)
Convenience method to join two patients' information into one record.
|
Collection<Integer> |
ProgramWorkflowService.patientsInProgram(Program program,
Date fromDate,
Date toDate)
Deprecated.
use
ProgramWorkflowService.getPatientPrograms(Patient, Program, Date, Date, Date, Date, boolean)
which can be Iterated across to return collection of patient ids |
void |
PatientService.processDeath(Patient patient,
Date dateDied,
Concept causeOfDeath,
String otherReason)
Convenience method to establish that a patient has died.
|
void |
ConceptService.proposeConcept(ConceptProposal conceptProposal)
Deprecated.
|
void |
ConceptService.purgeConcept(Concept conceptOrConceptNumeric)
Completely purge a
Concept or ConceptNumeric from the database. |
void |
ConceptService.purgeConceptClass(ConceptClass cc)
Purge a ConceptClass
|
void |
ConceptService.purgeConceptDatatype(ConceptDatatype cd)
Purge a ConceptDatatype.
|
void |
ConceptService.purgeConceptProposal(ConceptProposal cp)
Removes a concept proposal from the database entirely.
|
ConceptSource |
ConceptService.purgeConceptSource(ConceptSource cs)
Delete ConceptSource
|
void |
ProgramWorkflowService.purgeConceptStateConversion(ConceptStateConversion conceptStateConversion)
Completely remove a conceptStateConversion from the database (not reversible) This method
delegates to #purgeConceptStateConversion(conceptStateConversion, boolean) method
|
void |
ProgramWorkflowService.purgeConceptStateConversion(ConceptStateConversion conceptStateConversion,
boolean cascade)
Completely remove a conceptStateConversion from the database (not reversible)
|
void |
ConceptService.purgeDrug(Drug drug)
Completely purge a Drug from the database.
|
void |
EncounterService.purgeEncounter(Encounter encounter)
Completely remove an encounter from database.
|
void |
EncounterService.purgeEncounter(Encounter encounter,
boolean cascade)
Completely remove an encounter from database.
|
void |
EncounterService.purgeEncounterType(EncounterType encounterType)
Completely remove an encounter type from database.
|
void |
FormService.purgeField(Field field)
Completely removes a Field from the database.
|
void |
FormService.purgeField(Field field,
boolean cascade)
Completely removes a Field from the database.
|
void |
FormService.purgeFieldType(FieldType fieldType)
Deletes the given field type from the database.
|
void |
FormService.purgeForm(Form form)
Completely remove a Form from the database.
|
void |
FormService.purgeForm(Form form,
boolean cascade)
Completely remove a Form from the database.
|
void |
FormService.purgeFormField(FormField formField)
Completely removes the given FormField from the database.
|
void |
AdministrationService.purgeGlobalProperties(List<GlobalProperty> globalProperties)
Completely remove the given global properties from the database
|
void |
AdministrationService.purgeGlobalProperty(GlobalProperty globalProperty)
Completely remove the given global property from the database
|
void |
LocationService.purgeLocation(Location location)
Completely remove a location from the database (not reversible) This method delegates to
#purgeLocation(location, boolean) method
|
void |
LocationService.purgeLocationTag(LocationTag tag)
Completely remove a location tag from the database (not reversible).
|
void |
ObsService.purgeMimeType(MimeType mimeType)
Deprecated.
MimeTypes are no longer used. See
ConceptComplex and its use
of handlers |
void |
ObsService.purgeObs(Obs obs)
Completely remove an observation from the database.
|
void |
ObsService.purgeObs(Obs obs,
boolean cascade)
Completely remove an observation from the database.
|
void |
OrderService.purgeOrder(Order order)
Completely delete an order from the database.
|
void |
OrderService.purgeOrderType(OrderType orderType)
Completely delete the order type from the system.
|
void |
PatientService.purgePatient(Patient patient)
Delete patient from database.
|
void |
PatientService.purgePatientIdentifier(PatientIdentifier patientIdentifier)
Purge PatientIdentifier (cannot be undone)
|
void |
PatientService.purgePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Purge PatientIdentifierType (cannot be undone)
|
void |
ProgramWorkflowService.purgePatientProgram(PatientProgram patientProgram)
Completely remove a patientProgram from the database (not reversible) This method delegates
to #purgePatientProgram(patientProgram, boolean) method
|
void |
ProgramWorkflowService.purgePatientProgram(PatientProgram patientProgram,
boolean cascade)
Completely remove a patientProgram from the database (not reversible)
|
void |
PersonService.purgePerson(Person person)
Purges a person from the database (cannot be undone)
|
void |
PersonService.purgePersonAttributeType(PersonAttributeType type)
Purges a PersonAttribute type from the database (cannot be undone)
|
void |
UserService.purgePrivilege(Privilege privilege)
Completely remove a privilege from the database
|
void |
ProgramWorkflowService.purgeProgram(Program program)
Completely remove a program from the database (not reversible) This method delegates to
#purgeProgram(program, boolean) method
|
void |
ProgramWorkflowService.purgeProgram(Program program,
boolean cascade)
Completely remove a program from the database (not reversible)
|
void |
PersonService.purgeRelationship(Relationship relationship)
Purges a relationship from the database (cannot be undone)
|
void |
PersonService.purgeRelationshipType(RelationshipType relationshipType)
Purge relationship type from the database (cannot be undone)
|
void |
UserService.purgeRole(Role role)
Complete remove a role from the database
|
void |
UserService.purgeUser(User user)
Completely remove a location from the database (not reversible).
|
void |
UserService.purgeUser(User user,
boolean cascade)
Completely remove a user from the database (not reversible).
|
void |
ConceptService.rejectConceptProposal(ConceptProposal cp)
Deprecated.
|
void |
PatientService.removeAllergy(Allergy allergy,
String reason)
Resolving the allergy, effectively removes the Allergy from the Patient's Active List by
setting the stop date to now, if null.
|
Cohort |
CohortService.removePatientFromCohort(Cohort cohort,
Patient patient)
Removes a patient from a Cohort.
|
void |
PatientService.removeProblem(Problem problem,
String reason)
Effectively removes the Problem from the Patient's Active List by setting the stop date to
now, if null.
|
Concept |
ConceptService.retireConcept(Concept conceptOrConceptNumeric,
String reason)
Retiring a concept essentially removes it from circulation
|
ConceptSource |
ConceptService.retireConceptSource(ConceptSource cs,
String reason)
This effectively removes a concept source from the database.
|
Drug |
ConceptService.retireDrug(Drug drug,
String reason)
Retiring a Drug essentially removes it from circulation
|
EncounterType |
EncounterService.retireEncounterType(EncounterType encounterType,
String reason)
Retire an EncounterType.
|
Field |
FormService.retireField(Field field)
Retires field
|
void |
FormService.retireForm(Form form,
String reason)
Retires the Form, leaving it in the database, but removing it from data entry screens
|
Location |
LocationService.retireLocation(Location location,
String reason)
Retires the given location.
|
LocationTag |
LocationService.retireLocationTag(LocationTag tag,
String reason)
Retire the given location tag.
|
OrderType |
OrderService.retireOrderType(OrderType orderType,
String reason)
This method essentially takes the given
orderType out of active use in OpenMRS. |
PatientIdentifierType |
PatientService.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason)
Retire a type of patient identifier
|
PersonAttributeType |
PersonService.retirePersonAttributeType(PersonAttributeType type,
String retiredReason)
Retire a Person Attribute Type
|
Program |
ProgramWorkflowService.retireProgram(Program program)
Retires the given program
|
RelationshipType |
PersonService.retireRelationshipType(RelationshipType type,
String retiredReason)
Retire a Person Relationship Type
|
User |
UserService.retireUser(User user,
String reason)
Deactive a user account so that it can no longer log in.
|
void |
UserService.revokeUserRole(User user,
Role role)
Deprecated.
|
void |
PatientService.saveAllergy(Allergy allergy)
Creates an AllergyListItem to the Patient's Allergy Active List.
|
void |
PatientService.saveCauseOfDeathObs(Patient patient,
Date dateDied,
Concept causeOfDeath,
String otherReason)
Convenience method that saves the Obs that indicates when and why the patient died (including
any "other" reason there might be) TODO keep this in the PatientService?
|
Cohort |
CohortService.saveCohort(Cohort cohort)
Save a cohort to the database (create if new, or update if changed) This method will throw an
exception if any patientIds in the Cohort don't exist.
|
Concept |
ConceptService.saveConcept(Concept concept)
Save or update the given
Concept or ConceptNumeric in the database |
ConceptClass |
ConceptService.saveConceptClass(ConceptClass cc)
Creates or updates a concept class
|
ConceptDatatype |
ConceptService.saveConceptDatatype(ConceptDatatype cd)
Create or update a ConceptDatatype
|
ConceptNameTag |
ConceptService.saveConceptNameTag(ConceptNameTag nameTag)
Creates a new Concept name tag if none exists.
|
ConceptProposal |
ConceptService.saveConceptProposal(ConceptProposal conceptProposal)
Saves/updates/proposes a concept proposal
|
ConceptSource |
ConceptService.saveConceptSource(ConceptSource conceptSource)
Create a new ConceptSource
|
ConceptStateConversion |
ProgramWorkflowService.saveConceptStateConversion(ConceptStateConversion conceptStateConversion)
Save ConceptStateConversion to database (create if new or update if changed)
|
Drug |
ConceptService.saveDrug(Drug drug)
Save or update the given
Drug in the database. |
Encounter |
EncounterService.saveEncounter(Encounter encounter)
Saves a new encounter or updates an existing encounter.
|
EncounterType |
EncounterService.saveEncounterType(EncounterType encounterType)
Save a new Encounter Type or update an existing Encounter Type.
|
Field |
FormService.saveField(Field field)
Creates or updates the given Field
|
FieldType |
FormService.saveFieldType(FieldType fieldType)
Saves the given field type to the database
|
Form |
FormService.saveForm(Form form)
Create or update the given Form in the database
|
FormField |
FormService.saveFormField(FormField formField)
Creates or updates the given FormField
|
List<GlobalProperty> |
AdministrationService.saveGlobalProperties(List<GlobalProperty> props)
Save the given list of global properties to the database overwriting all values with the
given values.
|
GlobalProperty |
AdministrationService.saveGlobalProperty(GlobalProperty gp)
Save the given global property to the database
|
Location |
LocationService.saveLocation(Location location)
Save location to database (create if new or update if changed)
|
LocationTag |
LocationService.saveLocationTag(LocationTag tag)
Save location tag to database (create if new or update if changed)
|
MimeType |
ObsService.saveMimeType(MimeType mimeType)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
Obs |
ObsService.saveObs(Obs obs,
String changeMessage)
Save the given obs to the database.
|
Order |
OrderService.saveOrder(Order order)
Save or update the given
order in the database |
OrderType |
OrderService.saveOrderType(OrderType orderType)
Save or update the given
orderType in the database |
Patient |
PatientService.savePatient(Patient patient)
Saved the given
patient to the database |
PatientIdentifier |
PatientService.savePatientIdentifier(PatientIdentifier patientIdentifier)
Saved the given
patientIndentifier to the database |
PatientIdentifierType |
PatientService.savePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Create or update a PatientIdentifierType
|
PatientProgram |
ProgramWorkflowService.savePatientProgram(PatientProgram patientProgram)
Save patientProgram to database (create if new or update if changed)
|
Person |
PersonService.savePerson(Person person)
Creates or updates a Person in the database
|
PersonAttributeType |
PersonService.savePersonAttributeType(PersonAttributeType type)
Save the given person attribute type in the database.
|
Privilege |
UserService.savePrivilege(Privilege privilege)
Save the given privilege in the database
|
void |
PatientService.saveProblem(Problem problem)
Creates a ProblemListItem to the Patient's Problem Active List.
|
Program |
ProgramWorkflowService.saveProgram(Program program)
Save
program to database (create if new or update if changed) |
Relationship |
PersonService.saveRelationship(Relationship relationship)
Create or update a relationship between people.
|
RelationshipType |
PersonService.saveRelationshipType(RelationshipType relationshipType)
Inserts or updates the given relationship type object in the database
|
Role |
UserService.saveRole(Role role)
Save the given role in the database
|
User |
UserService.saveUser(User user,
String password)
Saves a user to the database.
|
void |
AdministrationService.setImplementationId(ImplementationId implementationId)
Set the given
implementationId as this implementation's unique id |
void |
ProgramWorkflowService.terminatePatientProgram(PatientProgram patientProgram,
ProgramWorkflowState finalState,
Date terminatedOn)
Deprecated.
|
Order |
OrderService.undiscontinueOrder(Order order)
Un-discontinue order record.
|
Drug |
ConceptService.unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired.
|
EncounterType |
EncounterService.unretireEncounterType(EncounterType encounterType)
Unretire an EncounterType.
|
Field |
FormService.unretireField(Field field)
Unretires field
|
void |
FormService.unretireForm(Form form)
Unretires a Form that had previous been retired.
|
Location |
LocationService.unretireLocation(Location location)
Unretire the given location.
|
LocationTag |
LocationService.unretireLocationTag(LocationTag tag)
Unretire the given location tag.
|
OrderType |
OrderService.unretireOrderType(OrderType orderType)
This will bring back a previously decommissioned OrderType
|
PatientIdentifierType |
PatientService.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Unretire a type of patient identifier
|
Program |
ProgramWorkflowService.unRetireProgram(Program program)
Unretires the given program
|
User |
UserService.unretireUser(User user)
Clears retired flag for a user.
|
Encounter |
EncounterService.unvoidEncounter(Encounter encounter)
Unvoid encounter record
|
Obs |
ObsService.unvoidObs(Obs obs)
Revive an observation (pull a Lazarus)
|
Order |
OrderService.unvoidOrder(Order order)
Unvoid order record.
|
Patient |
PatientService.unvoidPatient(Patient patient)
Unvoid patient record
|
PatientProgram |
ProgramWorkflowService.unvoidPatientProgram(PatientProgram patientProgram)
Unvoids the given patientProgram
|
Person |
PersonService.unvoidPerson(Person person)
Effectively resurrects this person in the db.
|
Relationship |
PersonService.unvoidRelationship(Relationship relationship)
Unvoid Relationship in the database, effectively marking this as a valid relationship again
|
User |
UserService.unvoidUser(User user)
Deprecated.
|
Cohort |
CohortService.updateCohort(Cohort cohort)
Deprecated.
replaced by saveCohort(Cohort)
|
void |
ConceptService.updateConcept(Concept concept)
Deprecated.
use #saveConcept(Concept)
|
void |
ConceptService.updateConcept(ConceptNumeric concept)
Deprecated.
use #saveConcept(Concept)
|
void |
ConceptService.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 |
ConceptService.updateConceptIndexes()
Iterates over all concepts and calls upddateConceptIndexes(Concept concept)
|
void |
ConceptService.updateConceptIndexes(Integer conceptIdStart,
Integer conceptIdEnd)
Iterates over all concepts with conceptIds between
conceptIdStart and
conceptIdEnd (inclusive) and calls updateConceptIndexes(concept) |
void |
ConceptService.updateConceptSetDerived()
Iterates over all concepts calling updateConceptSetDerived(concept)
|
void |
ConceptService.updateConceptSetDerived(Concept concept)
Updates the concept set derived business table for this concept (bursting the concept sets)
|
void |
ProgramWorkflowService.updateConceptStateConversion(ConceptStateConversion conceptStateConversion)
|
void |
ConceptService.updateConceptWord(Concept concept)
Deprecated.
|
void |
ConceptService.updateConceptWords()
Deprecated.
|
void |
ConceptService.updateConceptWords(Integer conceptIdStart,
Integer conceptIdEnd)
Deprecated.
|
void |
ConceptService.updateDrug(Drug drug)
Deprecated.
use #saveDrug(Drug)
|
void |
EncounterService.updateEncounter(Encounter encounter)
Deprecated.
replaced by
EncounterService.saveEncounter(Encounter) |
void |
FormService.updateField(Field field)
Deprecated.
|
void |
FormService.updateForm(Form form)
Deprecated.
|
void |
FormService.updateFormField(FormField formField)
Deprecated.
|
void |
AdministrationService.updateMimeType(MimeType mimeType)
Deprecated.
|
void |
ObsService.updateObs(Obs obs)
Deprecated.
|
void |
OrderService.updateOrder(Order order)
Deprecated.
use #saveOrder(Order)
|
void |
OrderService.updateOrderType(OrderType orderType)
Deprecated.
use #saveOrderType(OrderType)
|
void |
PatientService.updatePatientIdentifier(PatientIdentifier patientIdentifier)
Deprecated.
patient identifiers should not be updated directly; rather, after changing
patient identifiers, use
PatientService.savePatient(Patient) to save changes to the
database |
void |
ProgramWorkflowService.updatePatientProgram(PatientProgram patientProgram)
Deprecated.
|
void |
PersonService.updatePerson(Person person)
Deprecated.
|
void |
PersonService.updatePersonAttributeType(PersonAttributeType type)
Deprecated.
|
void |
PersonService.updateRelationship(Relationship relationship)
Deprecated.
replaced by #saveRelationship(Relationship)
|
void |
PersonService.updateRelationshipType(RelationshipType relationshipType)
Deprecated.
replaced by #saveRelationshipType(RelationshipType)
|
void |
UserService.updateUser(User user)
Deprecated.
replaced by
UserService.saveUser(User, String) |
void |
ProgramWorkflowService.updateWorkflow(ProgramWorkflow programWorkflow)
Deprecated.
|
void |
PatientService.voidAllergy(Allergy allergy,
String reason)
Used only in cases where the Allergy was entered by error
|
Cohort |
CohortService.voidCohort(Cohort cohort,
String reason)
Voids the given cohort, deleting it from the perspective of the typical end user.
|
void |
ConceptService.voidConcept(Concept concept,
String reason)
Deprecated.
|
void |
OrderService.voidDrugSet(Patient patient,
String drugSetId,
String voidReason,
int whatToVoid)
|
Encounter |
EncounterService.voidEncounter(Encounter encounter,
String reason)
Voiding a encounter essentially removes it from circulation
|
void |
ProgramWorkflowService.voidLastState(PatientProgram patientProgram,
ProgramWorkflow wf,
String voidReason)
|
MimeType |
ObsService.voidMimeType(MimeType mimeType,
String reason)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
Obs |
ObsService.voidObs(Obs obs,
String reason)
Equivalent to deleting an observation
|
Order |
OrderService.voidOrder(Order order,
String voidReason)
Mark an order as voided.
|
Patient |
PatientService.voidPatient(Patient patient,
String reason)
Void patient record (functionally delete patient from system)
|
PatientIdentifier |
PatientService.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason)
Void patient identifier (functionally delete patient identifier from system)
|
PatientProgram |
ProgramWorkflowService.voidPatientProgram(PatientProgram patientProgram,
String reason)
Voids the given patientProgram
|
Person |
PersonService.voidPerson(Person person,
String reason)
Effectively removes this person from the system.
|
void |
PatientService.voidProblem(Problem problem,
String reason)
Used only in cases where the Problem was entered by error
|
Relationship |
PersonService.voidRelationship(Relationship relationship,
String voidReason)
Voids the given Relationship, effectively removing it from openmrs.
|
User |
UserService.voidUser(User user,
String reason)
Deprecated.
|
void |
ProgramWorkflowService.voidWorkflow(ProgramWorkflow programWorkflow,
String reason)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Integer |
HL7Service.countHL7InArchive(int messageState,
String query)
the total count of all HL7InArchive objects in the database
|
Integer |
HL7Service.countHL7InError(String query)
the total count of all HL7InError objects in the database
|
Integer |
HL7Service.countHL7InQueue(int messageState,
String query)
the total count of all HL7InQueue objects in the database
|
void |
HL7Service.createHL7InArchive(HL7InArchive hl7InArchive)
Deprecated.
|
void |
HL7Service.createHL7InError(HL7InError hl7InError)
Deprecated.
|
void |
HL7Service.createHL7InQueue(HL7InQueue hl7InQueue)
Deprecated.
|
void |
HL7Service.createHL7Source(HL7Source hl7Source)
Deprecated.
|
void |
HL7Service.deleteHL7InArchive(HL7InArchive hl7InArchive)
Deprecated.
|
void |
HL7Service.deleteHL7InError(HL7InError hl7InError)
Deprecated.
|
void |
HL7Service.deleteHL7InQueue(HL7InQueue hl7InQueue)
Deprecated.
|
void |
HL7Service.deleteHL7Source(HL7Source hl7Source)
Deprecated.
|
List<HL7InArchive> |
HL7Service.getAllHL7InArchives()
Get all archive hl7 queue items from the database
|
List<HL7InError> |
HL7Service.getAllHL7InErrors()
Get all
HL7InError items from the database |
List<HL7InQueue> |
HL7Service.getAllHL7InQueues()
Return a list of all hl7 in queues in the database
|
List<HL7Source> |
HL7Service.getAllHL7Sources()
Get all of the hl7 source objects from the database.
|
HL7InArchive |
HL7Service.getHL7InArchive(Integer hl7InArchiveId)
Get the archive item with the given id, If hl7 archives were moved to the file system, you
can't do a look up by hl7ArchiveId, instead call
HL7Service.getHL7InArchiveByUuid(String) |
List<HL7InArchive> |
HL7Service.getHL7InArchiveBatch(int start,
int length,
int messageState,
String query)
Return a list of all hl7 in archives based on batch settings and a query string
|
List<HL7InArchive> |
HL7Service.getHL7InArchiveByState(Integer state)
If hl7 migration has been run and the state matches that of processed items, the method
returns a list of all archives in the file system, for any other state , it returns an empty
list, this is because all archives would have a status of 'processed' after migration and all
deleted archives moved back into the queue with a status of 'deleted' otherwise it returns
archives with a matching state if migration hasn't yet been run.
|
Collection<HL7InArchive> |
HL7Service.getHL7InArchives()
Deprecated.
|
HL7InError |
HL7Service.getHL7InError(Integer hl7InErrorId)
Get the error item with the given id
|
List<HL7InError> |
HL7Service.getHL7InErrorBatch(int start,
int length,
String query)
Return a list of all hl7 in errors based on batch settings and a query string
|
Collection<HL7InError> |
HL7Service.getHL7InErrors()
Deprecated.
|
HL7InQueue |
HL7Service.getHL7InQueue(Integer hl7InQueueId)
Get the hl7 queue item with the given primary key id
|
List<HL7InQueue> |
HL7Service.getHL7InQueueBatch(int start,
int length,
int messageState,
String query)
Return a list of all hl7 in queues based on batch settings and a query string
|
List<HL7InQueue> |
HL7Service.getHL7InQueueByState(Integer state)
Get the queue items given a state (deleted, error, pending, processing, processed).
|
Collection<HL7InQueue> |
HL7Service.getHL7InQueues()
Deprecated.
|
HL7Source |
HL7Service.getHL7Source(Integer hl7SourceId)
Auto generated method comment
|
HL7Source |
HL7Service.getHL7Source(String name)
Deprecated.
|
HL7Source |
HL7Service.getHL7SourceByName(String name)
Get the hl7 source object from the database that has the given name
|
Collection<HL7Source> |
HL7Service.getHL7Sources()
Deprecated.
|
HL7InQueue |
HL7Service.getNextHL7InQueue()
Get the first queue item in the database
|
void |
HL7Service.migrateHl7InArchivesToFileSystem(Map<String,Integer> progressStatusMap)
Method is called by the archives migration thread to transfer hl7 in archives from the
hl7_in_archives database table to the file system
|
void |
HL7Service.purgeHL7InArchive(HL7InArchive hl7InArchive)
Completely delete the hl7 in archive item from the database
|
void |
HL7Service.purgeHL7InError(HL7InError hl7InError)
Completely remove this error item from the database
|
void |
HL7Service.purgeHL7InQueue(HL7InQueue hl7InQueue)
Completely delete the hl7 in queue item from the database.
|
void |
HL7Service.purgeHL7Source(HL7Source hl7Source)
Completely remove the source from the database.
|
HL7Source |
HL7Service.retireHL7Source(HL7Source hl7Source)
Mark the given
hl7Source as no longer active |
HL7InArchive |
HL7Service.saveHL7InArchive(HL7InArchive hl7InArchive)
Save the given hl7 in archive to the database
|
HL7InError |
HL7Service.saveHL7InError(HL7InError hl7InError)
Save the given error item to the database
|
HL7InQueue |
HL7Service.saveHL7InQueue(HL7InQueue hl7InQueue)
Save the given
hl7InQueue to the database |
HL7Source |
HL7Service.saveHL7Source(HL7Source hl7Source)
Save the given
hl7Source to the database |
void |
HL7Service.updateHL7InArchive(HL7InArchive hl7InArchive)
Deprecated.
|
void |
HL7Service.updateHL7InError(HL7InError hl7InError)
Deprecated.
|
void |
HL7Service.updateHL7Source(HL7Source hl7Source)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
AlertService.purgeAlert(Alert alert)
Completely delete the given alert from the database
|
Alert |
AlertService.saveAlert(Alert alert)
Save the given
alert in the database |
Modifier and Type | Method and Description |
---|---|
void |
SchedulerService.deleteTask(Integer id)
Delete the task with the given identifier.
|
Collection<TaskDefinition> |
SchedulerService.getRegisteredTasks()
Get the list of tasks that are available to be scheduled.
|
Collection<TaskDefinition> |
SchedulerService.getScheduledTasks()
Get scheduled tasks.
|
String |
SchedulerService.getStatus(Integer id)
Checks the status of a scheduled task.
|
TaskDefinition |
SchedulerService.getTask(Integer id)
Get the task with the given identifier.
|
TaskDefinition |
SchedulerService.getTaskByName(String name)
Get the task with the given name.
|
void |
SchedulerService.onShutdown()
Stop all tasks and clean up the scheduler instance.
|
void |
SchedulerService.onStartup()
Start all tasks that are scheduled to run on startup.
|
void |
SchedulerService.rescheduleAllTasks()
Loop over all currently started tasks and cycle them.
|
Task |
SchedulerService.rescheduleTask(TaskDefinition task)
Stop and start a scheduled task.
|
void |
SchedulerService.saveTask(TaskDefinition task)
Create the given task
|
Task |
SchedulerService.scheduleTask(TaskDefinition task)
Start a scheduled task as specified in a TaskDefinition.
|
void |
SchedulerService.shutdownTask(TaskDefinition task)
Cancel a scheduled task.
|
Modifier and Type | Method and Description |
---|---|
static List<DatabaseUpdater.OpenMRSChangeSet> |
DatabaseUpdater.getDatabaseChanges()
Looks at the current liquibase-update-to-latest.xml file and then checks the database to see
if they have been run.
|
static List<DatabaseUpdater.OpenMRSChangeSet> |
DatabaseUpdater.getUnrunDatabaseChanges()
Looks at the current liquibase-update-to-latest.xml file returns all changesets in that file
that have not been run on the database yet.
|
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.