Search in sources :

Example 1 with CollectionElementConverter

use of org.openmrs.module.reporting.data.converter.CollectionElementConverter in project openmrs-module-pihcore by PIH.

the class DataConverterLibrary method getObsValueCodedPresentConverter.

public DataConverter getObsValueCodedPresentConverter(Concept valueCoded) {
    ChainedConverter converter = new ChainedConverter();
    converter.addConverter(new CollectionConverter(getObsValueCodedConverter(), false, null));
    converter.addConverter(new CollectionElementConverter(valueCoded, true, false));
    return converter;
}
Also used : ChainedConverter(org.openmrs.module.reporting.data.converter.ChainedConverter) CollectionElementConverter(org.openmrs.module.reporting.data.converter.CollectionElementConverter) CollectionConverter(org.openmrs.module.reporting.data.converter.CollectionConverter)

Aggregations

ChainedConverter (org.openmrs.module.reporting.data.converter.ChainedConverter)1 CollectionConverter (org.openmrs.module.reporting.data.converter.CollectionConverter)1 CollectionElementConverter (org.openmrs.module.reporting.data.converter.CollectionElementConverter)1