Hospital Node

hospitalnode.in · hnorder.in

HospitalNode Admin

Overview
  • Dashboard
Hospital AI
  • Human Intelligence
Commerce
  • Pharmacy module
  • Lab module (B2B)
  • Master catalog
  • Bulk sync & cron
  • Inventory
  • Orders
Partners & growth
  • Partners
  • Customers & RFM
  • Ads & campaigns
Finance
  • GMV risk
  • Settlements
  • B2B audit
System
  • Reference
Two-factor authentication← Shop front

Admin

Dashboard

KPIs, launch checklist, and quick links

Dashboard

hospitalnode.in · hnorder.in control center

Catalog, orders, partners, retention, and settlements — one admin surface for hospitalnode.in · hnorder.in launch.

Master SKUs

…

Catalog requests

…

Active listings

…

Open orders

…

KYC pending

…

Orders (7d)

…

Modules

Human Intelligence

Memory · Neural · Body — pharmacy & lab

Pharmacy module

Medicines — pick, cart, Rx checkout, delivery

Lab module (B2B)

Diagnostics B2B — tiers, bookings, collection, reports

Master catalog

Bulk CSV, OpenSearch sync, vendor add-SKU approvals

Bulk sync & cron

Chunked upsert, OpenSearch bulk, vendor job audit

Inventory

All vendor listings — stock, price, Rx flag

Orders

Platform orders — status, Rx, and delivery override

Partners

Pharmacy & lab vendors — KYC and verification

Customers & RFM

Spend, profit, segments, and personalized coupons

Ads & campaigns

Sponsored listings and OpenSearch boost

GMV risk

Fraud GMV, dead stock, settlements, refund exposure

Settlements

Platform GMV, fees, and vendor payout ledger

B2B audit

Unified audit logs — price, stock, orders, fraud flags

Reference

Thesis feature map and architecture notes

Master SKUs

…

Pending catalog requests

…

Shipped (admin scope)

15

Remaining

4 in progress · 1 to do

Launch checklist

hospitalnode.in · hnorder.in medical shop is the focus. Green = done, amber = started, grey = not started.

Catalog & data

Master catalog control room

CSV import, vendor add-SKU requests, approve/reject

Done

OpenSearch → master catalog sync

POST /api/admin/catalog/sync-ingest after ingest_data.py

Done

Drug file ingest (OpenSearch)

services/aethersis-db/ingest_data.py — Medicare T20* skipped by default

In progress

Auto-enrichment API (C)

openfda | truemd | cims — test in catalog #enrichment

Done

Supabase migrations 011–014

Taxonomy, coupons, RFM view, payment columns — apply 014 in SQL Editor

In progress

Customer RFM & coupon control

Spend, profit, manual Offer Coupon — /admin/customers

Done

Inventory & shop

hospitalnode.in · hnorder.in · Shop (customer)

Browse, cart, checkout, delivery demos

Done

Admin inventory console

Live vendor_products — search, filter, edit stock

Done

Smart listing (master link)

Master catalog picker + custom SKU — /admin/inventory/new

Done

Vendor catalog CSV upload

Inventory page → master catalog bulk (service role)

Done

Partners & ops

Partner registry + KYC queue

/admin/partners — approve/reject KYC

Done

KYC API

PATCH /api/admin/kyc/[id]

Done

Admin orders + status override

PATCH /api/admin/orders/[id]

Done

Settlements dashboard

Ledger + mark settled + GMV summary

Done

Platform

Admin API auth

admin@eaglink.in + Bearer; service_role for writes

Done

Admin shell (advanced)

Sidebar nav, badges, KPIs, sub-links per section

Done

Payment & delivery demos

Checkout, logistics, track-order links

Done

Krishna AI analytics

Delivery ML / district demand

In progress

Admin route guard (middleware)

Shipped — enable ENFORCE_ADMIN_ROUTE_GUARD=true on deploy

In progress

