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