Search in sources :

Example 1 with BooleanConverter

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

the class BaseEncounterDataSetManager method addCoreEncounterColumns.

/**
 * Add columns that describe the common elements of encounters
 */
protected void addCoreEncounterColumns(EncounterDataSetDefinition dsd) {
    addColumn(dsd, getEncounterColumnPrefix() + "_date", builtInEncounterData.getEncounterDatetime());
    addColumn(dsd, getEncounterColumnPrefix() + "_location", builtInEncounterData.getLocationName());
    addColumn(dsd, getEncounterColumnPrefix() + "_provider", pihEncounterData.getEncounterProvider());
    addColumn(dsd, getEncounterColumnPrefix() + "_retrospective", new RetrospectiveEncounterDataDefinition(), new BooleanConverter());
}
Also used : RetrospectiveEncounterDataDefinition(org.openmrs.module.pihcore.reporting.encounter.definition.RetrospectiveEncounterDataDefinition) BooleanConverter(org.openmrs.module.reporting.data.converter.BooleanConverter)

Aggregations

RetrospectiveEncounterDataDefinition (org.openmrs.module.pihcore.reporting.encounter.definition.RetrospectiveEncounterDataDefinition)1 BooleanConverter (org.openmrs.module.reporting.data.converter.BooleanConverter)1