public interface PatientSetDAO
String exportXml(Cohort ps) throws DAOException
DAOException
String exportXml(Integer patientId) throws DAOException
DAOException
Cohort getAllPatients()
Cohort getPatientsByCharacteristics(String gender, Date minBirthdate, Date maxBirthdate, Integer minAge, Integer maxAge, Boolean aliveOnly, Boolean deadOnly) throws DAOException
DAOException
Cohort getPatientsByCharacteristics(String gender, Date minBirthdate, Date maxBirthdate, Integer minAge, Integer maxAge, Boolean aliveOnly, Boolean deadOnly, Date effectiveDate) throws DAOException
DAOException
Cohort 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
DAOException
Cohort getPatientsHavingObs(Integer conceptId, PatientSetService.TimeModifier timeModifier, PatientSetService.Modifier modifier, Object value, Date fromDate, Date toDate) throws DAOException
DAOException
Cohort getPatientsHavingEncounters(List<EncounterType> encounterTypeList, Location location, Form form, Date fromDate, Date toDate, Integer minCount, Integer maxCount) throws DAOException
DAOException
Cohort getPatientsByProgramAndState(Program program, List<ProgramWorkflowState> stateList, Date fromDate, Date toDate) throws DAOException
DAOException
Cohort getPatientsInProgram(Integer programId, Date fromDate, Date toDate) throws DAOException
DAOException
Cohort getPatientsHavingTextObs(Integer conceptId, String value, PatientSetService.TimeModifier timeModifier) throws DAOException
DAOException
Cohort getPatientsHavingLocation(Integer locationId, PatientSetService.PatientLocationMethod method) throws DAOException
DAOException
Map<Integer,String> getShortPatientDescriptions(Collection<Integer> patientIds) throws DAOException
DAOException
Map<Integer,List<Obs>> getObservations(Cohort patients, Concept concept, Date fromDate, Date toDate) throws DAOException
DAOException
Map<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
DAOException
Cohort convertPatientIdentifier(List<String> identifiers) throws DAOException
DAOException
List<Patient> getPatients(Collection<Integer> patientIds) throws DAOException
DAOException
Map<Integer,Collection<Integer>> getActiveDrugIds(Collection<Integer> patientIds, Date fromDate, Date toDate) throws DAOException
DAOException
Map<Integer,PatientState> getCurrentStates(Cohort ps, ProgramWorkflow wf) throws DAOException
DAOException
Map<Integer,PatientProgram> getPatientPrograms(Cohort ps, Program program, boolean includeVoided, boolean includePast) throws DAOException
DAOException
Map<Integer,List<DrugOrder>> getCurrentDrugOrders(Cohort ps, List<Concept> drugConcepts) throws DAOException
DAOException
Map<Integer,List<DrugOrder>> getDrugOrders(Cohort ps, List<Concept> drugConcepts) throws DAOException
DAOException
Map<Integer,List<Relationship>> getRelationships(Cohort ps, RelationshipType relType) throws DAOException
DAOException
Map<Integer,List<Person>> getRelatives(Cohort ps, RelationshipType relType, boolean forwards) throws DAOException
DAOException
Map<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.