Spreadsheet, Script or Contract? Three Ways to Run a Weekly Report

Spreadsheet, Script or Contract? Three Ways to Run a Weekly Report

Say your cardiology outpatient office wants a weekly summary of bookings, no-shows and referral turnaround. There are broadly three ways to produce it, and most organisations drift through all three. Let’s compare them honestly, from the scrappy spreadsheet to the properly run pipeline, using the way the Ops Atlas describes DataOps as our yardstick. No clinical content here, just the plumbing behind the numbers.

Option one: the hand-built weekly file

Someone exports three lists, pastes them into a workbook, fixes the odd date format and emails the summary. It is quick to start and needs no engineer. It also lives or dies on one person’s memory. The Atlas calls this the bottom rung, “ad hoc”, of the maturity ladder it proposes for the discipline, and it is careful to note the ladder is the page’s own device, not an industry standard.

Where it shines: speed, flexibility, zero setup. Where it hurts: nobody can say which version of the workbook was sent last month, and the checks, such as “that number looks low”, exist only in someone’s head. When that person goes on leave, the checks go with them.

Option two: a scripted pipeline with version control and tests

The second approach turns the same steps into code. The instructions sit in a shared repository, every edit is reviewed, and automated tests run on each proposed change. A team that reaches here has what the Atlas labels “versioned”, and the next rung up adds monitoring, with the check that matters most being who finds problems first.

This is a big improvement and it is where many teams stop. For a gentler look at that stage, the article on streamlining modern data operations with DataOps on this site is a decent companion. The catch is a distinction the Atlas makes plain: testing the code protects against the instructions being wrong, but the data changes every night without any release. A source system can alter a status label on a Tuesday and no test of your code will notice, because your code did not change.

Where it shines: repeatable, reviewable, easy to hand over. Where it hurts: a silent upstream change still lands in your summary, and a job that finishes cleanly can still publish a thin table.

Option three: contracted, audited and watched

The third approach adds the run-loop protections. Producers publish a data contract, so the team that owns the referral system commits in writing to what columns it sends, what each status means and when the feed arrives. New data is parked in a staging area, checked, and published only if blocking checks pass, otherwise it is held back. Monitors watch freshness and volume afterwards, and an incident log records every miss.

The Atlas places this at the “contracted and audited” level and attaches a sober test: no unaudited publish of the most critical outputs for a full quarter, with an error-budget policy actually in use. It is not cheap. Extra staging costs time, and the entry says the pattern should be restricted to tier-one outputs, the handful of tables where a mistake is expensive.

Where it shines: mistakes are caught before readers see them, and responsibility is spread to the people who understand each source. Where it hurts: more setup, more discipline, and a need for owners who answer messages.

Side by side

  • Who notices errors first: option one, the reader; option two, usually still the reader; option three, the monitors.
  • Setup effort: an afternoon, a few weeks, a couple of quarters.
  • Handover when someone leaves: painful, easy, easy.
  • Protection against upstream changes: none, none, contract plus audit.
  • Running cost: staff time, modest compute, compute plus review time.

The cost question nobody mentions

Checks are not free, and cloud warehouses bill by the data scanned. The Atlas gives a pointed example with a 90 GiB identifier column. Scanning the whole column daily to confirm uniqueness adds up to about 2.6 TiB of reading a month on one provider’s on-demand pricing, while a check scoped to a single day’s partition reads only a few GiB over the same month. Even running the full-history sweep once a week still comes out several times cheaper than doing it daily. A hospital with a limited analytics budget should note the lesson: scope checks to the data that changed, and do not assume a row limit shrinks the bill, because on that pricing model only partitioning and clustering do.

A note on schedulers and alarms

Teams often assume their workflow scheduler will warn them when a job runs late. The Atlas flags a wrinkle: the SLA feature was removed in Airflow 3, while the successor, called Deadline Alerts, is still tagged experimental from 3.1 onward. For anything in your top tier, the entry advises a separate monitor that does not depend on the scheduler’s own opinion of itself. In practice that can be as humble as a scheduled query that checks the newest timestamp in the summary table and sends a message if it is older than expected.

Option two teams are especially exposed here. They have tests, so they feel covered, but a test that never runs because the job never started tells nobody anything. Option three teams treat the absence of a result as an event worth an alert in its own right.

Picking your stage

Here is a blunt rule of thumb. If the weekly summary only goes to the department that built it and a mistake is merely embarrassing, option one with a written checklist is fine. If other teams make decisions from it, such as theatre planners or the finance office, option two is the minimum. If it feeds anything that must be right the first time, such as a regulatory return or the monthly revenue summary, plan for option three on that one output and leave the rest alone. Treat the three options as tiers, not as a ladder everyone must climb, which is exactly how the Atlas’s own three-tier model is set up.

Whichever you pick, add some visibility. A walkthrough such as the guide to operational visibility with Datadog shows what a basic freshness panel looks like, and the principle carries over to any dashboard tool you already own.

Our verdict

Do not leap to the most elaborate option because it sounds serious. Start by finding out who currently discovers your errors, since the Atlas treats that share as the headline measure. If it is mostly your readers, move up one level, not three. The full entry, which also covers the 30, 60 and 90 day starter plan, is on the Atlas’s DataOps page. Read it with a pencil, circle the one or two ideas that match your weakest point, and ignore the rest until your next quarter.