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 |
OpenMRS HL7 module.
|
org.openmrs.hl7.impl | |
org.openmrs.person | |
org.openmrs.util |
Shared utilities for OpenMRS classes
|
Modifier and Type | Class and Description |
---|---|
class |
Patient
Defines a Patient in the system.
|
Modifier and Type | Field and Description |
---|---|
protected Person |
Obs.person |
Modifier and Type | Method and Description |
---|---|
Person |
User.getPerson() |
Person |
Provider.getPerson() |
Person |
PersonName.getPerson() |
Person |
PersonAttribute.getPerson() |
Person |
PersonAddress.getPerson() |
Person |
Patient.getPerson()
Returns the person represented
|
Person |
Obs.getPerson()
Get the person object that this obs is acting on.
|
Person |
Relationship.getPersonA() |
Person |
Relationship.getPersonB() |
Modifier and Type | Method and Description |
---|---|
void |
User.setPerson(Person person) |
void |
Provider.setPerson(Person person) |
void |
PersonName.setPerson(Person person) |
void |
PersonAttribute.setPerson(Person person) |
void |
PersonAddress.setPerson(Person person) |
void |
Obs.setPerson(Person person)
Set the person object to this obs object.
|
void |
Relationship.setPersonA(Person personA) |
void |
Relationship.setPersonB(Person personB) |
Constructor and Description |
---|
Obs(Person person,
Concept question,
Date obsDatetime,
Location location)
Required parameters constructor A value is also required, but that can be one of: valueCoded,
valueDrug, valueNumeric, or valueText
|
Patient(Person person)
This constructor creates a new Patient object from the given
Person object. |
Person(Person person)
This constructor is used to build a new Person object copy from another person object
(usually a patient or a user subobject).
|
Relationship(Person personA,
Person personB,
RelationshipType type) |
User(Person person)
constructor with person object
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonService.getPerson(Integer personId)
Gets a person by internal id
|
Person |
PersonService.getPersonByUuid(String uuid)
Get Person by its UUID
|
Person |
PersonService.savePerson(Person person)
Creates or updates a Person in the database
|
Person |
PersonService.unvoidPerson(Person person)
Effectively resurrects this person in the db.
|
Person |
PersonService.voidPerson(Person person,
String reason)
Effectively removes this person from the system.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
|
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
|
Set<Person> |
PersonService.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender)
Find a similar person given the attributes.
|
Modifier and Type | Method and Description |
---|---|
PersonMergeLog |
PersonService.getLosingPersonMergeLog(Person person,
boolean deserialize)
Gets the
PersonMergeLog where person p is the loser. |
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)
|
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<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.
|
List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
List<PersonMergeLog> |
PersonService.getWinningPersonMergeLogs(Person person,
boolean deserialize)
Gets
PersonMergeLog objects by winning person p. |
void |
PersonService.purgePerson(Person person)
Purges a person from the database (cannot be undone)
|
Person |
PersonService.savePerson(Person person)
Creates or updates a Person in the database
|
Person |
PersonService.unvoidPerson(Person person)
Effectively resurrects this person in the db.
|
Person |
PersonService.voidPerson(Person person,
String reason)
Effectively removes this person from the system.
|
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
Person |
PersonDAO.getPerson(Integer personId) |
Person |
PersonDAO.getPersonByUuid(String uuid) |
Person |
PersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
List<Person> |
PersonDAO.getPeople(String searchPhrase,
Boolean dead) |
List<Person> |
PersonDAO.getPeople(String searchPhrase,
Boolean dead,
Boolean voided) |
Set<Person> |
PersonDAO.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Modifier and Type | Method and Description |
---|---|
void |
PersonDAO.deletePerson(Person person) |
PersonMergeLog |
PersonDAO.getLosingPersonMergeLogs(Person person)
Finds the PersonMergeLog by loser
|
Collection<Provider> |
ProviderDAO.getProvidersByPerson(Person person,
boolean includeRetired) |
List<Relationship> |
PersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<Relationship> |
PersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date startEffectiveDate,
Date endEffectiveDate) |
List<User> |
UserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
List<PersonMergeLog> |
PersonDAO.getWinningPersonMergeLogs(Person person)
Gets the PersonMergeLog objects by winner
|
Person |
PersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
Person |
HibernatePersonDAO.getPerson(Integer personId) |
Person |
HibernatePersonDAO.getPersonByUuid(String uuid) |
Person |
HibernatePersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
List<Person> |
HibernatePersonDAO.getPeople(String searchString,
Boolean dead) |
List<Person> |
HibernatePersonDAO.getPeople(String searchString,
Boolean dead,
Boolean voided) |
Set<Person> |
HibernatePersonDAO.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Modifier and Type | Method and Description |
---|---|
void |
HibernatePersonDAO.deletePerson(Person person) |
static void |
HibernatePersonDAO.deletePersonAndAttributes(org.hibernate.SessionFactory sessionFactory,
Person person)
Used by deletePerson, deletePatient, and deleteUser to remove all properties of a person
before deleting them.
|
PersonMergeLog |
HibernatePersonDAO.getLosingPersonMergeLogs(Person person) |
Collection<Provider> |
HibernateProviderDAO.getProvidersByPerson(Person person,
boolean includeRetired) |
List<Relationship> |
HibernatePersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<Relationship> |
HibernatePersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date startEffectiveDate,
Date endEffectiveDate) |
List<User> |
HibernateUserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
List<PersonMergeLog> |
HibernatePersonDAO.getWinningPersonMergeLogs(Person person) |
Person |
HibernatePersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
PersonVoidHandler.handle(Person person,
User voidingUser,
Date voidedDate,
String voidReason)
Sets all personVoid* attributes to the given parameters.
|
void |
PersonUnvoidHandler.handle(Person person,
User unvoidingUser,
Date origParentVoidedDate,
String unused)
Called around every unvoid* method to set everything to null.
|
void |
PersonSaveHandler.handle(Person person,
User creator,
Date dateCreated,
String other) |
Modifier and Type | Method and Description |
---|---|
Person |
PersonServiceImpl.getPerson(Integer personId) |
Person |
PersonServiceImpl.getPersonByUuid(String uuid) |
Person |
PersonServiceImpl.savePerson(Person person) |
Person |
PersonServiceImpl.unvoidPerson(Person person) |
Person |
PersonServiceImpl.voidPerson(Person person,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<Person> |
PersonServiceImpl.getPeople(String searchPhrase,
Boolean dead) |
List<Person> |
PersonServiceImpl.getPeople(String searchPhrase,
Boolean dead,
Boolean voided) |
Map<Person,List<Person>> |
PersonServiceImpl.getRelationshipMap(RelationshipType relType) |
Map<Person,List<Person>> |
PersonServiceImpl.getRelationshipMap(RelationshipType relType) |
Set<Person> |
PersonServiceImpl.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Modifier and Type | Method and Description |
---|---|
PersonMergeLog |
PersonServiceImpl.getLosingPersonMergeLog(Person person,
boolean deserialize) |
List<Obs> |
ObsServiceImpl.getObservationsByPerson(Person who) |
List<Obs> |
ObsServiceImpl.getObservationsByPersonAndConcept(Person who,
Concept question) |
Collection<Provider> |
ProviderServiceImpl.getProvidersByPerson(Person person) |
Collection<Provider> |
ProviderServiceImpl.getProvidersByPerson(Person person,
boolean includeRetired) |
List<Relationship> |
PersonServiceImpl.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<Relationship> |
PersonServiceImpl.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date effectiveDate) |
List<Relationship> |
PersonServiceImpl.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType,
Date startEffectiveDate,
Date endEffectiveDate) |
List<Relationship> |
PersonServiceImpl.getRelationshipsByPerson(Person p) |
List<Relationship> |
PersonServiceImpl.getRelationshipsByPerson(Person p,
Date effectiveDate) |
List<User> |
UserServiceImpl.getUsersByPerson(Person person,
boolean includeRetired) |
List<PersonMergeLog> |
PersonServiceImpl.getWinningPersonMergeLogs(Person person,
boolean deserialize) |
void |
PersonServiceImpl.purgePerson(Person person) |
Person |
PersonServiceImpl.savePerson(Person person) |
Person |
PersonServiceImpl.unvoidPerson(Person person) |
Person |
PersonServiceImpl.voidPerson(Person person,
String reason) |
Modifier and Type | Method and Description |
---|---|
Integer |
ObsServiceImpl.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) |
Integer |
ObsServiceImpl.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 |
ObsServiceImpl.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> |
ObsServiceImpl.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) |
List<Obs> |
ObsServiceImpl.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> |
ObsServiceImpl.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) |
Modifier and Type | Method and Description |
---|---|
Person |
HL7Service.createPersonFromNK1(ca.uhn.hl7v2.model.v25.segment.NK1 nk1)
creates a Person from information held in an NK1 segment; if valid PatientIdentifiers exist,
a Patient will be created and returned
|
Person |
HL7Service.resolvePersonFromIdentifiers(ca.uhn.hl7v2.model.v25.datatype.CX[] identifiers)
determines a person (or patient) based on identifiers from a CX array, as found in a PID or
NK1 segment; the first resolving identifier in the list wins
|
Modifier and Type | Method and Description |
---|---|
Person |
HL7ServiceImpl.createPersonFromNK1(ca.uhn.hl7v2.model.v25.segment.NK1 nk1) |
Person |
HL7ServiceImpl.resolvePersonFromIdentifiers(ca.uhn.hl7v2.model.v25.datatype.CX[] identifiers) |
Modifier and Type | Method and Description |
---|---|
Person |
PersonMergeLog.getLoser() |
Person |
PersonMergeLog.getWinner() |
Modifier and Type | Method and Description |
---|---|
void |
PersonMergeLog.setLoser(Person loser) |
void |
PersonMergeLog.setWinner(Person winner) |
Modifier and Type | Method and Description |
---|---|
int |
PersonByNameComparator.compare(Person person1,
Person person2) |
static int |
PersonByNameComparator.comparePersonsByName(Person person1,
Person person2)
Compares two person objects by name
Should return negative if personName for person1 comes before that of person2
Should return positive if personName for person1 comes after that of person2
Should return zero if the givenName middleName and familyName match
Should be case insensitive
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.