public interface PatientDAO
Context
,
PatientService
Modifier and Type | Method and Description |
---|---|
void |
deletePatient(Patient patient)
Delete patient from database.
|
void |
deletePatientIdentifier(PatientIdentifier patientIdentifier) |
void |
deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
java.util.List<PatientIdentifierType> |
getAllPatientIdentifierTypes(boolean includeRetired) |
java.util.List<Patient> |
getAllPatients(boolean includeVoided) |
java.lang.Long |
getCountOfPatients(java.lang.String name,
java.lang.String identifier,
java.util.List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
boolean searchOnNamesOrIdentifiers) |
java.util.List<Patient> |
getDuplicatePatientsByAttributes(java.util.List<java.lang.String> attributes) |
Patient |
getPatient(java.lang.Integer patientId) |
Patient |
getPatientByUuid(java.lang.String uuid)
Auto generated method comment
|
PatientIdentifier |
getPatientIdentifier(java.lang.Integer patientIdentifierId) |
PatientIdentifier |
getPatientIdentifierByUuid(java.lang.String uuid) |
java.util.List<PatientIdentifier> |
getPatientIdentifiers(java.lang.String identifier,
java.util.List<PatientIdentifierType> patientIdentifierTypes,
java.util.List<Location> locations,
java.util.List<Patient> patients,
java.lang.Boolean isPreferred) |
PatientIdentifierType |
getPatientIdentifierType(java.lang.Integer patientIdentifierTypeId) |
PatientIdentifierType |
getPatientIdentifierTypeByUuid(java.lang.String uuid)
Auto generated method comment
|
java.util.List<PatientIdentifierType> |
getPatientIdentifierTypes(java.lang.String name,
java.lang.String format,
java.lang.Boolean required,
java.lang.Boolean hasCheckDigit) |
java.util.List<Patient> |
getPatients(java.lang.String name,
java.lang.String identifier,
java.util.List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly,
java.lang.Integer start,
java.lang.Integer length,
boolean searchOnNamesOrIdentifiers) |
boolean |
isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier) |
Patient |
savePatient(Patient patient) |
PatientIdentifier |
savePatientIdentifier(PatientIdentifier patientIdentifier) |
PatientIdentifierType |
savePatientIdentifierType(PatientIdentifierType patientIdentifierType) |
Patient savePatient(Patient patient) throws DAOException
DAOException
PatientService.savePatient(org.openmrs.Patient)
Patient getPatient(java.lang.Integer patientId) throws DAOException
DAOException
PatientService.getPatient(Integer)
void deletePatient(Patient patient) throws DAOException
patient
- patient to be deletedDAOException
PatientService.deletePatient(org.openmrs.Patient)
,
PatientService.voidPatient(Patient, String)
java.util.List<Patient> getAllPatients(boolean includeVoided) throws DAOException
DAOException
PatientService.getAllPatients(boolean)
java.util.List<Patient> getPatients(java.lang.String name, java.lang.String identifier, java.util.List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly, java.lang.Integer start, java.lang.Integer length, boolean searchOnNamesOrIdentifiers) throws DAOException
searchOnNamesOrIdentifiers
- specifies if the logic should find patients that match the
name or identifier otherwise find patients that match both the name and identifierDAOException
PatientService.getPatients(String, String, List, boolean, Integer,
Integer)
java.util.List<PatientIdentifier> getPatientIdentifiers(java.lang.String identifier, java.util.List<PatientIdentifierType> patientIdentifierTypes, java.util.List<Location> locations, java.util.List<Patient> patients, java.lang.Boolean isPreferred) throws DAOException
PatientIdentifierType savePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws DAOException
java.util.List<PatientIdentifierType> getAllPatientIdentifierTypes(boolean includeRetired) throws DAOException
DAOException
PatientService.getAllPatientIdentifierTypes(boolean)
java.util.List<PatientIdentifierType> getPatientIdentifierTypes(java.lang.String name, java.lang.String format, java.lang.Boolean required, java.lang.Boolean hasCheckDigit) throws DAOException
PatientIdentifierType getPatientIdentifierType(java.lang.Integer patientIdentifierTypeId) throws DAOException
DAOException
PatientService.getPatientIdentifierType(java.lang.Integer)
void deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws DAOException
java.util.List<Patient> getDuplicatePatientsByAttributes(java.util.List<java.lang.String> attributes) throws DAOException
DAOException
PatientService.getDuplicatePatientsByAttributes(java.util.List)
boolean isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
Patient getPatientByUuid(java.lang.String uuid)
uuid
- PatientIdentifier getPatientIdentifierByUuid(java.lang.String uuid)
PatientIdentifierType getPatientIdentifierTypeByUuid(java.lang.String uuid)
uuid
- PatientIdentifier getPatientIdentifier(java.lang.Integer patientIdentifierId) throws DAOException
DAOException
PatientService.getPatientIdentifier(java.lang.Integer)
PatientIdentifier savePatientIdentifier(PatientIdentifier patientIdentifier)
void deletePatientIdentifier(PatientIdentifier patientIdentifier) throws DAOException
java.lang.Long getCountOfPatients(java.lang.String name, java.lang.String identifier, java.util.List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly, boolean searchOnNamesOrIdentifiers)
searchOnNamesOrIdentifiers
- specifies if the logic should find patients that match the
name or identifier otherwise find patients that match both the name and identifierPatientService.getCountOfPatients(String)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.