Package | Description |
---|---|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.impl | |
org.openmrs.hl7 |
OpenMRS HL7 module.
|
org.openmrs.notification | |
org.openmrs.scheduler |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortService.addPatientToCohort(Cohort cohort,
Patient patient)
Adds a new patient to a Cohort.
|
void |
UserService.changeHashedPassword(User user,
String hashedPassword,
String salt)
Changes the current user's password directly.
|
void |
UserService.changePassword(String oldPassword,
String newPassword)
Changes the current user's password.
|
void |
UserService.changePassword(User user,
String newPassword)
Changes password of
User passed in |
void |
UserService.changePassword(User user,
String oldPassword,
String newPassword)
Change user password.
|
void |
UserService.changePasswordUsingSecretAnswer(String secretAnswer,
String pw)
Change user password given the answer to the secret question
|
void |
UserService.changeQuestionAnswer(String pw,
String q,
String a)
Changes the current user's secret question and answer.
|
void |
UserService.changeQuestionAnswer(User u,
String question,
String answer)
Changes the passed user's secret question and answer.
|
void |
ConceptService.checkIfLocked()
Check if the concepts are locked and if so, throw exception during manipulation of concept
|
void |
PatientService.checkPatientIdentifiers(Patient patient)
Convenience method to validate all identifiers for a given patient
|
Iterator<Concept> |
ConceptService.conceptIterator()
Returns an iterator for all concepts, including retired and expired.
|
void |
ConceptService.convertBooleanConceptToCoded(Concept conceptToChange)
Changes the datatype of a concept from boolean to coded when it has observations it is
associated to.
|
User |
UserService.createUser(User user,
String password)
Create user with given password.
|
void |
ConceptService.deleteConceptStopWord(Integer conceptStopWordId)
Delete the given
ConceptStopWord in the database |
<T> T |
SerializationService.deserialize(String serializedObject,
Class<? extends T> objectClass,
Class<? extends OpenmrsSerializer> serializerClass)
Deserialize the given string into a full object using the given
OpenmrsSerializer
class |
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
Concept reasonCoded,
Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Order |
OrderService.discontinueOrder(Order orderToDiscontinue,
String reasonNonCoded,
Date discontinueDate,
Provider orderer,
Encounter encounter)
Discontinues an order.
|
Form |
FormService.duplicateForm(Form form)
Duplicate this form and form_fields associated with this form
|
CohortMembership |
CohortService.endCohortMembership(CohortMembership cohortMembership,
Date onDate)
Ends the specified CohortMembership i.e. sets its end date to the current date
|
Visit |
VisitService.endVisit(Visit visit,
Date stopDate)
Sets the stopDate of a given visit.
|
List<List<Object>> |
AdministrationService.executeSQL(String sql,
boolean selectOnly)
Runs the
sql on the database. |
List<Encounter> |
EncounterService.filterEncountersByViewPermissions(List<Encounter> encounters,
User user)
Filters out all encounters to which given user does not have access.
|
List<ConceptSearchResult> |
ConceptService.findConceptAnswers(String phrase,
Locale locale,
Concept concept)
Finds concepts that are possible value coded answers to concept parameter
|
List<EncounterType> |
EncounterService.findEncounterTypes(String name)
Find Encounter Types with name matching the beginning of the search string.
|
String |
UserService.generateSystemId()
Get/generate/find the next system id to be doled out.
|
List<ConceptMapType> |
ConceptService.getActiveConceptMapTypes()
Returns a list of concept map types currently in the database excluding hidden ones
|
List<Condition> |
ConditionService.getActiveConditions(Patient patient)
Gets a patient's active conditions
|
List<Order> |
OrderService.getActiveOrders(Patient patient,
OrderType orderType,
CareSetting careSetting,
Date asOfDate)
Gets all active orders for the specified patient matching the specified CareSetting,
OrderType as of the specified date.
|
List<Order> |
OrderService.getActiveOrders(Patient patient,
Visit visit,
OrderType orderType,
CareSetting careSetting,
Date asOfDate) |
List<Visit> |
VisitService.getActiveVisitsByPatient(Patient patient)
Convenience method that delegates to getVisitsByPatient(patient, false, false)
|
String |
LocationService.getAddressTemplate()
Returns the xml of default address template.
|
List<Cohort> |
CohortService.getAllCohorts()
Gets all Cohorts (not including voided ones)
|
List<Cohort> |
CohortService.getAllCohorts(boolean includeVoided)
Gets all Cohorts, possibly including the voided ones
|
List<ConceptAttributeType> |
ConceptService.getAllConceptAttributeTypes() |
List<ConceptClass> |
ConceptService.getAllConceptClasses()
Return a list of concept classes currently in the database
|
List<ConceptClass> |
ConceptService.getAllConceptClasses(boolean includeRetired)
Return a list of concept classes currently in the database
|
List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes()
Return a list of all concept datatypes currently in the database
|
List<ConceptDatatype> |
ConceptService.getAllConceptDatatypes(boolean includeRetired)
Return a list of concept datatypes currently in the database
|
List<ConceptNameTag> |
ConceptService.getAllConceptNameTags()
Get all the concept name tags defined in the database, included voided ones
|
List<ConceptProposal> |
ConceptService.getAllConceptProposals(boolean includeCompleted)
Get a List of all concept proposals
|
List<ConceptReferenceTerm> |
ConceptService.getAllConceptReferenceTerms()
Gets a list of all concept reference terms saved in the database
|
List<Concept> |
ConceptService.getAllConcepts()
Return a list of unretired concepts sorted by concept id ascending and
|
List<Concept> |
ConceptService.getAllConcepts(String sortBy,
boolean asc,
boolean includeRetired)
Return a list of concepts sorted on sortBy in dir direction (asc/desc)
|
List<ConceptSource> |
ConceptService.getAllConceptSources(boolean includeRetired)
Return a list of concept sources currently in the database Whether or not to return retired
concept sources is decided by the boolean includeRetired param
|
List<ConceptStateConversion> |
ProgramWorkflowService.getAllConceptStateConversions()
Returns all conceptStateConversions
|
List<ConceptStopWord> |
ConceptService.getAllConceptStopWords()
Get all the concept stop words
|
List<Condition> |
ConditionService.getAllConditions(Patient patient)
Gets all conditions i.e both active and inactive conditions, associated with a patient
|
List<DiagnosisAttributeType> |
DiagnosisService.getAllDiagnosisAttributeTypes()
Fetches all diagnosis attribute types including retired ones.
|
List<Drug> |
ConceptService.getAllDrugs()
Return a list of drugs currently in the database that are not retired
|
List<Drug> |
ConceptService.getAllDrugs(boolean includeRetired)
Get drugs by concept.
|
List<EncounterRole> |
EncounterService.getAllEncounterRoles(boolean includeRetired)
Get all encounter roles based on includeRetired flag
|
List<EncounterType> |
EncounterService.getAllEncounterTypes()
Get all encounter types (including retired)
|
List<EncounterType> |
EncounterService.getAllEncounterTypes(boolean includeRetired)
Get all encounter types.
|
Allergy |
PatientService.getAllergy(Integer allergyListId)
Returns the Allergy identified by internal Ingerger Id
|
Allergy |
PatientService.getAllergyByUuid(String uuid)
Returns the Allergy identified by uuid
|
List<Field> |
FormService.getAllFields()
Fetches all Fields in the database, including retired ones
|
List<Field> |
FormService.getAllFields(boolean includeRetired)
Fetches all Fields in the database, possibly including retired ones
|
List<FieldType> |
FormService.getAllFieldTypes()
Get all field types in the database including the retired ones
|
List<FieldType> |
FormService.getAllFieldTypes(boolean includeRetired)
Get all field types in the database with or without retired ones
|
List<FormField> |
FormService.getAllFormFields()
Returns all FormFields in the database
|
List<Form> |
FormService.getAllForms()
Gets all Forms, including retired ones.
|
List<Form> |
FormService.getAllForms(boolean includeRetired)
Gets all forms, possibly including retired ones
|
List<GlobalProperty> |
AdministrationService.getAllGlobalProperties()
Get a list of all global properties in the system
|
List<LocationAttributeType> |
LocationService.getAllLocationAttributeTypes() |
List<Location> |
LocationService.getAllLocations()
Returns all locations, includes retired locations.
|
List<Location> |
LocationService.getAllLocations(boolean includeRetired)
Returns all locations.
|
List<LocationTag> |
LocationService.getAllLocationTags()
Returns all location tags, includes retired location tags.
|
List<LocationTag> |
LocationService.getAllLocationTags(boolean includeRetired)
Returns all location tags.
|
List<OrderAttributeType> |
OrderService.getAllOrderAttributeTypes()
Returns all order attribute types
|
List<OrderGroupAttributeType> |
OrderService.getAllOrderGroupAttributeTypes()
Returns all order group attribute types
|
List<Order> |
OrderService.getAllOrdersByPatient(Patient patient)
Gets all orders for the specified patient including discontinuation orders
|
List<OrderSetAttributeType> |
OrderSetService.getAllOrderSetAttributeTypes()
Get all order set attribute types
|
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes()
Get all patientIdentifier types
Ordered same as
PatientIdentifierTypeDefaultComparator . |
List<PatientIdentifierType> |
PatientService.getAllPatientIdentifierTypes(boolean includeRetired)
Get all patientIdentifier types.
|
List<Patient> |
PatientService.getAllPatients()
Returns all non voided patients in the system
|
List<Patient> |
PatientService.getAllPatients(boolean includeVoided)
Returns patients in the system
|
List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes()
Get all PersonAttributeTypes in the database
|
List<PersonAttributeType> |
PersonService.getAllPersonAttributeTypes(boolean includeRetired)
Get all PersonAttributeTypes in the database with the option of including the retired types
|
List<Privilege> |
UserService.getAllPrivileges()
Returns all privileges currently possible for any User
|
List<ProgramAttributeType> |
ProgramWorkflowService.getAllProgramAttributeTypes() |
List<Program> |
ProgramWorkflowService.getAllPrograms()
Returns all programs, includes retired programs.
|
List<Program> |
ProgramWorkflowService.getAllPrograms(boolean includeRetired)
Returns all programs
|
List<Provider> |
ProviderService.getAllProviders()
Gets all providers. includes retired Provider.This method delegates to the
#getAllProviders(boolean) method
|
List<Provider> |
ProviderService.getAllProviders(boolean includeRetired)
Gets all providers
|
List<Relationship> |
PersonService.getAllRelationships()
Get list of relationships that are not voided
|
List<Relationship> |
PersonService.getAllRelationships(boolean includeVoided)
Get list of relationships optionally including the voided ones or not
|
List<RelationshipType> |
PersonService.getAllRelationshipTypes()
Get all relationshipTypes Includes retired relationship types
|
List<RelationshipType> |
PersonService.getAllRelationshipTypes(boolean includeRetired)
Get all relationshipTypes with the option of including the retired types
|
List<Role> |
UserService.getAllRoles()
Returns all roles currently possible for any User
|
List<User> |
UserService.getAllUsers()
Returns all users in the system
|
List<VisitAttributeType> |
VisitService.getAllVisitAttributeTypes() |
List<Visit> |
VisitService.getAllVisits()
Gets all unvoided visits in the database.
|
List<VisitType> |
VisitService.getAllVisitTypes()
Gets all visit types.
|
List<VisitType> |
VisitService.getAllVisitTypes(boolean includeRetired)
Get all visit types based on includeRetired flag
|
CareSetting |
OrderService.getCareSetting(Integer careSettingId)
Retrieve care setting
|
CareSetting |
OrderService.getCareSettingByName(String name)
Gets the CareSetting with the specified name
|
CareSetting |
OrderService.getCareSettingByUuid(String uuid)
Gets the CareSetting with the specified uuid
|
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(Integer id)
Gets a Cohort by its database primary key
|
Cohort |
CohortService.getCohort(String name)
Deprecated.
|
Cohort |
CohortService.getCohortByName(String name)
Gets a non voided Cohort by its name
|
Cohort |
CohortService.getCohortByUuid(String uuid)
Get Cohort by its UUID
|
CohortMembership |
CohortService.getCohortMembershipByUuid(String uuid)
Get CohortMembership by its UUID
|
List<CohortMembership> |
CohortService.getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided)
Gets memberships for the given patient, optionally active on a specific date
|
List<Cohort> |
CohortService.getCohortsContainingPatient(Patient patient)
Deprecated.
use
CohortService.getCohortsContainingPatientId(Integer)
Find all Cohorts that contain the given patient. (Not including voided Cohorts) |
List<Cohort> |
CohortService.getCohortsContainingPatientId(Integer patientId)
Find all Cohorts that contain the given patientId right now.
|
Obs |
ObsService.getComplexObs(Integer obsId,
String view)
Deprecated.
as of 2.1.0, use
ObsService.getObs(Integer) |
Concept |
ConceptService.getConcept(Integer conceptId)
Gets the concept with the given id
|
Concept |
ConceptService.getConcept(String conceptIdOrName)
Get Concept by id or name convenience method
|
ConceptAnswer |
ConceptService.getConceptAnswer(Integer conceptAnswerId)
Gets the ConceptAnswer with the given id
|
ConceptAnswer |
ConceptService.getConceptAnswerByUuid(String uuid)
Get ConceptAnswer by its UUID
|
ConceptAttribute |
ConceptService.getConceptAttributeByUuid(String uuid) |
ConceptAttributeType |
ConceptService.getConceptAttributeType(Integer id) |
ConceptAttributeType |
ConceptService.getConceptAttributeTypeByName(String exactName)
Retrieves a ConceptAttributeType object based on the name provided
|
ConceptAttributeType |
ConceptService.getConceptAttributeTypeByUuid(String uuid) |
List<ConceptAttributeType> |
ConceptService.getConceptAttributeTypes(String name)
Find concept attribute types matching the given parameters.
|
Concept |
ConceptService.getConceptByMapping(String code,
String sourceName)
Looks up a concept via
ConceptMap This will return the Concept which contains
a ConceptMap entry whose sourceCode is equal to the passed
conceptCode and whose ConceptSource has either a name or
hl7Code that is equal to the passed mappingCode . |
Concept |
ConceptService.getConceptByMapping(String code,
String sourceName,
Boolean includeRetired)
Looks up a concept via
ConceptMap This will return the Concept which contains
a ConceptMap entry whose sourceCode is equal to the passed
conceptCode and whose ConceptSource has either a name or
hl7Code that is equal to the passed mappingCode . |
Concept |
ConceptService.getConceptByName(String name)
Return a Concept that matches the name exactly
|
Concept |
ConceptService.getConceptByReference(String conceptRef)
Get the concept by conceptRef where the conceptRef can either be: 1) an integer id like 5090
2) a mapping type id like "XYZ:HT" 3) a uuid like "a3e12268-74bf-11df-9768-17cfc9833272" 4) a
name like "PLATELETS" 5) the fully qualified name of a Java constant which contains one of the above
|
Concept |
ConceptService.getConceptByUuid(String uuid)
Get Concept by its UUID
|
ConceptClass |
ConceptService.getConceptClass(Integer conceptClassId)
Return a Concept class matching the given identifier
|
ConceptClass |
ConceptService.getConceptClassByName(String name)
Return a Concept class matching the given name
|
ConceptClass |
ConceptService.getConceptClassByUuid(String uuid)
Get ConceptClass by its UUID
|
ConceptComplex |
ConceptService.getConceptComplex(Integer conceptId)
Get a ComplexConcept with the given conceptId
|
ConceptDatatype |
ConceptService.getConceptDatatype(Integer i)
Return a ConceptDatatype matching the given identifier
|
ConceptDatatype |
ConceptService.getConceptDatatypeByName(String name)
Return a Concept datatype matching the given name
|
ConceptDatatype |
ConceptService.getConceptDatatypeByUuid(String uuid)
Get ConceptDatatype by its UUID
|
ConceptDescription |
ConceptService.getConceptDescriptionByUuid(String uuid)
Get ConceptDescription by its UUID
|
List<Integer> |
ConceptService.getConceptIdsByMapping(String code,
String sourceName,
boolean includeRetired)
Looks up concepts via
ConceptMap This will return the list of ids for all
Concept s which contain a ConceptMap entry whose sourceCode is
equal to the passed conceptCode and whose ConceptSource has either a
name or hl7Code that is equal to the passed
mappingCode |
List<ConceptMap> |
ConceptService.getConceptMappingsToSource(ConceptSource conceptSource)
Returns a list of mappings from concepts to terms in the given reference terminology
|
ConceptMapType |
ConceptService.getConceptMapType(Integer conceptMapTypeId)
Return a concept map type matching the given concept map type id
|
ConceptMapType |
ConceptService.getConceptMapTypeByName(String name)
Return a concept map type matching the given name
|
ConceptMapType |
ConceptService.getConceptMapTypeByUuid(String uuid)
Return a concept map type matching the given uuid
|
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(Integer conceptNameId)
Gets the concept-name with the given id
|
ConceptName |
ConceptService.getConceptNameByUuid(String uuid)
Get ConceptName by its UUID
|
ConceptNameTag |
ConceptService.getConceptNameTag(Integer id)
Gets the
ConceptNameTag with the given database primary key |
ConceptNameTag |
ConceptService.getConceptNameTagByName(String tag)
Search for a ConceptNameTag by name
|
ConceptNameTag |
ConceptService.getConceptNameTagByUuid(String uuid)
Get ConceptNameTag by its UUID
|
ConceptNumeric |
ConceptService.getConceptNumeric(Integer conceptId)
Get the ConceptNumeric with the given id
|
ConceptNumeric |
ConceptService.getConceptNumericByUuid(String uuid)
Get ConceptNumeric by its UUID
|
ConceptProposal |
ConceptService.getConceptProposal(Integer conceptProposalId)
Get a ConceptProposal by conceptProposalId
|
ConceptProposal |
ConceptService.getConceptProposalByUuid(String uuid)
Get ConceptProposal by its UUID
|
List<ConceptProposal> |
ConceptService.getConceptProposals(String text)
Find matching concept proposals
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTerm(Integer conceptReferenceTermId)
Gets the concept reference term with the specified concept reference term id
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource)
Gets a concept reference term with the specified code from the specified concept source
|
List<ConceptReferenceTerm> |
ConceptService.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource,
boolean includeRetired)
Gets a list of concept reference terms with the specified code from the specified concept source
|
ConceptReferenceTerm |
ConceptService.getConceptReferenceTermByName(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(String uuid)
Gets the concept reference term with the specified uuid
|
List<ConceptReferenceTerm> |
ConceptService.getConceptReferenceTerms(boolean includeRetired)
Gets a list of concept reference terms saved in the database
|
List<ConceptReferenceTerm> |
ConceptService.getConceptReferenceTerms(String query,
ConceptSource conceptSource,
Integer start,
Integer length,
boolean includeRetired)
Finds the concept reference term in the database that have a code or name that contains the
specified search phrase.
|
List<ConceptSearchResult> |
ConceptService.getConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
Integer start,
Integer size)
Searches for concepts by the given parameters.
|
List<ConceptSearchResult> |
ConceptService.getConcepts(String phrase,
Locale locale,
boolean includeRetired)
Searches for concepts with the given parameters
|
List<Concept> |
ConceptService.getConceptsByAnswer(Concept concept)
Returns all possible Concepts to which this concept is a value-coded answer.
|
List<Concept> |
ConceptService.getConceptsByClass(ConceptClass cc) |
List<Concept> |
ConceptService.getConceptsByConceptSet(Concept concept)
Return a List of all concepts within a concept set
|
List<Concept> |
ConceptService.getConceptsByMapping(String code,
String sourceName)
Looks up a concept via
ConceptMap This will return the list of concepts
Concept s which contain a ConceptMap entry whose sourceCode is
equal to the passed conceptCode and whose ConceptSource has either a
name or hl7Code that is equal to the passed
mappingCode |
List<Concept> |
ConceptService.getConceptsByMapping(String code,
String sourceName,
boolean includeRetired)
Looks up a concept via
ConceptMap This will return the list of Concept s which
contain a ConceptMap entry whose sourceCode is equal to the passed
conceptCode and whose ConceptSource has either a name or
hl7Code that is equal to the passed mappingCode . |
List<Concept> |
ConceptService.getConceptsByName(String name)
Returns a list of concepts matching any part of a concept name, this method is case
insensitive to the concept name string
|
List<Concept> |
ConceptService.getConceptsByName(String name,
Locale locale,
Boolean exactLocale)
Returns a list of concepts with the same name in the given locale.
|
ConceptSet |
ConceptService.getConceptSetByUuid(String uuid)
Get ConceptSet by its UUID
|
List<ConceptSet> |
ConceptService.getConceptSetsByConcept(Concept concept)
Return a list of the concept sets with concept_set matching concept
For example to find all concepts for ARVs, you would do
getConceptSets(getConcept("ANTIRETROVIRAL MEDICATIONS")) and then take the conceptIds from
the resulting list.
|
ConceptSource |
ConceptService.getConceptSource(Integer i)
Return a Concept source matching the given concept source id
|
ConceptSource |
ConceptService.getConceptSourceByHL7Code(String hl7Code)
Get a ConceptSource by its hl7Code.
|
ConceptSource |
ConceptService.getConceptSourceByName(String conceptSourceName)
Lookup a ConceptSource by its name property
|
ConceptSource |
ConceptService.getConceptSourceByUniqueId(String uniqueId)
Get a ConceptSource by its unique id.
|
ConceptSource |
ConceptService.getConceptSourceByUuid(String uuid)
Get ConceptSource by its UUID
|
ConceptStateConversion |
ProgramWorkflowService.getConceptStateConversion(Integer conceptStateConversionId)
Returns a conceptStateConversion given that conceptStateConversions primary key
conceptStateConversionId A null value is returned if no conceptStateConversion
exists with this conceptStateConversionId. |
List<String> |
ConceptService.getConceptStopWords(Locale locale)
Gets the list of
ConceptStopWord for given locale |
List<Concept> |
ConceptService.getConceptsWithDrugsInFormulary()
Convenience method for finding concepts associated with drugs in formulary.
|
Condition |
ConditionService.getCondition(Integer conditionId)
Gets a condition by id
|
Condition |
ConditionService.getConditionByUuid(String uuid)
Gets a condition based on the uuid
|
Integer |
ConceptService.getCountOfConceptReferenceTerms(String query,
ConceptSource conceptSource,
boolean includeRetired)
Returns the count of concept reference terms that match the specified arguments
|
Integer |
ConceptService.getCountOfConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept)
Return the number of concepts matching a search phrase and the specified arguments
|
Integer |
ConceptService.getCountOfDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired)
Return the number of drugs with matching names or concept drug names
|
Integer |
EncounterService.getCountOfEncounters(String query,
boolean includeVoided)
Return the number of encounters matching a patient name or patient identifier
|
Integer |
LocationService.getCountOfLocations(String nameFragment,
Boolean includeRetired)
Return the number of all locations that start with the given name fragment, if the name
fragment is null or an empty string, then the number of all locations will be returned
|
Integer |
PatientService.getCountOfPatients(String query)
Return the number of unvoided patients with names or patient identifiers or searchable person
attributes starting with or equal to the specified text
|
Integer |
PatientService.getCountOfPatients(String query,
boolean includeVoided) |
Integer |
ProviderService.getCountOfProviders(String query) |
Integer |
ProviderService.getCountOfProviders(String query,
boolean includeRetired)
Gets the count of providers with a person name or identifier or name that matches the
specified query
|
Integer |
UserService.getCountOfUsers(String name,
List<Role> roles,
boolean includeRetired)
Return the number of users with a matching name or system id and have at least one of the
given roles assigned to them
|
ConceptMapType |
ConceptService.getDefaultConceptMapType()
Gets the concept map type to be used as the default.
|
Locale |
UserService.getDefaultLocaleForUser(User user) |
Location |
LocationService.getDefaultLocation()
Returns the default location for this implementation.
|
List<Diagnosis> |
DiagnosisService.getDiagnoses(Patient patient,
Date fromDate)
Gets diagnoses since date, sorted in reverse chronological order
|
List<Diagnosis> |
DiagnosisService.getDiagnosesByEncounter(Encounter encounter,
boolean primaryOnly,
boolean confirmedOnly)
Gets diagnoses for an Encounter.
|
List<Diagnosis> |
DiagnosisService.getDiagnosesByVisit(Visit visit,
boolean primaryOnly,
boolean confirmedOnly)
Gets diagnoses for a Visit.
|
Diagnosis |
DiagnosisService.getDiagnosis(Integer diagnosisId)
Gets a diagnosis by id.
|
DiagnosisAttribute |
DiagnosisService.getDiagnosisAttributeByUuid(String uuid)
Fetches a given diagnosis attribute using the provided uuid
|
DiagnosisAttributeType |
DiagnosisService.getDiagnosisAttributeTypeById(Integer id)
Fetches a given diagnosis attribute type using the provided id
|
DiagnosisAttributeType |
DiagnosisService.getDiagnosisAttributeTypeByUuid(String uuid)
Fetches a given diagnosis attribute type using the provided uuid
|
Diagnosis |
DiagnosisService.getDiagnosisByUuid(String uuid)
Gets a diagnosis based on the uuid
|
Order |
OrderService.getDiscontinuationOrder(Order order)
Get discontinuation order for the given order, it is the un voided discontinuation order with
a previousOrder that matches the specified order.
|
Drug |
ConceptService.getDrug(Integer drugId)
Get the Drug with the given id
|
Drug |
ConceptService.getDrug(String drugNameOrId)
Return the drug object corresponding to the given name or drugId
|
Drug |
ConceptService.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference)
Gets the "best" matching drug, i.e. matching the earliest ConceptMapType passed in e.g.
|
Drug |
ConceptService.getDrugByUuid(String uuid)
Get Drug by its UUID
|
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 |
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(String uuid)
Get Drug Ingredient by its UUID
|
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 |
List<Drug> |
ConceptService.getDrugs(String phrase)
Find drugs in the system.
|
List<Drug> |
ConceptService.getDrugs(String drugName,
Concept concept,
boolean searchKeywords,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length)
Returns a list of drugs with matching names or concept drug names and returns a specific
number of them from the specified starting position.
|
List<Drug> |
ConceptService.getDrugs(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired)
Fetches un retired drugs that match the specified search phrase.
|
List<Drug> |
ConceptService.getDrugsByConcept(Concept concept)
Return a list of drugs associated with the given concept
|
List<Drug> |
ConceptService.getDrugsByIngredient(Concept ingredient)
Gets drugs by the given ingredient, which can be either the drug itself or any ingredient.
|
List<Drug> |
ConceptService.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired)
Fetches all drugs with reference mappings to the specified concept source that match the
specified code and concept map types
|
List<Patient> |
PatientService.getDuplicatePatientsByAttributes(List<String> attributes)
Search the database for patients that both share the given attributes.
|
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(Integer encounterId)
Get encounter by internal identifier
|
Encounter |
EncounterService.getEncounterByUuid(String uuid)
Get Encounter by its UUID
|
EncounterRole |
EncounterService.getEncounterRole(Integer encounterRoleId)
Gets an encounter role when and internal encounter role id is provided.
|
EncounterRole |
EncounterService.getEncounterRoleByName(String name)
Get EncounterRole by name
|
EncounterRole |
EncounterService.getEncounterRoleByUuid(String uuid)
Get EncounterRole by its UUID
|
List<EncounterRole> |
EncounterService.getEncounterRolesByName(String name)
Get EncounterRoles by name
|
List<Encounter> |
EncounterService.getEncounters(EncounterSearchCriteria encounterSearchCriteria)
Get all encounters that match a variety of (nullable) criteria contained in the parameter object.
|
List<Encounter> |
EncounterService.getEncounters(Patient who,
Location loc,
Date fromDate,
Date toDate,
Collection<Form> enteredViaForms,
Collection<EncounterType> encounterTypes,
Collection<Provider> providers,
Collection<VisitType> visitTypes,
Collection<Visit> visits,
boolean includeVoided)
Deprecated.
As of 2.0, replaced by
EncounterService.getEncounters(EncounterSearchCriteria) |
List<Encounter> |
EncounterService.getEncounters(String query,
Integer start,
Integer length,
boolean includeVoided)
Search for encounters by patient name or patient identifier and returns a specific number of
them from the specified starting position.
|
List<Encounter> |
EncounterService.getEncounters(String query,
Integer patientId,
Integer start,
Integer length,
boolean includeVoided)
Searches for encounters by patient id, provider identifier, location, encounter type,
provider, form or provider name.
|
List<Encounter> |
EncounterService.getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient, sorted by encounterDatetime ascending.
|
List<Encounter> |
EncounterService.getEncountersByPatient(String query)
Search for encounters by patient name or patient identifier.
|
List<Encounter> |
EncounterService.getEncountersByPatient(String query,
boolean includeVoided)
Search for encounters by patient name or patient identifier.
|
List<Encounter> |
EncounterService.getEncountersByPatientId(Integer patientId)
Get encounters for a patientId
|
List<Encounter> |
EncounterService.getEncountersByPatientIdentifier(String identifier)
Get encounters (not voided) for a patient identifier
|
List<Encounter> |
EncounterService.getEncountersByVisit(Visit visit,
boolean includeVoided)
Gets all encounters grouped within a given visit.
|
List<Encounter> |
EncounterService.getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
String query,
Integer start,
Integer length)
Gets encounters for the given patient.
|
Integer |
EncounterService.getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
String query)
Returns result count for
EncounterService.getEncountersByVisitsAndPatient(Patient, boolean, String, Integer, Integer) . |
List<Encounter> |
EncounterService.getEncountersNotAssignedToAnyVisit(Patient patient)
Gets the unvoided encounters for the specified patient that are not assigned to any visit.
|
EncounterType |
EncounterService.getEncounterType(Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
EncounterService.getEncounterType(String name)
Get encounterType by exact name
|
EncounterType |
EncounterService.getEncounterTypeByUuid(String uuid)
Get EncounterType by its UUID
|
Concept |
ConceptService.getFalseConcept()
Returns the FALSE concept
|
Field |
FormService.getField(Integer fieldId)
Gets a Field by internal database id
|
List<Field> |
FormService.getFields(Collection<Form> forms,
Collection<FieldType> fieldTypes,
Collection<Concept> concepts,
Collection<String> tableNames,
Collection<String> attributeNames,
Boolean selectMultiple,
Collection<FieldAnswer> containsAllAnswers,
Collection<FieldAnswer> containsAnyAnswer,
Boolean retired)
Returns all Fields that match these (nullable) criteria
|
List<Field> |
FormService.getFields(String fuzzySearchPhrase)
Find all Fields whose names are similar to or contain the given phrase.
|
List<Field> |
FormService.getFieldsByConcept(Concept concept)
Finds all Fields that point to the given concept, including retired ones.
|
FieldType |
FormService.getFieldType(Integer fieldTypeId)
Get fieldType by internal identifier
|
Form |
FormService.getForm(Integer formId)
Get form by internal form identifier
|
Form |
FormService.getForm(String name)
Get form by exact name match.
|
Form |
FormService.getForm(String name,
String version)
Get form by exact name & version match.
|
Form |
FormService.getFormByUuid(String uuid)
Get Form by its UUID
|
Integer |
FormService.getFormCount(String partialNameSearch,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields)
Same as
FormService.getForms(String, Boolean, Collection, Boolean, Collection, Collection, Collection)
except that it returns an integer that is the size of the list that would be returned |
FormField |
FormService.getFormField(Form form,
Concept concept,
Collection<FormField> ignoreFormFields,
boolean force)
Finds the FormField defined for this form/concept combination while discounting any form
field found in the
ignoreFormFields collection This method was added when
needing to relate observations to form fields during a display. |
FormField |
FormService.getFormField(Integer formFieldId)
Gets a FormField by internal database id
|
List<Form> |
FormService.getForms(String fuzzyName,
boolean onlyLatestVersion)
Gets all forms with name similar to the given name.
|
List<Form> |
FormService.getForms(String partialNameSearch,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields)
Gets all forms that match all the (nullable) criteria
|
List<Form> |
FormService.getFormsContainingConcept(Concept concept)
Returns all forms that contain the given concept as a field in their schema.
|
List<GlobalProperty> |
AdministrationService.getGlobalPropertiesByPrefix(String prefix)
Gets all global properties that begin with
prefix . |
List<GlobalProperty> |
AdministrationService.getGlobalPropertiesBySuffix(String suffix)
Gets all global properties that end with
suffix . |
String |
AdministrationService.getGlobalProperty(String propertyName)
Gets the global property that has the given
propertyName . |
String |
AdministrationService.getGlobalProperty(String propertyName,
String defaultValue)
Gets the global property that has the given
propertyName
If propertyName is not found in the list of Global Properties currently in the database, a
defaultValue is returned
This method should not have any authorization check |
GlobalProperty |
AdministrationService.getGlobalPropertyByUuid(String uuid)
Get a global property by its uuid.
|
GlobalProperty |
AdministrationService.getGlobalPropertyObject(String propertyName)
Gets the global property that has the given
propertyName |
<T> T |
AdministrationService.getGlobalPropertyValue(String propertyName,
T defaultValue)
Returns a global property according to the type specified
|
ImplementationId |
AdministrationService.getImplementationId()
Get the implementation id stored for this server Returns null if no implementation id has
been successfully set yet
|
String |
UserService.getLastLoginTime(User user)
Retrieves the last login time of the user in Unix Timestamp
|
Set<Locale> |
ConceptService.getLocalesOfConceptNames()
Gets the set of unique Locales used by existing concept names.
|
Location |
LocationService.getLocation(Integer locationId)
Returns a location given that locations primary key
locationId A null value is
returned if no location exists with this location. |
Location |
LocationService.getLocation(String name)
Returns a location given the location's exact
name A null value is returned if
there is no location with this name |
LocationAttribute |
LocationService.getLocationAttributeByUuid(String uuid) |
LocationAttributeType |
LocationService.getLocationAttributeType(Integer id) |
LocationAttributeType |
LocationService.getLocationAttributeTypeByName(String locationAttributeTypeName)
Retrieves a LocationAttributeType object based on the name provided
|
LocationAttributeType |
LocationService.getLocationAttributeTypeByUuid(String uuid) |
Location |
LocationService.getLocationByUuid(String uuid)
Returns a location by uuid
|
List<Location> |
LocationService.getLocations(String nameFragment)
Returns locations that match the beginning of the given string.
|
List<Location> |
LocationService.getLocations(String nameFragment,
Location parent,
Map<LocationAttributeType,Object> attributeValues,
boolean includeRetired,
Integer start,
Integer length)
Gets the locations matching the specified arguments.
|
List<Location> |
LocationService.getLocationsByTag(LocationTag tag)
Returns locations that contain the given tag.
|
List<Location> |
LocationService.getLocationsHavingAllTags(List<LocationTag> tags)
Returns locations that are mapped to all given tags.
|
List<Location> |
LocationService.getLocationsHavingAnyTag(List<LocationTag> tags)
Returns locations that are mapped to any of the given tags.
|
LocationTag |
LocationService.getLocationTag(Integer locationTagId)
Returns a location tag given that locations primary key
locationTagId . |
LocationTag |
LocationService.getLocationTagByName(String tag)
Returns a location tag given the location's exact name (tag).
|
LocationTag |
LocationService.getLocationTagByUuid(String uuid)
Returns a location tag by uuid
|
List<LocationTag> |
LocationService.getLocationTags(String search)
Returns location tags that match the beginning of the given string.
|
Integer |
ConceptService.getMaxConceptId()
Gets the highest concept-id used by a concept.
|
MedicationDispense |
MedicationDispenseService.getMedicationDispense(Integer medicationDispenseId)
Gets a MedicationDispense by id
|
List<MedicationDispense> |
MedicationDispenseService.getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
Gets all MedicationDispense results that match the given criteria
|
MedicationDispense |
MedicationDispenseService.getMedicationDispenseByUuid(String uuid)
Gets a MedicationDispense based on the uuid
|
Concept |
ConceptService.getNextConcept(Concept concept)
Finds the next concept in the dictionary that has the next largest concept id
|
Long |
OrderService.getNextOrderNumberSeedSequenceValue()
Gets the next available order number seed
|
Concept |
OrderService.getNonCodedDrugConcept()
Gets the non coded drug concept, i.e the concept that matches the uuid specified as the value
for the global property {@link OpenmrsConstants#GP_DRUG_ORDER_DRUG_OTHER
|
Obs |
ObsService.getObs(Integer obsId)
Get an observation
|
Obs |
ObsService.getObsByUuid(String uuid)
Get Obs by its UUID
|
Integer |
ObsService.getObservationCount(List<ConceptName> conceptNames,
boolean includeVoided)
Gets the number of observations(including voided ones) that are using the specified
conceptNames as valueCodedName answers
|
Integer |
ObsService.getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs)
This method fetches the count of observations according to the criteria in the given
arguments.
|
Integer |
ObsService.getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
Integer |
ObsService.getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<Visit> visits,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
ObsService.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sort,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs)
This method fetches observations according to the criteria in the given arguments.
|
List<Obs> |
ObsService.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sort,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
ObsService.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sort,
List<Visit> visits,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
ObsService.getObservations(String searchString)
This method searches the obs table based on the given
searchString . |
List<Obs> |
ObsService.getObservationsByPerson(Person who)
Get all Observations for the given person, sorted by obsDatetime ascending.
|
List<Obs> |
ObsService.getObservationsByPersonAndConcept(Person who,
Concept question)
Get all nonvoided observations for the given patient with the given concept as the question
concept (conceptId)
|
Order |
OrderService.getOrder(Integer orderId)
Get order by internal primary key identifier
|
List<ConceptSearchResult> |
ConceptService.getOrderableConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
Integer start,
Integer length)
An Orderable concept is one where its conceptClass has a mapping in the order_type_class_map
table.
|
OrderAttribute |
OrderService.getOrderAttributeByUuid(String uuid)
Fetches a given order attribute using the provided uuid
|
OrderAttributeType |
OrderService.getOrderAttributeTypeById(Integer orderAttributeTypeId)
Fetches order attribute type using provided Id
|
OrderAttributeType |
OrderService.getOrderAttributeTypeByName(String orderAttributeTypeName)
Retrieves an order attribute type object based on the name provided
|
Order |
OrderService.getOrderByOrderNumber(String orderNumber)
Gets the order identified by a given order number
|
Order |
OrderService.getOrderByUuid(String uuid)
Get Order by its UUID
|
List<OrderFrequency> |
OrderService.getOrderFrequencies(boolean includeRetired)
Gets all order frequencies
|
List<OrderFrequency> |
OrderService.getOrderFrequencies(String searchPhrase,
Locale locale,
boolean exactLocale,
boolean includeRetired)
Gets all non retired order frequencies associated to concepts that match the specified search
phrase
|
OrderFrequency |
OrderService.getOrderFrequency(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(String uuid)
Gets OrderFrequency that matches the specified uuid
|
OrderGroup |
OrderService.getOrderGroup(Integer orderGroupId)
Fetches the OrderGroup by Id.
|
OrderGroupAttribute |
OrderService.getOrderGroupAttributeByUuid(String uuid)
Fetches a given order group attribute using the provided uuid
|
OrderGroupAttributeType |
OrderService.getOrderGroupAttributeType(Integer orderGroupAttributeTypeId)
Fetches order group attribute type using provided Id
|
OrderGroupAttributeType |
OrderService.getOrderGroupAttributeTypeByName(String orderGroupAttributeTypeName)
Retrieves an order group attribute type object based on the name provided
|
OrderGroup |
OrderService.getOrderGroupByUuid(String uuid)
Fetches the OrderGroup By Uuid.
|
List<OrderGroup> |
OrderService.getOrderGroupsByEncounter(Encounter encounter)
Fetches all order groups for the specified encounter
|
List<OrderGroup> |
OrderService.getOrderGroupsByPatient(Patient patient)
Fetches all order groups for the specified patient
|
List<Order> |
OrderService.getOrderHistoryByConcept(Patient patient,
Concept concept)
Gets all Order objects that use this Concept for a given patient.
|
List<Order> |
OrderService.getOrderHistoryByOrderNumber(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
|
List<Order> |
OrderService.getOrders(OrderSearchCriteria orderSearchCriteria)
Get all orders that match a variety of (nullable) criteria contained in the parameter object.
|
List<Order> |
OrderService.getOrders(Patient patient,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided)
Gets all Orders that match the specified parameters excluding discontinuation orders
|
List<Order> |
OrderService.getOrders(Patient patient,
Visit visit,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided) |
OrderSet |
OrderSetService.getOrderSet(Integer orderSetId)
Gets a specific OrderSet with the matched orderSet Id.
|
OrderSetAttribute |
OrderSetService.getOrderSetAttributeByUuid(String uuid)
Get order set attribute by uuid
|
OrderSetAttributeType |
OrderSetService.getOrderSetAttributeType(Integer id)
Get order set attribute type from the database by a given internal id
|
OrderSetAttributeType |
OrderSetService.getOrderSetAttributeTypeByName(String orderSetAttributeTypeName)
Retrieves an order set attribute type object based on the name provided
|
OrderSetAttributeType |
OrderSetService.getOrderSetAttributeTypeByUuid(String uuid)
Get order set attribute type by uuid
|
OrderSet |
OrderSetService.getOrderSetByUuid(String orderSetUuid)
Gets a specific OrderSet with the matched orderSet uuid.
|
OrderSetMember |
OrderSetService.getOrderSetMemberByUuid(String uuid)
Get OrderSetMember by uuid
|
List<OrderSet> |
OrderSetService.getOrderSets(boolean includeRetired)
Gets all OrderSets that match the specified parameters excluding discontinuation orderSets.
|
OrderType |
OrderService.getOrderType(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(String orderTypeName)
Gets OrderType that matches the specified name
|
OrderType |
OrderService.getOrderTypeByUuid(String uuid)
Get OrderType by uuid
|
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(Integer patientId)
Get patient by internal identifier
|
Patient |
PatientService.getPatientByExample(Patient patientToMatch)
This method tries to find a patient in the database given the attributes on the given
patientToMatch object. |
Patient |
PatientService.getPatientByUuid(String uuid)
Get patient by universally unique identifier.
|
PatientIdentifier |
PatientService.getPatientIdentifier(Integer patientIdentifierId)
Returns a patient identifier that matches the given patientIndentifier id
|
PatientIdentifier |
PatientService.getPatientIdentifierByUuid(String uuid)
Get patient identifier by universally unique identifier.
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred)
Get all patientIdentifiers that match all of the given criteria Voided identifiers are not
returned
|
List<PatientIdentifier> |
PatientService.getPatientIdentifiersByPatientProgram(PatientProgram patientProgram)
Get all patientIdentifiers that are associated to the patient program
|
PatientIdentifierType |
PatientService.getPatientIdentifierType(Integer patientIdentifierTypeId)
Get patientIdentifierType by internal identifier
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByName(String name)
Get patientIdentifierType by exact name
|
PatientIdentifierType |
PatientService.getPatientIdentifierTypeByUuid(String uuid)
Get patient identifierType by universally unique identifier
|
List<PatientIdentifierType> |
PatientService.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit)
Get all patientIdentifier types that match the given criteria
Ordered same as
PatientIdentifierTypeDefaultComparator . |
Patient |
PatientService.getPatientOrPromotePerson(Integer patientOrPersonId)
Get patient by internal identifier.
|
PatientProgram |
ProgramWorkflowService.getPatientProgram(Integer patientProgramId)
Returns a PatientProgram given that PatientPrograms primary key
patientProgramId
A null value is returned if no PatientProgram exists with this patientProgramId. |
PatientProgramAttribute |
ProgramWorkflowService.getPatientProgramAttributeByUuid(String var1) |
List<PatientProgram> |
ProgramWorkflowService.getPatientProgramByAttributeNameAndValue(String attributeName,
String attributeValue) |
List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters.
|
List<Patient> |
PatientService.getPatients(String query)
Generic search on patients based on the given string.
|
List<Patient> |
PatientService.getPatients(String query,
boolean includeVoided,
Integer start,
Integer length) |
List<Patient> |
PatientService.getPatients(String query,
Integer start,
Integer length)
Generic search on patients based on the given string and returns a specific number of them
from the specified starting position.
|
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly)
Get patients based on given criteria The identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX All parameters are optional and
nullable. |
List<Patient> |
PatientService.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length)
Get a limited size of patients from a given start index based on given criteria The
identifier is matched with the regex
OpenmrsConstants.PATIENT_IDENTIFIER_REGEX
All parameters are optional and nullable. |
List<Person> |
PersonService.getPeople(String searchPhrase,
Boolean dead)
Find a person matching the searchPhrase search string
|
List<Person> |
PersonService.getPeople(String searchPhrase,
Boolean dead,
Boolean voided) |
Person |
PersonService.getPerson(Integer personId)
Gets a person by internal id
|
PersonAddress |
PersonService.getPersonAddressByUuid(String uuid)
Get PersonAddress by its UUID
|
PersonAttribute |
PersonService.getPersonAttribute(Integer id)
Get a PersonAttribute from the database with the given PersonAttributeid
|
PersonAttribute |
PersonService.getPersonAttributeByUuid(String uuid)
Get PersonAttribute by its UUID
|
PersonAttributeType |
PersonService.getPersonAttributeType(Integer typeId)
Get the PersonAttributeType given the type's PersonAttributeTypeId
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByName(String typeName)
Get the PersonAttributeType given the type's name
|
PersonAttributeType |
PersonService.getPersonAttributeTypeByUuid(String uuid)
Gets a person attribute type with the given uuid.
|
List<PersonAttributeType> |
PersonService.getPersonAttributeTypes(String exactName,
String format,
Integer foreignKey,
Boolean searchable)
Find person attribute types matching the given parameters.
|
Person |
PersonService.getPersonByUuid(String uuid)
Get Person by its UUID
|
PersonName |
PersonService.getPersonName(Integer personNameId)
Get PersonName by its personNameId
|
PersonName |
PersonService.getPersonNameByUuid(String uuid)
Get PersonName by its UUID
|
List<Concept> |
ProgramWorkflowService.getPossibleOutcomes(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
|
Privilege |
UserService.getPrivilege(String p)
Returns Privilege in the system with given String privilege
|
Privilege |
UserService.getPrivilegeByUuid(String uuid)
Get Privilege by its UUID
|
Program |
ProgramWorkflowService.getProgram(Integer programId)
Returns a program given that programs primary key
programId A null value is
returned if no program exists with this programId. |
ProgramAttributeType |
ProgramWorkflowService.getProgramAttributeType(Integer var1) |
ProgramAttributeType |
ProgramWorkflowService.getProgramAttributeTypeByUuid(String var1) |
Program |
ProgramWorkflowService.getProgramByName(String name)
Returns a program given the program's exact
name A null value is returned if
there is no program with this name |
List<Program> |
ProgramWorkflowService.getPrograms(String nameFragment)
Returns programs that match the given string.
|
List<Program> |
ProgramWorkflowService.getProgramsByConcept(Concept concept)
Returns a list of Programs that are using a particular concept.
|
List<ProgramWorkflow> |
ProgramWorkflowService.getProgramWorkflowsByConcept(Concept concept)
Returns a list of ProgramWorkflows that are using a particular concept.
|
List<ProgramWorkflowState> |
ProgramWorkflowService.getProgramWorkflowStatesByConcept(Concept concept)
Returns a list of ProgramWorkflowStates that are using a particular concept.
|
List<Concept> |
ConceptService.getProposedConcepts(String text)
Find matching proposed concepts
|
Provider |
ProviderService.getProvider(Integer providerId)
Gets a provider by its provider id
|
ProviderAttributeType |
ProviderService.getProviderAttributeTypeByName(String name)
Get a provider attribute type by its name
|
Provider |
ProviderService.getProviderByIdentifier(String identifier)
Gets a provider with a matching identifier, this method performs a case insensitive search
|
Provider |
ProviderService.getProviderByUuid(String uuid) |
List<Provider> |
ProviderService.getProviders(String query,
Integer start,
Integer length,
Map<ProviderAttributeType,Object> attributes) |
List<Provider> |
ProviderService.getProviders(String query,
Integer start,
Integer length,
Map<ProviderAttributeType,Object> attributes,
boolean includeRetired) |
Collection<Provider> |
ProviderService.getProvidersByPerson(Person person)
Gets the Providers for the given person.
|
Collection<Provider> |
ProviderService.getProvidersByPerson(Person person,
boolean includeRetired)
Gets the Providers for the given person including or excluding retired.
|
List<Form> |
FormService.getPublishedForms()
Returns all published forms (not including retired ones)
|
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(Integer relationshipId)
Get relationship by internal relationship identifier
|
Relationship |
PersonService.getRelationshipByUuid(String uuid)
Get Relationship by its UUID
|
Map<Person,List<Person>> |
PersonService.getRelationshipMap(RelationshipType relationshipType)
Get all relationships for a given type of relationship mapped from the personA to all of the
personB's
|
List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
Get relationships stored in the database that
|
List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date effectiveDate)
Get relationships stored in the database that are active on the passed date
|
List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date startEffectiveDate,
Date endEffectiveDate)
Get relationships stored in the database that were active during the specified date range
|
List<Relationship> |
PersonService.getRelationshipsByPerson(Person p)
Get list of relationships that include Person in person_id or relative_id Does not include
voided relationships
|
List<Relationship> |
PersonService.getRelationshipsByPerson(Person p,
Date effectiveDate)
Get list of relationships that include Person in person_id or relative_id.
|
RelationshipType |
PersonService.getRelationshipType(Integer relationshipTypeId)
Get relationshipType by internal identifier
|
RelationshipType |
PersonService.getRelationshipTypeByName(String relationshipTypeName)
Find relationshipType by exact name match
|
RelationshipType |
PersonService.getRelationshipTypeByUuid(String uuid)
Gets the relationship type with the given uuid.
|
List<RelationshipType> |
PersonService.getRelationshipTypes(String searchString)
Get relationshipTypes by searching through the names and loosely matching to the given
searchString
|
List<RelationshipType> |
PersonService.getRelationshipTypes(String relationshipTypeName,
Boolean preferred)
Find relationshipTypes by exact name match and/or preferred status
|
Obs |
ObsService.getRevisionObs(Obs initialObs)
Get Revision Obs for initial Obs
|
Order |
OrderService.getRevisionOrder(Order order)
Get revision order for the given order, it is the order with the changes that was created as
a replacement for the specified order.
|
Role |
UserService.getRole(String r)
Returns role object with given string role
|
Role |
UserService.getRoleByUuid(String uuid)
Get Role by its UUID
|
List<Location> |
LocationService.getRootLocations(boolean includeRetired)
Returns all root locations (i.e. those who have no parentLocation), optionally including
retired ones.
|
List<ConceptSet> |
ConceptService.getSetsContainingConcept(Concept concept)
Find all sets that the given concept is a member of
|
Set<Person> |
PersonService.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender)
Find a similar person given the attributes.
|
List<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
|
Map<String,Map<String,String>> |
AdministrationService.getSystemInformation()
Get a map of all the System Information.
|
SortedMap<String,String> |
AdministrationService.getSystemVariables()
Get a listing or important variables used in openmrs
|
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 |
Concept |
ConceptService.getTrueConcept()
Returns the TRUE concept
|
Concept |
ConceptService.getUnknownConcept()
Returns the UNKNOWN concept
|
Provider |
ProviderService.getUnknownProvider()
Gets the unknown provider account, i.e. the provider account that matches the uuid specified
as the value for the global property
OpenmrsConstants.GP_UNKNOWN_PROVIDER_UUID |
User |
UserService.getUser(Integer userId)
Get user by internal user identifier.
|
User |
UserService.getUserByActivationKey(String activationKey)
Gets a user with the specified activation key
|
User |
UserService.getUserByUsername(String username)
Get user by username (user's login identifier)
|
User |
UserService.getUserByUsernameOrEmail(String usernameOrEmail)
Gets a user by username or email
|
User |
UserService.getUserByUuid(String uuid)
Get user by the given uuid.
|
List<User> |
UserService.getUsers(String nameSearch,
List<Role> roles,
boolean includeVoided)
Return a list of users sorted by personName (see
PersonByNameComparator ) if any part
of the search matches first/last/system id and the user has one at least one of the given
roles assigned to them |
List<User> |
UserService.getUsers(String name,
List<Role> roles,
boolean includeRetired,
Integer start,
Integer length)
Return a batch of users of a specific size sorted by personName (see
PersonByNameComparator ) if any part of the search matches first/last/system id and
the user has one at least one of the given roles assigned to them. |
List<User> |
UserService.getUsersByName(String givenName,
String familyName,
boolean includeRetired)
Search for a list of users by exact first name and last name.
|
List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
List<User> |
UserService.getUsersByRole(Role role)
Get users by role granted
|
Visit |
VisitService.getVisit(Integer visitId)
Gets a visit by its visit id.
|
VisitAttribute |
VisitService.getVisitAttributeByUuid(String uuid) |
VisitAttributeType |
VisitService.getVisitAttributeType(Integer id) |
VisitAttributeType |
VisitService.getVisitAttributeTypeByUuid(String uuid) |
Visit |
VisitService.getVisitByUuid(String uuid)
Gets a visit by its UUID.
|
List<Visit> |
VisitService.getVisits(Collection<VisitType> visitTypes,
Collection<Patient> patients,
Collection<Location> locations,
Collection<Concept> indications,
Date minStartDatetime,
Date maxStartDatetime,
Date minEndDatetime,
Date maxEndDatetime,
Map<VisitAttributeType,Object> attributeValues,
boolean includeInactive,
boolean includeVoided)
Gets the visits matching the specified arguments
|
List<Visit> |
VisitService.getVisits(VisitSearchCriteria visitSearchCriteria)
Gets the visits matching the specified search criteria
|
List<Visit> |
VisitService.getVisitsByPatient(Patient patient)
Gets all unvoided visits for the specified patient
|
List<Visit> |
VisitService.getVisitsByPatient(Patient patient,
boolean includeInactive,
boolean includeVoided)
Gets all visits for the specified patient
|
VisitType |
VisitService.getVisitType(Integer visitTypeId)
Gets a visit type by its visit type id.
|
VisitType |
VisitService.getVisitTypeByUuid(String uuid)
Gets a visit type by its UUID.
|
List<VisitType> |
VisitService.getVisitTypes(String fuzzySearchPhrase)
Gets all visit types whose names are similar to or contain the given search phrase.
|
boolean |
ConceptService.hasAnyConceptAttribute(ConceptAttributeType conceptAttributeType) |
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 |
ConceptService.isConceptNameDuplicate(ConceptName name)
Determines if the given concept name is a duplicate.
|
boolean |
PatientService.isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
Checks whether the given patient identifier is already assigned to a patient other than
patientIdentifier.patient
|
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,
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.
|
void |
CohortService.notifyPatientUnvoided(Patient patient,
User originallyVoidedBy,
Date originalDateVoided)
NOTE: CLIENT CODE SHOULD NEVER CALL THIS METHOD.
|
void |
CohortService.notifyPatientVoided(Patient patient)
NOTE: CLIENT CODE SHOULD NEVER CALL THIS METHOD.
|
void |
PatientService.processDeath(Patient patient,
Date dateDied,
Concept causeOfDeath,
String otherReason)
Convenience method to establish that a patient has died.
|
void |
CohortService.purgeCohortMembership(CohortMembership cohortMembership)
Removes a CohortMembership from its parent Cohort
|
void |
ConceptService.purgeConcept(Concept conceptOrConceptNumeric)
Completely purge a
Concept or ConceptNumeric from the database. |
void |
ConceptService.purgeConceptAttributeType(ConceptAttributeType conceptAttributeType)
Completely removes a concept attribute type from the database
|
void |
ConceptService.purgeConceptClass(ConceptClass cc)
Purge a ConceptClass
|
void |
ConceptService.purgeConceptMapType(ConceptMapType conceptMapType)
Completely purges a concept map type from the database
|
void |
ConceptService.purgeConceptNameTag(ConceptNameTag cnt)
Purge a ConceptNameTag
|
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 |
ConditionService.purgeCondition(Condition condition)
Completely remove a condition from the database.
|
void |
DiagnosisService.purgeDiagnosis(Diagnosis diagnosis)
Completely remove a diagnosis from the database.
|
void |
DiagnosisService.purgeDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType)
Completely removes a diagnosis attribute type from the database
|
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(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 |
MedicationDispenseService.purgeMedicationDispense(MedicationDispense medicationDispense)
Completely remove a MedicationDispense from the database.
|
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.purgeOrderAttributeType(OrderAttributeType orderAttributeType)
Completely removes an order attribute type from the database
|
void |
OrderService.purgeOrderFrequency(OrderFrequency orderFrequency)
Completely removes an order frequency from the database
|
void |
OrderService.purgeOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType)
Completely removes an order group attribute type from the database
|
void |
OrderSetService.purgeOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Completely removes an order set attribute type
|
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 |
ProgramWorkflowService.purgeProgramAttributeType(ProgramAttributeType var1) |
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 |
PatientService.removeAllergy(Allergy allergy,
String reason)
Resolving the allergy, effectively removes the Allergy from the Patient's Active List by
setting the stop date to now, if null.
|
Cohort |
CohortService.removePatientFromCohort(Cohort cohort,
Patient patient)
Deprecated.
since 2.1.0 you should explicitly call either
CohortService.endCohortMembership(CohortMembership, Date) or CohortService.voidCohortMembership(CohortMembership, String) |
User |
UserService.removeUserProperty(User user,
String key)
Removes the property denoted by
key from the user 's properties. |
Concept |
ConceptService.retireConcept(Concept conceptOrConceptNumeric,
String reason)
Retiring a concept essentially removes it from circulation
|
ConceptAttributeType |
ConceptService.retireConceptAttributeType(ConceptAttributeType conceptAttributeType,
String reason)
Retire a concept attribute type
|
ConceptMapType |
ConceptService.retireConceptMapType(ConceptMapType conceptMapType,
String retireReason)
Retiring a concept map type essentially removes it from circulation
|
ConceptReferenceTerm |
ConceptService.retireConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm,
String retireReason)
Retiring a concept reference term essentially removes it from circulation
|
ConceptSource |
ConceptService.retireConceptSource(ConceptSource cs,
String reason)
This effectively removes a concept source from the database.
|
DiagnosisAttributeType |
DiagnosisService.retireDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType,
String reason)
Retires the given diagnosis attribute type in the database
|
Drug |
ConceptService.retireDrug(Drug drug,
String reason)
Retiring a Drug essentially removes it from circulation
|
EncounterRole |
EncounterService.retireEncounterRole(EncounterRole encounterRole,
String reason)
Retire an EncounterRole.
|
EncounterType |
EncounterService.retireEncounterType(EncounterType encounterType,
String reason)
Retire an EncounterType.
|
Field |
FormService.retireField(Field field)
Retires field
|
void |
FormService.retireForm(Form form,
String reason)
Retires the Form, leaving it in the database, but removing it from data entry screens
|
Location |
LocationService.retireLocation(Location location,
String reason)
Retires the given location.
|
LocationAttributeType |
LocationService.retireLocationAttributeType(LocationAttributeType locationAttributeType,
String reason)
Retires the given location attribute type in the database
|
LocationTag |
LocationService.retireLocationTag(LocationTag tag,
String reason)
Retire the given location tag.
|
OrderAttributeType |
OrderService.retireOrderAttributeType(OrderAttributeType orderAttributeType,
String reason)
Retires the given order attribute type in the database
|
OrderFrequency |
OrderService.retireOrderFrequency(OrderFrequency orderFrequency,
String reason)
Retires the given order frequency in the database
|
OrderGroupAttributeType |
OrderService.retireOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType,
String reason)
Retires the given order group attribute type in the database
|
OrderSet |
OrderSetService.retireOrderSet(OrderSet orderSet,
String retireReason)
Retires and OrderSet, with matched OrderSet
|
OrderSetAttributeType |
OrderSetService.retireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType,
String reason)
Retires the given order set attribute type
|
OrderType |
OrderService.retireOrderType(OrderType orderType,
String reason)
Retires the given order type in the database
|
PatientIdentifierType |
PatientService.retirePatientIdentifierType(PatientIdentifierType patientIdentifierType,
String reason)
Retire a type of patient identifier
|
PersonAttributeType |
PersonService.retirePersonAttributeType(PersonAttributeType type,
String retiredReason)
Retire a Person Attribute Type
|
Program |
ProgramWorkflowService.retireProgram(Program program,
String reason)
Retires the given program
|
void |
ProviderService.retireProvider(Provider provider,
String reason)
Retires a given Provider
|
RelationshipType |
PersonService.retireRelationshipType(RelationshipType type,
String retiredReason)
Retire a Person Relationship Type
|
User |
UserService.retireUser(User user,
String reason)
Deactivate a user account so that it can no longer log in.
|
VisitAttributeType |
VisitService.retireVisitAttributeType(VisitAttributeType visitAttributeType,
String reason)
Retires the given visit attribute type in the database
|
VisitType |
VisitService.retireVisitType(VisitType visitType,
String reason)
Retires a given visit type.
|
Diagnosis |
DiagnosisService.save(Diagnosis diagnosis)
Saves a diagnosis
|
void |
LocationService.saveAddressTemplate(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,
Date dateDied,
Concept causeOfDeath,
String otherReason)
Convenience method that saves the Obs that indicates when and why the patient died (including
any "other" reason there might be)
|
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
If this is a new concept, the returned concept will have a new Concept.getConceptId()
inserted into it that was generated by the database |
ConceptAttributeType |
ConceptService.saveConceptAttributeType(ConceptAttributeType conceptAttributeType)
Creates or updates the given concept attribute type in the database
|
ConceptClass |
ConceptService.saveConceptClass(ConceptClass cc)
Creates or updates a concept class
|
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
If this is a new concept stop word, the returned concept stop word will have a new
ConceptStopWord.getConceptStopWordId() inserted into it that was
generated by the database
|
Condition |
ConditionService.saveCondition(Condition condition)
Saves a condition
|
DiagnosisAttributeType |
DiagnosisService.saveDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType)
Creates or updates the given diagnosis attribute type 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
|
List<GlobalProperty> |
AdministrationService.saveGlobalProperties(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)
|
MedicationDispense |
MedicationDispenseService.saveMedicationDispense(MedicationDispense medicationDispense)
Saves a MedicationDispense
|
Obs |
ObsService.saveObs(Obs obs,
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. |
OrderAttributeType |
OrderService.saveOrderAttributeType(OrderAttributeType orderAttributeType)
Creates or updates the given order attribute type in the database
|
OrderFrequency |
OrderService.saveOrderFrequency(OrderFrequency orderFrequency)
Creates or updates the given order frequency in the database
|
OrderGroup |
OrderService.saveOrderGroup(OrderGroup orderGroup)
Saves the orderGroup.
|
OrderGroup |
OrderService.saveOrderGroup(OrderGroup orderGroup,
OrderContext orderContext)
Saves an order group with a specific order context
|
OrderGroupAttributeType |
OrderService.saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType)
Creates or updates the given order group attribute type in the database
|
OrderSet |
OrderSetService.saveOrderSet(OrderSet orderSet)
Save or update the given
orderSet in the database. |
OrderSetAttributeType |
OrderSetService.saveOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Creates or updates the given order set attribute type
|
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
|
Program |
ProgramWorkflowService.saveProgram(Program program)
Save
program to database (create if new or update if changed) |
ProgramAttributeType |
ProgramWorkflowService.saveProgramAttributeType(ProgramAttributeType var1) |
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
|
Order |
OrderService.saveRetrospectiveOrder(Order order,
OrderContext orderContext)
Save or update the given retrospective
order in the database. |
Role |
UserService.saveRole(Role role)
Save the given role in the database
|
User |
UserService.saveUser(User user)
Updates a given
user in the database. |
User |
UserService.saveUserProperties(Map<String,String> properties)
Replaces all user properties with the given map of properties for the current user
|
User |
UserService.saveUserProperty(String key,
String value)
Saves the current key/value as a user property for the current user.
|
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.setGlobalProperty(String propertyName,
String propertyValue)
Save the given global property to the database.
|
void |
AdministrationService.setImplementationId(ImplementationId implementationId)
Set the given
implementationId as this implementation's unique id |
User |
UserService.setUserActivationKey(User user)
Sets a user's activation key
|
User |
UserService.setUserProperty(User user,
String key,
String value)
Adds the
key /value pair to the given user . |
void |
VisitService.stopVisits(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. |
Encounter |
EncounterService.transferEncounter(Encounter encounter,
Patient patient)
Transfer encounter to another patient
|
ConceptAttributeType |
ConceptService.unretireConceptAttributeType(ConceptAttributeType conceptAttributeType)
Un-Retire a concept attribute type
|
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.
|
DiagnosisAttributeType |
DiagnosisService.unretireDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType)
Restores a diagnosis attribute type that was previously 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.
|
OrderAttributeType |
OrderService.unretireOrderAttributeType(OrderAttributeType orderAttributeType)
Restores an order attribute type that was previously retired in the database
|
OrderFrequency |
OrderService.unretireOrderFrequency(OrderFrequency orderFrequency)
Restores an order frequency that was previously retired in the database
|
OrderGroupAttributeType |
OrderService.unretireOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType)
Restores an order group attribute type that was previously retired in the database
|
OrderSet |
OrderSetService.unretireOrderSet(OrderSet orderSet)
UnRetires and OrderSet, with matched OrderSet
|
OrderSetAttributeType |
OrderSetService.unretireOrderSetAttributeType(OrderSetAttributeType orderSetAttributeType)
Restores an order set attribute type that was previous retired
|
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.
|
Condition |
ConditionService.unvoidCondition(Condition condition)
Revive a previously voided condition
|
Diagnosis |
DiagnosisService.unvoidDiagnosis(Diagnosis diagnosis)
Revive a diagnosis (pull a Lazarus)
|
Encounter |
EncounterService.unvoidEncounter(Encounter encounter)
Unvoid encounter record
|
MedicationDispense |
MedicationDispenseService.unvoidMedicationDispense(MedicationDispense medicationDispense)
Un-void a previously voided MedicationDispense
|
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
|
Visit |
VisitService.unvoidVisit(Visit visit)
Unvoids the given visit.
|
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 updateConceptIndexes(Concept concept)
|
void |
AdministrationService.updateGlobalProperty(String propertyName,
String propertyValue)
Overwrites the value of the global property if it already exists.
|
Order |
OrderService.updateOrderFulfillerStatus(Order order,
Order.FulfillerStatus orderFulfillerStatus,
String fullFillerComment)
Updates the fulfillerStatus of an order and the related comment and finally persists it
|
Order |
OrderService.updateOrderFulfillerStatus(Order order,
Order.FulfillerStatus orderFulfillerStatus,
String fullFillerComment,
String accessionNumber)
Updates the fulfillerStatus of an order and the related comment and finally persists it
|
void |
PatientService.voidAllergy(Allergy allergy,
String reason)
Used only in cases where the Allergy was entered by error
|
Cohort |
CohortService.voidCohort(Cohort cohort,
String reason)
Voids the given cohort, deleting it from the perspective of the typical end user.
|
CohortMembership |
CohortService.voidCohortMembership(CohortMembership cohortMembership,
String reason)
Marks the specified CohortMembership as voided
|
Condition |
ConditionService.voidCondition(Condition condition,
String voidReason)
Voids a condition
|
Diagnosis |
DiagnosisService.voidDiagnosis(Diagnosis diagnosis,
String voidReason)
Voids a diagnosis
|
Encounter |
EncounterService.voidEncounter(Encounter encounter,
String reason)
Voiding a encounter essentially removes it from circulation
|
MedicationDispense |
MedicationDispenseService.voidMedicationDispense(MedicationDispense medicationDispense,
String reason)
Voids a MedicationDispense
|
Obs |
ObsService.voidObs(Obs obs,
String reason)
Equivalent to deleting an observation
|
Order |
OrderService.voidOrder(Order order,
String voidReason)
Mark an order as voided.
|
Patient |
PatientService.voidPatient(Patient patient,
String reason)
Void patient record (functionally delete patient from system).
|
PatientIdentifier |
PatientService.voidPatientIdentifier(PatientIdentifier patientIdentifier,
String reason)
Void patient identifier (functionally delete patient identifier from system)
|
PatientProgram |
ProgramWorkflowService.voidPatientProgram(PatientProgram patientProgram,
String reason)
Voids the given patientProgram
|
Person |
PersonService.voidPerson(Person person,
String reason)
Effectively removes this person from the system.
|
PersonAddress |
PersonService.voidPersonAddress(PersonAddress personAddress,
String voidReason)
Voids the given PersonAddress, effectively deleting the personAddress, from the end-user's
point of view.
|
PersonName |
PersonService.voidPersonName(PersonName personName,
String voidReason)
Voids the given PersonName, effectively deleting the name, from the end-user's point of view.
|
Relationship |
PersonService.voidRelationship(Relationship relationship,
String voidReason)
Voids the given Relationship, effectively removing it from openmrs.
|
Visit |
VisitService.voidVisit(Visit visit,
String reason)
Voids the given visit.
|
Modifier and Type | Method and Description |
---|---|
void |
UserServiceImpl.changePassword(User user,
String oldPassword,
String newPassword) |
Modifier and Type | Method and Description |
---|---|
Integer |
HL7Service.countHL7InArchive(int messageState,
String query)
the total count of all HL7InArchive objects in the database
|
Integer |
HL7Service.countHL7InError(String query)
the total count of all HL7InError objects in the database
|
Integer |
HL7Service.countHL7InQueue(int messageState,
String query)
the total count of all HL7InQueue objects in the database
|
List<HL7InArchive> |
HL7Service.getAllHL7InArchives()
Get all archive hl7 queue items from the database
|
List<HL7InError> |
HL7Service.getAllHL7InErrors()
Get all
HL7InError items from the database |
List<HL7InQueue> |
HL7Service.getAllHL7InQueues()
Return a list of all hl7 in queues in the database
|
List<HL7Source> |
HL7Service.getAllHL7Sources()
Get all of the hl7 source objects from the database.
|
HL7InArchive |
HL7Service.getHL7InArchive(Integer hl7InArchiveId)
Get the archive item with the given id, If hl7 archives were moved to the file system, you
can't do a look up by hl7ArchiveId, instead call
HL7Service.getHL7InArchiveByUuid(String) |
List<HL7InArchive> |
HL7Service.getHL7InArchiveBatch(int start,
int length,
int messageState,
String query)
Return a list of all hl7 in archives based on batch settings and a query string
|
List<HL7InArchive> |
HL7Service.getHL7InArchiveByState(Integer state)
If hl7 migration has been run and the state matches that of processed items, the method
returns a list of all archives in the file system, for any other state , it returns an empty
list, this is because all archives would have a status of 'processed' after migration and all
deleted archives moved back into the queue with a status of 'deleted' otherwise it returns
archives with a matching state if migration hasn't yet been run.
|
HL7InArchive |
HL7Service.getHL7InArchiveByUuid(String uuid)
Get the archive item with the given uuid
|
HL7InError |
HL7Service.getHL7InError(Integer hl7InErrorId)
Get the error item with the given id
|
List<HL7InError> |
HL7Service.getHL7InErrorBatch(int start,
int length,
String query)
Return a list of all hl7 in errors based on batch settings and a query string
|
HL7InError |
HL7Service.getHL7InErrorByUuid(String uuid)
Get the error item with the given uuid
|
HL7InQueue |
HL7Service.getHL7InQueue(Integer hl7InQueueId)
Get the hl7 queue item with the given primary key id
|
List<HL7InQueue> |
HL7Service.getHL7InQueueBatch(int start,
int length,
int messageState,
String query)
Return a list of all hl7 in queues based on batch settings and a query string
|
List<HL7InQueue> |
HL7Service.getHL7InQueueByState(Integer state)
Get the queue items given a state (deleted, error, pending, processing, processed).
|
HL7InQueue |
HL7Service.getHL7InQueueByUuid(String uuid)
Get the hl7 queue item with the given uuid
|
HL7Source |
HL7Service.getHL7Source(Integer hl7SourceId)
Auto generated method comment
|
HL7Source |
HL7Service.getHL7SourceByName(String name)
Get the hl7 source object from the database that has the given name
|
HL7InQueue |
HL7Service.getNextHL7InQueue()
Get the first queue item in the database
|
void |
HL7Service.migrateHl7InArchivesToFileSystem(Map<String,Integer> progressStatusMap)
Method is called by the archives migration thread to transfer hl7 in archives from the
hl7_in_archives database table to the file system
|
void |
HL7Service.purgeHL7InArchive(HL7InArchive hl7InArchive)
Completely delete the hl7 in archive item from the database
|
void |
HL7Service.purgeHL7InError(HL7InError hl7InError)
Completely remove this error item from the database
|
void |
HL7Service.purgeHL7InQueue(HL7InQueue hl7InQueue)
Completely delete the hl7 in queue item from the database.
|
void |
HL7Service.purgeHL7Source(HL7Source hl7Source)
Completely remove the source from the database.
|
HL7Source |
HL7Service.retireHL7Source(HL7Source hl7Source)
Mark the given
hl7Source as no longer active |
HL7InArchive |
HL7Service.saveHL7InArchive(HL7InArchive hl7InArchive)
Save the given hl7 in archive to the database
|
HL7InError |
HL7Service.saveHL7InError(HL7InError hl7InError)
Save the given error item to the database
|
HL7InQueue |
HL7Service.saveHL7InQueue(HL7InQueue hl7InQueue)
Save the given
hl7InQueue to the database |
HL7Source |
HL7Service.saveHL7Source(HL7Source hl7Source)
Save the given
hl7Source to the database |
Modifier and Type | Method and Description |
---|---|
Alert |
AlertService.getAlert(Integer alertId)
Get alert by internal identifier
|
List<Alert> |
AlertService.getAlerts(User user,
boolean includeRead,
boolean includeExpired)
Finds alerts for the given user with the given status
|
List<Alert> |
AlertService.getAlertsByUser(User user)
Find the alerts that are not read and have not expired for a user This will probably be the
most commonly called method If null is passed in for
user , find alerts for the
currently authenticated user. |
List<Alert> |
AlertService.getAllActiveAlerts(User user)
Find all alerts for a user that have not expired
|
List<Alert> |
AlertService.getAllAlerts()
Get all unexpired alerts for all users
|
List<Alert> |
AlertService.getAllAlerts(boolean includeExpired)
Get alerts for all users while obeying includeExpired
|
void |
AlertService.notifySuperUsers(String messageCode,
Exception cause,
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(Integer id)
Delete the task with the given identifier.
|
Collection<TaskDefinition> |
SchedulerService.getRegisteredTasks()
Get the list of tasks that are available to be scheduled.
|
Collection<TaskDefinition> |
SchedulerService.getScheduledTasks()
Get scheduled tasks.
|
String |
SchedulerService.getStatus(Integer id)
Checks the status of a scheduled task.
|
TaskDefinition |
SchedulerService.getTask(Integer id)
Get the task with the given identifier.
|
TaskDefinition |
SchedulerService.getTaskByName(String name)
Get the task with the given name.
|
TaskDefinition |
SchedulerService.getTaskByUuid(String uuid) |
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.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.
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.