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)
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
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
RelationshipType saveRelationshipType(RelationshipType relationshipType) throws DAOException
DAOException
PersonService.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.