jaghatise
(Joseph Aghatise)
September 3, 2015, 3:08pm
1
We are trying to export data using the reporting module into specified xml schema. Can anyone give a pointer?
mseaton
(Mike Seaton)
September 3, 2015, 3:33pm
2
This would be straightforward by implementing a custom Report Renderer. Here is a generic version of an xml renderer that is bundled with the reporting module:
/**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/
package org.openmrs.module.reporting.report.renderer;
import org.openmrs.Cohort;
import org.openmrs.annotation.Handler;
import org.openmrs.module.reporting.common.Localized;
import org.openmrs.module.reporting.dataset.DataSet;
import org.openmrs.module.reporting.dataset.DataSetColumn;
import org.openmrs.module.reporting.dataset.DataSetRow;
import org.openmrs.module.reporting.report.ReportData;
import org.openmrs.module.reporting.report.ReportRequest;
This file has been truncated. show original
Simply create your own renderer that outputs your report data to your specified xml schema.