public interface PersonDAO
This is used by the PersonService. This should not be used directly, but rather used through the methods on the PersonService.
Use case:
PersonService ps = Context.getPersonService();
ps....
PersonService
,
Context
Set<Person> getSimilarPeople(String name, Integer birthyear, String gender) throws DAOException
List<Person> getPeople(String searchPhrase, Boolean dead) throws DAOException
DAOException
PersonService.getPeople(String, Boolean)
List<Person> getPeople(String searchPhrase, Boolean dead, Boolean voided) throws DAOException
DAOException
PersonAttributeType savePersonAttributeType(PersonAttributeType type) throws DAOException
void deletePersonAttributeType(PersonAttributeType type) throws DAOException
List<PersonAttributeType> getPersonAttributeTypes(String exactName, String format, Integer foreignKey, Boolean searchable) throws DAOException
List<PersonAttributeType> getAllPersonAttributeTypes(boolean includeRetired) throws DAOException
PersonAttributeType getPersonAttributeType(Integer typeId) throws DAOException
DAOException
PersonService.getPersonAttributeType(java.lang.Integer)
PersonAttribute getPersonAttribute(Integer id) throws DAOException
DAOException
PersonService.getPersonAttribute(java.lang.Integer)
Relationship getRelationship(Integer relationshipId) throws DAOException
DAOException
PersonService.getRelationship(java.lang.Integer)
List<Relationship> getAllRelationships(boolean includeVoided) throws DAOException
DAOException
PersonService.getAllRelationships(boolean)
RelationshipType getRelationshipType(Integer relationshipTypeId) throws DAOException
DAOException
PersonService.getRelationshipType(java.lang.Integer)
List<RelationshipType> getRelationshipTypes(String relationshipTypeName, Boolean preferred) throws DAOException
Person savePerson(Person person) throws DAOException
DAOException
PersonService.savePerson(org.openmrs.Person)
void deletePerson(Person person) throws DAOException
DAOException
org.openmrs.api.PersonService#deletePerson(org.openmrs.Person)
Person getPerson(Integer personId) throws DAOException
DAOException
PersonService.getPerson(java.lang.Integer)
Relationship saveRelationship(Relationship relationship) throws DAOException
DAOException
PersonService.saveRelationship(org.openmrs.Relationship)
void deleteRelationship(Relationship relationship) throws DAOException
DAOException
PersonService.purgeRelationship(org.openmrs.Relationship)
List<Relationship> getRelationships(Person fromPerson, Person toPerson, RelationshipType relType) throws DAOException
List<Relationship> getRelationships(Person fromPerson, Person toPerson, RelationshipType relType, Date startEffectiveDate, Date endEffectiveDate) throws DAOException
RelationshipType saveRelationshipType(RelationshipType relationshipType) throws DAOException
DAOException
PersonService.saveRelationshipType(org.openmrs.RelationshipType)
void deleteRelationshipType(RelationshipType relationshipType) throws DAOException
DAOException
org.openmrs.api.PersonService#deleteRelationshipType(org.openmrs.RelationshipType)
PersonAddress getPersonAddressByUuid(String uuid)
PersonAttribute getPersonAttributeByUuid(String uuid)
PersonName getPersonName(Integer personNameId)
PersonName getPersonNameByUuid(String uuid)
Relationship getRelationshipByUuid(String uuid)
uuid
- RelationshipType getRelationshipTypeByUuid(String uuid)
uuid
- PersonAttributeType getPersonAttributeTypeByUuid(String uuid)
uuid
- String getSavedPersonAttributeTypeName(PersonAttributeType personAttributeType)
OpenmrsConstants.GLOBAL_PROPERTIES_OF_PERSON_ATTRIBUTES
and reference the given
personAttributeType. personAttributeType
- the personAttributeType get the the name ofBoolean getSavedPersonAttributeTypeSearchable(PersonAttributeType personAttributeType)
personAttributeType
- List<RelationshipType> getAllRelationshipTypes(boolean includeRetired)
PersonMergeLog savePersonMergeLog(PersonMergeLog personMergeLog) throws DAOException
PersonMergeLog
object to the databasepersonMergeLog
- the PersonMergeLog
object to savePersonMergeLog
objectDAOException
PersonMergeLog getPersonMergeLog(Integer id) throws DAOException
PersonMergeLog
object from the model by idid
- the id of the PersonMergeLog
object to retrievePersonMergeLog
objectDAOException
PersonMergeLog getPersonMergeLogByUuid(String uuid) throws DAOException
uuid
- the UUID of the PersonMergeLog object to retrieveDAOException
List<PersonMergeLog> getAllPersonMergeLogs() throws DAOException
DAOException
List<PersonMergeLog> getWinningPersonMergeLogs(Person person) throws DAOException
person
- the winning personPersonMergeLog
objectsDAOException
PersonMergeLog getLosingPersonMergeLogs(Person person) throws DAOException
person
- PersonMergeLog
objectDAOException
PersonName savePersonName(PersonName personName)
PersonAddress savePersonAddress(PersonAddress personAddress)
Copyright © 2024 OpenMRS Inc.. All rights reserved.