Intake
Scanned PDFs, lab faxes, and EHR exports land in S3 via signed-URL uploads with a typed audit log.
MVP · 7-day plan
An automated indexer for medical records.
Seven working days from a blank repository to a deployed MVP: ingest scanned records, extract clinical fields, and surface them through a searchable dashboard that survives a clinician's first hour on the job.
Week at a glance
The plan
Each day stands on its own. Cancel any day and the code already shipped still builds and still runs. The plan is short on purpose - seven days, four bullets each, no goals beyond the working artifact.
Stand up the TanStack Start app at the repo root, define the route surface, and land a clean CI build.
Wire the storage layer so uploaded scans and EHR exports land in S3 with a typed audit trail.
Add the server-side pipeline that turns raw scans into structured records with clinical codes, focused on radiology and imaging studies.
Surface the indexed corpus through a query layer that clinicians can actually drive.
Put a role-aware shell around the index so each user only sees what their role allows.
Cover the cases the happy path would have missed and lock the contract behind tests.
Cut over to production and leave behind a clean repo, a one-page runbook, and a verified health probe.
Architecture
Every stage is a server function with a single responsibility. The stages run sequentially when a new document arrives and incrementally as the corpus grows, with a deterministic join key tying each index record back to its source object.
Scanned PDFs, lab faxes, and EHR exports land in S3 via signed-URL uploads with a typed audit log.
A server function pulls the object, runs OCR, and structures the text into a flat record of clinical fields.
Records are tagged with ICD-10, SNOMED CT, and a patient identifier, then written to the index table.
The dashboard queries by date, code, or patient id and returns a snippet linked back to the source document.
Status
7 / 7 · MVP shipped