@Transactional
 @Deprecated
public interface ReportService
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
applyReportXmlMacros(java.lang.String input)
Deprecated.  
Applies the report xml macros to the input, and returns it. 
 | 
void | 
createReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. 
 
use saveReportSchemaXml(reportSchemaXml) 
 | 
void | 
deleteReportSchema(ReportSchema reportSchema)
Deprecated.  
Deletes a  
ReportSchema from the database. | 
void | 
deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated.  
Delete the given ReportSchemaXml class from the db 
 | 
ReportData | 
evaluate(ReportSchema reportSchema,
        Cohort inputCohort,
        EvaluationContext context)
Deprecated.  
This method evaluates a ReportSchema object for the given EvaluationContext and input Cohort. 
 | 
java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> | 
getRenderers()
Deprecated.  
Gets the renderers map registered to this report service 
 | 
java.util.List<RenderingMode> | 
getRenderingModes(ReportSchema schema)
Deprecated.  
Returns a List of  
RenderingModes that the passed ReportSchema supports, in
 their preferred order | 
ReportRenderer | 
getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
Deprecated.  
Returns the registered  
ReportRenderer whose class matches the passed class | 
ReportRenderer | 
getReportRenderer(java.lang.String className)
Deprecated.  
Returns the registered  
ReportRenderer whose class matches the passed class name | 
java.util.Collection<ReportRenderer> | 
getReportRenderers()
Deprecated.  
Returns a Collection 
 | 
ReportSchema | 
getReportSchema(java.lang.Integer reportSchemaId)
Deprecated.  
Get the  
ReportSchema with the given id | 
ReportSchema | 
getReportSchema(ReportSchemaXml reportSchemaXml)
Deprecated.  
Returns a ReportSchema object from a ReportSchemaXml definition De-serialized the xml
 definition, applies macro definitions, and returns an expanded report schema object 
 | 
java.util.List<ReportSchema> | 
getReportSchemas()
Deprecated.  
Return a list of  
ReportSchemas | 
ReportSchemaXml | 
getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
Deprecated.  
Get the xmlified ReportSchema object that was saved previously 
 | 
java.util.List<ReportSchemaXml> | 
getReportSchemaXmls()
Deprecated.  
Get all saved ReportSchemaXml objects in the db 
 | 
java.util.Properties | 
getReportXmlMacros()
Deprecated.  
Gets the macros that will be used when deserializing ReportSchemaXML 
 | 
void | 
registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass,
                ReportRenderer renderer)
Deprecated.  
Registers the given renderer with the service 
 | 
void | 
registerRenderer(java.lang.String rendererClass)
Deprecated.  
Convenience method for  
registerRenderer(Class, ReportRenderer) | 
void | 
removeRenderer(java.lang.Class<? extends ReportRenderer> rendererClass)
Deprecated.  
Remove the renderer associated with  
rendererClass from the list of available
 renderers | 
void | 
saveReportSchema(ReportSchema reportSchema)
Deprecated.  
Save or update the given  
ReportSchema in the database. | 
void | 
saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated.  
Insert or update the given ReportSchemaXml object in the database. 
 | 
void | 
saveReportXmlMacros(java.util.Properties macros)
Deprecated.  
Saves the macros that will be used when deserializing ReportSchemaXML 
 | 
void | 
setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> renderers)
Deprecated.  
Add the given map to this service's renderers This map is set via spring, see the
 applicationContext-service.xml file 
 | 
void | 
updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
Deprecated. 
 
use saveReportSchemaXml(reportSchemaXml) 
 | 
@Authorized(value="Run Reports") ReportData evaluate(ReportSchema reportSchema, Cohort inputCohort, EvaluationContext context)
reportSchema - - The ReportSchema is the main report definition, and contains
            all indicator and required parameter definitionsinputCohort - - If not null, this will limit the Report evaluation to only those
            patients in this Cohort. If null, all patients are evaluated.context - - The EvaluationContext which contains the parameters, provides
            caching for the report evaluationReportData - Contains the evaluated report dataAPIException@Transactional(readOnly=true) java.util.List<ReportSchema> getReportSchemas() throws APIException
ReportSchemasReportSchemasAPIException@Transactional(readOnly=true) ReportSchema getReportSchema(java.lang.Integer reportSchemaId) throws APIException
ReportSchema with the given idreportSchemaId - The Integer ReportSchema idReportSchema objectAPIExceptionReportSchema getReportSchema(ReportSchemaXml reportSchemaXml) throws APIException
reportSchemaXml - - the ReportSchemaXml to use to return a ReportSchema instancejava.lang.Exception - if conversion failsAPIExceptionvoid saveReportSchema(ReportSchema reportSchema) throws APIException
ReportSchema in the database. If this is a new
 ReportSchema, the returned ReportSchema will have a new
 ReportSchema.getReportSchemaId() inserted into it that was generated by the databasereportSchema - The ReportSchema to save or updateAPIExceptionvoid deleteReportSchema(ReportSchema reportSchema)
ReportSchema from the database.reportSchema - The ReportSchema to remove from the systemAPIException@Transactional(readOnly=true) java.util.Collection<ReportRenderer> getReportRenderers()
@Transactional(readOnly=true) java.util.List<RenderingMode> getRenderingModes(ReportSchema schema)
RenderingModes that the passed ReportSchema supports, in
 their preferred order@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.Class<? extends ReportRenderer> clazz)
ReportRenderer whose class matches the passed classclazz - The ReportRenderer implementation class to retrieveReportRenderer that has been registered that matches the passed class@Transactional(readOnly=true) ReportRenderer getReportRenderer(java.lang.String className)
ReportRenderer whose class matches the passed class nameclassName - The String name of the ReportRenderer implementation class to retrieveReportRenderer that has been registered that matches the passed class
         namevoid setRenderers(java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> renderers) throws APIException
renderers - Map of class to renderer objectAPIException@Transactional(readOnly=true) java.util.Map<java.lang.Class<? extends ReportRenderer>,ReportRenderer> getRenderers() throws APIException
org.openmrs.reportsAPIExceptionvoid registerRenderer(java.lang.Class<? extends ReportRenderer> rendererClass, ReportRenderer renderer) throws APIException
rendererClass - renderer - APIExceptionvoid registerRenderer(java.lang.String rendererClass)
               throws APIException
registerRenderer(Class, ReportRenderer)rendererClass - APIExceptionvoid removeRenderer(java.lang.Class<? extends ReportRenderer> rendererClass) throws APIException
rendererClass from the list of available
 renderersrendererClass - APIException@Transactional(readOnly=true) ReportSchemaXml getReportSchemaXml(java.lang.Integer reportSchemaXmlId)
void saveReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid createReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid updateReportSchemaXml(ReportSchemaXml reportSchemaXml)
reportSchemaXml - xml to savevoid deleteReportSchemaXml(ReportSchemaXml reportSchemaXml)
@Transactional(readOnly=true) java.util.List<ReportSchemaXml> getReportSchemaXmls()
@Transactional(readOnly=true) java.util.Properties getReportXmlMacros()
void saveReportXmlMacros(java.util.Properties macros)
macros - the macros to setjava.lang.String applyReportXmlMacros(java.lang.String input)
input - The text (presumably a report schema xml definition) that you want to apply
            macros toCopyright © 2018 OpenMRS Inc.. All Rights Reserved.