Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.handler | |
org.openmrs.api.impl | |
org.openmrs.hl7.handler | |
org.openmrs.logic |
The OpenMRS Logic Service provides access to granular and derived
data.
|
org.openmrs.parameter | |
org.openmrs.propertyeditor |
Modifier and Type | Method and Description |
---|---|
Patient |
Visit.getPatient() |
Patient |
PatientProgram.getPatient() |
Patient |
PatientIdentifier.getPatient() |
Patient |
OrderGroup.getPatient()
Gets the patient
|
Patient |
Order.getPatient() |
Patient |
MedicationDispense.getPatient() |
Patient |
Encounter.getPatient() |
Patient |
Diagnosis.getPatient()
Gets the patient associated with the diagnosis
|
Patient |
Condition.getPatient()
Gets the patient associated with the condition
|
Patient |
Allergy.getPatient() |
Modifier and Type | Method and Description |
---|---|
Encounter |
Encounter.copyAndAssignToAnotherPatient(Patient patient)
Copied encounter will not have visit field copied.
|
CohortMembership |
Cohort.getActiveMembership(Patient patient) |
void |
Visit.setPatient(Patient patient) |
void |
PatientProgram.setPatient(Patient patient) |
void |
PatientIdentifier.setPatient(Patient patient) |
void |
OrderGroup.setPatient(Patient patient)
Sets the patient
|
void |
Order.setPatient(Patient patient) |
void |
MedicationDispense.setPatient(Patient patient) |
void |
Encounter.setPatient(Patient patient) |
void |
Diagnosis.setPatient(Patient patient)
Sets patient with this diagnosis
|
void |
Condition.setPatient(Patient patient)
Sets the patient associated with the condition
|
void |
Allergy.setPatient(Patient patient) |
Constructor and Description |
---|
Allergy(Patient patient,
Allergen allergen,
Concept severity,
String comments,
List<AllergyReaction> reactions) |
Cohort(String name,
String description,
Patient[] patients)
This constructor does not check whether the database contains patients with the given ids,
but
CohortService.saveCohort(Cohort) will. |
Condition(CodedOrFreeText condition,
ConditionClinicalStatus clinicalStatus,
ConditionVerificationStatus verificationStatus,
Condition previousVersion,
String additionalDetail,
Date onsetDate,
Date endDate,
Patient patient)
Convenience constructor to instantiate a condition class with all the necessary parameters
|
Diagnosis(Encounter encounter,
CodedOrFreeText diagnosis,
ConditionVerificationStatus certainty,
Integer rank,
Patient patient) |
Diagnosis(Encounter encounter,
CodedOrFreeText diagnosis,
ConditionVerificationStatus certainty,
Integer rank,
Patient patient,
String formNamespaceAndPath) |
Patient(Patient patient)
This constructor creates a new Patient object from the given
Patient object. |
Visit(Patient patient,
VisitType visitType,
Date startDatetime)
|
Modifier and Type | Method and Description |
---|---|
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.
|
Patient |
PatientService.getPatientOrPromotePerson(Integer patientOrPersonId)
Get patient by internal identifier.
|
Patient |
PatientService.savePatient(Patient patient)
Saved the given
patient to the database |
Patient |
PatientService.unvoidPatient(Patient patient)
Unvoid patient record.
|
Patient |
PatientService.voidPatient(Patient patient,
String reason)
Void patient record (functionally delete patient from system).
|
Modifier and Type | Method and Description |
---|---|
List<Patient> |
PatientService.getAllPatients()
Returns all non voided patients in the system
|
List<Patient> |
PatientService.getAllPatients(boolean includeVoided)
Returns patients in the system
|
List<Patient> |
PatientService.getDuplicatePatientsByAttributes(List<String> attributes)
Search the database for patients that both share the given attributes.
|
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. |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortService.addPatientToCohort(Cohort cohort,
Patient patient)
Adds a new patient to a Cohort.
|
void |
PatientService.checkPatientIdentifiers(Patient patient)
Convenience method to validate all identifiers for a given patient
|
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)
|
List<Condition> |
ConditionService.getAllConditions(Patient patient)
Gets all conditions i.e both active and inactive conditions, associated with a patient
|
Allergies |
PatientService.getAllergies(Patient patient)
Gets allergies for a given patient
|
List<Order> |
OrderService.getAllOrdersByPatient(Patient patient)
Gets all orders for the specified patient including discontinuation orders
|
List<Cohort> |
CohortService.getCohortsContainingPatient(Patient patient)
Deprecated.
use
CohortService.getCohortsContainingPatientId(Integer)
Find all Cohorts that contain the given patient. (Not including voided Cohorts) |
List<Diagnosis> |
DiagnosisService.getDiagnoses(Patient patient,
Date fromDate)
Gets diagnoses since date, sorted in reverse chronological order
|
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.getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient, sorted by encounterDatetime ascending.
|
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.
|
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.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) |
Patient |
PatientService.getPatientByExample(Patient patientToMatch)
This method tries to find a patient in the database given the attributes on the given
patientToMatch object. |
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<Diagnosis> |
DiagnosisService.getUniqueDiagnoses(Patient patient,
Date fromDate)
Gets unique diagnoses since date, sorted in reverse chronological order
|
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
|
void |
PatientService.mergePatients(Patient preferred,
List<Patient> notPreferred)
Convenience method to join multiple patients' information into one record.
|
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 |
PatientService.purgePatient(Patient patient)
Delete patient from database.
|
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) |
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)
|
Patient |
PatientService.savePatient(Patient patient)
Saved the given
patient to the database |
Allergies |
PatientService.setAllergies(Patient patient,
Allergies allergies)
Updates the patient's allergies
|
Encounter |
EncounterService.transferEncounter(Encounter encounter,
Patient patient)
Transfer encounter to another patient
|
Patient |
PatientService.unvoidPatient(Patient patient)
Unvoid patient record.
|
Patient |
PatientService.voidPatient(Patient patient,
String reason)
Void patient record (functionally delete patient from system).
|
Modifier and Type | Method and Description |
---|---|
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<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
|
void |
PatientService.mergePatients(Patient preferred,
List<Patient> notPreferred)
Convenience method to join multiple patients' information into one record.
|
Modifier and Type | Method and Description |
---|---|
Patient |
PatientDAO.getPatient(Integer patientId) |
Patient |
PatientDAO.getPatientByUuid(String uuid) |
Patient |
PatientDAO.savePatient(Patient patient) |
Modifier and Type | Method and Description |
---|---|
List<Patient> |
PatientDAO.getAllPatients(boolean includeVoided) |
List<Patient> |
PatientDAO.getDuplicatePatientsByAttributes(List<String> attributes) |
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) |
Modifier and Type | Method and Description |
---|---|
void |
PatientDAO.deletePatient(Patient patient)
Delete patient from database.
|
List<Condition> |
ConditionDAO.getActiveConditions(Patient patient)
Gets all active conditions related to the specified patient.
|
List<Diagnosis> |
DiagnosisDAO.getActiveDiagnoses(Patient patient,
Date fromDate)
Gets all active diagnoses related to the specified patient.
|
List<Order> |
OrderDAO.getActiveOrders(Patient patient,
List<OrderType> orderTypes,
CareSetting careSetting,
Date asOfDate) |
List<Order> |
OrderDAO.getActiveOrders(Patient patient,
Visit visit,
List<OrderType> orderTypes,
CareSetting careSetting,
Date asOfDate) |
List<Condition> |
ConditionDAO.getAllConditions(Patient patient) |
List<Allergy> |
PatientDAO.getAllergies(Patient patient)
Gets a list of allergies that a patient has
|
String |
PatientDAO.getAllergyStatus(Patient patient)
Gets a patient's allergy status
|
List<Encounter> |
EncounterDAO.getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
String query,
Integer start,
Integer length) |
Integer |
EncounterDAO.getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
String query) |
List<Encounter> |
EncounterDAO.getEncountersNotAssignedToAnyVisit(Patient patient) |
List<OrderGroup> |
OrderDAO.getOrderGroupsByPatient(Patient patient) |
List<Order> |
OrderDAO.getOrders(Patient patient,
CareSetting careSetting,
List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
List<Order> |
OrderDAO.getOrders(Patient patient,
Visit visit,
CareSetting careSetting,
List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
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.
|
Allergies |
PatientDAO.saveAllergies(Patient patient,
Allergies allergies)
Saves patient allergies to the database.
|
Patient |
PatientDAO.savePatient(Patient patient) |
Modifier and Type | Method and Description |
---|---|
List<Order> |
OrderDAO.getOrders(OrderType orderType,
List<Patient> patients,
List<Concept> concepts,
List<User> orderers,
List<Encounter> encounters)
This searches for orders given the parameters.
|
List<PatientIdentifier> |
PatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
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
|
Modifier and Type | Method and Description |
---|---|
Patient |
HibernatePatientDAO.getPatient(Integer patientId) |
Patient |
HibernatePatientDAO.getPatientByUuid(String uuid) |
Patient |
HibernatePatientDAO.savePatient(Patient patient) |
Modifier and Type | Method and Description |
---|---|
List<Patient> |
HibernatePatientDAO.findPatients(String query,
boolean includeVoided,
Integer start,
Integer length) |
List<Patient> |
HibernatePatientDAO.getAllPatients(boolean includeVoided) |
List<Patient> |
HibernatePatientDAO.getDuplicatePatientsByAttributes(List<String> attributes) |
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) |
Modifier and Type | Method and Description |
---|---|
void |
HibernatePatientDAO.deletePatient(Patient patient) |
List<Condition> |
HibernateConditionDAO.getActiveConditions(Patient patient)
Gets all active conditions related to the specified patient.
|
List<Diagnosis> |
HibernateDiagnosisDAO.getActiveDiagnoses(Patient patient,
Date fromDate)
Gets all active diagnoses related to the specified patient.
|
List<Order> |
HibernateOrderDAO.getActiveOrders(Patient patient,
List<OrderType> orderTypes,
CareSetting careSetting,
Date asOfDate) |
List<Order> |
HibernateOrderDAO.getActiveOrders(Patient patient,
Visit visit,
List<OrderType> orderTypes,
CareSetting careSetting,
Date asOfDate) |
List<Condition> |
HibernateConditionDAO.getAllConditions(Patient patient) |
List<Allergy> |
HibernatePatientDAO.getAllergies(Patient patient) |
String |
HibernatePatientDAO.getAllergyStatus(Patient patient) |
List<Encounter> |
HibernateEncounterDAO.getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
String query,
Integer start,
Integer length) |
Integer |
HibernateEncounterDAO.getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
String query) |
List<Encounter> |
HibernateEncounterDAO.getEncountersNotAssignedToAnyVisit(Patient patient) |
List<OrderGroup> |
HibernateOrderDAO.getOrderGroupsByPatient(Patient patient) |
List<Order> |
HibernateOrderDAO.getOrders(Patient patient,
CareSetting careSetting,
List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
List<Order> |
HibernateOrderDAO.getOrders(Patient patient,
Visit visit,
CareSetting careSetting,
List<OrderType> orderTypes,
boolean includeVoided,
boolean includeDiscontinuationOrders) |
List<PatientProgram> |
HibernateProgramWorkflowDAO.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided) |
Allergies |
HibernatePatientDAO.saveAllergies(Patient patient,
Allergies allergies) |
Patient |
HibernatePatientDAO.savePatient(Patient patient) |
Modifier and Type | Method and Description |
---|---|
List<Order> |
HibernateOrderDAO.getOrders(OrderType orderType,
List<Patient> patients,
List<Concept> concepts,
List<User> orderers,
List<Encounter> encounters) |
List<PatientIdentifier> |
HibernatePatientDAO.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<Visit> |
HibernateVisitDAO.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) |
QueryResult |
PatientSearchCriteria.prepareCriteria(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Join<Encounter,Patient> patientJoin,
String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
boolean orderByNames,
boolean searchOnNamesOrIdentifiers)
Deprecated.
Prepare a
QueryResult for searching patients by name and/or identifier. |
Modifier and Type | Method and Description |
---|---|
void |
PatientSaveHandler.handle(Patient patient,
User creator,
Date dateCreated,
String other) |
void |
PatientDataVoidHandler.handle(Patient patient,
User voidingUser,
Date voidedDate,
String voidReason) |
void |
PatientDataUnvoidHandler.handle(Patient patient,
User originalVoidingUser,
Date origParentVoidedDate,
String unused) |
Modifier and Type | Method and Description |
---|---|
Patient |
PatientServiceImpl.getPatient(Integer patientId) |
Patient |
PatientServiceImpl.getPatientByExample(Patient patientToMatch)
This default implementation simply looks at the OpenMRS internal id (patient_id).
|
Patient |
PatientServiceImpl.getPatientByUuid(String uuid) |
Patient |
PatientServiceImpl.getPatientOrPromotePerson(Integer patientOrPersonId) |
Patient |
PatientServiceImpl.savePatient(Patient patient) |
Patient |
PatientServiceImpl.unvoidPatient(Patient patient) |
Patient |
PatientServiceImpl.voidPatient(Patient patient,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<Patient> |
PatientServiceImpl.getAllPatients() |
List<Patient> |
PatientServiceImpl.getAllPatients(boolean includeVoided) |
List<Patient> |
PatientServiceImpl.getDuplicatePatientsByAttributes(List<String> attributes) |
List<Patient> |
PatientServiceImpl.getPatients(String query) |
List<Patient> |
PatientServiceImpl.getPatients(String query,
boolean includeVoided,
Integer start,
Integer length) |
List<Patient> |
PatientServiceImpl.getPatients(String query,
Integer start,
Integer length) |
List<Patient> |
PatientServiceImpl.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly) |
List<Patient> |
PatientServiceImpl.getPatients(String name,
String identifier,
List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
Integer start,
Integer length) |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortServiceImpl.addPatientToCohort(Cohort cohort,
Patient patient) |
void |
PatientServiceImpl.checkPatientIdentifiers(Patient patient) |
void |
PatientServiceImpl.exitFromCare(Patient patient,
Date dateExited,
Concept reasonForExit)
This is the way to establish that a patient has left the care center.
|
List<Condition> |
ConditionServiceImpl.getActiveConditions(Patient patient)
Gets a patient's active conditions
|
List<Order> |
OrderServiceImpl.getActiveOrders(Patient patient,
OrderType orderType,
CareSetting careSetting,
Date asOfDate) |
List<Order> |
OrderServiceImpl.getActiveOrders(Patient patient,
Visit visit,
OrderType orderType,
CareSetting careSetting,
Date asOfDate) |
List<Visit> |
VisitServiceImpl.getActiveVisitsByPatient(Patient patient) |
List<Condition> |
ConditionServiceImpl.getAllConditions(Patient patient) |
Allergies |
PatientServiceImpl.getAllergies(Patient patient) |
List<Order> |
OrderServiceImpl.getAllOrdersByPatient(Patient patient) |
List<Cohort> |
CohortServiceImpl.getCohortsContainingPatient(Patient patient) |
List<Diagnosis> |
DiagnosisServiceImpl.getDiagnoses(Patient patient,
Date fromDate)
Gets diagnoses since date, sorted in reverse chronological order
|
List<Encounter> |
EncounterServiceImpl.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
EncounterServiceImpl.getEncounters(EncounterSearchCriteria) |
List<Encounter> |
EncounterServiceImpl.getEncountersByPatient(Patient patient) |
List<Encounter> |
EncounterServiceImpl.getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
String query,
Integer start,
Integer length) |
Integer |
EncounterServiceImpl.getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
String query) |
List<Encounter> |
EncounterServiceImpl.getEncountersNotAssignedToAnyVisit(Patient patient) |
List<OrderGroup> |
OrderServiceImpl.getOrderGroupsByPatient(Patient patient) |
List<Order> |
OrderServiceImpl.getOrderHistoryByConcept(Patient patient,
Concept concept) |
List<Order> |
OrderServiceImpl.getOrders(Patient patient,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided) |
List<Order> |
OrderServiceImpl.getOrders(Patient patient,
Visit visit,
CareSetting careSetting,
OrderType orderType,
boolean includeVoided) |
Patient |
PatientServiceImpl.getPatientByExample(Patient patientToMatch)
This default implementation simply looks at the OpenMRS internal id (patient_id).
|
List<PatientProgram> |
ProgramWorkflowServiceImpl.getPatientPrograms(Patient patient,
Program program,
Date minEnrollmentDate,
Date maxEnrollmentDate,
Date minCompletionDate,
Date maxCompletionDate,
boolean includeVoided) |
List<Diagnosis> |
DiagnosisServiceImpl.getUniqueDiagnoses(Patient patient,
Date fromDate)
Gets unique diagnoses since date, sorted in reverse chronological order
|
List<Visit> |
VisitServiceImpl.getVisitsByPatient(Patient patient) |
List<Visit> |
VisitServiceImpl.getVisitsByPatient(Patient patient,
boolean includeInactive,
boolean includeVoided) |
void |
PatientServiceImpl.mergePatients(Patient preferred,
List<Patient> notPreferred) |
void |
PatientServiceImpl.mergePatients(Patient preferred,
Patient notPreferred)
1) Moves object (encounters/obs) pointing to
nonPreferred to
preferred 2) Copies data (gender/birthdate/names/ids/etc) from
nonPreferred to preferred iff the data is missing or null in
preferred 3) notPreferred is marked as voided |
void |
CohortServiceImpl.notifyPatientUnvoided(Patient patient,
User originallyVoidedBy,
Date originalDateVoided) |
void |
CohortServiceImpl.notifyPatientVoided(Patient patient) |
void |
PatientServiceImpl.processDeath(Patient patient,
Date dateDied,
Concept causeOfDeath,
String otherReason)
This is the way to establish that a patient has died.
|
void |
PatientServiceImpl.purgePatient(Patient patient) |
Cohort |
CohortServiceImpl.removePatientFromCohort(Cohort cohort,
Patient patient) |
void |
PatientServiceImpl.saveCauseOfDeathObs(Patient patient,
Date deathDate,
Concept cause,
String otherReason) |
Patient |
PatientServiceImpl.savePatient(Patient patient) |
Allergies |
PatientServiceImpl.setAllergies(Patient patient,
Allergies allergies) |
Encounter |
EncounterServiceImpl.transferEncounter(Encounter encounter,
Patient patient) |
void |
ProgramWorkflowServiceImpl.triggerStateConversion(Patient patient,
Concept trigger,
Date dateConverted) |
Patient |
PatientServiceImpl.unvoidPatient(Patient patient) |
Patient |
PatientServiceImpl.voidPatient(Patient patient,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<PatientIdentifier> |
PatientServiceImpl.getPatientIdentifiers(String identifier,
List<PatientIdentifierType> patientIdentifierTypes,
List<Location> locations,
List<Patient> patients,
Boolean isPreferred) |
List<Visit> |
VisitServiceImpl.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) |
void |
PatientServiceImpl.mergePatients(Patient preferred,
List<Patient> notPreferred) |
Modifier and Type | Method and Description |
---|---|
protected void |
ORUR01Handler.processNK1(Patient patient,
ca.uhn.hl7v2.model.v25.segment.NK1 nk1)
process an NK1 segment and add relationships if needed
|
Modifier and Type | Method and Description |
---|---|
Patient |
LogicContext.getPatient(Integer patientId)
Gets the patient object for the given patient id (this patient must be in the cohort of this context)
|
Modifier and Type | Method and Description |
---|---|
Patient |
OrderSearchCriteria.getPatient() |
Patient |
MedicationDispenseCriteria.getPatient() |
Patient |
EncounterSearchCriteria.getPatient() |
Modifier and Type | Method and Description |
---|---|
Collection<Patient> |
VisitSearchCriteria.getPatients() |
Modifier and Type | Method and Description |
---|---|
VisitSearchCriteriaBuilder |
VisitSearchCriteriaBuilder.patient(Patient patient)
Sets a single patient to include in the search criteria.
|
OrderSearchCriteriaBuilder |
OrderSearchCriteriaBuilder.setPatient(Patient patient) |
MedicationDispenseCriteriaBuilder |
MedicationDispenseCriteriaBuilder.setPatient(Patient patient) |
void |
MedicationDispenseCriteria.setPatient(Patient patient) |
EncounterSearchCriteriaBuilder |
EncounterSearchCriteriaBuilder.setPatient(Patient patient) |
Modifier and Type | Method and Description |
---|---|
VisitSearchCriteriaBuilder |
VisitSearchCriteriaBuilder.patients(Collection<Patient> patients)
Sets the patients to include in the search criteria.
|
void |
VisitSearchCriteria.setPatients(Collection<Patient> patients)
Sets the collection of patients to be included in the search criteria.
|
Constructor and Description |
---|
EncounterSearchCriteria(Patient patient,
Location location,
Date fromDate,
Date toDate,
Date dateChanged,
Collection<Form> enteredViaForms,
Collection<EncounterType> encounterTypes,
Collection<Provider> providers,
Collection<VisitType> visitTypes,
Collection<Visit> visits,
boolean includeVoided)
Instead of calling this constructor directly, it is recommended to use
EncounterSearchCriteriaBuilder . |
OrderSearchCriteria(Patient patient,
CareSetting careSetting,
Collection<Concept> concepts,
Collection<OrderType> orderTypes,
Date activatedOnOrBeforeDate,
Date activatedOnOrAfterDate,
boolean isStopped,
Date autoExpireOnOrBeforeDate,
Date canceledOrExpiredOnOrBeforeDate,
Order.Action action,
Order.FulfillerStatus fulfillerStatus,
Boolean includeNullFulfillerStatus,
boolean excludeCanceledAndExpired,
boolean excludeDiscontinueOrders,
boolean includeVoided)
Deprecated.
|
OrderSearchCriteria(Patient patient,
CareSetting careSetting,
Collection<Concept> concepts,
Collection<OrderType> orderTypes,
String accessionNumber,
String orderNumber,
Date activatedOnOrBeforeDate,
Date activatedOnOrAfterDate,
boolean isStopped,
Date autoExpireOnOrBeforeDate,
Date canceledOrExpiredOnOrBeforeDate,
Order.Action action,
Order.FulfillerStatus fulfillerStatus,
Boolean includeNullFulfillerStatus,
boolean excludeCanceledAndExpired,
boolean excludeDiscontinueOrders,
boolean includeVoided)
Instead of calling this constructor directly, it is recommended to use
OrderSearchCriteriaBuilder . |
OrderSearchCriteria(Patient patient,
CareSetting careSetting,
Collection<Concept> concepts,
Collection<OrderType> orderTypes,
String accessionNumber,
String orderNumber,
Date activatedOnOrBeforeDate,
Date activatedOnOrAfterDate,
boolean isStopped,
Date autoExpireOnOrBeforeDate,
Date canceledOrExpiredOnOrBeforeDate,
Order.Action action,
Order.FulfillerStatus fulfillerStatus,
Boolean includeNullFulfillerStatus,
boolean excludeCanceledAndExpired,
boolean excludeDiscontinueOrders,
boolean includeVoided,
Visit visit) |
Constructor and Description |
---|
VisitSearchCriteria(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)
Constructs a VisitSearchCriteria with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
protected Patient |
PatientEditor.getObjectById(Integer id) |
protected Patient |
PatientEditor.getObjectByUuid(String uuid) |
Copyright © 2024 OpenMRS Inc.. All rights reserved.