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,
java.lang.String hashedPassword,
java.lang.String salt)
Changes the current user's password directly.
|
void |
UserService.changePassword(User u,
java.lang.String pw)
Changes the
user |
void |
UserService.changeQuestionAnswer(User u,
java.lang.String question,
java.lang.String answer)
Changes the passed user's secret question and answer.
|
void |
ProgramWorkflowService.changeToState(PatientProgram patientProgram,
ProgramWorkflow workflow,
ProgramWorkflowState state,
java.util.Date onDate)
Deprecated.
|
void |
PatientService.checkPatientIdentifier(PatientIdentifier patientIdentifier)
Deprecated.
|
void |
PatientService.checkPatientIdentifiers(Patient patient)
Convenience method to validate all identifiers for a given patient
|
java.util.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 |
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,
java.lang.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 |
ConceptService.deleteConceptStopWord(java.lang.Integer conceptStopWordId)
Delete the given
ConceptStopWord in the database |
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 |
PatientService.deletePatient(Patient patient)
Deprecated.
replaced by
PatientService.purgePatient(Patient) |
void |
PersonService.deletePerson(Person person)
Deprecated.
replaced by #purgePerson(Person)
|
void |
PersonService.deletePersonAttributeType(java.lang.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.
|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
java.lang.String reasonNonCoded,
java.util.Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Form |
FormService.duplicateForm(Form form)
Duplicate this form and form_fields associated with this form
|
Visit |
VisitService.endVisit(Visit visit,
java.util.Date stopDate)
Sets the stopDate of a given visit.
|
void |
ProgramWorkflowService.enrollPatientInProgram(Patient patient,
Program program,
java.util.Date enrollmentDate,
java.util.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.
|
java.util.List<java.util.List<java.lang.Object>> |
AdministrationService.executeSQL(java.lang.String sql,
boolean selectOnly)
Runs the
sql on the database. |
void |
PatientService.exitFromCare(Patient patient,
java.util.Date dateExited,
Concept reasonForExit)
Deprecated.
as of 1.10 and moved to exit from care module. This method is no longer supported
because previously the patient's active orders would get discontinued in the
process which is no longer happening
|
java.util.List<ConceptSearchResult> |
ConceptService.findConceptAnswers(java.lang.String phrase,
java.util.Locale locale,
Concept concept)
Finds concepts that are possible value coded answers to concept parameter
|
java.util.List<ConceptWord> |
ConceptService.findConceptAnswers(java.lang.String phrase,
java.util.Locale locale,
Concept concept,
boolean includeRetired)
Deprecated.
|
java.util.List<ConceptWord> |
ConceptService.findConcepts(java.lang.String phrase,
java.util.List<java.util.Locale> searchLocales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes)
|
java.util.List<ConceptWord> |
ConceptService.findConcepts(java.lang.String phrase,
java.util.Locale locale,
boolean includeRetired)
|
java.util.List<ConceptWord> |
ConceptService.findConcepts(java.lang.String phrase,
java.util.Locale locale,
boolean includeRetired,
int start,
int size)
|
java.util.List<ConceptWord> |
ConceptService.findConcepts(java.lang.String phrase,
java.util.Locale locale,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes)
|
java.util.List<Drug> |
ConceptService.findDrugs(java.lang.String phrase,
boolean includeVoided)
Deprecated.
|
java.util.List<Patient> |
PatientService.findDuplicatePatients(java.util.Set<java.lang.String> attributes)
Deprecated.
|
java.util.List<EncounterType> |
EncounterService.findEncounterTypes(java.lang.String name)
Find Encounter Types with name matching the beginning of the search string.
|
java.util.List<Field> |
FormService.findFields(Concept concept)
Deprecated.
|
java.util.List<Field> |
FormService.findFields(java.lang.String searchPhrase)
Deprecated.
|
java.util.List<Form> |
FormService.findForms(java.lang.String text,
boolean includeUnpublished,
boolean includeRetired)
|
java.util.List<Location> |
EncounterService.findLocations(java.lang.String name)
Deprecated.
replaced by
LocationService.getLocations(String) |
java.util.List<ConceptProposal> |
ConceptService.findMatchingConceptProposals(java.lang.String text)
Deprecated.
|
java.util.List<Obs> |
ObsService.findObsByGroupId(java.lang.Integer obsGroupId)
|
java.util.List<Obs> |
ObsService.findObservations(java.lang.String search,
boolean includeVoided,
java.lang.Integer personType)
Deprecated.
|
Patient |
PatientService.findPatient(Patient patientToMatch)
Deprecated.
use #getPatientByExample(Patient)
|
java.util.List<Patient> |
PatientService.findPatients(java.lang.String query,
boolean includeVoided)
Deprecated.
use #getPatients(String)
|
java.util.Set<Person> |
PersonService.findPeople(java.lang.String searchPhrase,
boolean includeVoided)
Deprecated.
@see #getPeople(...)
|
java.util.Set<Person> |
PersonService.findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.util.List<java.lang.String> roles)
Deprecated.
@see #getPeople(...)
|
java.util.Set<Person> |
PersonService.findPeople(java.lang.String searchPhrase,
boolean includeVoided,
java.lang.String roles)
Deprecated.
@see #getPeople(...)
|
java.util.List<Concept> |
ConceptService.findProposedConcepts(java.lang.String text)
Deprecated.
|
java.util.List<User> |
UserService.findUsers(java.lang.String name,
java.util.List<java.lang.String> roles,
boolean includeVoided)
Deprecated.
|
java.util.List<User> |
UserService.findUsers(java.lang.String givenName,
java.lang.String familyName,
boolean includeVoided)
Deprecated.
|
java.util.List<ConceptMapType> |
ConceptService.getActiveConceptMapTypes()
Returns a list of concept map types currently in the database excluding hidden ones
|
java.util.List<Order> |
OrderService.getActiveOrders(Patient patient,
OrderType orderType,
CareSetting careSetting,
java.util.Date asOfDate)
Gets all active orders for the specified patient matching the specified CareSetting,
OrderType as of the specified date.
|
java.util.List<Visit> |
VisitService.getActiveVisitsByPatient(Patient patient)
Convenience method that delegates to getVisitsByPatient(patient, false, false)
|
java.lang.String |
LocationService.getAddressTemplate()
Returns the xml of default address template.
|
java.util.List<Cohort> |
CohortService.getAllCohorts()
Gets all Cohorts (not including voided ones)
|
java.util.List<Cohort> |
CohortService.getAllCohorts(boolean includeVoided)
Gets all Cohorts, possibly including the voided ones
|
java.util.List<ConceptClass> |
ConceptService.getAllConceptClasses()
Return a list of concept classes currently in the database
|
java.util.List<ConceptClass> |
ConceptService.getAllConceptClasses(boolean includeRetired)
Return a list of concept classes currently in the database
|
java.util.List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes()
Return a list of all concept datatypes currently in the database
|
java.util.List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes(boolean includeRetired)
Return a list of concept datatypes currently in the database
|
java.util.List<ConceptProposal> |
ConceptService.getAllConceptProposals(boolean includeCompleted)
Get a List of all concept proposals
|
java.util.List<ConceptReferenceTerm> |
ConceptService.getAllConceptReferenceTerms()
Gets a list of all concept reference terms saved in the database
|
java.util.List<Concept> |
ConceptService.getAllConcepts()
Return a list of unretired concepts sorted by concept id ascending and
|
java.util.List<Concept> |
ConceptService.getAllConcepts(java.lang.String sortBy,
boolean asc,
boolean includeRetired)
Return a list of concepts sorted on sortBy in dir direction (asc/desc)
|
java.util.List<ConceptSource> |
ConceptService.getAllConceptSources()
Return a list of concept sources currently in the database that are not voided
|
java.util.List<ConceptStateConversion> |
ProgramWorkflowService.getAllConceptStateConversions()
Returns all conceptStateConversions
|
java.util.List<ConceptStateConversion> |
ProgramWorkflowService.getAllConversions()
Deprecated.
|
java.util.List<Drug> |
ConceptService.getAllDrugs()
Return a list of drugs currently in the database that are not retired
|
java.util.List<Drug> |
ConceptService.getAllDrugs(boolean includeRetired)
Get drugs by concept.
|
java.util.List<EncounterRole> |
EncounterService.getAllEncounterRoles(boolean includeRetired)
Get all encounter roles based on includeRetired flag
|
java.util.List<EncounterType> |
EncounterService.getAllEncounterTypes()
Get all encounter types (including retired)
|
java.util.List<EncounterType> |
EncounterService.getAllEncounterTypes(boolean includeRetired)
Get all encounter types.
|
java.util.List<Allergy> |
PatientService.getAllergies(Person p)
Returns a sorted set of Allergies, sorted on sort_weight
|
Allergy |
PatientService.getAllergy(java.lang.Integer allergyListId)
Returns the Allergy
|
java.util.List<Field> |
FormService.getAllFields()
Fetches all Fields in the database, including retired ones
|
java.util.List<Field> |
FormService.getAllFields(boolean includeRetired)
Fetches all Fields in the database, possibly including retired ones
|
java.util.List<FieldType> |
FormService.getAllFieldTypes()
Get all field types in the database including the retired ones
|
java.util.List<FieldType> |
FormService.getAllFieldTypes(boolean includeRetired)
Get all field types in the database with or without retired ones
|
java.util.List<FormField> |
FormService.getAllFormFields()
Returns all FormFields in the database
|
java.util.List<Form> |
FormService.getAllForms()
Gets all Forms, including retired ones.
|
java.util.List<Form> |
FormService.getAllForms(boolean includeRetired)
Gets all forms, possibly including retired ones
|
java.util.List<GlobalProperty> |
AdministrationService.getAllGlobalProperties()
Get a list of all global properties in the system
|
java.util.List<LocationAttributeType> |
LocationService.getAllLocationAttributeTypes() |
java.util.List<Location> |
LocationService.getAllLocations()
Returns all locations, includes retired locations.
|
java.util.List<Location> |
LocationService.getAllLocations(boolean includeRetired)
Returns all locations.
|
java.util.List<LocationTag> |
LocationService.getAllLocationTags()
Returns all location tags, includes retired location tags.
|
java.util.List<LocationTag> |
LocationService.getAllLocationTags(boolean includeRetired)
Returns all location tags.
|
java.util.List<MimeType> |
ObsService.getAllMimeTypes()
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
java.util.List<MimeType> |
ObsService.getAllMimeTypes(boolean includeRetired)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
java.util.List<Order> |
OrderService.getAllOrdersByPatient(Patient patient)
Gets all orders for the specified patient including discontinuation orders
|
java.util.List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes()
Get all patientIdentifier types
|
java.util.List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes(boolean includeRetired)
Get all patientIdentifier types
|
java.util.List<Patient> |
PatientService.getAllPatients()
Returns all non voided patients in the system
|
java.util.List<Patient> |
PatientService.getAllPatients(boolean includeVoided)
Returns patients in the system
|
java.util.List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes()
Get all PersonAttributeTypes in the database
|
java.util.List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes(boolean includeRetired)
Get all PersonAttributeTypes in the database with the option of including the retired types
|
java.util.List<Program> |
ProgramWorkflowService.getAllPrograms()
Returns all programs, includes retired programs.
|
java.util.List<Program> |
ProgramWorkflowService.getAllPrograms(boolean includeRetired)
Returns all programs
|
java.util.List<Provider> |
ProviderService.getAllProviders()
Gets all providers.
|
java.util.List<Provider> |
ProviderService.getAllProviders(boolean includeRetired)
Gets all Provider
|
java.util.List<Relationship> |
PersonService.getAllRelationships()
Get list of relationships that are not voided
|
java.util.List<Relationship> |
PersonService.getAllRelationships(boolean includeVoided)
Get list of relationships optionally including the voided ones or not
|
java.util.List<RelationshipType> |
PersonService.getAllRelationshipTypes()
Get all relationshipTypes Includes retired relationship types
|
java.util.List<RelationshipType> |
PersonService.getAllRelationshipTypes(boolean includeRetired)
Get all relationshipTypes with the option of including the retired types
|
java.util.List<User> |
UserService.getAllUsers()
Returns all users in the system
|
java.util.List<User> |
UserService.getAllUsers(java.util.List<Role> roles,
boolean includeVoided)
Deprecated.
|
java.util.List<VisitAttributeType> |
VisitService.getAllVisitAttributeTypes() |
java.util.List<Visit> |
VisitService.getAllVisits()
Gets all unvoided visits in the database.
|
java.util.List<VisitType> |
VisitService.getAllVisitTypes()
Gets all visit types.
|
CareSetting |
OrderService.getCareSetting(java.lang.Integer careSettingId)
Retrieve care setting
|
CareSetting |
OrderService.getCareSettingByName(java.lang.String name)
Gets the CareSetting with the specified name
|
CareSetting |
OrderService.getCareSettingByUuid(java.lang.String uuid)
Gets the CareSetting with the specified uuid
|
java.util.List<CareSetting> |
OrderService.getCareSettings(boolean includeRetired)
Gets all non retired CareSettings if includeRetired is set to true otherwise retired ones are
included too
|
Cohort |
CohortService.getCohort(java.lang.Integer id)
Gets a Cohort by its database primary key
|
Cohort |
CohortService.getCohort(java.lang.String name)
Gets a non voided Cohort by its name
|
Cohort |
CohortService.getCohortByUuid(java.lang.String uuid)
Get Cohort by its UUID
|
java.util.List<Cohort> |
CohortService.getCohorts()
Deprecated.
replaced by getAllCohorts()
|
java.util.List<Cohort> |
CohortService.getCohortsContainingPatient(Patient patient)
Find all Cohorts that contain the given patient.
|
java.util.List<Cohort> |
CohortService.getCohortsContainingPatientId(java.lang.Integer patientId)
Find all Cohorts that contain the given patientId.
|
Obs |
ObsService.getComplexObs(java.lang.Integer obsId,
java.lang.String view)
Get a complex observation.
|
Concept |
ConceptService.getConcept(java.lang.Integer conceptId)
Gets the concept with the given id
|
Concept |
ConceptService.getConcept(java.lang.String conceptIdOrName)
Get Concept by id or name convenience method
|
ConceptAnswer |
ConceptService.getConceptAnswer(java.lang.Integer conceptAnswerId)
Gets the ConceptAnswer with the given id
|
ConceptAnswer |
ConceptService.getConceptAnswerByUuid(java.lang.String uuid)
Get ConceptAnswer by its UUID
|
java.util.List<ConceptWord> |
ConceptService.getConceptAnswers(java.lang.String phrase,
java.util.Locale locale,
Concept concept)
Deprecated.
|
Concept |
ConceptService.getConceptByIdOrName(java.lang.String idOrName)
Deprecated.
|
Concept |
ConceptService.getConceptByMapping(java.lang.String code,
java.lang.String sourceName)
Looks up a concept via
ConceptMap This will return the Concept which contains
a ConceptMap entry whose sourceCode is equal to the passed
conceptCode and whose ConceptSource has either a name or
hl7Code that is equal to the passed mappingCode . |
Concept |
ConceptService.getConceptByMapping(java.lang.String code,
java.lang.String sourceName,
java.lang.Boolean includeRetired)
Looks up a concept via
ConceptMap This will return the Concept which contains
a ConceptMap entry whose sourceCode is equal to the passed
conceptCode and whose ConceptSource has either a name or
hl7Code that is equal to the passed mappingCode . |
Concept |
ConceptService.getConceptByName(java.lang.String name)
Return a Concept that matches the name exactly
|
Concept |
ConceptService.getConceptByUuid(java.lang.String uuid)
Get Concept by its UUID
|
ConceptClass |
ConceptService.getConceptClass(java.lang.Integer conceptClassId)
Return a Concept class matching the given identifier
|
ConceptClass |
ConceptService.getConceptClassByName(java.lang.String name)
Return a Concept class matching the given name
|
ConceptClass |
ConceptService.getConceptClassByUuid(java.lang.String uuid)
Get ConceptClass by its UUID
|
java.util.List<ConceptClass> |
ConceptService.getConceptClasses()
Deprecated.
|
ConceptComplex |
ConceptService.getConceptComplex(java.lang.Integer conceptId)
Get a ComplexConcept with the given conceptId
|
ConceptDatatype |
ConceptService.getConceptDatatype(java.lang.Integer i)
Return a ConceptDatatype matching the given identifier
|
ConceptDatatype |
ConceptService.getConceptDatatypeByName(java.lang.String name)
Return a Concept datatype matching the given name
|
ConceptDatatype |
ConceptService.getConceptDatatypeByUuid(java.lang.String uuid)
Get ConceptDatatype by its UUID
|
java.util.List<ConceptDatatype> |
ConceptService.getConceptDatatypes(java.lang.String name)
Deprecated.
you *probably* want to use
ConceptService.getConceptDatatypeByName(String) |
ConceptDescription |
ConceptService.getConceptDescriptionByUuid(java.lang.String uuid)
Get ConceptDescription by its UUID
|
java.util.List<ConceptMap> |
ConceptService.getConceptMappingsToSource(ConceptSource conceptSource)
Returns a list of mappings from concepts to terms in the given reference terminology
|
ConceptMapType |
ConceptService.getConceptMapType(java.lang.Integer conceptMapTypeId)
Return a concept map type matching the given concept map type id
|
ConceptMapType |
ConceptService.getConceptMapTypeByName(java.lang.String name)
Return a concept map type matching the given name
|
ConceptMapType |
ConceptService.getConceptMapTypeByUuid(java.lang.String uuid)
Return a concept map type matching the given uuid
|
java.util.List<ConceptMapType> |
ConceptService.getConceptMapTypes(boolean includeRetired,
boolean includeHidden)
Returns a list of concept map types currently in the database including or excluding retired
and hidden ones as specified by the includeRetired and includeHidden arguments
|
ConceptName |
ConceptService.getConceptName(java.lang.Integer conceptNameId)
Gets the concept-name with the given id
|
ConceptName |
ConceptService.getConceptNameByUuid(java.lang.String uuid)
Get ConceptName by its UUID
|
ConceptNameTag |
ConceptService.getConceptNameTag(java.lang.Integer id)
Gets the
ConceptNameTag with the given database primary key |
ConceptNameTag |
ConceptService.getConceptNameTagByName(java.lang.String tag)
Search for a ConceptNameTag by name
|
ConceptNameTag |
ConceptService.getConceptNameTagByUuid(java.lang.String uuid)
Get ConceptNameTag by its UUID
|
ConceptNumeric |
ConceptService.getConceptNumeric(java.lang.Integer conceptId)
Get the ConceptNumeric with the given id
|
ConceptNumeric |
ConceptService.getConceptNumericByUuid(java.lang.String uuid)
Get ConceptNumeric by its UUID
|
ConceptProposal |
ConceptService.getConceptProposal(java.lang.Integer conceptProposalId)
Get a ConceptProposal by conceptProposalId
|
ConceptProposal |
ConceptService.getConceptProposalByUuid(java.lang.String uuid)
Get ConceptProposal by its UUID
|
java.util.List<ConceptProposal> |
ConceptService.getConceptProposals(boolean includeCompleted)
Deprecated.
|
java.util.List<ConceptProposal> |
ConceptService.getConceptProposals(java.lang.String text)
Find matching concept proposals
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTerm(java.lang.Integer conceptReferenceTermId)
Gets the concept reference term with the specified concept reference term id
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTermByCode(java.lang.String code,
ConceptSource conceptSource)
Gets a concept reference term with the specified code from the specified concept source
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTermByName(java.lang.String name,
ConceptSource conceptSource)
Gets a concept reference term with the specified name from the specified concept source
ignoring all retired ones
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTermByUuid(java.lang.String uuid)
Gets the concept reference term with the specified uuid
|
java.util.List<ConceptReferenceTerm> |
ConceptService.getConceptReferenceTerms(boolean includeRetired)
Gets a list of concept reference terms saved in the database
|
java.util.List<ConceptReferenceTerm> |
ConceptService.getConceptReferenceTerms(java.lang.String query,
ConceptSource conceptSource,
java.lang.Integer start,
java.lang.Integer length,
boolean includeRetired)
Finds the concept reference term in the database that have a code or name that contains the
specified search phrase.
|
java.util.List<ConceptSearchResult> |
ConceptService.getConcepts(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
java.lang.Integer start,
java.lang.Integer size)
Searches for concepts by the given parameters.
|
java.util.List<ConceptSearchResult> |
ConceptService.getConcepts(java.lang.String phrase,
java.util.Locale locale,
boolean includeRetired)
Searches for concepts with the given parameters
|
java.util.List<Concept> |
ConceptService.getConcepts(java.lang.String sortBy,
java.lang.String dir)
Deprecated.
|
java.util.List<Concept> |
ConceptService.getConceptsByAnswer(Concept concept)
Returns all possible Concepts to which this concept is a value-coded answer.
|
java.util.List<Concept> |
ConceptService.getConceptsByClass(ConceptClass cc) |
java.util.List<Concept> |
ConceptService.getConceptsByConceptSet(Concept concept)
Return a List of all concepts within a concept set
|
java.util.List<ConceptMap> |
ConceptService.getConceptsByConceptSource(ConceptSource conceptSource)
Deprecated.
as of version 1.9, use
#getConceptMapsBySource(ConceptSource)) |
java.util.List<Concept> |
ConceptService.getConceptsByMapping(java.lang.String code,
java.lang.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 |
java.util.List<Concept> |
ConceptService.getConceptsByMapping(java.lang.String code,
java.lang.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 . |
java.util.List<Concept> |
ConceptService.getConceptsByName(java.lang.String name)
Returns a list of concepts matching any part of a concept name, this method is case
insensitive to the concept name string
|
java.util.List<Concept> |
ConceptService.getConceptsByName(java.lang.String name,
java.util.Locale locale,
java.lang.Boolean exactLocale)
Returns a list of concepts with the same name in the given locale.
|
ConceptSet |
ConceptService.getConceptSetByUuid(java.lang.String uuid)
Get ConceptSet by its UUID
|
java.util.List<ConceptSet> |
ConceptService.getConceptSets(Concept concept)
Deprecated.
|
java.util.List<ConceptSet> |
ConceptService.getConceptSetsByConcept(Concept concept)
Return a list of the concept sets with concept_set matching concept
|
java.util.List<Concept> |
ConceptService.getConceptsInSet(Concept concept)
Deprecated.
|
ConceptSource |
ConceptService.getConceptSource(java.lang.Integer i)
Return a Concept source matching the given concept source id
|
ConceptSource |
ConceptService.getConceptSourceByName(java.lang.String conceptSourceName)
Lookup a ConceptSource by its name property
|
ConceptSource |
ConceptService.getConceptSourceByUuid(java.lang.String uuid)
Get ConceptSource by its UUID
|
ConceptStateConversion |
ProgramWorkflowService.getConceptStateConversion(java.lang.Integer conceptStateConversionId)
Returns a conceptStateConversion given that conceptStateConversions primary key
conceptStateConversionId A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId. |
java.util.List<Concept> |
ConceptService.getConceptsWithDrugsInFormulary()
Convenience method for finding concepts associated with drugs in formulary.
|
java.util.List<ConceptWord> |
ConceptService.getConceptWords(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
java.lang.Integer start,
java.lang.Integer size)
|
java.util.List<ConceptWord> |
ConceptService.getConceptWords(java.lang.String phrase,
java.util.Locale locale)
Deprecated.
use
#getConcepts(String, Locale) that returns a list of
ConceptSearchResults |
java.lang.Integer |
ConceptService.getCountOfConceptReferenceTerms(java.lang.String query,
ConceptSource conceptSource,
boolean includeRetired)
Returns the count of concept reference terms that match the specified arguments
|
java.lang.Integer |
ConceptService.getCountOfConcepts(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept)
Return the number of concepts matching a search phrase and the specified arguments
|
java.lang.Integer |
ConceptService.getCountOfDrugs(java.lang.String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired)
Return the number of drugs with matching names or concept drug names
|
java.lang.Integer |
EncounterService.getCountOfEncounters(java.lang.String query,
boolean includeVoided)
Return the number of encounters matching a patient name or patient identifier
|
java.lang.Integer |
LocationService.getCountOfLocations(java.lang.String nameFragment,
java.lang.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
|
java.lang.Integer |
PatientService.getCountOfPatients(java.lang.String query)
Return the number of unvoided patients with names or patient identifiers starting with or
equal to the specified text
|
java.lang.Integer |
ProviderService.getCountOfProviders(java.lang.String query) |
java.lang.Integer |
ProviderService.getCountOfProviders(java.lang.String query,
boolean includeRetired)
Gets the count of providers with a person name or identifier or name that matches the
specified query
|
java.lang.Integer |
UserService.getCountOfUsers(java.lang.String name,
java.util.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
|
java.util.Collection<PatientProgram> |
ProgramWorkflowService.getCurrentPrograms(Patient patient,
java.util.Date onDate)
|
java.util.Set<ProgramWorkflow> |
ProgramWorkflowService.getCurrentWorkflowsByPatient(Patient patient)
Deprecated.
No current use outside of this service. Should be retrieved from Patient,
PatientProgram, and PatientState
|
java.util.Set<ProgramWorkflow> |
ProgramWorkflowService.getCurrentWorkflowsByPatientProgram(PatientProgram program)
Deprecated.
No current use outside of this service. Should be retrieved from Patient,
PatientProgram, and PatientState
|
ConceptMapType |
ConceptService.getDefaultConceptMapType()
Gets the concept map type to be used as the default.
|
Location |
LocationService.getDefaultLocation()
Returns the default location for this implementation.
|
Drug |
ConceptService.getDrug(java.lang.Integer drugId)
Get the Drug with the given id
|
Drug |
ConceptService.getDrug(java.lang.String drugNameOrId)
Return the drug object corresponding to the given name or drugId
|
Drug |
ConceptService.getDrugByMapping(java.lang.String code,
ConceptSource conceptSource,
java.util.Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference)
Gets the "best" matching drug, i.e.
|
Drug |
ConceptService.getDrugByNameOrId(java.lang.String drugId)
Return the drug object corresponding to the given name or drugId
|
Drug |
ConceptService.getDrugByUuid(java.lang.String uuid)
Get Drug by its UUID
|
java.util.List<Concept> |
OrderService.getDrugDispensingUnits()
Gets the possible units of dispensing, i.e the set members for the concept that matches the
uuid specified as the value for the global property
OpenmrsConstants.GP_DRUG_DISPENSING_UNITS_CONCEPT_UUID |
java.util.List<Concept> |
OrderService.getDrugDosingUnits()
Gets the possible drug dosing units, i.e the set members for the concept that matches the
uuid specified as the value for the global property
OpenmrsConstants.GP_DRUG_DOSING_UNITS_CONCEPT_UUID |
DrugIngredient |
ConceptService.getDrugIngredientByUuid(java.lang.String uuid)
Get Drug Ingredient by its UUID
|
java.util.List<Concept> |
OrderService.getDrugRoutes()
Gets the possible drug routes, i.e the set members for the concept that matches the uuid
specified as the value for the global property
OpenmrsConstants.GP_DRUG_ROUTES_CONCEPT_UUID |
java.util.List<Drug> |
ConceptService.getDrugs()
Deprecated.
|
java.util.List<Drug> |
ConceptService.getDrugs(Concept concept)
Deprecated.
|
java.util.List<Drug> |
ConceptService.getDrugs(java.lang.String phrase)
Find drugs in the system.
|
java.util.List<Drug> |
ConceptService.getDrugs(java.lang.String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
java.lang.Integer start,
java.lang.Integer length)
Returns a list of drugs with matching names or concept drug names and returns a specific
number of them from the specified starting position.
|
java.util.List<Drug> |
ConceptService.getDrugs(java.lang.String searchPhrase,
java.util.Locale locale,
boolean exactLocale,
boolean includeRetired)
Fetches un retired drugs that match the specified search phrase.
|
java.util.List<Drug> |
ConceptService.getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept
|
java.util.List<Drug> |
ConceptService.getDrugsByMapping(java.lang.String code,
ConceptSource conceptSource,
java.util.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
|
java.util.List<Patient> |
PatientService.getDuplicatePatientsByAttributes(java.util.List<java.lang.String> attributes)
Search the database for patients that both share the given attributes.
|
java.util.List<Concept> |
OrderService.getDurationUnits()
Gets the possible units of duration, i.e the set members for the concept that matches the
uuid specified as the value for the global property
OpenmrsConstants.GP_DURATION_UNITS_CONCEPT_UUID |
Encounter |
EncounterService.getEncounter(java.lang.Integer encounterId)
Get encounter by internal identifier
|
Encounter |
EncounterService.getEncounterByUuid(java.lang.String uuid)
Get Encounter by its UUID
|
EncounterRole |
EncounterService.getEncounterRole(java.lang.Integer encounterRoleId)
Gets an encounter role when and internal encounter role id is provided.
|
EncounterRole |
EncounterService.getEncounterRoleByUuid(java.lang.String uuid)
Get EncounterRole by its UUID
|
java.util.Collection<Encounter> |
EncounterService.getEncounters(java.util.Date fromDate,
java.util.Date toDate)
|
java.util.Collection<Encounter> |
EncounterService.getEncounters(Location loc,
java.util.Date fromDate,
java.util.Date toDate)
|
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who)
Deprecated.
replaced by
EncounterService.getEncountersByPatient(Patient) |
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
boolean includeVoided)
Deprecated.
replaced by
EncounterService.getEncountersByPatient(Patient) |
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
java.util.Date fromDate,
java.util.Date toDate)
|
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
Location where)
|
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
boolean includeVoided)
|
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
java.util.Collection<Provider> providers,
java.util.Collection<VisitType> visitTypes,
java.util.Collection<Visit> visits,
boolean includeVoided)
Get all encounters that match a variety of (nullable) criteria.
|
java.util.List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
java.util.Collection<User> providers,
boolean includeVoided)
|
java.util.List<Encounter> |
EncounterService.getEncounters(java.lang.String query,
java.lang.Integer start,
java.lang.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.
|
java.util.List<Encounter> |
EncounterService.getEncounters(java.lang.String query,
java.lang.Integer patientId,
java.lang.Integer start,
java.lang.Integer length,
boolean includeVoided)
Searches for encounters by patient id, provider identifier, location, encounter type,
provider, form or provider name.
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient, sorted by encounterDatetime ascending.
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatient(java.lang.String query)
Search for encounters by patient name or patient identifier.
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatient(java.lang.String query,
boolean includeVoided)
Search for encounters by patient name or patient identifier.
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatientId(java.lang.Integer patientId)
Get encounters for a patientId
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatientId(java.lang.Integer patientId,
boolean includeVoided)
Deprecated.
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatientIdentifier(java.lang.String identifier)
Get encounters (not voided) for a patient identifier
|
java.util.List<Encounter> |
EncounterService.getEncountersByPatientIdentifier(java.lang.String identifier,
boolean includeVoided)
Deprecated.
|
java.util.List<Encounter> |
EncounterService.getEncountersByVisit(Visit visit,
boolean includeVoided)
Gets all encounters grouped within a given visit.
|
java.util.List<Encounter> |
EncounterService.getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
java.lang.String query,
java.lang.Integer start,
java.lang.Integer length)
Gets encounters for the given patient.
|
java.lang.Integer |
EncounterService.getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
java.lang.String query)
Returns result count for
EncounterService.getEncountersByVisitsAndPatient(Patient, boolean, String, Integer, Integer) . |
java.util.List<Encounter> |
EncounterService.getEncountersNotAssignedToAnyVisit(Patient patient)
Gets the unvoided encounters for the specified patient that are not assigned to any visit.
|
EncounterType |
EncounterService.getEncounterType(java.lang.Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
EncounterService.getEncounterType(java.lang.String name)
Get encounterType by exact name
|
EncounterType |
EncounterService.getEncounterTypeByUuid(java.lang.String uuid)
Get EncounterType by its UUID
|
java.util.List<EncounterType> |
EncounterService.getEncounterTypes()
Deprecated.
replaced by
EncounterService.getAllEncounterTypes() |
Field |
FormService.getField(java.lang.Integer fieldId)
Gets a Field by internal database id
|
java.util.List<Field> |
FormService.getFields()
Deprecated.
|
java.util.List<Field> |
FormService.getFields(java.util.Collection<Form> forms,
java.util.Collection<FieldType> fieldTypes,
java.util.Collection<Concept> concepts,
java.util.Collection<java.lang.String> tableNames,
java.util.Collection<java.lang.String> attributeNames,
java.lang.Boolean selectMultiple,
java.util.Collection<FieldAnswer> containsAllAnswers,
java.util.Collection<FieldAnswer> containsAnyAnswer,
java.lang.Boolean retired)
Returns all Fields that match these (nullable) criteria
|
java.util.List<Field> |
FormService.getFields(java.lang.String fuzzySearchPhrase)
Find all Fields whose names are similar to or contain the given phrase.
|
java.util.List<Field> |
FormService.getFieldsByConcept(Concept concept)
Finds all Fields that point to the given concept, including retired ones.
|
FieldType |
FormService.getFieldType(java.lang.Integer fieldTypeId)
Get fieldType by internal identifier
|
java.util.List<FieldType> |
FormService.getFieldTypes()
Deprecated.
|
Form |
FormService.getForm(java.lang.Integer formId)
Get form by internal form identifier
|
Form |
FormService.getForm(java.lang.String name)
Get form by exact name match.
|
Form |
FormService.getForm(java.lang.String name,
java.lang.String version)
Get form by exact name & version match.
|
java.lang.Integer |
FormService.getFormCount(java.lang.String partialNameSearch,
java.lang.Boolean published,
java.util.Collection<EncounterType> encounterTypes,
java.lang.Boolean retired,
java.util.Collection<FormField> containingAnyFormField,
java.util.Collection<FormField> containingAllFormFields,
java.util.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,
java.util.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(java.lang.Integer formFieldId)
Gets a FormField by internal database id
|
java.util.List<FormField> |
FormService.getFormFields(Form form)
Deprecated.
|
java.util.List<Form> |
FormService.getForms()
Deprecated.
|
java.util.List<Form> |
FormService.getForms(boolean publishedOnly)
Deprecated.
|
java.util.List<Form> |
FormService.getForms(boolean publishedOnly,
boolean includeRetired)
|
java.util.Set<Form> |
FormService.getForms(Concept c)
Deprecated.
|
java.util.List<Form> |
FormService.getForms(java.lang.String fuzzyName,
boolean onlyLatestVersion)
Gets all forms with name similar to the given name.
|
java.util.List<Form> |
FormService.getForms(java.lang.String partialNameSearch,
java.lang.Boolean published,
java.util.Collection<EncounterType> encounterTypes,
java.lang.Boolean retired,
java.util.Collection<FormField> containingAnyFormField,
java.util.Collection<FormField> containingAllFormFields)
|
java.util.List<Form> |
FormService.getForms(java.lang.String partialNameSearch,
java.lang.Boolean published,
java.util.Collection<EncounterType> encounterTypes,
java.lang.Boolean retired,
java.util.Collection<FormField> containingAnyFormField,
java.util.Collection<FormField> containingAllFormFields,
java.util.Collection<Field> fields)
Gets all forms that match all the (nullable) criteria
|
java.util.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
|
java.util.List<Obs> |
ObsService.getLastNObservations(java.lang.Integer n,
Person who,
Concept question,
boolean includeVoided)
|
PatientState |
ProgramWorkflowService.getLatestState(PatientProgram patientProgram,
ProgramWorkflow programWorkflow)
Deprecated.
|
Location |
LocationService.getLocation(java.lang.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(java.lang.Integer locationId)
Deprecated.
replaced by
LocationService.getLocation(Integer) |
Location |
LocationService.getLocation(java.lang.String name)
Returns a location given the location's exact
name A null value is returned if
there is no location with this name |
LocationAttribute |
LocationService.getLocationAttributeByUuid(java.lang.String uuid) |
LocationAttributeType |
LocationService.getLocationAttributeType(java.lang.Integer id) |
LocationAttributeType |
LocationService.getLocationAttributeTypeByUuid(java.lang.String uuid) |
Location |
EncounterService.getLocationByName(java.lang.String name)
Deprecated.
replaced by
LocationService.getLocation(String) |
Location |
LocationService.getLocationByUuid(java.lang.String uuid)
Returns a location by uuid
|
java.util.List<Location> |
EncounterService.getLocations()
Deprecated.
replaced by
LocationService.getAllLocations() |
java.util.List<Location> |
LocationService.getLocations(java.lang.String nameFragment)
Returns locations that match the beginning of the given string.
|
java.util.List<Location> |
LocationService.getLocations(java.lang.String nameFragment,
boolean includeRetired,
java.lang.Integer start,
java.lang.Integer length)
|
java.util.List<Location> |
LocationService.getLocations(java.lang.String nameFragment,
Location parent,
java.util.Map<LocationAttributeType,java.lang.Object> attributeValues,
boolean includeRetired,
java.lang.Integer start,
java.lang.Integer length)
Gets the locations matching the specified arguments.
|
java.util.List<Location> |
LocationService.getLocationsByTag(LocationTag tag)
Returns locations that contain the given tag.
|
java.util.List<Location> |
LocationService.getLocationsHavingAllTags(java.util.List<LocationTag> tags)
Returns locations that are mapped to all given tags.
|
java.util.List<Location> |
LocationService.getLocationsHavingAnyTag(java.util.List<LocationTag> tags)
Returns locations that are mapped to any of the given tags.
|
LocationTag |
LocationService.getLocationTag(java.lang.Integer locationTagId)
Returns a location tag given that locations primary key
locationTagId . |
LocationTag |
LocationService.getLocationTagByName(java.lang.String tag)
Returns a location tag given the location's exact name (tag).
|
LocationTag |
LocationService.getLocationTagByUuid(java.lang.String uuid)
Returns a location tag by uuid
|
java.util.List<LocationTag> |
LocationService.getLocationTags(java.lang.String search)
Returns location tags that match the beginning of the given string.
|
MimeType |
ObsService.getMimeType(java.lang.Integer mimeTypeId)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
java.util.List<MimeType> |
ObsService.getMimeTypes()
Deprecated.
|
Concept |
ConceptService.getNextConcept(Concept concept)
Finds the next concept in the dictionary that has the next largest concept id
|
java.lang.Long |
OrderService.getNextOrderNumberSeedSequenceValue()
Gets the next available order number seed
|
java.util.List<java.lang.Object[]> |
ObsService.getNumericAnswersForConcept(Concept answer,
java.lang.Boolean sortByValue,
java.lang.Integer personType,
boolean includeVoided)
|
Obs |
ObsService.getObs(java.lang.Integer obsId)
Get an observation
|
Obs |
ObsService.getObsByUuid(java.lang.String uuid)
Get Obs by its UUID
|
java.lang.Integer |
ObsService.getObservationCount(java.util.List<ConceptName> conceptNames,
boolean includeVoided)
Gets the number of observations(including voided ones) that are using the specified
conceptNames as valueCodedName answers
|
java.lang.Integer |
ObsService.getObservationCount(java.util.List<Person> whom,
java.util.List<Encounter> encounters,
java.util.List<Concept> questions,
java.util.List<Concept> answers,
java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes,
java.util.List<Location> locations,
java.lang.Integer obsGroupId,
java.util.Date fromDate,
java.util.Date toDate,
boolean includeVoidedObs)
This method fetches the count of observations according to the criteria in the given
arguments.
|
java.util.List<Obs> |
ObsService.getObservations(Cohort patients,
java.util.List<Concept> concepts,
java.util.Date fromDate,
java.util.Date toDate)
|
java.util.List<Obs> |
ObsService.getObservations(Concept c,
Location loc,
java.lang.String sort,
java.lang.Integer personType,
boolean includeVoided)
|
java.util.List<Obs> |
ObsService.getObservations(Concept question,
java.lang.String sort,
java.lang.Integer personType,
boolean includeVoided)
|
java.util.Set<Obs> |
ObsService.getObservations(Encounter whichEncounter)
Deprecated.
use
org.openmrs |
java.util.List<Obs> |
ObsService.getObservations(java.util.List<Concept> concepts,
java.util.Date fromDate,
java.util.Date toDate)
|
java.util.List<Obs> |
ObsService.getObservations(java.util.List<Concept> concepts,
java.util.Date fromDate,
java.util.Date toDate,
boolean includeVoided)
|
java.util.List<Obs> |
ObsService.getObservations(java.util.List<Person> whom,
java.util.List<Encounter> encounters,
java.util.List<Concept> questions,
java.util.List<Concept> answers,
java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes,
java.util.List<Location> locations,
java.util.List<java.lang.String> sort,
java.lang.Integer mostRecentN,
java.lang.Integer obsGroupId,
java.util.Date fromDate,
java.util.Date toDate,
boolean includeVoidedObs)
This method fetches observations according to the criteria in the given arguments.
|
java.util.Set<Obs> |
ObsService.getObservations(Person who,
boolean includeVoided)
Deprecated.
|
java.util.Set<Obs> |
ObsService.getObservations(Person who,
Concept question,
boolean includeVoided)
Deprecated.
|
java.util.List<Obs> |
ObsService.getObservations(java.lang.String searchString)
This method searches the obs table based on the given
searchString . |
java.util.List<Obs> |
ObsService.getObservationsAnsweredByConcept(Concept answer,
java.lang.Integer personType,
boolean includeVoided)
|
java.util.List<Obs> |
ObsService.getObservationsByPerson(Person who)
Get all Observations for the given person, sorted by obsDatetime ascending.
|
java.util.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(java.lang.Integer orderId)
Get order by internal primary key identifier
|
Order |
OrderService.getOrderByOrderNumber(java.lang.String orderNumber)
Gets the order identified by a given order number
|
Order |
OrderService.getOrderByUuid(java.lang.String uuid)
Get Order by its UUID
|
java.util.List<OrderFrequency> |
OrderService.getOrderFrequencies(boolean includeRetired)
Gets all order frequencies
|
java.util.List<OrderFrequency> |
OrderService.getOrderFrequencies(java.lang.String searchPhrase,
java.util.Locale locale,
boolean exactLocale,
boolean includeRetired)
Gets all non retired order frequencies associated to concepts that match the specified search
phrase
|
OrderFrequency |
OrderService.getOrderFrequency(java.lang.Integer orderFrequencyId)
Gets OrderFrequency that matches the specified orderFrequencyId
|
OrderFrequency |
OrderService.getOrderFrequencyByConcept(Concept concept)
Gets an OrderFrequency that matches the specified concept
|
OrderFrequency |
OrderService.getOrderFrequencyByUuid(java.lang.String uuid)
Gets OrderFrequency that matches the specified uuid
|
java.util.List<Order> |
OrderService.getOrderHistoryByConcept(Patient patient,
Concept concept)
Gets all Order objects that use this Concept for a given patient.
|
java.util.List<Order> |
OrderService.getOrderHistoryByOrderNumber(java.lang.String orderNumber)
Gets the order matching the specified order number and its previous orders in the ordering
they occurred, i.e if this order has a previous order, fetch it and if it also has a previous
order then fetch it until the original one with no previous order is reached
|
java.util.List<Order> |
OrderService.getOrders(Patient patient,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided)
Gets all Orders that match the specified parameters excluding discontinuation orders
|
OrderType |
OrderService.getOrderType(java.lang.Integer orderTypeId)
Get OrderType by orderTypeId
|
OrderType |
OrderService.getOrderTypeByConcept(Concept concept)
Gets the order type mapped to a given concept
|
OrderType |
OrderService.getOrderTypeByConceptClass(ConceptClass conceptClass)
Gets the order type mapped to a given concept class
|
OrderType |
OrderService.getOrderTypeByName(java.lang.String orderTypeName)
Gets OrderType that matches the specified name
|
OrderType |
OrderService.getOrderTypeByUuid(java.lang.String uuid)
Get OrderType by uuid
|
java.util.List<OrderType> |
OrderService.getOrderTypes(boolean includeRetired)
Get all order types, if includeRetired is set to true then retired ones will be included
otherwise not
|
Patient |
PatientService.getPatient(java.lang.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(java.lang.String uuid)
Get patient by universally unique identifier.
|
PatientIdentifier |
PatientService.getPatientIdentifier(java.lang.Integer patientIdentifierId)
Returns a patient identifier that matches the given patientIndentifier id
|
PatientIdentifier |
PatientService.getPatientIdentifierByUuid(java.lang.String uuid)
Get patient identifier by universally unique identifier.
|
java.util.List<PatientIdentifier> |
PatientService.getPatientIdentifiers(PatientIdentifierType patientIdentifierType)
Deprecated.
|
java.util.List<PatientIdentifier> |
PatientService.getPatientIdentifiers(java.lang.String identifier,
java.util.List<PatientIdentifierType> patientIdentifierTypes,
java.util.List<Location> locations,
java.util.List<Patient> patients,
java.lang.Boolean isPreferred)
Get all patientIdentifiers that match all of the given criteria Voided identifiers are not
returned
|
java.util.List<PatientIdentifier> |
PatientService.getPatientIdentifiers(java.lang.String identifier,
PatientIdentifierType pit)
Deprecated.
|
PatientIdentifierType |
PatientService.getPatientIdentifierType(java.lang.Integer patientIdentifierTypeId)
Get patientIdentifierType by internal identifier
|
PatientIdentifierType |
PatientService.getPatientIdentifierType(java.lang.String name)
Deprecated.
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByName(java.lang.String name)
Get patientIdentifierType by exact name
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByUuid(java.lang.String uuid)
Get patient identifierType by universally unique identifier
|
java.util.List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes()
Deprecated.
replaced by
PatientService.getAllPatientIdentifierTypes() |
java.util.List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes(java.lang.String name,
java.lang.String format,
java.lang.Boolean required,
java.lang.Boolean hasCheckDigit)
Get all patientIdentifier types that match the given criteria
|
Patient |
PatientService.getPatientOrPromotePerson(java.lang.Integer patientOrPersonId)
Get patient by internal identifier.
|
PatientProgram |
ProgramWorkflowService.getPatientProgram(java.lang.Integer patientProgramId)
Returns a PatientProgram given that PatientPrograms primary key
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId. |
java.util.List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Cohort cohort,
java.util.Collection<Program> programs)
TODO: refactor?
|
java.util.Collection<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Patient patient)
|
java.util.List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Patient patient,
Program program,
java.util.Date minEnrollmentDate,
java.util.Date maxEnrollmentDate,
java.util.Date minCompletionDate,
java.util.Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters.
|
java.util.List<Patient> |
PatientService.getPatients(java.lang.String query)
Generic search on patients based on the given string.
|
java.util.List<Patient> |
PatientService.getPatients(java.lang.String query,
java.lang.Integer start,
java.lang.Integer length)
Generic search on patients based on the given string and returns a specific number of them
from the specified starting position.
|
java.util.List<Patient> |
PatientService.getPatients(java.lang.String name,
java.lang.String identifier,
java.util.List<PatientIdentifierType> identifierTypes)
Deprecated.
replaced by a call to
PatientService.getPatients(String, String, List, boolean) with
"false" as the last parameter |
java.util.List<Patient> |
PatientService.getPatients(java.lang.String name,
java.lang.String identifier,
java.util.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. |
java.util.List<Patient> |
PatientService.getPatients(java.lang.String name,
java.lang.String identifier,
java.util.List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
java.lang.Integer start,
java.lang.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. |
java.util.List<Patient> |
PatientService.getPatientsByIdentifierPattern(java.lang.String identifier,
boolean includeVoided)
Deprecated.
replaced by getPatients( ... )
|
java.util.List<Patient> |
PatientService.getPatientsByName(java.lang.String name)
Deprecated.
replaced by
PatientService.getPatients(String, String, List) |
java.util.List<Patient> |
PatientService.getPatientsByName(java.lang.String name,
boolean includeVoided)
Deprecated.
replaced by getPatients( ... )
|
PatientState |
ProgramWorkflowService.getPatientState(java.lang.Integer patientStateId)
Deprecated.
|
java.util.List<Person> |
PersonService.getPeople(java.lang.String searchPhrase,
java.lang.Boolean dead)
Find a person matching the searchPhrase search string
|
Person |
PersonService.getPerson(java.lang.Integer personId)
Gets a person by internal id
|
Person |
PersonService.getPerson(Patient pat)
Deprecated.
|
Person |
PersonService.getPerson(User user)
Deprecated.
|
PersonAddress |
PersonService.getPersonAddressByUuid(java.lang.String uuid)
Get PersonAddress by its UUID
|
PersonAttribute |
PersonService.getPersonAttribute(java.lang.Integer id)
Get a PersonAttribute from the database with the given PersonAttributeid
|
PersonAttribute |
PersonService.getPersonAttributeByUuid(java.lang.String uuid)
Get PersonAttribute by its UUID
|
PersonAttributeType |
PersonService.getPersonAttributeType(java.lang.Integer typeId)
Get the PersonAttributeType given the type's PersonAttributeTypeId
|
PersonAttributeType |
PersonService.getPersonAttributeType(java.lang.String typeName)
Deprecated.
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByName(java.lang.String typeName)
Get the PersonAttributeType given the type's name
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByUuid(java.lang.String uuid)
Gets a person attribute type with the given uuid.
|
java.util.List<PersonAttributeType> |
PersonService.getPersonAttributeTypes()
Deprecated.
|
java.util.List<PersonAttributeType> |
PersonService.getPersonAttributeTypes(java.lang.String exactName,
java.lang.String format,
java.lang.Integer foreignKey,
java.lang.Boolean searchable)
Find person attribute types matching the given parameters.
|
Person |
PersonService.getPersonByUuid(java.lang.String uuid)
Get Person by its UUID
|
PersonName |
PersonService.getPersonName(java.lang.Integer personNameId)
Get PersonName by its personNameId
|
PersonName |
PersonService.getPersonNameByUuid(java.lang.String uuid)
Get PersonName by its UUID
|
java.util.List<ProgramWorkflowState> |
ProgramWorkflowService.getPossibleNextStates(PatientProgram patientProgram,
ProgramWorkflow workflow)
Deprecated.
|
java.util.List<Concept> |
ProgramWorkflowService.getPossibleOutcomes(java.lang.Integer programId)
Get all possible outcome concepts for a program.
|
Concept |
ConceptService.getPrevConcept(Concept concept)
Finds the previous concept in the dictionary that has the next lowest concept id
|
Problem |
PatientService.getProblem(java.lang.Integer problemListId)
Returns the Problem
|
java.util.List<Problem> |
PatientService.getProblems(Person p)
Get a list of the problems for the patient, sorted on sort_weight
|
Program |
ProgramWorkflowService.getProgram(java.lang.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(java.lang.String name)
Returns a program given the program's exact
name A null value is returned if
there is no program with this name |
java.util.List<Program> |
ProgramWorkflowService.getPrograms()
Deprecated.
|
java.util.List<Program> |
ProgramWorkflowService.getPrograms(java.lang.String nameFragment)
Returns programs that match the given string.
|
java.util.List<Concept> |
ConceptService.getProposedConcepts(java.lang.String text)
Find matching proposed concepts
|
Provider |
ProviderService.getProvider(java.lang.Integer providerId)
Gets a provider by its provider id
|
Provider |
ProviderService.getProviderByIdentifier(java.lang.String identifier)
Gets a provider with a matching identifier, this method performs a case insensitive search
|
Provider |
ProviderService.getProviderByUuid(java.lang.String uuid) |
java.util.List<Provider> |
ProviderService.getProviders(java.lang.String query,
java.lang.Integer start,
java.lang.Integer length,
java.util.Map<ProviderAttributeType,java.lang.Object> attributes) |
java.util.List<Provider> |
ProviderService.getProviders(java.lang.String query,
java.lang.Integer start,
java.lang.Integer length,
java.util.Map<ProviderAttributeType,java.lang.Object> attributes,
boolean includeRetired) |
java.util.Collection<Provider> |
ProviderService.getProvidersByPerson(Person person)
Gets the Providers for the given person.
|
java.util.Collection<Provider> |
ProviderService.getProvidersByPerson(Person person,
boolean includeRetired)
Gets the Providers for the given person including or excluding retired.
|
java.util.List<Form> |
FormService.getPublishedForms()
Returns all published forms (not including retired ones)
|
java.util.List<Concept> |
ConceptService.getQuestionsForAnswer(Concept concept)
Deprecated.
use #getConceptsByAnswer(Concept)
|
java.util.List<ConceptReferenceTermMap> |
ConceptService.getReferenceTermMappingsTo(ConceptReferenceTerm term)
Fetches all the
ConceptReferenceTermMap where the specified reference term is the
termB i.e mappings added to other terms pointing to it |
Relationship |
PersonService.getRelationship(java.lang.Integer relationshipId)
Get relationship by internal relationship identifier
|
Relationship |
PersonService.getRelationshipByUuid(java.lang.String uuid)
Get Relationship by its UUID
|
java.util.Map<Person,java.util.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
|
java.util.List<Relationship> |
PersonService.getRelationships()
Deprecated.
|
java.util.List<Relationship> |
PersonService.getRelationships(Person p)
Deprecated.
|
java.util.List<Relationship> |
PersonService.getRelationships(Person p,
boolean showVoided)
Deprecated.
|
java.util.List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
Get relationships stored in the database that
|
java.util.List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
java.util.Date effectiveDate)
Get relationships stored in the database that are active on the passed date
|
java.util.List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
java.util.Date startEffectiveDate,
java.util.Date endEffectiveDate)
Get relationships stored in the database that were active during the specified date range
|
java.util.List<Relationship> |
PersonService.getRelationshipsByPerson(Person p)
Get list of relationships that include Person in person_id or relative_id Does not include
voided relationships
|
java.util.List<Relationship> |
PersonService.getRelationshipsByPerson(Person p,
java.util.Date effectiveDate)
Get list of relationships that include Person in person_id or relative_id.
|
java.util.List<Relationship> |
PersonService.getRelationshipsTo(Person toPerson,
RelationshipType relType)
Deprecated.
|
RelationshipType |
PersonService.getRelationshipType(java.lang.Integer relationshipTypeId)
Get relationshipType by internal identifier
|
RelationshipType |
PersonService.getRelationshipTypeByName(java.lang.String relationshipTypeName)
Find relationshipType by exact name match
|
RelationshipType |
PersonService.getRelationshipTypeByUuid(java.lang.String uuid)
Gets the relationship type with the given uuid.
|
java.util.List<RelationshipType> |
PersonService.getRelationshipTypes(java.lang.String searchString)
Get relationshipTypes by searching through the names and loosely matching to the given
searchString
|
java.util.List<RelationshipType> |
PersonService.getRelationshipTypes(java.lang.String relationshipTypeName,
java.lang.Boolean preferred)
Find relationshipTypes by exact name match and/or preferred status
|
java.util.List<Location> |
LocationService.getRootLocations(boolean includeRetired)
Returns all root locations (i.e.
|
java.util.List<ConceptSet> |
ConceptService.getSetsContainingConcept(Concept concept)
Find all sets that the given concept is a member of
|
java.util.Set<Person> |
PersonService.getSimilarPeople(java.lang.String nameSearch,
java.lang.Integer birthyear,
java.lang.String gender)
Find a similar person given the attributes.
|
ProgramWorkflowState |
ProgramWorkflowService.getState(java.lang.Integer id)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
ProgramWorkflowState |
ProgramWorkflowService.getState(ProgramWorkflow programWorkflow,
java.lang.String name)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
java.util.List<ProgramWorkflowState> |
ProgramWorkflowService.getStates()
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
java.util.List<ProgramWorkflowState> |
ProgramWorkflowService.getStates(boolean includeVoided)
Deprecated.
ProgramWorkflowStates should be retrieved from the
ProgramWorkflow they
belong to |
java.util.List<OrderType> |
OrderService.getSubtypes(OrderType orderType,
boolean includeRetired)
Returns all descendants of a given order type for example Given TEST will get back LAB TEST
and RADIOLOGY TEST; and Given LAB TEST, will might get back SEROLOGY, MICROBIOLOGY, and
CHEMISTRY
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
AdministrationService.getSystemInformation()
Get a map of all the System Information.
|
java.util.SortedMap<java.lang.String,java.lang.String> |
AdministrationService.getSystemVariables()
Get a listing or important variables used in openmrs
|
java.util.List<Concept> |
OrderService.getTestSpecimenSources()
Gets the possible test specimen sources, i.e the set members for the concept that matches the
uuid specified as the value for the global property
OpenmrsConstants.GP_TEST_SPECIMEN_SOURCES_CONCEPT_UUID |
Provider |
ProviderService.getUnknownProvider()
Gets the unknown provider account, i.e.
|
User |
UserService.getUser(java.lang.Integer userId)
Get user by internal user identifier.
|
User |
UserService.getUserByUsername(java.lang.String username)
Get user by username (user's login identifier)
|
User |
UserService.getUserByUuid(java.lang.String uuid)
Get user by the given uuid.
|
java.util.List<User> |
UserService.getUsers()
Deprecated.
|
java.util.List<User> |
UserService.getUsers(java.lang.String nameSearch,
java.util.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 |
java.util.List<User> |
UserService.getUsers(java.lang.String name,
java.util.List<Role> roles,
boolean includeRetired,
java.lang.Integer start,
java.lang.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. |
java.util.List<User> |
UserService.getUsersByName(java.lang.String givenName,
java.lang.String familyName,
boolean includeRetired)
Search for a list of users by exact first name and last name.
|
java.util.List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
java.util.List<User> |
UserService.getUsersByRole(Role role)
Get users by role granted
|
Visit |
VisitService.getVisit(java.lang.Integer visitId)
Gets a visit by its visit id.
|
VisitAttribute |
VisitService.getVisitAttributeByUuid(java.lang.String uuid) |
VisitAttributeType |
VisitService.getVisitAttributeType(java.lang.Integer id) |
VisitAttributeType |
VisitService.getVisitAttributeTypeByUuid(java.lang.String uuid) |
Visit |
VisitService.getVisitByUuid(java.lang.String uuid)
Gets a visit by its UUID.
|
java.util.List<Visit> |
VisitService.getVisits(java.util.Collection<VisitType> visitTypes,
java.util.Collection<Patient> patients,
java.util.Collection<Location> locations,
java.util.Collection<Concept> indications,
java.util.Date minStartDatetime,
java.util.Date maxStartDatetime,
java.util.Date minEndDatetime,
java.util.Date maxEndDatetime,
java.util.Map<VisitAttributeType,java.lang.Object> attributeValues,
boolean includeInactive,
boolean includeVoided)
Gets the visits matching the specified arguments
|
java.util.List<Visit> |
VisitService.getVisitsByPatient(Patient patient)
Gets all unvoided visits for the specified patient
|
java.util.List<Visit> |
VisitService.getVisitsByPatient(Patient patient,
boolean includeInactive,
boolean includeVoided)
Gets all visits for the specified patient
|
VisitType |
VisitService.getVisitType(java.lang.Integer visitTypeId)
Gets a visit type by its visit type id.
|
VisitType |
VisitService.getVisitTypeByUuid(java.lang.String uuid)
Gets a visit type by its UUID.
|
java.util.List<VisitType> |
VisitService.getVisitTypes(java.lang.String fuzzySearchPhrase)
Gets all visit types whose names are similar to or contain the given search phrase.
|
java.util.List<Obs> |
ObsService.getVoidedObservations()
|
ProgramWorkflow |
ProgramWorkflowService.getWorkflow(java.lang.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,
java.lang.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,
java.util.Date fromDate,
java.util.Date toDate)
|
boolean |
ProgramWorkflowService.isLegalTransition(ProgramWorkflowState fromState,
ProgramWorkflowState toState)
|
boolean |
ProviderService.isProviderIdentifierUnique(Provider provider)
Checks if the identifier for the specified provider is unique
|
Concept |
ConceptService.mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept)
Maps a concept proposal to a concept
|
Concept |
ConceptService.mapConceptProposalToConcept(ConceptProposal cp,
Concept mappedConcept,
java.util.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.
|
java.util.Collection<java.lang.Integer> |
ProgramWorkflowService.patientsInProgram(Program program,
java.util.Date fromDate,
java.util.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,
java.util.Date dateDied,
Concept causeOfDeath,
java.lang.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)
Deprecated.
as of 1.9 because users should never delete datatypes, it could harm data and
other code expecting them to be here
|
void |
ConceptService.purgeConceptMapType(ConceptMapType conceptMapType)
Completely purges a concept map type from the database
|
void |
ConceptService.purgeConceptProposal(ConceptProposal cp)
Removes a concept proposal from the database entirely.
|
void |
ConceptService.purgeConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Purges the specified concept reference term from the database
|
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.purgeEncounterRole(EncounterRole encounterRole)
Completely remove an encounter role 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(java.util.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.purgeLocationAttributeType(LocationAttributeType locationAttributeType)
Completely removes a location attribute type from the database
|
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.purgeOrder(Order order,
boolean cascade)
Completely delete an order from the database.
|
void |
OrderService.purgeOrderFrequency(OrderFrequency orderFrequency)
Completely removes an order frequency from the database
|
void |
OrderService.purgeOrderType(OrderType orderType)
Completely removes an order type from the database
|
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 |
ProviderService.purgeProvider(Provider provider)
Deletes a given Provider
|
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 |
VisitService.purgeVisit(Visit visit)
Completely erases a visit from the database.
|
void |
VisitService.purgeVisitAttributeType(VisitAttributeType visitAttributeType)
Completely removes a visit attribute type from the database
|
void |
VisitService.purgeVisitType(VisitType visitType)
Completely removes a visit type from the database.
|
void |
ConceptService.rejectConceptProposal(ConceptProposal cp)
Deprecated.
|
void |
PatientService.removeAllergy(Allergy allergy,
java.lang.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,
java.lang.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,
java.lang.String reason)
Retiring a concept essentially removes it from circulation
|
ConceptMapType |
ConceptService.retireConceptMapType(ConceptMapType conceptMapType,
java.lang.String retireReason)
Retiring a concept map type essentially removes it from circulation
|
ConceptReferenceTerm |
ConceptService.retireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm,
java.lang.String retireReason)
Retiring a concept reference term essentially removes it from circulation
|
ConceptSource |
ConceptService.retireConceptSource(ConceptSource cs,
java.lang.String reason)
This effectively removes a concept source from the database.
|
Drug |
ConceptService.retireDrug(Drug drug,
java.lang.String reason)
Retiring a Drug essentially removes it from circulation
|
EncounterRole |
EncounterService.retireEncounterRole(EncounterRole encounterRole,
java.lang.String reason)
Retire an EncounterRole.
|
EncounterType |
EncounterService.retireEncounterType(EncounterType encounterType,
java.lang.String reason)
Retire an EncounterType.
|
Field |
FormService.retireField(Field field)
Retires field
|
void |
FormService.retireForm(Form form,
java.lang.String reason)
Retires the Form, leaving it in the database, but removing it from data entry screens
|
Location |
LocationService.retireLocation(Location location,
java.lang.String reason)
Retires the given location.
|
LocationAttributeType |
LocationService.retireLocationAttributeType(LocationAttributeType locationAttributeType,
java.lang.String reason)
Retires the given location attribute type in the database
|
LocationTag |
LocationService.retireLocationTag(LocationTag tag,
java.lang.String reason)
Retire the given location tag.
|
OrderFrequency |
OrderService.retireOrderFrequency(OrderFrequency orderFrequency,
java.lang.String reason)
Retires the given order frequency in the database
|
OrderType |
OrderService.retireOrderType(OrderType orderType,
java.lang.String reason)
Retires the given order type in the database
|
PatientIdentifierType |
PatientService.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
java.lang.String reason)
Retire a type of patient identifier
|
PersonAttributeType |
PersonService.retirePersonAttributeType(PersonAttributeType type,
java.lang.String retiredReason)
Retire a Person Attribute Type
|
Program |
ProgramWorkflowService.retireProgram(Program program)
Retires the given program
|
void |
ProviderService.retireProvider(Provider provider,
java.lang.String reason)
Retires a given Provider
|
RelationshipType |
PersonService.retireRelationshipType(RelationshipType type,
java.lang.String retiredReason)
Retire a Person Relationship Type
|
User |
UserService.retireUser(User user,
java.lang.String reason)
Deactive a user account so that it can no longer log in.
|
VisitAttributeType |
VisitService.retireVisitAttributeType(VisitAttributeType visitAttributeType,
java.lang.String reason)
Retires the given visit attribute type in the database
|
VisitType |
VisitService.retireVisitType(VisitType visitType,
java.lang.String reason)
Retires a given visit type.
|
void |
UserService.revokeUserRole(User user,
Role role)
Deprecated.
|
void |
LocationService.saveAddressTemplate(java.lang.String xml)
Saved default address template to global properties
|
void |
PatientService.saveAllergy(Allergy allergy)
Creates an AllergyListItem to the Patient's Allergy Active List.
|
void |
PatientService.saveCauseOfDeathObs(Patient patient,
java.util.Date dateDied,
Concept causeOfDeath,
java.lang.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)
Deprecated.
as of 1.9 because users should never change datatypes, it could harm data and
other code expecting them to be here
|
ConceptMapType |
ConceptService.saveConceptMapType(ConceptMapType conceptMapType)
Saves or updates the specified concept map type in the database
|
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
|
ConceptReferenceTerm |
ConceptService.saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Stores the specified concept reference term to the database
|
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)
|
ConceptStopWord |
ConceptService.saveConceptStopWord(ConceptStopWord conceptStopWord)
Save the given
ConceptStopWord in the database |
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.
|
EncounterRole |
EncounterService.saveEncounterRole(EncounterRole encounterRole)
Saves a new encounter role or updates an existing encounter role.
|
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
|
java.util.List<GlobalProperty> |
AdministrationService.saveGlobalProperties(java.util.List<GlobalProperty> props)
Save the given list of global properties to the database.
|
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)
|
LocationAttributeType |
LocationService.saveLocationAttributeType(LocationAttributeType locationAttributeType)
Creates or updates the given location attribute type in the database
|
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,
java.lang.String changeMessage)
Save the given obs to the database.
|
Order |
OrderService.saveOrder(Order order,
OrderContext orderContext)
Save or update the given
order in the database. |
OrderFrequency |
OrderService.saveOrderFrequency(OrderFrequency orderFrequency)
Creates or updates the given order frequency in the database
|
OrderType |
OrderService.saveOrderType(OrderType orderType)
Creates or updates the given order type 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
|
PersonAddress |
PersonService.savePersonAddress(PersonAddress personAddress)
Inserts or updates the given personAddress object in the database
|
PersonAttributeType |
PersonService.savePersonAttributeType(PersonAttributeType type)
Save the given person attribute type in the database.
|
PersonName |
PersonService.savePersonName(PersonName personName)
Inserts or updates the given personName object 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) |
Provider |
ProviderService.saveProvider(Provider provider) |
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,
java.lang.String password)
Saves a user to the database.
|
Visit |
VisitService.saveVisit(Visit visit)
Creates or updates the given visit in the database.
|
VisitAttributeType |
VisitService.saveVisitAttributeType(VisitAttributeType visitAttributeType)
Creates or updates the given visit attribute type in the database
|
VisitType |
VisitService.saveVisitType(VisitType visitType)
Creates or updates the given visit type in the database.
|
void |
AdministrationService.setImplementationId(ImplementationId implementationId)
Set the given
implementationId as this implementation's unique id |
void |
VisitService.stopVisits(java.util.Date maximumStartDate)
Stops all active visits started before or on the specified date which match any of the visit
types specified by the
OpenmrsConstants.GP_VISIT_TYPES_TO_AUTO_CLOSE global property. |
void |
ProgramWorkflowService.terminatePatientProgram(PatientProgram patientProgram,
ProgramWorkflowState finalState,
java.util.Date terminatedOn)
Deprecated.
|
ConceptMapType |
ConceptService.unretireConceptMapType(ConceptMapType conceptMapType)
Marks a concept map type that is currently retired as not retired.
|
ConceptReferenceTerm |
ConceptService.unretireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm)
Marks a concept reference term that is currently retired as not retired.
|
Drug |
ConceptService.unretireDrug(Drug drug)
Marks a drug that is currently retired as not retired.
|
EncounterRole |
EncounterService.unretireEncounterRole(EncounterRole encounterType)
Unretire an EncounterRole.
|
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.
|
LocationAttributeType |
LocationService.unretireLocationAttributeType(LocationAttributeType locationAttributeType)
Restores a location attribute type that was previous retired in the database
|
LocationTag |
LocationService.unretireLocationTag(LocationTag tag)
Unretire the given location tag.
|
OrderFrequency |
OrderService.unretireOrderFrequency(OrderFrequency orderFrequency)
Restores an order frequency that was previously retired in the database
|
OrderType |
OrderService.unretireOrderType(OrderType orderType)
Restores an order type that was previously retired in the database
|
PatientIdentifierType |
PatientService.unretirePatientIdentifierType(PatientIdentifierType patientIdentifierType)
Unretire a type of patient identifier
|
void |
PersonService.unretirePersonAttributeType(PersonAttributeType type)
Unretires a PersonAttribute type from the database (can be undone)
|
Program |
ProgramWorkflowService.unRetireProgram(Program program)
Unretires the given program
|
Provider |
ProviderService.unretireProvider(Provider provider)
Unretire a given Provider
|
RelationshipType |
PersonService.unretireRelationshipType(RelationshipType relationshipType)
Unretire a Person Relationship Type
|
User |
UserService.unretireUser(User user)
Clears retired flag for a user.
|
VisitAttributeType |
VisitService.unretireVisitAttributeType(VisitAttributeType visitAttributeType)
Restores a visit attribute type that was previous retired in the database
|
VisitType |
VisitService.unretireVisitType(VisitType visitType)
Unretires a visit type.
|
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.
|
PersonAddress |
PersonService.unvoidPersonAddress(PersonAddress personAddress)
Unvoid PersonAddress in the database, effectively marking this as a valid PersonAddress again
|
PersonName |
PersonService.unvoidPersonName(PersonName personName)
Unvoid PersonName in the database, effectively marking this as a valid personName again
|
Relationship |
PersonService.unvoidRelationship(Relationship relationship)
Unvoid Relationship in the database, effectively marking this as a valid relationship again
|
User |
UserService.unvoidUser(User user)
Deprecated.
|
Visit |
VisitService.unvoidVisit(Visit visit)
Unvoids the given visit.
|
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(java.lang.Integer conceptIdStart,
java.lang.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(java.lang.Integer conceptIdStart,
java.lang.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 |
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,
java.lang.String reason)
Used only in cases where the Allergy was entered by error
|
Cohort |
CohortService.voidCohort(Cohort cohort,
java.lang.String reason)
Voids the given cohort, deleting it from the perspective of the typical end user.
|
void |
ConceptService.voidConcept(Concept concept,
java.lang.String reason)
Deprecated.
|
Encounter |
EncounterService.voidEncounter(Encounter encounter,
java.lang.String reason)
Voiding a encounter essentially removes it from circulation
|
void |
ProgramWorkflowService.voidLastState(PatientProgram patientProgram,
ProgramWorkflow wf,
java.lang.String voidReason)
|
MimeType |
ObsService.voidMimeType(MimeType mimeType,
java.lang.String reason)
Deprecated.
MimeTypes are no longer used. See ConceptComplex and its use of handlers
|
Obs |
ObsService.voidObs(Obs obs,
java.lang.String reason)
Equivalent to deleting an observation
|
Order |
OrderService.voidOrder(Order order,
java.lang.String voidReason)
Mark an order as voided.
|
Patient |
PatientService.voidPatient(Patient patient,
java.lang.String reason)
Void patient record (functionally delete patient from system).
|
PatientIdentifier |
PatientService.voidPatientIdentifier(PatientIdentifier patientIdentifier,
java.lang.String reason)
Void patient identifier (functionally delete patient identifier from system)
|
PatientProgram |
ProgramWorkflowService.voidPatientProgram(PatientProgram patientProgram,
java.lang.String reason)
Voids the given patientProgram
|
Person |
PersonService.voidPerson(Person person,
java.lang.String reason)
Effectively removes this person from the system.
|
PersonAddress |
PersonService.voidPersonAddress(PersonAddress personAddress,
java.lang.String voidReason)
Voids the given PersonAddress, effectively deleting the personAddress, from the end-user's
point of view.
|
PersonName |
PersonService.voidPersonName(PersonName personName,
java.lang.String voidReason)
Voids the given PersonName, effectively deleting the name, from the end-user's point of view.
|
void |
PatientService.voidProblem(Problem problem,
java.lang.String reason)
Used only in cases where the Problem was entered by error
|
Relationship |
PersonService.voidRelationship(Relationship relationship,
java.lang.String voidReason)
Voids the given Relationship, effectively removing it from openmrs.
|
User |
UserService.voidUser(User user,
java.lang.String reason)
Deprecated.
|
Visit |
VisitService.voidVisit(Visit visit,
java.lang.String reason)
Voids the given visit.
|
void |
ProgramWorkflowService.voidWorkflow(ProgramWorkflow programWorkflow,
java.lang.String reason)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
HL7Service.countHL7InArchive(int messageState,
java.lang.String query)
the total count of all HL7InArchive objects in the database
|
java.lang.Integer |
HL7Service.countHL7InError(java.lang.String query)
the total count of all HL7InError objects in the database
|
java.lang.Integer |
HL7Service.countHL7InQueue(int messageState,
java.lang.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.
|
java.util.List<HL7InArchive> |
HL7Service.getAllHL7InArchives()
Get all archive hl7 queue items from the database
|
java.util.List<HL7InError> |
HL7Service.getAllHL7InErrors()
Get all
HL7InError items from the database |
java.util.List<HL7InQueue> |
HL7Service.getAllHL7InQueues()
Return a list of all hl7 in queues in the database
|
java.util.List<HL7Source> |
HL7Service.getAllHL7Sources()
Get all of the hl7 source objects from the database.
|
HL7InArchive |
HL7Service.getHL7InArchive(java.lang.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) |
java.util.List<HL7InArchive> |
HL7Service.getHL7InArchiveBatch(int start,
int length,
int messageState,
java.lang.String query)
Return a list of all hl7 in archives based on batch settings and a query string
|
java.util.List<HL7InArchive> |
HL7Service.getHL7InArchiveByState(java.lang.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.
|
HL7InArchive |
HL7Service.getHL7InArchiveByUuid(java.lang.String uuid)
Get the archive item with the given uuid
|
java.util.Collection<HL7InArchive> |
HL7Service.getHL7InArchives()
Deprecated.
|
HL7InError |
HL7Service.getHL7InError(java.lang.Integer hl7InErrorId)
Get the error item with the given id
|
java.util.List<HL7InError> |
HL7Service.getHL7InErrorBatch(int start,
int length,
java.lang.String query)
Return a list of all hl7 in errors based on batch settings and a query string
|
HL7InError |
HL7Service.getHL7InErrorByUuid(java.lang.String uuid)
Get the error item with the given uuid
|
java.util.Collection<HL7InError> |
HL7Service.getHL7InErrors()
Deprecated.
|
HL7InQueue |
HL7Service.getHL7InQueue(java.lang.Integer hl7InQueueId)
Get the hl7 queue item with the given primary key id
|
java.util.List<HL7InQueue> |
HL7Service.getHL7InQueueBatch(int start,
int length,
int messageState,
java.lang.String query)
Return a list of all hl7 in queues based on batch settings and a query string
|
java.util.List<HL7InQueue> |
HL7Service.getHL7InQueueByState(java.lang.Integer state)
Get the queue items given a state (deleted, error, pending, processing, processed).
|
HL7InQueue |
HL7Service.getHL7InQueueByUuid(java.lang.String uuid)
Get the hl7 queue item with the given uuid
|
java.util.Collection<HL7InQueue> |
HL7Service.getHL7InQueues()
Deprecated.
|
HL7Source |
HL7Service.getHL7Source(java.lang.Integer hl7SourceId)
Auto generated method comment
|
HL7Source |
HL7Service.getHL7Source(java.lang.String name)
Deprecated.
|
HL7Source |
HL7Service.getHL7SourceByName(java.lang.String name)
Get the hl7 source object from the database that has the given name
|
java.util.Collection<HL7Source> |
HL7Service.getHL7Sources()
Deprecated.
|
HL7InQueue |
HL7Service.getNextHL7InQueue()
Get the first queue item in the database
|
void |
HL7Service.migrateHl7InArchivesToFileSystem(java.util.Map<java.lang.String,java.lang.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.notifySuperUsers(java.lang.String messageCode,
java.lang.Exception cause,
java.lang.Object... messageArguments)
Sends an alert to all superusers
|
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(java.lang.Integer id)
Delete the task with the given identifier.
|
java.util.Collection<TaskDefinition> |
SchedulerService.getRegisteredTasks()
Get the list of tasks that are available to be scheduled.
|
java.util.Collection<TaskDefinition> |
SchedulerService.getScheduledTasks()
Get scheduled tasks.
|
java.lang.String |
SchedulerService.getStatus(java.lang.Integer id)
Checks the status of a scheduled task.
|
TaskDefinition |
SchedulerService.getTask(java.lang.Integer id)
Get the task with the given identifier.
|
TaskDefinition |
SchedulerService.getTaskByName(java.lang.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
|
void |
SchedulerService.saveTaskDefinition(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 java.util.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 java.util.List<DatabaseUpdater.OpenMRSChangeSet> |
DatabaseUpdater.getUnrunDatabaseChanges() |
static java.util.List<DatabaseUpdater.OpenMRSChangeSet> |
DatabaseUpdater.getUnrunDatabaseChanges(java.lang.String... changeLogFilenames)
Looks at the specified liquibase change log files and returns all changesets in the files
that have not been run on the database yet.
|
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.