Learn how to create, run, and export reports in Encore Health OS.Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Encore Health OS reporting engine provides:- Query Builder - Visual interface for creating reports (no SQL required)
- SQL Editor - Advanced users can write custom SQL
- Parameters - Dynamic reports with user inputs
- Multiple Formats - Export to CSV, Excel, PDF
- Caching - Fast performance for frequently-run reports
- Scheduling - Automated report delivery (coming soon)
Viewing Reports
Report Library
Access all available reports:- Click Reports in main menu
- View reports organized by:
- My Reports - Created by you
- Shared with Me - Shared by others
- Organization Reports - Available to all
- Categories - Financial, HR, Clinical, etc.
Running a Report
- Click report name to open
- If parameters required, fill them in:
- Date ranges
- Site selection
- Department filter
- etc.
- Click Run Report
- View results in table format
Report Results
View Options:- Table - Standard row/column view
- Chart - Visual representation (if configured)
- Summary - Key metrics at top
- Export - Download in various formats
- Print - Print-friendly view
- Share - Send to colleagues
- Save - Bookmark for quick access
Creating Reports (Basic)
Using the Query Builder
No SQL knowledge required!- Click New Report → Query Builder
- Step 1: Choose Data Source
- Select table (e.g., “Employees”, “Transactions”)
- Step 2: Select Columns
- Check columns to include
- Drag to reorder
- Step 3: Add Filters
- Click + Add Filter
- Choose column, operator, value
- Example:
Status = Active
- Step 4: Sort Results
- Choose sort column and direction
- Step 5: Preview
- Click Preview to see results
- Step 6: Save
- Enter report name and description
- Choose category
- Set permissions
- Save Report
Example: Active Employees Report
Goal: List all active employees with their department and hire date. Steps:- Data Source:
Employees - Columns:
- Full Name
- Department
- Hire Date
- Filters:
- Status = Active
- Sort:
- Department (A-Z)
- Then by Last Name (A-Z)
- Save as “Active Employees by Department”
Creating Reports (Advanced)
Using SQL Editor
For advanced users familiar with SQL.- Click New Report → SQL Editor
- Write SQL query:
- Click Run to test
- Save when satisfied
Report Parameters
What Are Parameters?
Parameters allow users to customize reports at runtime:- Date Range - “Show transactions between [Start Date] and [End Date]”
- Site Selection - “Show data for [Site]”
- Status Filter - “Show residents with status [Active/Discharged/All]“
Adding Parameters
- In Query Builder or SQL Editor, click Add Parameter
- Configure:
- Name - Internal reference (e.g.,
start_date) - Label - User-facing label (“Start Date”)
- Type - Date, text, number, dropdown, etc.
- Required - Must user fill this in?
- Default Value - Pre-filled value
- Name - Internal reference (e.g.,
Using Parameters in SQL
{{start_date}}replaced with user’s input- Type-safe (dates remain dates, no SQL injection)
Parameter Types
| Type | Example Use Case |
|---|---|
| Date | ”Report start date” |
| Date Range | ”Reporting period” |
| Text | ”Employee name search” |
| Number | ”Minimum amount threshold” |
| Dropdown | ”Select site” (from list) |
| Multi-Select | ”Choose departments” (multiple) |
| Boolean | ”Include inactive?” (Yes/No) |
Exporting Reports
Export Formats
Click Export and choose format:| Format | Best For | Features |
|---|---|---|
| CSV | Excel import, data analysis | Plain text, all data |
| Excel (.xlsx) | Formatted spreadsheets | Formatting, formulas, charts |
| Printing, emailing | Fixed layout, headers/footers | |
| JSON | API integration | Machine-readable |
Export Options
Configure export:- Include Headers - Column names in first row
- Date Format - MM/DD/YYYY or YYYY-MM-DD
- Decimal Places - 2 (default) or custom
- Page Orientation - Portrait/Landscape (PDF only)
- Logo - Include org logo (PDF only)
Scheduled Exports (Coming Soon)
Automate report delivery:- Create/open report
- Click Schedule
- Configure:
- Frequency - Daily, weekly, monthly
- Recipients - Email addresses
- Format - CSV, Excel, PDF
- Parameters - Use defaults or prompt user
- Save Schedule
Report Caching
How Caching Works
Frequently-run reports cache results for faster loading:- Cache Duration - Results stored for X minutes
- Automatic Refresh - Cache clears when data changes
- Per-User - Your results don’t affect others
Cache Indicators
- 🟢 Cached - Results loaded from cache (fast)
- 🟡 Refreshing - Cache expired, re-running query
- 🔴 Expired - Cache cleared, need to re-run
Manual Cache Control
- Refresh Now - Force cache clear and re-run
- Disable Caching - Always run live query (admin only)
Report Permissions
Permission Levels
| Level | Can View | Can Run | Can Edit | Can Delete | Can Share |
|---|---|---|---|---|---|
| View | ✅ | ✅ | ❌ | ❌ | ❌ |
| Run | ✅ | ✅ | ❌ | ❌ | ❌ |
| Edit | ✅ | ✅ | ✅ | ❌ | ✅ |
| Delete | ✅ | ✅ | ✅ | ✅ | ✅ |
| Owner | ✅ | ✅ | ✅ | ✅ | ✅ |
Sharing Reports
- Open report
- Click Share
- Add users/roles:
- Enter email or role name
- Choose permission level
- Send Invitation
- Check Make Public to share with all org members
- Public reports appear in “Organization Reports”
Report Categories
Organize reports by category:Standard Categories
- Financial - Budget, transactions, accounts
- HR - Employees, payroll, attendance
- Clinical - Residents, assessments, outcomes
- Operational - Census, occupancy, incidents
- Compliance - Audits, certifications, grants
Custom Categories
Admins can create custom categories:- Go to Settings → Reports → Categories
- Click New Category
- Enter name and description
- Save
Troubleshooting
Report Timeout
Cause: Query takes too long (>30 seconds). Solutions:- Add filters to reduce data (e.g., date range)
- Contact admin to optimize query
- Run during off-peak hours
No Data Returned
Check:- Parameter values (date range too narrow?)
- Permissions (do you have access to this data?)
- Filters (too restrictive?)
- Data exists (maybe there’s truly no data)
Export Failed
Causes:- Result set too large (>100K rows)
- Network issue
- Browser memory limit
- Add filters to reduce rows
- Export as CSV (smaller than Excel)
- Use scheduled export (email delivery)
Permission Denied
Cause: You don’t have access to underlying data tables. Solution: Contact report owner or admin to grant access.Best Practices
- Use Parameters - Make reports reusable with different inputs
- Name Clearly - “Q1 2025 Revenue by Site” not “Report 1”
- Add Descriptions - Explain what report shows and when to use
- Test Thoroughly - Run with various parameters before sharing
- Set Reasonable Defaults - Pre-fill common parameter values
- Document SQL - Add comments to complex queries
- Review Regularly - Archive unused reports
Common Report Examples
1. Budget vs. Actual
Purpose: Compare budgeted to actual spend by account. Query:2. Employee Roster
Purpose: List all employees with contact info. Query:3. Census Report
Purpose: Daily census by site and program. Query:For Administrators
Report Administration
Manage all reports:- Go to Settings → Reports
- View:
- All reports (across org)
- Report usage (run count)
- Slow queries (>5s)
- Failed executions
Performance Optimization
Tips for Faster Reports:- Add indexes to frequently-queried columns
- Limit result set (pagination)
- Use materialized views for complex calculations
- Cache results for expensive queries
- Archive old data (move to history tables)
SQL Validation
Reports undergo automatic SQL validation:- ✅ SELECT only (no INSERT/UPDATE/DELETE)
- ✅ No destructive operations (DROP, TRUNCATE)
- ✅ Parameters properly typed
- ✅ RLS automatically enforced
DROP,TRUNCATE,DELETE,UPDATE,ALTERCREATE,GRANT,REVOKE
Report Templates
Create report templates for common use cases:- Create base report with parameters
- Mark as Template
- Users can clone and customize
Support
Need Help?- In-app: Click Help → Reporting Support
- Training: Help → Report Training Videos
- SQL Help: Help → SQL Reference Guide
Version: 3.0.0
Last Updated: 2025-11-29