public interface VisitDAO
List<VisitType> getAllVisitTypes() throws APIException
APIException
VisitService.getAllVisitTypes()
List<VisitType> getAllVisitTypes(boolean includeRetired) throws DAOException
DAOException
VisitService.getAllVisitTypes(boolean)
void purgeVisitType(VisitType visitType)
Visit getVisit(Integer visitId) throws DAOException
DAOException
VisitService.getVisit(Integer)
Visit getVisitByUuid(String uuid) throws DAOException
DAOException
VisitService.getVisitByUuid(String)
Visit saveVisit(Visit visit) throws DAOException
DAOException
VisitService.saveVisit(Visit)
void deleteVisit(Visit visit) throws DAOException
DAOException
VisitService.purgeVisit(Visit)
List<Visit> getVisits(Collection<VisitType> visitTypes, Collection<Patient> patients, Collection<Location> locations, Collection<Concept> indications, Date minStartDatetime, Date maxStartDatetime, Date minEndDatetime, Date maxEndDatetime, Map<VisitAttributeType,String> serializedAttributeValues, boolean includeInactive, boolean includeVoided) throws DAOException
visitTypes
- a list of visit types to match againstpatients
- a list of patients to match againstlocations
- a list of locations to match againstindications
- a list of indication concepts to match againstminStartDatetime
- the minimum visit start date to match againstmaxStartDatetime
- the maximum visit start date to match againstminEndDatetime
- the minimum visit end date to match againstmaxEndDatetime
- the maximum visit end date to match againstincludeInactive
- specifies if inactive visits should be returned or notincludeVoided
- specifies if voided visits should also be returnedDAOException
- Should return all unvoided visits if includeEnded is set to true
Should return only active visits if includeEnded is set to falseList<Visit> getVisits(VisitSearchCriteria criteria) throws DAOException
criteria
- the search criteriaDAOException
List<VisitAttributeType> getAllVisitAttributeTypes()
VisitService.getAllVisitAttributeTypes()
VisitAttributeType getVisitAttributeType(Integer id)
VisitAttributeType getVisitAttributeTypeByUuid(String uuid)
VisitAttributeType saveVisitAttributeType(VisitAttributeType visitAttributeType)
void deleteVisitAttributeType(VisitAttributeType visitAttributeType)
visitAttributeType
- VisitAttribute getVisitAttributeByUuid(String uuid)
Visit getNextVisit(Visit previousVisit, Collection<VisitType> visitTypes, Date maximumStartDate)
previousVisit
- the visit that precedes the one we are fetchingvisitTypes
- a collection of visit types to match againstmaximumStartDate
- the next visit should have been created before or at this date timeVisit
Should return the next unvoided active visit matching the specified types and startDateCopyright © 2024 OpenMRS Inc.. All rights reserved.