| 40 | | public void deletePersonAttributeType(PersonAttributeType type); |
|---|
| | 57 | /** |
|---|
| | 58 | * @see org.openmrs.api.PersonService#purgePersonAttributeType(org.openmrs.PersonAttributeType) |
|---|
| | 59 | */ |
|---|
| | 60 | public void deletePersonAttributeType(PersonAttributeType type) throws DAOException; |
|---|
| | 61 | |
|---|
| | 62 | /** |
|---|
| | 63 | * @see org.openmrs.api.PersonService#getPersonAttributeTypes(java.lang.String, java.lang.String, java.lang.Integer, java.lang.Boolean) |
|---|
| | 64 | */ |
|---|
| | 65 | public List<PersonAttributeType> getPersonAttributeTypes(String exactName, |
|---|
| | 66 | String format, Integer foreignKey, Boolean searchable) throws DAOException; |
|---|
| 69 | | /** |
|---|
| 70 | | * Get list of relationships containing Person |
|---|
| 71 | | * |
|---|
| 72 | | * @return Relationship list |
|---|
| 73 | | * @throws DAOException |
|---|
| 74 | | */ |
|---|
| 75 | | public List<Relationship> getRelationships(Person p, boolean showVoided) throws DAOException; |
|---|
| 76 | | |
|---|
| 77 | | /** |
|---|
| 78 | | * Get all relationshipTypes |
|---|
| 79 | | * |
|---|
| 80 | | * @return relationshipType list |
|---|
| 81 | | * @throws DAOException |
|---|
| 82 | | */ |
|---|
| 83 | | public List<RelationshipType> getRelationshipTypes() throws DAOException; |
|---|
| | 94 | /** |
|---|
| | 95 | * @see org.openmrs.api.PersonService#getAllRelationshipTypes(boolean) |
|---|
| | 96 | */ |
|---|
| | 97 | public List<RelationshipType> getAllRelationshipTypes(boolean includeRetired) throws DAOException; |
|---|
| | 104 | /** |
|---|
| | 105 | * @see org.openmrs.api.PersonService#getRelationshipTypes(java.lang.String, java.lang.Boolean) |
|---|
| | 106 | */ |
|---|
| | 107 | public List<RelationshipType> getRelationshipTypes(String relationshipTypeName, |
|---|
| | 108 | Boolean preferred) throws DAOException; |
|---|
| | 109 | |
|---|
| | 110 | /** |
|---|
| | 111 | * @see org.openmrs.api.PersonService#savePerson(org.openmrs.Person) |
|---|
| | 112 | */ |
|---|
| | 113 | public Person savePerson(Person person) throws DAOException; |
|---|
| | 114 | |
|---|
| | 115 | /** |
|---|
| | 116 | * @see org.openmrs.api.PersonService#deletePerson(org.openmrs.Person) |
|---|
| | 117 | */ |
|---|
| | 118 | public void deletePerson(Person person) throws DAOException; |
|---|
| | 119 | |
|---|
| | 120 | /** |
|---|
| | 121 | * @see org.openmrs.api.PersonService#getPerson(java.lang.Integer) |
|---|
| | 122 | */ |
|---|
| | 123 | public Person getPerson(Integer personId) throws DAOException; |
|---|
| | 124 | |
|---|
| | 125 | /** |
|---|
| | 126 | * @see org.openmrs.api.PersonService#saveRelationship(org.openmrs.Relationship) |
|---|
| | 127 | */ |
|---|
| | 128 | public Relationship saveRelationship(Relationship relationship) throws DAOException; |
|---|
| | 129 | |
|---|
| | 130 | /** |
|---|
| | 131 | * @see org.openmrs.api.PersonService#purgeRelationship(org.openmrs.Relationship) |
|---|
| | 132 | */ |
|---|
| | 133 | public void deleteRelationship(Relationship relationship) throws DAOException; |
|---|
| | 134 | |
|---|
| | 135 | /** |
|---|
| | 136 | * @see org.openmrs.api.PersonService#getRelationships(org.openmrs.Person, org.openmrs.Person, org.openmrs.RelationshipType) |
|---|
| | 137 | */ |
|---|
| | 138 | public List<Relationship> getRelationships(Person fromPerson, |
|---|
| | 139 | Person toPerson, RelationshipType relType) throws DAOException; |
|---|
| | 140 | |
|---|
| 95 | | * Get relationshipType by name |
|---|
| 96 | | * |
|---|
| 97 | | * @throws DAOException |
|---|
| 98 | | */ |
|---|
| 99 | | public RelationshipType findRelationshipType(String relationshipTypeName) throws DAOException; |
|---|
| 100 | | |
|---|
| 101 | | /** |
|---|
| 102 | | * Create a new Person |
|---|
| 103 | | * @param Person to create |
|---|
| 104 | | * @throws DAOException |
|---|
| 105 | | * @return Person created |
|---|
| 106 | | */ |
|---|
| 107 | | public Person createPerson(Person person) throws DAOException; |
|---|
| 108 | | |
|---|
| 109 | | /** |
|---|
| 110 | | * Update a person |
|---|
| 111 | | * @param Person to update |
|---|
| 112 | | * @throws DAOException |
|---|
| 113 | | */ |
|---|
| 114 | | public void updatePerson(Person person) throws DAOException; |
|---|
| 115 | | |
|---|
| 116 | | /** |
|---|
| 117 | | * Delete a person |
|---|
| 118 | | * @param Person to delete |
|---|
| 119 | | * @throws DAOException |
|---|
| 120 | | */ |
|---|
| 121 | | public void deletePerson(Person person) throws DAOException; |
|---|
| 122 | | |
|---|
| 123 | | /** |
|---|
| 124 | | * |
|---|
| 125 | | * @param personId of the Person to retrieve |
|---|
| 126 | | * @return Person |
|---|
| 127 | | * @throws DAOException |
|---|
| 128 | | */ |
|---|
| 129 | | public Person getPerson(Integer personId) throws DAOException; |
|---|
| 130 | | |
|---|
| 131 | | /** |
|---|
| 132 | | * Create a new Relationship |
|---|
| 133 | | * @param Relationship to create |
|---|
| 134 | | * @throws DAOException |
|---|
| 135 | | */ |
|---|
| 136 | | public void createRelationship(Relationship relationship) throws DAOException; |
|---|
| 137 | | |
|---|
| 138 | | /** |
|---|
| 139 | | * Update Relationship |
|---|
| 140 | | * @param Relationship to update |
|---|
| 141 | | * @throws DAOException |
|---|
| 142 | | */ |
|---|
| 143 | | public void updateRelationship(Relationship relationship) throws DAOException; |
|---|
| 144 | | |
|---|
| 145 | | /** |
|---|
| 146 | | * Delete Relationship |
|---|
| 147 | | * @param Relationship to delete |
|---|
| 148 | | * @throws DAOException |
|---|
| 149 | | */ |
|---|
| 150 | | public void deleteRelationship(Relationship relationship) throws DAOException; |
|---|
| 151 | | |
|---|
| 152 | | /** |
|---|
| 153 | | * Retire Relationship |
|---|
| 154 | | * @param Relationship to void |
|---|
| 155 | | * @throws DAOException |
|---|
| 156 | | */ |
|---|
| 157 | | public void voidRelationship(Relationship relationship) throws DAOException; |
|---|
| 158 | | |
|---|
| 159 | | /** |
|---|
| 160 | | * Unretire Relationship |
|---|
| 161 | | * @param Relationship to unvoid |
|---|
| 162 | | * @throws DAOException |
|---|
| 163 | | */ |
|---|
| 164 | | public void unvoidRelationship(Relationship relationship) throws DAOException; |
|---|
| 165 | | |
|---|
| 166 | | /** |
|---|
| 167 | | * Create a new RelationshipType |
|---|
| 168 | | * @param RelationshipType to create |
|---|
| 169 | | * @throws DAOException |
|---|
| 170 | | */ |
|---|
| 171 | | public void createRelationshipType(RelationshipType relationshipType) throws DAOException; |
|---|
| 172 | | |
|---|
| 173 | | /** |
|---|
| 174 | | * Update RelationshipType |
|---|
| 175 | | * @param RelationshipType to update |
|---|
| 176 | | * @throws DAOException |
|---|
| 177 | | */ |
|---|
| 178 | | public void updateRelationshipType(RelationshipType relationshipType) throws DAOException; |
|---|
| 179 | | |
|---|
| 180 | | /** |
|---|
| 181 | | * Delete RelationshipType |
|---|
| 182 | | * @param RelationshipType to delete |
|---|
| 183 | | * @throws DAOException |
|---|
| 184 | | */ |
|---|
| 185 | | public void deleteRelationshipType(RelationshipType relationshipType) throws DAOException; |
|---|
| 186 | | |
|---|
| | 142 | * @see org.openmrs.api.PersonService#saveRelationshipType(org.openmrs.RelationshipType) |
|---|
| | 143 | */ |
|---|
| | 144 | public RelationshipType saveRelationshipType(RelationshipType relationshipType) throws DAOException; |
|---|
| | 145 | |
|---|
| | 146 | /** |
|---|
| | 147 | * @see org.openmrs.api.PersonService#deleteRelationshipType(org.openmrs.RelationshipType) |
|---|
| | 148 | */ |
|---|
| | 149 | public void deleteRelationshipType(RelationshipType relationshipType) throws DAOException; |
|---|