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,
ContextSet<Person> getSimilarPeople(String name, Integer birthyear, String gender) throws DAOException
List<Person> getPeople(String searchPhrase, Boolean dead) throws DAOException
DAOExceptionPersonService.getPeople(String, Boolean)List<Person> getPeople(String searchPhrase, Boolean dead, Boolean voided) throws DAOException
DAOExceptionPersonAttributeType 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
DAOExceptionPersonService.getPersonAttributeType(java.lang.Integer)PersonAttribute getPersonAttribute(Integer id) throws DAOException
DAOExceptionPersonService.getPersonAttribute(java.lang.Integer)Relationship getRelationship(Integer relationshipId) throws DAOException
DAOExceptionPersonService.getRelationship(java.lang.Integer)List<Relationship> getAllRelationships(boolean includeVoided) throws DAOException
DAOExceptionPersonService.getAllRelationships(boolean)RelationshipType getRelationshipType(Integer relationshipTypeId) throws DAOException
DAOExceptionPersonService.getRelationshipType(java.lang.Integer)List<RelationshipType> getRelationshipTypes(String relationshipTypeName, Boolean preferred) throws DAOException
Person savePerson(Person person) throws DAOException
DAOExceptionPersonService.savePerson(org.openmrs.Person)void deletePerson(Person person) throws DAOException
DAOExceptionorg.openmrs.api.PersonService#deletePerson(org.openmrs.Person)Person getPerson(Integer personId) throws DAOException
DAOExceptionPersonService.getPerson(java.lang.Integer)Relationship saveRelationship(Relationship relationship) throws DAOException
DAOExceptionPersonService.saveRelationship(org.openmrs.Relationship)void deleteRelationship(Relationship relationship) throws DAOException
DAOExceptionPersonService.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
DAOExceptionPersonService.saveRelationshipType(org.openmrs.RelationshipType)void deleteRelationshipType(RelationshipType relationshipType) throws DAOException
DAOExceptionorg.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 objectDAOExceptionPersonMergeLog getPersonMergeLog(Integer id) throws DAOException
PersonMergeLog object from the model by idid - the id of the PersonMergeLog object to retrievePersonMergeLog objectDAOExceptionPersonMergeLog getPersonMergeLogByUuid(String uuid) throws DAOException
uuid - the UUID of the PersonMergeLog object to retrieveDAOExceptionList<PersonMergeLog> getAllPersonMergeLogs() throws DAOException
DAOExceptionList<PersonMergeLog> getWinningPersonMergeLogs(Person person) throws DAOException
person - the winning personPersonMergeLog objectsDAOExceptionPersonMergeLog getLosingPersonMergeLogs(Person person) throws DAOException
person - PersonMergeLog objectDAOExceptionPersonName savePersonName(PersonName personName)
PersonAddress savePersonAddress(PersonAddress personAddress)
Copyright © 2024 OpenMRS Inc.. All rights reserved.