public interface PatientDAO
Context
,
PatientService
Patient savePatient(Patient patient) throws DAOException
DAOException
PatientService.savePatient(org.openmrs.Patient)
Patient getPatient(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)
List<Patient> getAllPatients(boolean includeVoided) throws DAOException
DAOException
PatientService.getAllPatients(boolean)
List<Patient> getPatients(String name, String identifier, List<PatientIdentifierType> identifierTypes, boolean matchIdentifierExactly, Integer start, 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)
List<PatientIdentifier> getPatientIdentifiers(String identifier, List<PatientIdentifierType> patientIdentifierTypes, List<Location> locations, List<Patient> patients, Boolean isPreferred) throws DAOException
PatientIdentifierType savePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws DAOException
List<PatientIdentifierType> getAllPatientIdentifierTypes(boolean includeRetired) throws DAOException
DAOException
PatientService.getAllPatientIdentifierTypes(boolean)
List<PatientIdentifierType> getPatientIdentifierTypes(String name, String format, Boolean required, Boolean hasCheckDigit) throws DAOException
PatientIdentifierType getPatientIdentifierType(Integer patientIdentifierTypeId) throws DAOException
DAOException
PatientService.getPatientIdentifierType(java.lang.Integer)
void deletePatientIdentifierType(PatientIdentifierType patientIdentifierType) throws DAOException
List<Patient> getDuplicatePatientsByAttributes(List<String> attributes) throws DAOException
DAOException
PatientService.getDuplicatePatientsByAttributes(java.util.List)
boolean isIdentifierInUseByAnotherPatient(PatientIdentifier patientIdentifier)
Patient getPatientByUuid(String uuid)
uuid
- PatientIdentifier getPatientIdentifierByUuid(String uuid)
PatientIdentifierType getPatientIdentifierTypeByUuid(String uuid)
uuid
- PatientIdentifier getPatientIdentifier(Integer patientIdentifierId) throws DAOException
DAOException
PatientService.getPatientIdentifier(java.lang.Integer)
PatientIdentifier savePatientIdentifier(PatientIdentifier patientIdentifier)
void deletePatientIdentifier(PatientIdentifier patientIdentifier) throws DAOException
Integer getCountOfPatients(String name, String identifier, 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 LLC.. All Rights Reserved.