Lab Uploads
Upload a lab report (PDF) for a person. Three steps: ask for an upload link, PUT the file to it, then complete. The report is processed exactly like one the person uploads in our app, and appears in the Reports and Lab Data folders when done.
Create an upload
Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call `POST complete`. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.
Complete an upload
Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with `GET :uploadId` or the Reports requests (`GET in-progress`, `POST list`).
Get an upload
Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).