Search in sources :

Example 6 with ChainedConverter

use of org.openmrs.module.reporting.data.converter.ChainedConverter 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 7 with ChainedConverter

use of org.openmrs.module.reporting.data.converter.ChainedConverter 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)7 ListConverter (org.openmrs.module.reporting.data.converter.ListConverter)4 CollectionConverter (org.openmrs.module.reporting.data.converter.CollectionConverter)2 DataConverter (org.openmrs.module.reporting.data.converter.DataConverter)2 DataSetRowConverter (org.openmrs.module.reporting.data.converter.DataSetRowConverter)2 NullValueConverter (org.openmrs.module.reporting.data.converter.NullValueConverter)2 DataSetRow (org.openmrs.module.reporting.dataset.DataSetRow)2 Person (org.openmrs.Person)1 Provider (org.openmrs.Provider)1 CollectionElementConverter (org.openmrs.module.reporting.data.converter.CollectionElementConverter)1 ConceptCodeFromConceptConverter (org.openmrs.module.reporting.data.converter.ConceptCodeFromConceptConverter)1 ObjectFormatter (org.openmrs.module.reporting.data.converter.ObjectFormatter)1 PropertyConverter (org.openmrs.module.reporting.data.converter.PropertyConverter)1 ConvertedEncounterDataDefinition (org.openmrs.module.reporting.data.encounter.definition.ConvertedEncounterDataDefinition)1 EncounterProviderDataDefinition (org.openmrs.module.reporting.data.encounter.definition.EncounterProviderDataDefinition)1 DocumentedDefinition (org.openmrs.module.reporting.definition.library.DocumentedDefinition)1