@Transactional @Deprecated public interface ReportService
Modifier and Type | Method and Description |
---|---|
String |
applyReportXmlMacros(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.
|
Map<Class<? extends ReportRenderer>,ReportRenderer> |
getRenderers()
Deprecated.
Gets the renderers map registered to this report service
|
List<RenderingMode> |
getRenderingModes(ReportSchema schema)
Deprecated.
Returns a List of
RenderingMode s that the passed ReportSchema supports, in
their preferred order |
ReportRenderer |
getReportRenderer(Class<? extends ReportRenderer> clazz)
Deprecated.
Returns the registered
ReportRenderer whose class matches the passed class |
ReportRenderer |
getReportRenderer(String className)
Deprecated.
Returns the registered
ReportRenderer whose class matches the passed class name |
Collection<ReportRenderer> |
getReportRenderers()
Deprecated.
Returns a Collection
|
ReportSchema |
getReportSchema(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
|
List<ReportSchema> |
getReportSchemas()
Deprecated.
Return a list of
ReportSchema s |
ReportSchemaXml |
getReportSchemaXml(Integer reportSchemaXmlId)
Deprecated.
Get the xmlified ReportSchema object that was saved previously
|
List<ReportSchemaXml> |
getReportSchemaXmls()
Deprecated.
Get all saved ReportSchemaXml objects in the db
|
Properties |
getReportXmlMacros()
Deprecated.
Gets the macros that will be used when deserializing ReportSchemaXML
|
void |
registerRenderer(Class<? extends ReportRenderer> rendererClass,
ReportRenderer renderer)
Deprecated.
Registers the given renderer with the service
|
void |
registerRenderer(String rendererClass)
Deprecated.
Convenience method for
registerRenderer(Class, ReportRenderer) |
void |
removeRenderer(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(Properties macros)
Deprecated.
Saves the macros that will be used when deserializing ReportSchemaXML
|
void |
setRenderers(Map<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) List<ReportSchema> getReportSchemas() throws APIException
ReportSchema
sReportSchema
sAPIException
@Transactional(readOnly=true) ReportSchema getReportSchema(Integer reportSchemaId) throws APIException
ReportSchema
with the given idreportSchemaId
- The Integer ReportSchema idReportSchema
objectAPIException
ReportSchema getReportSchema(ReportSchemaXml reportSchemaXml) throws APIException
reportSchemaXml
- - the ReportSchemaXml to use to return a ReportSchema instanceException
- if conversion failsAPIException
void 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 updateAPIException
void deleteReportSchema(ReportSchema reportSchema)
ReportSchema
from the database.reportSchema
- The ReportSchema
to remove from the systemAPIException
@Transactional(readOnly=true) Collection<ReportRenderer> getReportRenderers()
@Transactional(readOnly=true) List<RenderingMode> getRenderingModes(ReportSchema schema)
RenderingMode
s that the passed ReportSchema
supports, in
their preferred order@Transactional(readOnly=true) ReportRenderer getReportRenderer(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(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(Map<Class<? extends ReportRenderer>,ReportRenderer> renderers) throws APIException
renderers
- Map of class to renderer objectAPIException
@Transactional(readOnly=true) Map<Class<? extends ReportRenderer>,ReportRenderer> getRenderers() throws APIException
org.openmrs.report
sAPIException
void registerRenderer(Class<? extends ReportRenderer> rendererClass, ReportRenderer renderer) throws APIException
rendererClass
- renderer
- APIException
void registerRenderer(String rendererClass) throws APIException
registerRenderer(Class, ReportRenderer)
rendererClass
- APIException
void removeRenderer(Class<? extends ReportRenderer> rendererClass) throws APIException
rendererClass
from the list of available
renderersrendererClass
- APIException
@Transactional(readOnly=true) ReportSchemaXml getReportSchemaXml(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) List<ReportSchemaXml> getReportSchemaXmls()
@Transactional(readOnly=true) Properties getReportXmlMacros()
void saveReportXmlMacros(Properties macros)
macros
- the macros to setString applyReportXmlMacros(String input)
input
- The text (presumably a report schema xml definition) that you want to apply
macros toCopyright © 2018 OpenMRS LLC.. All Rights Reserved.