296
297
* @return the number of DataValues.
298
299
int getDataValueCount( int days );
301
* Returns a map of values indexed by DataElementOperand.
303
* @param dataElements collection of DataElements to fetch for
304
* @param period period for which to fetch the values
305
* @param unit OrganisationUnit for which to fetch the values
308
Map<DataElementOperand, Double> getDataValueMap( Collection<DataElement> dataElements, Period period, OrganisationUnit source );
311
* Returns a map of values indexed by DataElementOperand.
302
* Returns a map of values for each attribute option combo found.
313
304
* In the (unlikely) event that the same dataElement/optionCombo is found in
314
* more than one period for the same organisationUnit and date, the value
315
* is returned from the period with the shortest duration.
305
* more than one period for the same organisationUnit, date, and attribute
306
* combo, the value is returned from the period with the shortest duration.
317
308
* @param dataElements collection of DataElements to fetch for
318
309
* @param date date which must be present in the period
319
* @param unit OrganisationUnit for which to fetch the values
310
* @param source OrganisationUnit for which to fetch the values
320
311
* @param periodTypes allowable period types in which to find the data
312
* @param attributeCombo the attribute combo to check (if restricted)
321
313
* @param lastUpdatedMap map in which to return the lastUpdated date for each value
314
* @return map of values by attribute option combo id, then DataElementOperand
324
Map<DataElementOperand, Double> getDataValueMap( Collection<DataElement> dataElements, Date date, OrganisationUnit source,
325
Collection<PeriodType> periodTypes, Map<DataElementOperand, Date> lastUpdatedMap );
316
MapMap<Integer, DataElementOperand, Double> getDataValueMapByAttributeCombo( Collection<DataElement> dataElements, Date date,
317
OrganisationUnit source, Collection<PeriodType> periodTypes, DataElementCategoryOptionCombo attributeCombo,
318
MapMap<Integer, DataElementOperand, Date> lastUpdatedMap );
328
321
* Gets a Collection of DeflatedDataValues.