Skip to content

Corbanweaver/private-lab-test

Repository files navigation

Private Lab Test is a Next.js prototype for safe, affordable cash-pay lab access for older adults and the loved ones helping them.

The product is now shaped around:

  • Clinician-authorized wellness lab orders
  • Prepaid cash prices with no insurance or Medicare billing in the launch flow
  • Concierge scheduling and family assurance milestones
  • CLIA-focused lab partner tracking
  • An aggregator-first supply strategy with regional, mobile, and national lab expansion paths

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Real Lab Provider Setup

The app defaults to the mock provider. To test real lab connectivity through Junction sandbox:

  1. Get a Junction sandbox Team API key.
  2. Set LAB_PROVIDER=junction, JUNCTION_API_KEY, JUNCTION_BASE_URL=https://api.sandbox.us.junction.com, and SUPABASE_SERVICE_ROLE_KEY in Vercel/local env.
  3. Use GET /api/provider/live to confirm catalog access.
  4. Use POST /api/provider/live with { "action": "locations", "zip": "80202" } to verify live clinic lookup.
  5. Map Private Lab Test panels/tests to Junction lab test IDs in JUNCTION_LAB_TEST_MAP, for example:
{
  "complete-wellness": ["junction-lab-test-id"]
}

Production provider order writes stay disabled unless LAB_PROVIDER_ORDER_WRITES=enabled. Sandbox checkout bypasses Stripe unless LAB_PROVIDER_SANDBOX_CHECKOUT=enabled, and direct sandbox order testing is blocked in production unless LAB_PROVIDER_SANDBOX_TESTS=enabled. Catalog/mapping debug actions are Preview-only unless LAB_PROVIDER_CATALOG_DEBUG=enabled. Patient intake is stored server-side in Supabase checkout intents and is not copied into Stripe metadata.

When mapping individual test IDs, the Junction adapter requires every selected test to have a provider ID. Set JUNCTION_ALLOW_PARTIAL_TEST_MAP=true only for temporary sandbox experiments.

Direct Quest/Labcorp enterprise integrations should come after aggregator volume proof; the current fastest path is a provider network that can issue the required authorization, generate requisitions, return PSC locations, and deliver results. The national lab affiliation ladder is tracked in docs/lab-partner-outreach-plan.md and surfaced at /partners/outreach.

The latest product research sprint is documented in docs/market-research-and-product-sprint.md, the company scale playbook is in docs/company-scale-playbook.md, and the AI growth stack is in docs/ai-growth-stack-plan.md. The app exposes working strategy/program/growth surfaces at /strategy, /programs, and /growth.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors