Search in sources :

Example 1 with DataConverter

use of org.openmrs.module.reporting.data.converter.DataConverter 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;
}
Also used : ChainedConverter(org.openmrs.module.reporting.data.converter.ChainedConverter) ListConverter(org.openmrs.module.reporting.data.converter.ListConverter) DataConverter(org.openmrs.module.reporting.data.converter.DataConverter)

Example 2 with DataConverter

use of org.openmrs.module.reporting.data.converter.DataConverter 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;
}
Also used : ChainedConverter(org.openmrs.module.reporting.data.converter.ChainedConverter) ListConverter(org.openmrs.module.reporting.data.converter.ListConverter) DataConverter(org.openmrs.module.reporting.data.converter.DataConverter)

Aggregations

ChainedConverter (org.openmrs.module.reporting.data.converter.ChainedConverter)2 DataConverter (org.openmrs.module.reporting.data.converter.DataConverter)2 ListConverter (org.openmrs.module.reporting.data.converter.ListConverter)2