public interface PatientSetDAO
String exportXml(Cohort ps) throws DAOException
DAOExceptionString exportXml(Integer patientId) throws DAOException
DAOExceptionCohort getAllPatients()
Cohort getPatientsByCharacteristics(String gender, Date minBirthdate, Date maxBirthdate, Integer minAge, Integer maxAge, Boolean aliveOnly, Boolean deadOnly) throws DAOException
DAOExceptionCohort getPatientsByCharacteristics(String gender, Date minBirthdate, Date maxBirthdate, Integer minAge, Integer maxAge, Boolean aliveOnly, Boolean deadOnly, Date effectiveDate) throws DAOException
DAOExceptionCohort getPatientsHavingDateObs(Integer conceptId, Date startTime, Date endTime)
Cohort getPatientsHavingNumericObs(Integer conceptId, PatientSetService.TimeModifier timeModifier, PatientSetService.Modifier modifier, Number value, Date fromDate, Date toDate) throws DAOException
DAOExceptionCohort getPatientsHavingObs(Integer conceptId, PatientSetService.TimeModifier timeModifier, PatientSetService.Modifier modifier, Object value, Date fromDate, Date toDate) throws DAOException
DAOExceptionCohort getPatientsHavingEncounters(List<EncounterType> encounterTypeList, Location location, Form form, Date fromDate, Date toDate, Integer minCount, Integer maxCount) throws DAOException
DAOExceptionCohort getPatientsByProgramAndState(Program program, List<ProgramWorkflowState> stateList, Date fromDate, Date toDate) throws DAOException
DAOExceptionCohort getPatientsInProgram(Integer programId, Date fromDate, Date toDate) throws DAOException
DAOExceptionCohort getPatientsHavingTextObs(Integer conceptId, String value, PatientSetService.TimeModifier timeModifier) throws DAOException
DAOExceptionCohort getPatientsHavingLocation(Integer locationId, PatientSetService.PatientLocationMethod method) throws DAOException
DAOExceptionMap<Integer,String> getShortPatientDescriptions(Collection<Integer> patientIds) throws DAOException
DAOExceptionMap<Integer,List<Obs>> getObservations(Cohort patients, Concept concept, Date fromDate, Date toDate) throws DAOException
DAOExceptionMap<Integer,List<List<Object>>> getObservationsValues(Cohort patients, Concept c, List<String> attributes, Integer limit, boolean showMostRecentFirst)
Map<Integer,Encounter> getEncountersByType(Cohort patients, List<EncounterType> encType)
Map<Integer,Object> getEncounterAttrsByType(Cohort patients, List<EncounterType> encTypes, String attr, Boolean earliestFirst)
Map<Integer,Encounter> getFirstEncountersByType(Cohort patients, List<EncounterType> encType)
Map<Integer,Object> getPatientAttributes(Cohort patients, String className, String property, boolean returnAll)
Map<Integer,String> getPatientIdentifierByType(Cohort patients, List<PatientIdentifierType> types)
Map<Integer,Map<String,Object>> getCharacteristics(Cohort patients) throws DAOException
DAOExceptionCohort convertPatientIdentifier(List<String> identifiers) throws DAOException
DAOExceptionList<Patient> getPatients(Collection<Integer> patientIds) throws DAOException
DAOExceptionMap<Integer,Collection<Integer>> getActiveDrugIds(Collection<Integer> patientIds, Date fromDate, Date toDate) throws DAOException
DAOExceptionMap<Integer,PatientState> getCurrentStates(Cohort ps, ProgramWorkflow wf) throws DAOException
DAOExceptionMap<Integer,PatientProgram> getPatientPrograms(Cohort ps, Program program, boolean includeVoided, boolean includePast) throws DAOException
DAOExceptionMap<Integer,List<DrugOrder>> getCurrentDrugOrders(Cohort ps, List<Concept> drugConcepts) throws DAOException
DAOExceptionMap<Integer,List<DrugOrder>> getDrugOrders(Cohort ps, List<Concept> drugConcepts) throws DAOException
DAOExceptionMap<Integer,List<Relationship>> getRelationships(Cohort ps, RelationshipType relType) throws DAOException
DAOExceptionMap<Integer,List<Person>> getRelatives(Cohort ps, RelationshipType relType, boolean forwards) throws DAOException
DAOExceptionMap<Integer,Object> getPersonAttributes(Cohort patients, String attributeName, String joinClass, String joinProperty, String outputColumn, boolean returnAll)
Cohort getPatientsHavingPersonAttribute(PersonAttributeType attribute, String value)
Cohort getPatientsHavingDrugOrder(List<Drug> drugList, List<Concept> drugConceptList, Date startDateFrom, Date startDateTo, Date stopDateFrom, Date stopDateTo, Boolean discontinued, List<Concept> discontinuedReason)
Cohort getPatientsByRelationship(RelationshipType relType, boolean includeAtoB, boolean includeBtoA, Person target)
relType - includeAtoB - includeBtoA - target - Integer getCountOfPatients()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.