public interface VisitDAO
Modifier and Type | Method and Description |
---|---|
void |
deleteVisit(Visit visit) |
void |
deleteVisitAttributeType(VisitAttributeType visitAttributeType)
Completely removes a visit attribute type from the database
|
java.util.List<VisitAttributeType> |
getAllVisitAttributeTypes() |
java.util.List<VisitType> |
getAllVisitTypes() |
Visit |
getNextVisit(Visit previousVisit,
java.util.Collection<VisitType> visitTypes,
java.util.Date maximumStartDate)
Gets the next active visit which matches the specified visit types
|
Visit |
getVisit(java.lang.Integer visitId) |
VisitAttribute |
getVisitAttributeByUuid(java.lang.String uuid) |
VisitAttributeType |
getVisitAttributeType(java.lang.Integer id) |
VisitAttributeType |
getVisitAttributeTypeByUuid(java.lang.String uuid) |
Visit |
getVisitByUuid(java.lang.String uuid) |
java.util.List<Visit> |
getVisits(java.util.Collection<VisitType> visitTypes,
java.util.Collection<Patient> patients,
java.util.Collection<Location> locations,
java.util.Collection<Concept> indications,
java.util.Date minStartDatetime,
java.util.Date maxStartDatetime,
java.util.Date minEndDatetime,
java.util.Date maxEndDatetime,
java.util.Map<VisitAttributeType,java.lang.String> serializedAttributeValues,
boolean includeInactive,
boolean includeVoided)
Gets the visits matching the specified arguments
|
VisitType |
getVisitType(java.lang.Integer visitTypeId) |
VisitType |
getVisitTypeByUuid(java.lang.String uuid) |
java.util.List<VisitType> |
getVisitTypes(java.lang.String fuzzySearchPhrase) |
void |
purgeVisitType(VisitType visitType) |
Visit |
saveVisit(Visit visit) |
VisitAttributeType |
saveVisitAttributeType(VisitAttributeType visitAttributeType) |
VisitType |
saveVisitType(VisitType visitType) |
java.util.List<VisitType> getAllVisitTypes() throws APIException
APIException
VisitService.getAllVisitTypes()
VisitType getVisitType(java.lang.Integer visitTypeId)
VisitType getVisitTypeByUuid(java.lang.String uuid)
java.util.List<VisitType> getVisitTypes(java.lang.String fuzzySearchPhrase)
void purgeVisitType(VisitType visitType)
Visit getVisit(java.lang.Integer visitId) throws DAOException
DAOException
VisitService.getVisit(Integer)
Visit getVisitByUuid(java.lang.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)
java.util.List<Visit> getVisits(java.util.Collection<VisitType> visitTypes, java.util.Collection<Patient> patients, java.util.Collection<Location> locations, java.util.Collection<Concept> indications, java.util.Date minStartDatetime, java.util.Date maxStartDatetime, java.util.Date minEndDatetime, java.util.Date maxEndDatetime, java.util.Map<VisitAttributeType,java.lang.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
java.util.List<VisitAttributeType> getAllVisitAttributeTypes()
VisitService.getAllVisitAttributeTypes()
VisitAttributeType getVisitAttributeType(java.lang.Integer id)
VisitAttributeType getVisitAttributeTypeByUuid(java.lang.String uuid)
VisitAttributeType saveVisitAttributeType(VisitAttributeType visitAttributeType)
void deleteVisitAttributeType(VisitAttributeType visitAttributeType)
visitAttributeType
- VisitAttribute getVisitAttributeByUuid(java.lang.String uuid)
Visit getNextVisit(Visit previousVisit, java.util.Collection<VisitType> visitTypes, java.util.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
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.