Muhammad Rayyan
← All work

Reporting · Automation

eReports Healthcare Reporting Toolkit

A Python desktop toolkit that puts many monthly spreadsheet, text, CSV, and PDF reporting jobs into one place with shared data steps.

Role
Data Reporting Analyst — sole builder of operational reporting automation
Duration
Ongoing development across multiple reporting cycles
Data Scale
10+ monthly Excel and PDF operational reports; fixed-width text exports from legacy billing systems
Stack
  • Python
  • CustomTkinter
  • pandas
  • openpyxl
  • XlsxWriter
  • pdfplumber
  • PyInstaller

Impact

80%

Reduction in manual reporting time

Vs. prior manual preparation of 10+ monthly Excel and PDF operational reports

Problem

Every month, the same reporting jobs come back. Aging files need merging. Deposit files need converting to Excel. Provider files need splitting. Financial PDFs need pulling into one workbook. Each job is small. Together they take days.

Before this toolkit, people used separate scripts and handwritten checklists. One tool read dates one way. Another tool read them differently. Large CSV files were hard to open in Excel. New staff had to learn tribal steps instead of a clear menu.

The team needed one trusted place to run these jobs — with the same file naming, the same logging, and the same outputs every time.

Approach

I built eReports as a desktop app with a sidebar of tools. Each tool has its own Python module. The screen handles file picking and progress. The modules hold the data logic and can be tested on their own.

Aging pipeline reads patient and claim exports, merges billing dates, assigns status labels, and writes a multi-sheet workbook: data, aging analysis, work queues, recently billed, and inquiries.

Practice management categorisation reads text and CSV exports from two common system families, cleans column names, maps insurance references, and builds status summaries.

Deposit import turns fixed-width deposit text into structured Excel.

Financial consolidation scans folders for PDFs and CSVs, pulls monthly billed and collection figures, and builds one year-over-year workbook.

Utilities include large-file CSV splitting with encoding detection, provider-based splitting against a roster, and fixed-width-to-CSV conversion for legacy exports.

The app packages as a Windows installer so analysts do not need to manage Python themselves.

# Shared pattern: detect encoding before pandas assumes UTF-8.
encoding = detect_encoding(path)
df = pd.read_csv(path, encoding=encoding, dtype=str)

What I found

Putting ten or more monthly reports behind one UI cut manual reporting time by about eighty percent compared with the old mix of separate scripts, manual Excel steps, and ad hoc PDF copying. Most of the gain came from less switching: one login, one naming pattern, one log file, and repeatable modules.

Data quality got better because encoding and delimiter detection ran the same way every time. Large files that used to crash Excel were split or processed with explicit types, which cut silent date mistakes and dropped leading zeros on member IDs.

When a vendor changed an export column, I updated one module without touching the other reports. The old macro workbook could not do that cleanly.

What I'd do differently

The UI and modules share little formal contract beyond habit. I would define a small interface — required columns, output workbook shape — and check inputs before processing so failures show as clear messages instead of mid-run errors in the log.

I would add automated tests around the riskiest steps: aging status labels, insurance mapping, and PDF table extraction. Those are where a quiet logic change costs the most.

I would also keep access control separate from the reporting code, and add plain CSV or Parquet outputs plus a thin command-line path for scheduled runs without the GUI.

Built on synthetically generated claims data, parameterised from published industry benchmarks. No client or patient data was used.