Automated vendor payouts

Manual mark settled only; Razorpay transfer API todo

To do

Before launch — customer go-live

Admin panel mostly done. Ye table batati hai real transactions, vendor self-serve, aur delivery clear hain ya nahi.

Paymentspartial
Real money (Razorpay / UPI / cards)

Ab: Razorpay Checkout.js wired when RAZORPAY_KEY_ID + secret set. UPI/cards/wallets go through Razorpay. Demo path works without keys (fake confirm). PhonePe & Cashfree are NOT separate integrations — only if enabled inside Razorpay dashboard.

Launch se pehle: Production Razorpay account, webhook, test ₹1 order, refund flow. No Razorpay Route (auto vendor split) yet.

Vendorready
Dukandaar dashboard (orders + settlements)

Ab: Full vendor shell: /vendor/dashboard — Orders, Inventory, Rx verify, KYC, Settlements, Logistics. Admin does NOT need to handle every order if vendor logs in as vendor@eaglink.in or owner-linked account.

Launch se pehle: Onboard 1 real pharmacy, KYC approve, train them on dashboard + settlements tab.

Deliverypartial
Rider / pickup–drop flow

Ab: Connecting-link timeline, India Post lane, dispatch route labels, delivery agent register API + /logistics/join. NO dedicated rider app with live GPS jobs yet. Vendor sees logistics; customer tracks order.

Launch se pehle: Pilot one hub + 2 agents; print dispatch label (digipin/route). Bike-taxi API (Rapido/Porter) = future.

Killer · Rx AIpartial
Prescription OCR → cart + WhatsApp

Ab: MVP at /shop/rx: photo or paste → parse lines → master catalog match → vendor SKU → cart + WhatsApp draft. Mock OCR without OPENAI_API_KEY; gpt-4o-mini vision when key set.

Launch se pehle: Pilot with real Rx photos; tune match rate; vendor confirms on WhatsApp before payment.

Shopready
Medical taxonomy + filters + product PDP

Ab: L1/L2/L3 filters on /shop; /shop/product/[id] with OpenFDA; migration 014 + launch:prep.

Launch se pehle: Run migration 014; npm run launch:prep; upload real photos to Storage.

Retentionready
RFM dashboard + personalized coupons

Ab: /admin/customers, checkout validation, auto-assign after order, WhatsApp draft hook.

Launch se pehle: Assign SUPERPROFIT20 to pilot VIPs; test LOVENEWMED on checkout.

Killer · Catalogmissing
Smart substitutes (same salt)

Ab: Master catalog has generic_name field; shop shows out-of-stock. NO auto-suggest Paracetamol if Dolo OOS.

Launch se pehle: Wire search by generic_name + in-stock vendor listing.

Killer · Retentionmissing

Chronic refill reminders (WhatsApp/push)

Ab: Not built.

Launch se pehle: Cron + patient medicine profile + 25-day reminder template.

Killer · Paymentsmissing
Razorpay Route (10% platform / 90% vendor)

Ab: Settlement ledger + manual mark settled. NO automatic split on payment capture.

Launch se pehle: Razorpay Route linked accounts per verified vendor.

Data · aeolus_v1partial

AEOLUS pharmacovigilance DB

Ab: TSV files in hospitalnode/aeolus_v1 (drug–outcome adverse events, OHDSI concepts). NOT wired to pharmacy cart/OCR. Use later for drug safety Q&A in Krishna AI, not Rx scanning.

Launch se pehle: Load into DB; API for 'side effects / interactions' — separate from Rx OCR roadmap.

Super-app roadmap (killer features)

P0 launch

  • Live Razorpay
  • 1 vendor live
  • Catalog ingest sync
  • KYC

P1 super-app

  • Rx OCR + WhatsApp confirm flow
  • Smart substitutes
  • Razorpay Route

P2 retention

  • Chronic refill
  • Rider app / 3PL API
  • AEOLUS safety layer