← Back to portfolio
Process Automation·2024·1 min read
Compliance Reporting Automation
An 8-hour weekly manual report became a 4-minute automated pipeline with better-structured output and a proper audit trail.
A group of four allied-health clinics needed to produce a weekly compliance report for each practitioner, pulling data from three different systems. One person spent a full day a week assembling it manually.
The brief
- Eliminate the manual weekly grind
- Improve consistency (the hand-assembled version had errors most weeks)
- Create a proper audit trail of who saw what, when
Weekly effort
8h → 4min
Errors per month
~6 → 0
Audit log entries
Full
The automation
Built in n8n with a small Postgres sidecar for state and audit logging. Runs every Sunday night; sends each practitioner their PDF before Monday morning.
n8nPostgresPDFKitMicrosoft 365 / Graph APISecure mail
- Pull practitioner rosters from the practice-management system
- Pull incident + outcome data from the EHR
- Cross-reference with CPD tracking in the LMS
- Render a templated PDF per practitioner
- Send via an authenticated channel with delivery confirmation
- Log every run, every delivery, every open — in a queryable audit table
Outcomes
- Frees ~32 hours a month of senior admin time
- Reports arrive consistently, on time, in the same format
- Auditors can now self-serve prior reports from a simple portal instead of pinging the clinic every time
The system has been running without intervention for 11 months. Total maintenance in that window: one n8n version upgrade.