Internal documentation — not for public distribution
Protocol Health Club © 2026

Blood Work Pipeline

End-to-end automation from raw lab PDF to GHL contact update — no manual NP involvement until final review.

What It Does

The pipeline takes a client's raw blood test PDF and processes it automatically. The NP's review time drops from ~45 minutes per client to ~5 minutes.

#StepModel / ToolOutput
1IngestRaw PDF saved, run created
2Extract textpdf-parse → Claude vision fallbackClean text
3Parse biomarkersClaude Sonnet 4.6Structured JSON
4Clinical analysisClaude Opus 4.7Summary + recommendations
5Generate client PDFPuppeteerBranded PDF report
6Write to GHLGHL REST APIUpdated contact

Cost Per Report

StepModelEst. Cost
OCR (if scanned PDF)Sonnet 4.6 vision, ~5 pages~$0.05
Parse biomarkersSonnet 4.6~$0.02
Clinical analysisOpus 4.7~$0.10
Total~$0.15–0.20

GHL Tag Lifecycle

What Gets Written to GHL

Field / ActionValue
contact.call_notesAI-generated clinical summary (NP edits here)
Tag addedbloodwork_completed
Tag removedbloodwork_scheduled
Note createdFull structured analysis with flagged markers and recommendations