Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.activelist | |
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.module.web | |
org.openmrs.reporting |
Deprecated
|
org.openmrs.util |
Shared utilities for OpenMRS classes
|
org.openmrs.web.controller.observation | |
org.openmrs.web.controller.person | |
org.openmrs.web.dwr | |
org.openmrs.web.taglib |
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 |
PersonAddress.getPerson() |
Person |
User.getPerson() |
Person |
PersonAttribute.getPerson() |
Person |
PersonName.getPerson() |
Person |
Obs.getPerson()
Get the person object that this obs is acting on.
|
Person |
Relationship.getPersonA() |
Person |
Relationship.getPersonB() |
Person |
Encounter.getProvider() |
Person |
Person.replaceSerialization(Map<?,?> sessionMap)
If the serializer wishes, don't serialize this entire object, just the important parts
|
Modifier and Type | Method and Description |
---|---|
void |
PersonAddress.setPerson(Person person) |
void |
User.setPerson(Person person) |
void |
PersonAttribute.setPerson(Person person) |
void |
PersonName.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) |
void |
Encounter.setProvider(Person provider) |
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 | Field and Description |
---|---|
protected Person |
ActiveListItem.person |
Modifier and Type | Method and Description |
---|---|
Person |
ActiveListItem.getPerson() |
Modifier and Type | Method and Description |
---|---|
void |
ActiveListItem.setPerson(Person person) |
Constructor and Description |
---|
ActiveListItem(Person person,
ActiveListType activeListType,
Concept concept,
Date startDate) |
Modifier and Type | Method and Description |
---|---|
Person |
PersonService.createPerson(Person person)
Deprecated.
replaced by #savePerson(Person)
|
Person |
PersonService.getPerson(Integer personId)
Gets a person by internal id
|
Person |
PersonService.getPerson(Patient pat)
Deprecated.
|
Person |
PersonService.getPerson(User user)
Deprecated.
|
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 |
---|---|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided)
Deprecated.
@see #getPeople(...)
|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided,
List<String> roles)
Deprecated.
@see #getPeople(...)
|
Set<Person> |
PersonService.findPeople(String searchPhrase,
boolean includeVoided,
String roles)
Deprecated.
@see #getPeople(...)
|
List<Person> |
PersonService.getPeople(String searchPhrase,
Boolean dead)
Find a person matching the searchPhrase search string
|
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
|
Map<Person,List<Person>> |
PersonService.getRelationships(RelationshipType relationshipType)
Deprecated.
|
Map<Person,List<Person>> |
PersonService.getRelationships(RelationshipType relationshipType)
Deprecated.
|
Map<Integer,List<Person>> |
PatientSetService.getRelatives(Cohort ps,
RelationshipType relType,
boolean forwards) |
Set<Person> |
PersonService.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender)
Find a similar person given the attributes.
|
Set<Person> |
PersonService.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender,
String personType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonService.createPerson(Person person)
Deprecated.
replaced by #savePerson(Person)
|
void |
PersonService.deletePerson(Person person)
Deprecated.
replaced by #purgePerson(Person)
|
<T extends ActiveListItem> |
ActiveListService.getActiveListItems(Class<T> clazz,
Person p,
ActiveListType type)
Returns a sorted set of active list items from a class that extends ActiveListItem
|
List<ActiveListItem> |
ActiveListService.getActiveListItems(Person p,
ActiveListType type)
Returns a sorted set of active list items based on the type given.
|
List<Allergy> |
PatientService.getAllergies(Person p)
Returns a sorted set of Allergies, sorted on sort_weight
|
List<Obs> |
ObsService.getLastNObservations(Integer n,
Person who,
Concept question,
boolean includeVoided)
|
Set<Obs> |
ObsService.getObservations(Person who,
boolean includeVoided)
Deprecated.
|
Set<Obs> |
ObsService.getObservations(Person who,
Concept question,
boolean includeVoided)
Deprecated.
|
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)
|
List<Problem> |
PatientService.getProblems(Person p)
Get a list of the problems for the patient, sorted on sort_weight
|
List<Relationship> |
PersonService.getRelationships(Person p)
Deprecated.
|
List<Relationship> |
PersonService.getRelationships(Person p,
boolean showVoided)
Deprecated.
|
List<Relationship> |
PersonService.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType)
Get relationships stored in the database that
|
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.getRelationshipsTo(Person toPerson,
RelationshipType relType)
Deprecated.
|
List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
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.
|
void |
PersonService.updatePerson(Person person)
Deprecated.
|
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonDAO.getPerson(Integer personId) |
Person |
PersonDAO.getPersonByUuid(String uuid)
Auto generated method comment
|
Person |
PersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
List<Person> |
PersonDAO.getPeople(String searchPhrase,
Boolean dead) |
Map<Integer,List<Person>> |
PatientSetDAO.getRelatives(Cohort ps,
RelationshipType relType,
boolean forwards) |
Set<Person> |
PersonDAO.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Modifier and Type | Method and Description |
---|---|
void |
PersonDAO.deletePerson(Person person) |
<T extends ActiveListItem> |
ActiveListDAO.getActiveListItems(Class<T> clazz,
Person p,
ActiveListType type) |
List<ActiveListItem> |
ActiveListDAO.getActiveListItems(Person p,
ActiveListType type) |
Cohort |
PatientSetDAO.getPatientsByRelationship(RelationshipType relType,
boolean includeAtoB,
boolean includeBtoA,
Person target)
Returns the cohort of patients matching a particular relationship search.
|
List<Relationship> |
PersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<User> |
UserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
Person |
PersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
Integer |
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) |
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) |
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 name,
Boolean dead) |
Map<Integer,List<Person>> |
HibernatePatientSetDAO.getRelatives(Cohort patients,
RelationshipType relType,
boolean forwards) |
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.
|
<T extends ActiveListItem> |
HibernateActiveListDAO.getActiveListItems(Class<T> clazz,
Person p,
ActiveListType type) |
List<ActiveListItem> |
HibernateActiveListDAO.getActiveListItems(Person p,
ActiveListType type) |
Cohort |
HibernatePatientSetDAO.getPatientsByRelationship(RelationshipType relType,
boolean includeAtoB,
boolean includeBtoA,
Person target)
TODO get rid of the potentially-expensive call to getAllPatients()
|
List<Relationship> |
HibernatePersonDAO.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<User> |
HibernateUserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
Person |
HibernatePersonDAO.savePerson(Person person) |
Modifier and Type | Method and Description |
---|---|
Integer |
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) |
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) |
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 |
PersonSaveHandler.handle(Person person,
User creator,
Date dateCreated,
String other) |
void |
PersonUnvoidHandler.handle(Person person,
User unvoidingUser,
Date origParentVoidedDate,
String unused)
Called around every unvoid* method to set everything to null.
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonServiceImpl.createPerson(Person person)
Deprecated.
|
Person |
PersonServiceImpl.getPerson(Integer personId) |
Person |
PersonServiceImpl.getPerson(Patient pat)
Deprecated.
|
Person |
PersonServiceImpl.getPerson(User user)
Deprecated.
|
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 |
---|---|
Set<Person> |
PersonServiceImpl.findPeople(String searchPhrase,
boolean includeVoided)
Deprecated.
|
Set<Person> |
PersonServiceImpl.findPeople(String searchPhrase,
boolean includeVoided,
List<String> roles)
Deprecated.
|
Set<Person> |
PersonServiceImpl.findPeople(String searchPhrase,
boolean includeVoided,
String roles)
Deprecated.
|
List<Person> |
PersonServiceImpl.getPeople(String searchPhrase,
Boolean dead) |
Map<Person,List<Person>> |
PersonServiceImpl.getRelationshipMap(RelationshipType relType) |
Map<Person,List<Person>> |
PersonServiceImpl.getRelationshipMap(RelationshipType relType) |
Map<Person,List<Person>> |
PersonServiceImpl.getRelationships(RelationshipType relType)
Deprecated.
|
Map<Person,List<Person>> |
PersonServiceImpl.getRelationships(RelationshipType relType)
Deprecated.
|
Map<Integer,List<Person>> |
PatientSetServiceImpl.getRelatives(Cohort ps,
RelationshipType relType,
boolean forwards) |
Set<Person> |
PersonServiceImpl.getSimilarPeople(String name,
Integer birthyear,
String gender) |
Set<Person> |
PersonServiceImpl.getSimilarPeople(String nameSearch,
Integer birthyear,
String gender,
String personType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonServiceImpl.createPerson(Person person)
Deprecated.
|
void |
PersonServiceImpl.deletePerson(Person person)
Deprecated.
|
<T extends ActiveListItem> |
ActiveListServiceImpl.getActiveListItems(Class<T> clazz,
Person p,
ActiveListType type) |
List<ActiveListItem> |
ActiveListServiceImpl.getActiveListItems(Person p,
ActiveListType type) |
List<Allergy> |
PatientServiceImpl.getAllergies(Person p) |
List<Obs> |
ObsServiceImpl.getLastNObservations(Integer n,
Person who,
Concept question,
boolean includeVoided)
Deprecated.
|
Set<Obs> |
ObsServiceImpl.getObservations(Person who,
boolean includeVoided)
Deprecated.
|
Set<Obs> |
ObsServiceImpl.getObservations(Person who,
Concept question,
boolean includeVoided)
Deprecated.
|
List<Obs> |
ObsServiceImpl.getObservationsByPerson(Person who) |
List<Obs> |
ObsServiceImpl.getObservationsByPersonAndConcept(Person who,
Concept question) |
List<Problem> |
PatientServiceImpl.getProblems(Person p) |
List<Relationship> |
PersonServiceImpl.getRelationships(Person p)
Deprecated.
|
List<Relationship> |
PersonServiceImpl.getRelationships(Person p,
boolean showVoided)
Deprecated.
|
List<Relationship> |
PersonServiceImpl.getRelationships(Person fromPerson,
Person toPerson,
RelationshipType relType) |
List<Relationship> |
PersonServiceImpl.getRelationshipsByPerson(Person p) |
List<Relationship> |
PersonServiceImpl.getRelationshipsTo(Person toPerson,
RelationshipType relType)
|
List<User> |
UserServiceImpl.getUsersByPerson(Person person,
boolean includeRetired) |
void |
PersonServiceImpl.purgePerson(Person person) |
Person |
PersonServiceImpl.savePerson(Person person) |
Person |
PersonServiceImpl.unvoidPerson(Person person) |
void |
PersonServiceImpl.updatePerson(Person person)
Deprecated.
|
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) |
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) |
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 |
FormEntryContext.getPerson() |
Modifier and Type | Method and Description |
---|---|
void |
FormEntryContext.setPerson(Person person) |
Constructor and Description |
---|
FormEntryContext(Person person) |
Modifier and Type | Method and Description |
---|---|
Person |
RelationshipPatientFilter.getPerson() |
Modifier and Type | Method and Description |
---|---|
void |
RelationshipPatientFilter.setPerson(Person person) |
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
|
Modifier and Type | Method and Description |
---|---|
Person |
PersonObsFormController.CommandObject.getPerson() |
Modifier and Type | Method and Description |
---|---|
void |
PersonObsFormController.CommandObject.setPerson(Person person) |
Constructor and Description |
---|
CommandObject(Person person,
Concept concept,
List<Obs> observations) |
Modifier and Type | Method and Description |
---|---|
static <P extends Person> |
PersonFormController.getMiniPerson(P person,
String name,
String gender,
String date,
String age)
Add the given name, gender, and birthdate/age to the given Person
|
Modifier and Type | Method and Description |
---|---|
protected Person |
PersonFormController.setupFormBackingObject(Person person)
Setup the person object.
|
Modifier and Type | Method and Description |
---|---|
protected Person |
PersonFormController.setupFormBackingObject(Person person)
Setup the person object.
|
protected Map |
PersonFormController.setupReferenceData(Map map,
Person person)
Setup the reference map object.
|
Modifier and Type | Method and Description |
---|---|
static PersonListItem |
PersonListItem.createBestMatch(Person person)
Creates an instance of a subclass of PersonListItem which is best suited for the parameter.
|
Constructor and Description |
---|
PersonListItem(Person person)
Convenience constructor that creates a PersonListItem from the given Person.
|
Modifier and Type | Method and Description |
---|---|
Person |
FormatTag.getPerson() |
Modifier and Type | Method and Description |
---|---|
void |
FormatTag.setPerson(Person person) |
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.