use of org.openmrs.module.reporting.data.converter.ListConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getLastDataSetItemConverter.
public DataConverter getLastDataSetItemConverter(String columnName, Object nullReplacement) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(TimeQualifier.LAST, 1, DataSetRow.class));
ret.addConverter(new DataSetRowConverter(columnName));
if (nullReplacement != null) {
ret.addConverter(new NullValueConverter(nullReplacement));
}
return ret;
}
use of org.openmrs.module.reporting.data.converter.ListConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getDataSetItemConverter.
public DataConverter getDataSetItemConverter(Integer index, String columnName, Object nullReplacement) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(index, DataSetRow.class));
ret.addConverter(new DataSetRowConverter(columnName));
if (nullReplacement != null) {
ret.addConverter(new NullValueConverter(nullReplacement));
}
return ret;
}
use of org.openmrs.module.reporting.data.converter.ListConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getListItemConverter.
public DataConverter getListItemConverter(Integer index, DataConverter... converters) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(index, Object.class));
for (DataConverter converter : converters) {
ret.addConverter(converter);
}
return ret;
}
use of org.openmrs.module.reporting.data.converter.ListConverter in project openmrs-module-pihcore by PIH.
the class DataConverterLibrary method getLastListItemConverter.
public DataConverter getLastListItemConverter(DataConverter... converters) {
ChainedConverter ret = new ChainedConverter();
ret.addConverter(new ListConverter(TimeQualifier.LAST, 1, Object.class));
for (DataConverter converter : converters) {
ret.addConverter(converter);
}
return ret;
}
Aggregations