Skip to main content

Reports

This page documents the SureDrive Reports subsystem — the report wizard, report types, user templates, subscriptions, and report generation pipeline. It covers the Angular routes and controllers, the backend ReportType enum, and operation constants.


Overview​

The Reports area is accessed via SureDrive → Reports. It provides a wizard-based interface for selecting, configuring, and generating reports against study data. Reports cover: document compliance, audit trails, user roles, signing events, workflow status, team contacts, and quality metrics. Generated reports can be scheduled for subscription delivery.

Key owning modules:

  • UI: suredms-web-client — network/study/reports/
  • Backend report definitions: suredms-report — ReportType, ReportConstants, ReportField
  • Web service: suredms-web-service — report generation endpoints

Angular Routes​

Files:

StatePurpose
app.network.study.browse.report-wizardReport wizard for selecting and generating SureDrive reports
app.network.workflow.workflow-reportWorkflow-specific report view

Controllers and Services​

StudyReportWizardController​

File: SC/suredms-web-client/src/main/webapp/app/js/network/study/reports/study-report-wizard.js

The primary controller for report selection and generation. It organises available reports into four categories:

CategoryExamples
AdministrationUser roles, application roles, user access by archive
NetworkNetwork contacts, organisation reports
ContentSigning audit trail, document compliance, quality compliance
ManagementWorkflow reports, required document – missing documents

StudyReportService​

Shared service providing common report configuration helpers: available columns, output format selection (CSV, Excel, PDF where applicable), and report action bindings used across all report views.

Report Wizard Template​

File: SC/suredms-web-client/src/main/webapp/app/views/network/study/reports/study-report-wizard.html

The wizard template renders the report category list and report parameter form. Users browse categories, select a report type, configure parameters (date range, user filter, document filter, etc.), and click Generate.


Backend Report Definitions​

ReportType Enum​

File: SC/suredms-report/src/main/java/com/sureclinical/suredms/report/context/ReportType.java

Defines all available report types across SureClinical. SureDrive-relevant report types include:

Enum ValueDisplay NameDescription
USER_ROLEUser RolesLists all users and their assigned user roles
APPLICATION_ROLEApplication RolesLists application roles and their feature assignments
USER_ACCESS_BY_ARCHIVEUser Access by ArchivePer-archive user access permissions report
SIGNING_AUDIT_TRAILSigning Audit TraileSign events: applied, rejected, workflow-initiated
QUALITY_COMPLIANCEQuality ComplianceDocument compliance status against required content types
CONTACTS_BY_ARCHIVEPersons By ArchiveTeam members (persons) assigned to each archive
WORKFLOWS_PLATFORMWorkflow ReportActive and completed workflow processes
MISSING_DOCUMENTSMissing DocumentsRequired documents not yet uploaded for milestones

ReportConstants​

File: SC/suredms-report/src/main/java/com/sureclinical/suredms/report/ReportConstants.java

Contains string constants used in report output:

ConstantValueUsage
USER_ROLESuser.rolesColumn header for user roles in report output

ReportField​

Contains field descriptor constants including FIELD_USER_ROLES, used to define which data columns appear in user and role reports.


Backend Operation Constants​

File: SC/suredms-web-client/src/main/webapp/app/js/common/constants/constants-operations.js

ConstantOperation StringPurpose
OPERATION_MOBILE_GET_REPORTSMobile.GetReportsFetches available report list for the current study
OPERATION_MOBILE_GET_REPORT_TEMPLATESMobile.GetReportTemplatesFetches user-saved report templates
OP_MOBILE_GET_USER_ROLES_REPORTMobile.GetUserRolesReportRetrieves the user roles report
OP_MOBILE_GENERATE_USER_ROLES_REPORTMobile.GenerateUserRolesReportGenerates and downloads the user roles report
OP_MOBILE_GET_APPLICATION_ROLES_REPORTMobile.GetApplicationRolesReportRetrieves the application roles report
OP_MOBILE_GENERATE_APPLICATION_ROLES_REPORTMobile.GenerateApplicationRolesReportGenerates and downloads the application roles report

Report Wizard Flow​

  1. User navigates to SureDrive → Reports → app.network.study.browse.report-wizard.
  2. StudyReportWizardController loads available report types via OPERATION_MOBILE_GET_REPORTS.
  3. User selects a report category and report type.
  4. Wizard renders report-specific parameter fields (date range, user filter, document type, etc.).
  5. User clicks Generate — the controller submits a generation request to the corresponding operation endpoint.
  6. The web service processes the request and returns a file download (CSV or Excel) or queues it for async delivery.

Subscriptions​

Help file: Help/contents/Content_Repo/Subscribing_to_Reports_in_SureDrive.htm

Reports can be scheduled for recurring delivery. A subscription configures:

  • Report type and parameters
  • Delivery frequency (daily, weekly, monthly)
  • Recipients (email addresses)

Subscriptions deliver the report automatically on the configured schedule without user interaction.


User Templates​

Help file: Help/contents/Content_Repo/Creating_Reports_using_the_Report_Wizard_or_User_Templates.htm

Users can save a configured report (type + parameters) as a named template for reuse. Templates are retrieved via OPERATION_MOBILE_GET_REPORT_TEMPLATES and appear in the report wizard as pre-configured shortcuts.


Report Generation from Other Views​

Reports can be initiated from outside the Reports area:

Originating ViewReport TypeTrigger
Audit TrailSigning Audit TrailGenerate Report button in the Audit Trail view
Quality QueueQuality ComplianceQuality Queue → Generate Report
Workflow DashboardWorkflows PlatformWorkflow Dashboard → Generate Report

Help Reference​

TopicFile
Working with ReportsHelp/contents/Content_Repo/Working-with-Reports-in-SureDrive_666730586.html
Creating Reports (Wizard / Templates)Help/contents/Content_Repo/Creating_Reports_using_the_Report_Wizard_or_User_Templates.htm
Subscribing to ReportsHelp/contents/Content_Repo/Subscribing_to_Reports_in_SureDrive.htm
Viewing ReportsHelp/contents/Content_Repo/Viewing_Reports_in_SureDrive.htm
Managing ReportsHelp/contents/Content_Repo/Managing_Reports_in_SureDrive.htm

Key Source Files Reference​

FilePurpose
SC/suredms-web-client/src/main/webapp/app/js/network/study/reports/study-report-wizard.jsStudyReportWizardController — report category list and generation flow
SC/suredms-web-client/src/main/webapp/app/views/network/study/reports/study-report-wizard.htmlReport wizard template
SC/suredms-web-client/src/main/webapp/app/js/common/constants/constants-operations.jsReport operation string constants
SC/suredms-report/src/main/java/com/sureclinical/suredms/report/context/ReportType.javaAll report type definitions