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)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
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
DAOExceptionPersonService.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
RelationshipType saveRelationshipType(RelationshipType relationshipType) throws DAOException
DAOExceptionPersonService.saveRelationshipType(org.openmrs.RelationshipType)void deleteRelationshipType(RelationshipType relationshipType) throws DAOException
Person getPersonByUuid(String uuid)
uuid - PersonAddress getPersonAddressByUuid(String uuid)
PersonAttribute getPersonAttributeByUuid(String uuid)
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 ofList<RelationshipType> getAllRelationshipTypes(boolean includeRetired)
org.openmrs.api.PersonService#getAllRelationshipTypes(java.lang.Boolean)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.