Package | Description |
---|---|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.hl7.db |
HL7-specific DAO classes
|
org.openmrs.hl7.db.hibernate | |
org.openmrs.notification.db | |
org.openmrs.notification.db.hibernate | |
org.openmrs.scheduler.db | |
org.openmrs.scheduler.db.hibernate | |
org.openmrs.util |
Shared utilities for OpenMRS classes
|
Modifier and Type | Method and Description |
---|---|
void |
UserDAO.changeHashedPassword(User user,
String hashedPassword,
String salt) |
void |
UserDAO.changePassword(String pw,
String pw2) |
void |
UserDAO.changePassword(User u,
String pw) |
void |
UserDAO.changeQuestionAnswer(String pw,
String q,
String a) |
void |
UserDAO.changeQuestionAnswer(User u,
String question,
String answer) |
<T extends OpenmrsObject> |
SerializedObjectDAO.convertSerializedObject(Class<T> clazz,
SerializedObject serializedObject)
Converts a raw SerializedObject to an OpenmrsObject, using the appropriate Serializer
|
void |
TemplateDAO.createTemplate(Template template)
Create new template.
|
Cohort |
CohortDAO.deleteCohort(Cohort cohort)
Removes a cohort from the database
|
void |
ConceptDAO.deleteConceptMapType(ConceptMapType conceptMapType) |
void |
ConceptDAO.deleteConceptNameTag(ConceptNameTag cnt) |
void |
ConceptDAO.deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
ConceptDAO.deleteConceptSource(ConceptSource cs) |
void |
ConceptDAO.deleteConceptStopWord(Integer conceptStopWordId) |
void |
ConditionDAO.deleteCondition(Condition condition)
Removes a condition from the database
|
void |
DiagnosisDAO.deleteDiagnosis(Diagnosis diagnosis)
Deletes a diagnosis
|
void |
DiagnosisDAO.deleteDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType) |
void |
EncounterDAO.deleteEncounter(Encounter encounter)
Purge an encounter from database.
|
void |
EncounterDAO.deleteEncounterRole(EncounterRole encounterRole)
Purge an encounter role from database.
|
void |
EncounterDAO.deleteEncounterType(EncounterType encounterType)
Purge encounter type from database.
|
void |
FormDAO.deleteField(Field field)
Deletes a field from the database.
|
void |
FormDAO.deleteFieldType(FieldType fieldType)
Delete the given field type from the database
|
void |
FormDAO.deleteForm(Form form)
Delete form from database.
|
void |
FormDAO.deleteFormField(FormField formField)
Deletes a FormField from the database.
|
void |
AdministrationDAO.deleteGlobalProperty(GlobalProperty gp) |
void |
ObsDAO.deleteObs(Obs obs) |
void |
OrderDAO.deleteOrder(Order order) |
void |
OrderDAO.deleteOrderAttributeType(OrderAttributeType orderAttributeType) |
void |
OrderDAO.deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) |
void |
PatientDAO.deletePatient(Patient patient)
Delete patient from database.
|
void |
PatientDAO.deletePatientIdentifier(PatientIdentifier patientIdentifier) |
void |
PatientDAO.deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
void |
ProgramWorkflowDAO.deletePatientProgram(PatientProgram patientProgram)
Completely remove a patientProgram from the database (not reversible) This method delegates
to #purgePatientProgram(patientProgram, boolean) method
|
void |
PersonDAO.deletePerson(Person person) |
void |
PersonDAO.deletePersonAttributeType(PersonAttributeType type) |
void |
UserDAO.deletePrivilege(Privilege privilege) |
void |
ProgramWorkflowDAO.deleteProgram(Program program)
Completely remove a program from the database (not reversible) This method delegates to
#purgeProgram(program, boolean) method
|
void |
PersonDAO.deleteRelationship(Relationship relationship) |
void |
PersonDAO.deleteRelationshipType(RelationshipType relationshipType) |
void |
UserDAO.deleteRole(Role role) |
void |
TemplateDAO.deleteTemplate(Template template)
Delete existing template.
|
void |
UserDAO.deleteUser(User user) |
void |
VisitDAO.deleteVisit(Visit visit) |
Form |
FormDAO.duplicateForm(Form form)
Creates new form from the given
Form |
List<List<Object>> |
AdministrationDAO.executeSQL(String sql,
boolean selectOnly) |
List<EncounterType> |
EncounterDAO.findEncounterTypes(String name)
Find Encounter Types matching the given name.
|
List<Program> |
ProgramWorkflowDAO.findPrograms(String nameFragment)
Returns programs that match the given string.
|
Integer |
UserDAO.generateSystemId() |
List<Cohort> |
CohortDAO.getAllCohorts(boolean includeVoided)
Gets all cohorts in the database
|
List<ConceptClass> |
ConceptDAO.getAllConceptClasses(boolean includeRetired) |
List<ConceptDatatype> |
ConceptDAO.getAllConceptDatatypes(boolean includeRetired) |
List<ConceptProposal> |
ConceptDAO.getAllConceptProposals(boolean includeComplete) |
List<Concept> |
ConceptDAO.getAllConcepts(String sortBy,
boolean asc,
boolean includeRetired) |
List<ConceptSource> |
ConceptDAO.getAllConceptSources(boolean includeRetired) |
List<ConceptStateConversion> |
ProgramWorkflowDAO.getAllConceptStateConversions()
Returns all conceptStateConversions
|
List<DiagnosisAttributeType> |
DiagnosisDAO.getAllDiagnosisAttributeTypes() |
List<EncounterRole> |
EncounterDAO.getAllEncounterRoles(boolean includeRetired)
Get all encounter roles and optionally specify whether to include retired encountered roles
|
List<EncounterType> |
EncounterDAO.getAllEncounterTypes(Boolean includeVoided)
Get all encounter types
|
List<Field> |
FormDAO.getAllFields(boolean includeRetired)
Returns all fields in the database, possibly including retired ones
|
List<FieldType> |
FormDAO.getAllFieldTypes(boolean includeRetired)
Get all field types
|
List<FormField> |
FormDAO.getAllFormFields()
Returns all FormFields in the database
|
List<Form> |
FormDAO.getAllForms(boolean includeRetired)
Returns all forms in the database, possibly including retired ones
|
List<GlobalProperty> |
AdministrationDAO.getAllGlobalProperties() |
<T extends OpenmrsObject> |
SerializedObjectDAO.getAllObjects(Class<T> type)
Retrieves all non-retired objects of the passed type from the database that have been saved
through serialization
|
<T extends OpenmrsObject> |
SerializedObjectDAO.getAllObjects(Class<T> type,
boolean includeRetired)
Retrieves all objects from the database that match the passed type that have been saved
through serialization Returns voided / retired Objects only if includeRetired parameter is
true
|
<T extends OpenmrsMetadata> |
SerializedObjectDAO.getAllObjectsByName(Class<T> type,
String name,
boolean exactMatchOnly)
Retrieves all objects from the database that match the passed type and name that have been
saved through serialization
|
List<OrderAttributeType> |
OrderDAO.getAllOrderAttributeTypes() |
List<OrderGroupAttributeType> |
OrderDAO.getAllOrderGroupAttributeTypes() |
List<PatientIdentifierType> |
PatientDAO.getAllPatientIdentifierTypes(boolean includeRetired)
Should not return null when includeRetired is false
Should not return retired when includeRetired is false
Should not return null when includeRetired is true
Should return all when includeRetired is true
|
List<Patient> |
PatientDAO.getAllPatients(boolean includeVoided) |
List<PersonAttributeType> |
PersonDAO.getAllPersonAttributeTypes(boolean includeRetired) |
List<PersonMergeLog> |
PersonDAO.getAllPersonMergeLogs()
Gets all the PersonMergeLog objects in the model
|
List<Privilege> |
UserDAO.getAllPrivileges() |
List<Program> |
ProgramWorkflowDAO.getAllPrograms(boolean includeRetired)
Returns all programs
|
List<Relationship> |
PersonDAO.getAllRelationships(boolean includeVoided) |
List<Role> |
UserDAO.getAllRoles() |
List<SerializedObject> |
SerializedObjectDAO.getAllSerializedObjects(Class<?> type,
boolean includeRetired)
Retrieves all raw Serialized Object from the database that match the passed type and
includeRetired flag
|
List<SerializedObject> |
SerializedObjectDAO.getAllSerializedObjectsByName(Class<?> type,
String name,
boolean exactMatchOnly)
Retrieves all raw Serialized Objects from the database that match the passed type and name
|
List<User> |
UserDAO.getAllUsers() |
List<VisitType> |
VisitDAO.getAllVisitTypes(boolean includeRetired) |
Cohort |
CohortDAO.getCohort(Integer id)
Finds the cohort with the given primary key
|
List<Cohort> |
CohortDAO.getCohorts(String nameFragment)
Finds all Cohorts with matching names
|
Concept |
ConceptDAO.getConcept(Integer conceptId) |
ConceptAnswer |
ConceptDAO.getConceptAnswer(Integer conceptAnswerId) |
ConceptClass |
ConceptDAO.getConceptClass(Integer i) |
List<ConceptClass> |
ConceptDAO.getConceptClasses(String name) |
ConceptDatatype |
ConceptDAO.getConceptDatatype(Integer i) |
ConceptDatatype |
ConceptDAO.getConceptDatatypeByName(String name) |
List<ConceptMap> |
ConceptDAO.getConceptMapsBySource(ConceptSource conceptSource) |
ConceptMapType |
ConceptDAO.getConceptMapType(Integer conceptMapTypeId) |
ConceptMapType |
ConceptDAO.getConceptMapTypeByName(String name) |
ConceptMapType |
ConceptDAO.getConceptMapTypeByUuid(String uuid) |
List<ConceptMapType> |
ConceptDAO.getConceptMapTypes(boolean includeRetired,
boolean includeHidden) |
ConceptName |
ConceptDAO.getConceptName(Integer conceptNameId) |
ConceptNumeric |
ConceptDAO.getConceptNumeric(Integer conceptId) |
ConceptProposal |
ConceptDAO.getConceptProposal(Integer i) |
List<ConceptProposal> |
ConceptDAO.getConceptProposals(String text) |
ConceptReferenceTerm |
ConceptDAO.getConceptReferenceTerm(Integer conceptReferenceTermId) |
ConceptReferenceTerm |
ConceptDAO.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource) |
List<ConceptReferenceTerm> |
ConceptDAO.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource,
boolean includeRetired) |
ConceptReferenceTerm |
ConceptDAO.getConceptReferenceTermByName(String name,
ConceptSource conceptSource) |
ConceptReferenceTerm |
ConceptDAO.getConceptReferenceTermByUuid(String uuid) |
List<ConceptReferenceTerm> |
ConceptDAO.getConceptReferenceTerms(boolean includeRetired) |
List<ConceptReferenceTerm> |
ConceptDAO.getConceptReferenceTermsBySource(ConceptSource conceptSource) |
List<ConceptSearchResult> |
ConceptDAO.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) |
List<Concept> |
ConceptDAO.getConcepts(String name,
Locale loc,
boolean searchOnPhrase,
List<ConceptClass> classes,
List<ConceptDatatype> datatypes)
Returns a list of concepts based on the search criteria
|
List<Concept> |
ConceptDAO.getConceptsByAnswer(Concept concept) |
List<ConceptSet> |
ConceptDAO.getConceptSetsByConcept(Concept c) |
ConceptSource |
ConceptDAO.getConceptSource(Integer conceptSourceId) |
ConceptSource |
ConceptDAO.getConceptSourceByName(String conceptSourceName) |
List<String> |
ConceptDAO.getConceptStopWords(Locale locale) |
List<Concept> |
ConceptDAO.getConceptsWithDrugsInFormulary() |
Long |
ConceptDAO.getCountOfConceptReferenceTerms(String query,
ConceptSource conceptSource,
boolean includeRetired) |
Integer |
ConceptDAO.getCountOfConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept) |
Long |
ConceptDAO.getCountOfDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired) |
ConceptMapType |
ConceptDAO.getDefaultConceptMapType()
It is in the DAO, because it must be done in the MANUAL flush mode to prevent premature
flushes in
ConceptService.saveConcept(Concept) . |
DiagnosisAttribute |
DiagnosisDAO.getDiagnosisAttributeByUuid(String uuid) |
DiagnosisAttributeType |
DiagnosisDAO.getDiagnosisAttributeTypeById(Integer id) |
DiagnosisAttributeType |
DiagnosisDAO.getDiagnosisAttributeTypeByUuid(String uuid) |
Diagnosis |
DiagnosisDAO.getDiagnosisById(Integer diagnosisId)
Gets a diagnosis from database using the diagnosis id
|
Drug |
ConceptDAO.getDrug(Integer drugId) |
Drug |
ConceptDAO.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
List<Drug> |
ConceptDAO.getDrugs(String phrase) |
List<Drug> |
ConceptDAO.getDrugs(String drugName,
Concept concept,
boolean includeRetired)
DAO for retrieving a list of drugs based on the following criteria
|
List<Drug> |
ConceptDAO.getDrugs(String drugName,
Concept concept,
boolean searchOnPhrase,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length) |
List<Drug> |
ConceptDAO.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
List<Patient> |
PatientDAO.getDuplicatePatientsByAttributes(List<String> attributes) |
Encounter |
EncounterDAO.getEncounter(Integer encounterId)
Get encounter by internal identifier
|
EncounterRole |
EncounterDAO.getEncounterRole(Integer encounterRoleId)
Get encounter role by internal identifier
|
EncounterRole |
EncounterDAO.getEncounterRoleByName(String name) |
List<EncounterRole> |
EncounterDAO.getEncounterRolesByName(String name)
Get encounter roles by name
|
List<Encounter> |
EncounterDAO.getEncountersByPatientId(Integer patientId) |
List<Encounter> |
EncounterDAO.getEncountersNotAssignedToAnyVisit(Patient patient) |
EncounterType |
EncounterDAO.getEncounterType(Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
EncounterDAO.getEncounterType(String name)
Get encounterType by name
|
Field |
FormDAO.getField(Integer fieldId) |
List<Field> |
FormDAO.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 a broad range of (nullable) criteria
|
List<Field> |
FormDAO.getFields(String search) |
FieldType |
FormDAO.getFieldType(Integer fieldTypeId)
Get fieldType by internal identifier
|
Form |
FormDAO.getForm(Integer formId)
Get form by internal form identifier
|
Form |
FormDAO.getForm(String name,
String version)
Get form by exact name and version
|
Integer |
FormDAO.getFormCount(String partialName,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields) |
FormField |
FormDAO.getFormField(Form form,
Concept concept,
Collection<FormField> ignoreFormFields,
boolean force) |
FormField |
FormDAO.getFormField(Integer formFieldId) |
List<Form> |
FormDAO.getForms(String partialName,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields)
Gets all forms that match all the criteria.
|
List<Form> |
FormDAO.getFormsByName(String name)
Gets all forms with the given name, sorted (alphabetically) by descending version
|
List<Form> |
FormDAO.getFormsContainingConcept(Concept concept)
Get all forms that contain the given
Concept as one of their fields. |
String |
AdministrationDAO.getGlobalProperty(String propertyName) |
GlobalProperty |
AdministrationDAO.getGlobalPropertyByUuid(String uuid) |
List<Location> |
LocationDAO.getLocations(String nameFragment,
Location parent,
Map<LocationAttributeType,String> serializedAttributeValues,
boolean includeRetired,
Integer start,
Integer length)
Gets the locations matching the specified arguments
|
PersonMergeLog |
PersonDAO.getLosingPersonMergeLogs(Person person)
Finds the PersonMergeLog by loser
|
Concept |
ConceptDAO.getNextConcept(Concept c) |
<T extends OpenmrsObject> |
SerializedObjectDAO.getObject(Class<T> type,
Integer id)
Retrieves the saved object of the passed type from the database by it's id
|
<T extends OpenmrsObject> |
SerializedObjectDAO.getObjectByUuid(Class<T> type,
String uuid)
Retrieves the saved object of the passed type from the database by it's uuid
|
Obs |
ObsDAO.getObs(Integer obsId) |
Long |
ObsDAO.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,
List<ConceptName> valueCodedNameAnswers,
boolean includeVoidedObs,
String accessionNumber) |
Long |
ObsDAO.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,
List<ConceptName> valueCodedNameAnswers,
List<Visit> visits,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
ObsDAO.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> |
ObsDAO.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
List<Visit> visits,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
Order |
OrderDAO.getOrder(Integer orderId) |
OrderAttribute |
OrderDAO.getOrderAttributeByUuid(String uuid) |
OrderAttributeType |
OrderDAO.getOrderAttributeTypeById(Integer orderAttributeTypeId) |
OrderAttributeType |
OrderDAO.getOrderAttributeTypeByName(String name) |
OrderAttributeType |
OrderDAO.getOrderAttributeTypeByUuid(String uuid) |
OrderGroupAttribute |
OrderDAO.getOrderGroupAttributeByUuid(String uuid) |
OrderGroupAttributeType |
OrderDAO.getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) |
OrderGroupAttributeType |
OrderDAO.getOrderGroupAttributeTypeByName(String name) |
OrderGroupAttributeType |
OrderDAO.getOrderGroupAttributeTypeByUuid(String uuid) |
OrderGroup |
OrderDAO.getOrderGroupById(Integer orderGroupId) |
OrderGroup |
OrderDAO.getOrderGroupByUuid(String uuid) |
List<OrderGroup> |
OrderDAO.getOrderGroupsByEncounter(Encounter encounter) |
List<OrderGroup> |
OrderDAO.getOrderGroupsByPatient(Patient patient) |
OrderSet |
OrderSetDAO.getOrderSetById(Integer orderSetId) |
OrderSet |
OrderSetDAO.getOrderSetByUniqueUuid(String orderSetUuid) |
OrderSetMember |
OrderSetDAO.getOrderSetMemberByUuid(String uuid) |
List<OrderSet> |
OrderSetDAO.getOrderSets(boolean includeRetired) |
Patient |
PatientDAO.getPatient(Integer patientId) |
PatientIdentifier |
PatientDAO.getPatientIdentifier(Integer patientIdentifierId) |
List<PatientIdentifier> |
PatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
PatientIdentifierType |
PatientDAO.getPatientIdentifierType(Integer patientIdentifierTypeId) |
List<PatientIdentifierType> |
PatientDAO.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit) |
List<PatientProgram> |
ProgramWorkflowDAO.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided)
Returns PatientPrograms that match the input parameters.
|
List<Patient> |
PatientDAO.getPatients(String query,
boolean includeVoided,
Integer start,
Integer length) |
List<Patient> |
PatientDAO.getPatients(String query,
Integer start,
Integer length) |
List<Patient> |
PatientDAO.getPatients(String name,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
List<Person> |
PersonDAO.getPeople(String searchPhrase,
Boolean dead) |
List<Person> |
PersonDAO.getPeople(String searchPhrase,
Boolean dead,
Boolean voided) |
Person |
PersonDAO.getPerson(Integer personId) |
PersonAttribute |
PersonDAO.getPersonAttribute(Integer id) |
PersonAttributeType |
PersonDAO.getPersonAttributeType(Integer typeId) |
List<PersonAttributeType> |
PersonDAO.getPersonAttributeTypes(String exactName,
String format,
Integer foreignKey,
Boolean searchable) |
PersonMergeLog |
PersonDAO.getPersonMergeLog(Integer id)
Gets a
PersonMergeLog object from the model by id |
PersonMergeLog |
PersonDAO.getPersonMergeLogByUuid(String uuid)
Gets a PersonMergeLog object from the model using UUID
|
Concept |
ConceptDAO.getPrevConcept(Concept c) |
Privilege |
UserDAO.getPrivilege(String p) |
Program |
ProgramWorkflowDAO.getProgram(Integer programId)
Retrieves a
Program from the database by primary key programId |
List<Concept> |
ConceptDAO.getProposedConcepts(String text) |
List<ConceptReferenceTermMap> |
ConceptDAO.getReferenceTermMappingsTo(ConceptReferenceTerm term) |
Relationship |
PersonDAO.getRelationship(Integer relationshipId) |
List<Relationship> |
PersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<Relationship> |
PersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date startEffectiveDate,
Date endEffectiveDate) |
RelationshipType |
PersonDAO.getRelationshipType(Integer relationshipTypeId) |
List<RelationshipType> |
PersonDAO.getRelationshipTypes(String relationshipTypeName,
Boolean preferred) |
Role |
UserDAO.getRole(String r) |
SerializedObject |
SerializedObjectDAO.getSerializedObject(Integer id)
Retrieves the raw SerializedObject from the database by id
|
SerializedObject |
SerializedObjectDAO.getSerializedObjectByUuid(String uuid)
Retrieves the raw Serialized Object from the database by uuid
|
List<ConceptSet> |
ConceptDAO.getSetsContainingConcept(Concept concept) |
Set<Person> |
PersonDAO.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Template |
TemplateDAO.getTemplate(Integer id)
Get message template by id
|
List<Template> |
TemplateDAO.getTemplates()
Get all message templates
|
List<Template> |
TemplateDAO.getTemplatesByName(String name)
Get message template by name
|
User |
UserDAO.getUser(Integer userId) |
User |
UserDAO.getUserByUsername(String username) |
List<User> |
UserDAO.getUsers(String name,
List<Role> roles,
boolean includeRetired,
Integer start,
Integer length) |
Visit |
VisitDAO.getVisit(Integer visitId) |
Visit |
VisitDAO.getVisitByUuid(String uuid) |
List<Visit> |
VisitDAO.getVisits(Collection<VisitType> visitTypes,
Collection<Patient> patients,
Collection<Location> locations,
Collection<Concept> indications,
Date minStartDatetime,
Date maxStartDatetime,
Date minEndDatetime,
Date maxEndDatetime,
Map<VisitAttributeType,String> serializedAttributeValues,
boolean includeInactive,
boolean includeVoided)
Gets the visits matching the specified arguments
|
List<Visit> |
VisitDAO.getVisits(VisitSearchCriteria criteria)
Gets the visits matching the specified search criteria
|
List<PersonMergeLog> |
PersonDAO.getWinningPersonMergeLogs(Person person)
Gets the PersonMergeLog objects by winner
|
boolean |
UserDAO.hasDuplicateUsername(String username,
String systemId,
Integer userId) |
boolean |
ConceptDAO.isConceptMapTypeInUse(ConceptMapType mapType)
Checks if there are any
ConceptReferenceTermMap s or ConceptMap s using the
specified mapType |
boolean |
ConceptDAO.isConceptReferenceTermInUse(ConceptReferenceTerm term)
Checks if there are any
ConceptReferenceTermMap s or ConceptMap s using the
specified term |
boolean |
AdministrationDAO.isDatabaseStringComparisonCaseSensitive() |
boolean |
ProviderDAO.isProviderIdentifierUnique(Provider provider) |
boolean |
UserDAO.isSecretAnswer(User u,
String answer) |
void |
ConceptDAO.purgeConcept(Concept concept) |
void |
ConceptDAO.purgeConceptClass(ConceptClass cc) |
void |
ConceptDAO.purgeConceptDatatype(ConceptDatatype cd) |
void |
ConceptDAO.purgeConceptProposal(ConceptProposal cp) |
void |
ConceptDAO.purgeDrug(Drug drug) |
void |
SerializedObjectDAO.purgeObject(Integer id)
Deletes the item from the database with the given primary key id
|
void |
SerializedObjectDAO.registerSupportedType(Class<? extends OpenmrsObject> clazz)
Registers a class as one that should be supported
|
OrderSet |
OrderSetDAO.save(OrderSet orderSet) |
Cohort |
CohortDAO.saveCohort(Cohort cohort)
Saves a Cohort to the database
|
Concept |
ConceptDAO.saveConcept(Concept concept) |
ConceptClass |
ConceptDAO.saveConceptClass(ConceptClass cc) |
ConceptDatatype |
ConceptDAO.saveConceptDatatype(ConceptDatatype cd) |
ConceptMapType |
ConceptDAO.saveConceptMapType(ConceptMapType conceptMapType) |
ConceptProposal |
ConceptDAO.saveConceptProposal(ConceptProposal cp) |
ConceptReferenceTerm |
ConceptDAO.saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
ConceptDAO.saveConceptSource(ConceptSource conceptSource) |
ConceptStateConversion |
ProgramWorkflowDAO.saveConceptStateConversion(ConceptStateConversion csc)
Save ConceptStateConversion to database (create if new or update if changed)
|
ConceptStopWord |
ConceptDAO.saveConceptStopWord(ConceptStopWord conceptStopWord) |
Diagnosis |
DiagnosisDAO.saveDiagnosis(Diagnosis diagnosis)
Saves the diagnosis
|
DiagnosisAttributeType |
DiagnosisDAO.saveDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType) |
Drug |
ConceptDAO.saveDrug(Drug drug) |
Encounter |
EncounterDAO.saveEncounter(Encounter encounter)
Saves an encounter
|
EncounterRole |
EncounterDAO.saveEncounterRole(EncounterRole encounterRole)
Saves an encounter role
|
Field |
FormDAO.saveField(Field field) |
FieldType |
FormDAO.saveFieldType(FieldType fieldType)
Save the given field type to the database
|
Form |
FormDAO.saveForm(Form form) |
FormField |
FormDAO.saveFormField(FormField formField) |
GlobalProperty |
AdministrationDAO.saveGlobalProperty(GlobalProperty gp) |
<T extends OpenmrsObject> |
SerializedObjectDAO.saveObject(T object)
Saves an object to the database in serialized form
|
<T extends OpenmrsObject> |
SerializedObjectDAO.saveObject(T object,
OpenmrsSerializer serializer)
Saves an object to the database, in serialized form, using the specified
OpenmrsSerializer |
Obs |
ObsDAO.saveObs(Obs obs) |
Order |
OrderDAO.saveOrder(Order order) |
OrderAttributeType |
OrderDAO.saveOrderAttributeType(OrderAttributeType orderAttributeType) |
OrderGroup |
OrderDAO.saveOrderGroup(OrderGroup orderGroup)
Saves an orderGroup to the database
|
OrderGroupAttributeType |
OrderDAO.saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) |
Patient |
PatientDAO.savePatient(Patient patient) |
PatientIdentifierType |
PatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientProgram |
ProgramWorkflowDAO.savePatientProgram(PatientProgram patientProgram)
Save patientProgram to database (create if new or update if changed)
|
Person |
PersonDAO.savePerson(Person person) |
PersonAttributeType |
PersonDAO.savePersonAttributeType(PersonAttributeType type) |
PersonMergeLog |
PersonDAO.savePersonMergeLog(PersonMergeLog personMergeLog)
Saves a
PersonMergeLog object to the database |
Privilege |
UserDAO.savePrivilege(Privilege privilege) |
Program |
ProgramWorkflowDAO.saveProgram(Program program)
Saves a Program to the database
|
Relationship |
PersonDAO.saveRelationship(Relationship relationship) |
RelationshipType |
PersonDAO.saveRelationshipType(RelationshipType relationshipType) |
Role |
UserDAO.saveRole(Role role) |
User |
UserDAO.saveUser(User user,
String password) |
Visit |
VisitDAO.saveVisit(Visit visit) |
void |
SerializedObjectDAO.unregisterSupportedType(Class<? extends OpenmrsObject> clazz)
Removes this class as one that should be supported
|
void |
AdministrationDAO.updatePostgresSequence() |
void |
TemplateDAO.updateTemplate(Template template)
Update existing template.
|
void |
AdministrationDAO.validate(Object object,
org.springframework.validation.Errors errors) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateUserDAO.changeHashedPassword(User user,
String hashedPassword,
String salt) |
void |
HibernateUserDAO.changePassword(String oldPassword,
String newPassword) |
void |
HibernateUserDAO.changePassword(User u,
String pw) |
void |
HibernateUserDAO.changeQuestionAnswer(String pw,
String question,
String answer) |
void |
HibernateUserDAO.changeQuestionAnswer(User u,
String question,
String answer) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.convertSerializedObject(Class<T> clazz,
SerializedObject serializedObject) |
void |
HibernateTemplateDAO.createTemplate(Template template) |
Cohort |
HibernateCohortDAO.deleteCohort(Cohort cohort) |
void |
HibernateConceptDAO.deleteConceptMapType(ConceptMapType conceptMapType) |
void |
HibernateConceptDAO.deleteConceptNameTag(ConceptNameTag cnt) |
void |
HibernateConceptDAO.deleteConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
HibernateConceptDAO.deleteConceptSource(ConceptSource cs) |
void |
HibernateConceptDAO.deleteConceptStopWord(Integer conceptStopWordId) |
void |
HibernateConditionDAO.deleteCondition(Condition condition)
Removes a condition from the database
|
void |
HibernateDiagnosisDAO.deleteDiagnosis(Diagnosis diagnosis)
Completely remove a diagnosis from the database.
|
void |
HibernateDiagnosisDAO.deleteDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType) |
void |
HibernateEncounterDAO.deleteEncounter(Encounter encounter) |
void |
HibernateEncounterDAO.deleteEncounterRole(EncounterRole encounterRole) |
void |
HibernateEncounterDAO.deleteEncounterType(EncounterType encounterType) |
void |
HibernateFormDAO.deleteField(Field field) |
void |
HibernateFormDAO.deleteFieldType(FieldType fieldType) |
void |
HibernateFormDAO.deleteForm(Form form) |
void |
HibernateFormDAO.deleteFormField(FormField formField) |
void |
HibernateAdministrationDAO.deleteGlobalProperty(GlobalProperty property) |
void |
HibernateObsDAO.deleteObs(Obs obs) |
void |
HibernateOrderDAO.deleteOrder(Order order) |
void |
HibernateOrderDAO.deleteOrderAttributeType(OrderAttributeType orderAttributeType) |
void |
HibernateOrderDAO.deleteOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) |
void |
HibernatePatientDAO.deletePatient(Patient patient) |
void |
HibernatePatientDAO.deletePatientIdentifier(PatientIdentifier patientIdentifier) |
void |
HibernatePatientDAO.deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
void |
HibernateProgramWorkflowDAO.deletePatientProgram(PatientProgram patientProgram) |
void |
HibernatePersonDAO.deletePerson(Person person) |
void |
HibernateUserDAO.deletePrivilege(Privilege privilege) |
void |
HibernateProgramWorkflowDAO.deleteProgram(Program program) |
void |
HibernatePersonDAO.deleteRelationship(Relationship relationship) |
void |
HibernatePersonDAO.deleteRelationshipType(RelationshipType relationshipType) |
void |
HibernateUserDAO.deleteRole(Role role) |
void |
HibernateTemplateDAO.deleteTemplate(Template template) |
void |
HibernateVisitDAO.deleteVisit(Visit visit) |
Form |
HibernateFormDAO.duplicateForm(Form form) |
List<List<Object>> |
HibernateAdministrationDAO.executeSQL(String sql,
boolean selectOnly) |
List<EncounterType> |
HibernateEncounterDAO.findEncounterTypes(String name) |
List<Program> |
HibernateProgramWorkflowDAO.findPrograms(String nameFragment) |
List<Cohort> |
HibernateCohortDAO.getAllCohorts(boolean includeVoided) |
List<ConceptClass> |
HibernateConceptDAO.getAllConceptClasses(boolean includeRetired) |
List<ConceptDatatype> |
HibernateConceptDAO.getAllConceptDatatypes(boolean includeRetired) |
List<ConceptProposal> |
HibernateConceptDAO.getAllConceptProposals(boolean includeCompleted) |
List<Concept> |
HibernateConceptDAO.getAllConcepts(String sortBy,
boolean asc,
boolean includeRetired) |
List<ConceptSource> |
HibernateConceptDAO.getAllConceptSources(boolean includeRetired) |
List<ConceptStateConversion> |
HibernateProgramWorkflowDAO.getAllConceptStateConversions() |
List<DiagnosisAttributeType> |
HibernateDiagnosisDAO.getAllDiagnosisAttributeTypes() |
List<EncounterType> |
HibernateEncounterDAO.getAllEncounterTypes(Boolean includeRetired) |
List<Field> |
HibernateFormDAO.getAllFields(boolean includeRetired) |
List<GlobalProperty> |
HibernateAdministrationDAO.getAllGlobalProperties() |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.getAllObjects(Class<T> type) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.getAllObjects(Class<T> type,
boolean includeRetired) |
<T extends OpenmrsMetadata> |
HibernateSerializedObjectDAO.getAllObjectsByName(Class<T> type,
String name,
boolean exactMatchOnly) |
List<OrderAttributeType> |
HibernateOrderDAO.getAllOrderAttributeTypes() |
List<PatientIdentifierType> |
HibernatePatientDAO.getAllPatientIdentifierTypes(boolean includeRetired)
Should not return null when includeRetired is false
Should not return retired when includeRetired is false
Should not return null when includeRetired is true
Should return all when includeRetired is true
Should return ordered
|
List<Patient> |
HibernatePatientDAO.getAllPatients(boolean includeVoided) |
List<PersonAttributeType> |
HibernatePersonDAO.getAllPersonAttributeTypes(boolean includeRetired) |
List<PersonMergeLog> |
HibernatePersonDAO.getAllPersonMergeLogs() |
List<Privilege> |
HibernateUserDAO.getAllPrivileges() |
List<Program> |
HibernateProgramWorkflowDAO.getAllPrograms(boolean includeRetired) |
List<Relationship> |
HibernatePersonDAO.getAllRelationships(boolean includeVoided) |
List<Role> |
HibernateUserDAO.getAllRoles() |
List<SerializedObject> |
HibernateSerializedObjectDAO.getAllSerializedObjectsByName(Class<?> type,
String name,
boolean exactMatchOnly) |
List<User> |
HibernateUserDAO.getAllUsers() |
Cohort |
HibernateCohortDAO.getCohort(Integer id) |
List<Cohort> |
HibernateCohortDAO.getCohorts(String nameFragment) |
List<Cohort> |
HibernateCohortDAO.getCohortsContainingPatientId(Integer patientId,
boolean includeVoided,
Date asOfDate) |
Concept |
HibernateConceptDAO.getConcept(Integer conceptId) |
ConceptAnswer |
HibernateConceptDAO.getConceptAnswer(Integer conceptAnswerId) |
ConceptClass |
HibernateConceptDAO.getConceptClass(Integer i) |
List<ConceptClass> |
HibernateConceptDAO.getConceptClasses(String name) |
ConceptDatatype |
HibernateConceptDAO.getConceptDatatypeByName(String name) |
List<ConceptDatatype> |
HibernateConceptDAO.getConceptDatatypes(String name) |
List<ConceptMap> |
HibernateConceptDAO.getConceptMapsBySource(ConceptSource conceptSource) |
ConceptMapType |
HibernateConceptDAO.getConceptMapType(Integer conceptMapTypeId) |
ConceptMapType |
HibernateConceptDAO.getConceptMapTypeByName(String name) |
ConceptMapType |
HibernateConceptDAO.getConceptMapTypeByUuid(String uuid) |
List<ConceptMapType> |
HibernateConceptDAO.getConceptMapTypes(boolean includeRetired,
boolean includeHidden) |
ConceptName |
HibernateConceptDAO.getConceptName(Integer conceptNameId) |
ConceptProposal |
HibernateConceptDAO.getConceptProposal(Integer conceptProposalId) |
List<ConceptProposal> |
HibernateConceptDAO.getConceptProposals(String text) |
ConceptReferenceTerm |
HibernateConceptDAO.getConceptReferenceTerm(Integer conceptReferenceTermId) |
ConceptReferenceTerm |
HibernateConceptDAO.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource) |
List<ConceptReferenceTerm> |
HibernateConceptDAO.getConceptReferenceTermByCode(String code,
ConceptSource conceptSource,
boolean includeRetired) |
ConceptReferenceTerm |
HibernateConceptDAO.getConceptReferenceTermByName(String name,
ConceptSource conceptSource) |
ConceptReferenceTerm |
HibernateConceptDAO.getConceptReferenceTermByUuid(String uuid) |
List<ConceptReferenceTerm> |
HibernateConceptDAO.getConceptReferenceTerms(boolean includeRetired) |
List<ConceptReferenceTerm> |
HibernateConceptDAO.getConceptReferenceTermsBySource(ConceptSource conceptSource) |
List<ConceptSearchResult> |
HibernateConceptDAO.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) |
List<Concept> |
HibernateConceptDAO.getConcepts(String name,
Locale loc,
boolean searchOnPhrase,
List<ConceptClass> classes,
List<ConceptDatatype> datatypes) |
ConceptSource |
HibernateConceptDAO.getConceptSourceByName(String conceptSourceName) |
List<String> |
HibernateConceptDAO.getConceptStopWords(Locale locale) |
Long |
HibernateConceptDAO.getCountOfConceptReferenceTerms(String query,
ConceptSource conceptSource,
boolean includeRetired) |
Integer |
HibernateConceptDAO.getCountOfConcepts(String phrase,
List<Locale> locales,
boolean includeRetired,
List<ConceptClass> requireClasses,
List<ConceptClass> excludeClasses,
List<ConceptDatatype> requireDatatypes,
List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept) |
Long |
HibernateConceptDAO.getCountOfDrugs(String drugName,
Concept concept,
boolean searchKeywords,
boolean searchDrugConceptNames,
boolean includeRetired) |
ConceptMapType |
HibernateConceptDAO.getDefaultConceptMapType() |
DiagnosisAttribute |
HibernateDiagnosisDAO.getDiagnosisAttributeByUuid(String uuid) |
DiagnosisAttributeType |
HibernateDiagnosisDAO.getDiagnosisAttributeTypeById(Integer id) |
DiagnosisAttributeType |
HibernateDiagnosisDAO.getDiagnosisAttributeTypeByUuid(String uuid) |
Drug |
HibernateConceptDAO.getDrug(Integer drugId) |
Drug |
HibernateConceptDAO.getDrugByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypesOrOrderOfPreference) |
List<Drug> |
HibernateConceptDAO.getDrugs(String phrase) |
List<Drug> |
HibernateConceptDAO.getDrugs(String drugName,
Concept concept,
boolean includeRetired) |
List<Drug> |
HibernateConceptDAO.getDrugs(String drugName,
Concept concept,
boolean searchKeywords,
boolean searchDrugConceptNames,
boolean includeRetired,
Integer start,
Integer length)
Should return a drug if either the drug name or concept name matches the phase not both
Should return distinct drugs
Should return a drug, if phrase match concept_name No need to match both concept_name and
drug_name
Should return drug when phrase match drug_name even searchDrugConceptNames is false
Should return a drug if phrase match drug_name No need to match both concept_name and
drug_name
|
List<Drug> |
HibernateConceptDAO.getDrugsByMapping(String code,
ConceptSource conceptSource,
Collection<ConceptMapType> withAnyOfTheseTypes,
boolean includeRetired) |
Encounter |
HibernateEncounterDAO.getEncounter(Integer encounterId) |
EncounterRole |
HibernateEncounterDAO.getEncounterRole(Integer encounterRoleId) |
List<Encounter> |
HibernateEncounterDAO.getEncountersByPatientId(Integer patientId) |
EncounterType |
HibernateEncounterDAO.getEncounterType(Integer encounterTypeId) |
EncounterType |
HibernateEncounterDAO.getEncounterType(String name) |
Field |
HibernateFormDAO.getField(Integer fieldId) |
List<Field> |
HibernateFormDAO.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) |
FieldType |
HibernateFormDAO.getFieldType(Integer fieldTypeId) |
Form |
HibernateFormDAO.getForm(Integer formId) |
Integer |
HibernateFormDAO.getFormCount(String partialName,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields) |
FormField |
HibernateFormDAO.getFormField(Form form,
Concept concept,
Collection<FormField> ignoreFormFields,
boolean force) |
FormField |
HibernateFormDAO.getFormField(Integer formFieldId) |
List<Form> |
HibernateFormDAO.getForms(String partialName,
Boolean published,
Collection<EncounterType> encounterTypes,
Boolean retired,
Collection<FormField> containingAnyFormField,
Collection<FormField> containingAllFormFields,
Collection<Field> fields) |
List<Form> |
HibernateFormDAO.getFormsByName(String name) |
List<Form> |
HibernateFormDAO.getFormsContainingConcept(Concept c) |
String |
HibernateAdministrationDAO.getGlobalProperty(String propertyName) |
GlobalProperty |
HibernateAdministrationDAO.getGlobalPropertyByUuid(String uuid) |
PersonMergeLog |
HibernatePersonDAO.getLosingPersonMergeLogs(Person person) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.getObject(Class<T> baseClass,
Integer id) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.getObjectByUuid(Class<T> baseClass,
String uuid) |
Obs |
HibernateObsDAO.getObs(Integer obsId) |
Long |
HibernateObsDAO.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,
List<ConceptName> valueCodedNameAnswers,
boolean includeVoidedObs,
String accessionNumber) |
Long |
HibernateObsDAO.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,
List<ConceptName> valueCodedNameAnswers,
List<Visit> visits,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
HibernateObsDAO.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
List<Obs> |
HibernateObsDAO.getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
List<Visit> visits,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
Date toDate,
boolean includeVoidedObs,
String accessionNumber) |
Order |
HibernateOrderDAO.getOrder(Integer orderId) |
OrderAttribute |
HibernateOrderDAO.getOrderAttributeByUuid(String uuid) |
OrderAttributeType |
HibernateOrderDAO.getOrderAttributeTypeById(Integer orderAttributeTypeId) |
OrderAttributeType |
HibernateOrderDAO.getOrderAttributeTypeByName(String name) |
OrderAttributeType |
HibernateOrderDAO.getOrderAttributeTypeByUuid(String uuid) |
OrderGroupAttribute |
HibernateOrderDAO.getOrderGroupAttributeByUuid(String uuid) |
OrderGroupAttributeType |
HibernateOrderDAO.getOrderGroupAttributeType(Integer orderGroupAttributeTypeId) |
OrderGroupAttributeType |
HibernateOrderDAO.getOrderGroupAttributeTypeByName(String name) |
OrderGroupAttributeType |
HibernateOrderDAO.getOrderGroupAttributeTypeByUuid(String uuid) |
OrderGroup |
HibernateOrderDAO.getOrderGroupById(Integer orderGroupId) |
OrderGroup |
HibernateOrderDAO.getOrderGroupByUuid(String uuid) |
OrderSet |
HibernateOrderSetDAO.getOrderSetById(Integer orderSetId) |
OrderSet |
HibernateOrderSetDAO.getOrderSetByUniqueUuid(String orderSetUuid) |
OrderSetMember |
HibernateOrderSetDAO.getOrderSetMemberByUuid(String uuid) |
List<OrderSet> |
HibernateOrderSetDAO.getOrderSets(boolean includeRetired) |
PatientIdentifier |
HibernatePatientDAO.getPatientIdentifier(Integer patientIdentifierId) |
List<PatientIdentifier> |
HibernatePatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
PatientIdentifierType |
HibernatePatientDAO.getPatientIdentifierType(Integer patientIdentifierTypeId) |
List<PatientIdentifierType> |
HibernatePatientDAO.getPatientIdentifierTypes(String name,
String format,
Boolean required,
Boolean hasCheckDigit) |
PatientProgram |
HibernateProgramWorkflowDAO.getPatientProgram(Integer patientProgramId) |
List<PatientProgram> |
HibernateProgramWorkflowDAO.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided) |
List<Patient> |
HibernatePatientDAO.getPatients(String query,
boolean includeVoided,
Integer start,
Integer length) |
List<Patient> |
HibernatePatientDAO.getPatients(String query,
Integer start,
Integer length) |
List<Patient> |
HibernatePatientDAO.getPatients(String query,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
List<PersonAttributeType> |
HibernatePersonDAO.getPersonAttributeTypes(String exactName,
String format,
Integer foreignKey,
Boolean searchable) |
PersonMergeLog |
HibernatePersonDAO.getPersonMergeLog(Integer id) |
PersonMergeLog |
HibernatePersonDAO.getPersonMergeLogByUuid(String uuid) |
Privilege |
HibernateUserDAO.getPrivilege(String p) |
Program |
HibernateProgramWorkflowDAO.getProgram(Integer programId) |
List<Concept> |
HibernateConceptDAO.getProposedConcepts(String text) |
List<ConceptReferenceTermMap> |
HibernateConceptDAO.getReferenceTermMappingsTo(ConceptReferenceTerm term) |
Relationship |
HibernatePersonDAO.getRelationship(Integer relationshipId) |
RelationshipType |
HibernatePersonDAO.getRelationshipType(Integer relationshipTypeId) |
List<RelationshipType> |
HibernatePersonDAO.getRelationshipTypes(String relationshipTypeName,
Boolean preferred) |
Role |
HibernateUserDAO.getRole(String r) |
List<Location> |
HibernateLocationDAO.getRootLocations(boolean includeRetired) |
SerializedObject |
HibernateSerializedObjectDAO.getSerializedObject(Integer id) |
SerializedObject |
HibernateSerializedObjectDAO.getSerializedObjectByUuid(String uuid) |
Set<Person> |
HibernatePersonDAO.getSimilarPeople(String name,
Integer birthyear,
String gender) |
static <T> T |
HibernateUtil.getUniqueEntityByUUID(org.hibernate.SessionFactory sessionFactory,
Class<T> entityClass,
String uuid)
Retrieves a unique entity by its UUID.
|
Visit |
HibernateVisitDAO.getVisit(Integer visitId) |
Visit |
HibernateVisitDAO.getVisitByUuid(String uuid) |
List<Visit> |
HibernateVisitDAO.getVisits(VisitSearchCriteria criteria) |
List<PersonMergeLog> |
HibernatePersonDAO.getWinningPersonMergeLogs(Person person) |
boolean |
HibernateConceptDAO.isConceptMapTypeInUse(ConceptMapType mapType) |
boolean |
HibernateConceptDAO.isConceptReferenceTermInUse(ConceptReferenceTerm term) |
boolean |
HibernateUserDAO.isSecretAnswer(User u,
String answer) |
void |
HibernateConceptDAO.purgeConcept(Concept concept) |
void |
HibernateConceptDAO.purgeConceptClass(ConceptClass cc) |
void |
HibernateConceptDAO.purgeConceptDatatype(ConceptDatatype cd) |
void |
HibernateConceptDAO.purgeConceptProposal(ConceptProposal cp) |
void |
HibernateConceptDAO.purgeDrug(Drug drug) |
void |
HibernateSerializedObjectDAO.purgeObject(Integer id) |
void |
HibernateSerializedObjectDAO.registerSupportedType(Class<? extends OpenmrsObject> clazz) |
OrderSet |
HibernateOrderSetDAO.save(OrderSet orderSet) |
Cohort |
HibernateCohortDAO.saveCohort(Cohort cohort) |
Concept |
HibernateConceptDAO.saveConcept(Concept concept) |
ConceptClass |
HibernateConceptDAO.saveConceptClass(ConceptClass cc) |
ConceptDatatype |
HibernateConceptDAO.saveConceptDatatype(ConceptDatatype cd) |
ConceptMapType |
HibernateConceptDAO.saveConceptMapType(ConceptMapType conceptMapType) |
ConceptProposal |
HibernateConceptDAO.saveConceptProposal(ConceptProposal cp) |
ConceptReferenceTerm |
HibernateConceptDAO.saveConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) |
ConceptSource |
HibernateConceptDAO.saveConceptSource(ConceptSource conceptSource) |
ConceptStateConversion |
HibernateProgramWorkflowDAO.saveConceptStateConversion(ConceptStateConversion csc) |
ConceptStopWord |
HibernateConceptDAO.saveConceptStopWord(ConceptStopWord conceptStopWord) |
DiagnosisAttributeType |
HibernateDiagnosisDAO.saveDiagnosisAttributeType(DiagnosisAttributeType diagnosisAttributeType) |
Drug |
HibernateConceptDAO.saveDrug(Drug drug) |
Encounter |
HibernateEncounterDAO.saveEncounter(Encounter encounter) |
EncounterRole |
HibernateEncounterDAO.saveEncounterRole(EncounterRole encounterRole) |
Field |
HibernateFormDAO.saveField(Field field) |
FieldType |
HibernateFormDAO.saveFieldType(FieldType fieldType) |
Form |
HibernateFormDAO.saveForm(Form form)
Returns the form object originally passed in, which will have been persisted.
|
FormField |
HibernateFormDAO.saveFormField(FormField formField) |
GlobalProperty |
HibernateAdministrationDAO.saveGlobalProperty(GlobalProperty gp) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.saveObject(T object) |
<T extends OpenmrsObject> |
HibernateSerializedObjectDAO.saveObject(T object,
OpenmrsSerializer serializer) |
Obs |
HibernateObsDAO.saveObs(Obs obs) |
Order |
HibernateOrderDAO.saveOrder(Order order) |
OrderAttributeType |
HibernateOrderDAO.saveOrderAttributeType(OrderAttributeType orderAttributeType) |
OrderGroup |
HibernateOrderDAO.saveOrderGroup(OrderGroup orderGroup) |
OrderGroupAttributeType |
HibernateOrderDAO.saveOrderGroupAttributeType(OrderGroupAttributeType orderGroupAttributeType) |
Patient |
HibernatePatientDAO.savePatient(Patient patient) |
PatientIdentifierType |
HibernatePatientDAO.savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
PatientProgram |
HibernateProgramWorkflowDAO.savePatientProgram(PatientProgram patientProgram) |
Person |
HibernatePersonDAO.savePerson(Person person) |
PersonMergeLog |
HibernatePersonDAO.savePersonMergeLog(PersonMergeLog personMergeLog) |
Privilege |
HibernateUserDAO.savePrivilege(Privilege privilege) |
Program |
HibernateProgramWorkflowDAO.saveProgram(Program program) |
Relationship |
HibernatePersonDAO.saveRelationship(Relationship relationship) |
RelationshipType |
HibernatePersonDAO.saveRelationshipType(RelationshipType relationshipType) |
Role |
HibernateUserDAO.saveRole(Role role) |
Visit |
HibernateVisitDAO.saveVisit(Visit visit) |
void |
HibernateSerializedObjectDAO.unregisterSupportedType(Class<? extends OpenmrsObject> clazz) |
void |
HibernateAdministrationDAO.updatePostgresSequence()
Updates PostgreSQL Sequences after core data insertion
|
void |
HibernateTemplateDAO.updateTemplate(Template template) |
void |
HibernateAdministrationDAO.validate(Object object,
org.springframework.validation.Errors errors) |
Modifier and Type | Method and Description |
---|---|
void |
AlertDAO.deleteAlert(Alert alert) |
Alert |
AlertDAO.getAlert(Integer alertId) |
List<Alert> |
AlertDAO.getAlerts(User user,
boolean includeRead,
boolean includeVoided) |
Alert |
AlertDAO.saveAlert(Alert alert) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateAlertDAO.deleteAlert(Alert alert) |
Alert |
HibernateAlertDAO.getAlert(Integer alertId) |
List<Alert> |
HibernateAlertDAO.getAlerts(User user,
boolean includeRead,
boolean includeExpired) |
List<Alert> |
HibernateAlertDAO.getAllAlerts(boolean includeExpired) |
Alert |
HibernateAlertDAO.saveAlert(Alert alert) |
Modifier and Type | Method and Description |
---|---|
void |
SchedulerDAO.createTask(TaskDefinition taskDefinition)
Creates a new task.
|
void |
SchedulerDAO.deleteTask(Integer taskId)
Delete task from database.
|
void |
SchedulerDAO.deleteTask(TaskDefinition task)
Delete task from database.
|
TaskDefinition |
SchedulerDAO.getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
SchedulerDAO.getTaskByName(String name)
Get task by public name.
|
TaskDefinition |
SchedulerDAO.getTaskByUuid(String uuid) |
List<TaskDefinition> |
SchedulerDAO.getTasks()
Find all tasks in the database
|
void |
SchedulerDAO.updateTask(TaskDefinition task)
Update task
|
Modifier and Type | Method and Description |
---|---|
void |
HibernateSchedulerDAO.createTask(TaskDefinition task)
Creates a new task.
|
void |
HibernateSchedulerDAO.deleteTask(Integer taskId)
Delete task from database.
|
void |
HibernateSchedulerDAO.deleteTask(TaskDefinition taskConfig)
Delete task from database.
|
TaskDefinition |
HibernateSchedulerDAO.getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
HibernateSchedulerDAO.getTaskByName(String name)
Get task by public name.
|
TaskDefinition |
HibernateSchedulerDAO.getTaskByUuid(String uuid) |
List<TaskDefinition> |
HibernateSchedulerDAO.getTasks()
Find all tasks in the database
|
void |
HibernateSchedulerDAO.updateTask(TaskDefinition task)
Update task
|
Modifier and Type | Method and Description |
---|---|
static List<List<Object>> |
DatabaseUtil.executeSQL(Connection conn,
String sql,
boolean selectOnly)
Executes the passed SQL query, enforcing select only if that parameter is set for given Connection
|
static List<List<Object>> |
DatabaseUtil.executeSQL(org.hibernate.Session session,
String sql,
boolean selectOnly)
Executes the passed SQL query, enforcing select only if that parameter is set for given Session
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.