Skip to content

Export & Filters

Consistent filtering and export practices ensure reports remain accurate, auditable, and useful outside EaseLab — in Excel, accounting systems, and management presentations.

Universal filter model

mermaid
flowchart LR
    U[User selects filters] --> Q[Query builder]
    Q --> DB[(Tenant DB)]
    DB --> G[Grid view]
    G --> E[Export engine]
    E --> CSV[CSV]
    E --> PDF[PDF]
    E --> PRINT[Print]

Most report screens share a filter bar at the top. Apply filters before export — exported files respect active filters only.

Standard filters

FilterTypeNotes
Date from / toDate pickerInclusive boundaries — confirm timezone (UTC storage, local display)
Collection centerMulti-selectEmpty = all centers
DepartmentDropdownFrom test departments
Referral doctorSearchable selectActive doctors only by default
Test / profileCatalog searchCode or name
Payment methodEnumCash, card, bank, credit
User / cashierStaff listShift reconciliation
StatusContext-specificInvoice paid, sample pending, etc.

Default to narrow ranges

Exporting multi-year data slows browsers and obscures recent trends. Start with 30 days, expand as needed.

Date range shortcuts

ShortcutUse case
TodayShift close
YesterdayMorning review
This weekOps meeting
This monthFinance close
CustomAudits, tax periods

Financial reports often align to calendar month; operational may use rolling 7 days.

Export formats

FormatBest forLimitations
CSVExcel pivot tablesNo formatting
PDFSharing with doctorsFixed layout
PrintWall chartsBrowser dependent
CopyQuick paste to chatSmall datasets

CSV guidelines

  • UTF-8 encoding for international characters
  • Open in Excel via Data → From Text to preserve leading zeros in MRNs
  • Large exports may split — use date chunks

PDF guidelines

  • Use landscape for wide financial tables
  • Include filter summary in header when printing from browser
  • Logo from lab settings appears on branded templates

Column selection

Where column pickers exist:

  1. Click Columns or gear icon.
  2. Toggle visibility per field.
  3. Save as personal default if supported.
  4. Export — hidden columns omitted.

Recommended minimum sets:

ReportEssential columns
Cash flowDate, reference, inflow, outflow, method
ReferralsDoctor, patients, revenue, commission
TATBarcode, test, collected, verified, hours
Test performanceTest code, count, revenue

Permission-aware export

Export requires same view permission as the report. Users without analytics.view cannot export analytics datasets even via direct URL guessing — API enforces authorization.

Scheduled / recurring exports

EaseLab standard UI focuses on on-demand export. For recurring delivery:

PatternImplementation
Daily emailExternal script via API + cron
BI warehouseNightly DB read replica
Accountant shareManual monthly CSV + secure transfer

Document your lab's chosen pattern in internal SOPs.

Filter persistence

BehaviorDetail
SessionFilters may reset on logout
BookmarkShare URL with query params when supported
Saved viewsFuture enhancement — use browser bookmarks

Data quality checks before export

mermaid
flowchart TD
    A[Set filters] --> B[Preview row count]
    B --> C{Reasonable?}
    C -->|No| D[Widen/narrow filters]
    C -->|Yes| E[Export]
    E --> F[Spot-check totals]
CheckPass
Row countMatches expectation
Sum of revenue~ financial summary
No duplicate barcodesTAT report
Date coverageFull period included

PHI and security

Protected health information

Exports contain PHI. Email only through secure channels. Do not store CSV on public cloud folders without encryption.

ControlAction
Least accessExport permission only for finance
RetentionDelete local copies after import
AuditNote who exported sensitive reports

Troubleshooting

IssueFix
Empty exportFilters too narrow; verify date field
Garbled charactersUTF-8 import in Excel
TimeoutReduce date range
Totals mismatchInclude deleted invoice timing
403Missing report view permission

Ease Lab — Cloud Pathology Lab Management