Developer: DR.KESHARI

Hospital Node

hospitalnode.in · hnorder.in

India medical market · pharmacy · labs · care

Prescription medicines require valid Rx. Vaccines administered by licensed partners only.

PrivacyTermsConsentPaymentsLogisticsLicenses

Hospital Node

hospitalnode.in · hnorder.in

Module 3Module 4Admin

Service Platform v2 · ERP + Consumer Marketplace

Pharma Platform v2 — ERP + Marketplace

Spec repo: Phases 1–7d complete (single-pharmacy ERP + multi-vendor marketplace). hospitalnode.in has strong consumer checkout (7b) and catalog (7a partial); ERP purchase/accounting/FEFO and pharmacist accept gate (7c) are the main gaps.

search → cart → checkout → pay → accept → deliver → return

Integration: 41% · /api/pharma-v2/status

Module 3 pharmacyModule 4 paymentsMedicine platformCore Phase 1 PhAAdmin pharmacy hubPharmacy shop

Consumer pharmacy journey (Phase 7)

  1. 1Search medicines7a/shop?view=paramedics&service=pharmacyLive
  2. 2Add to cart (multi-vendor)7a/cartLive
  3. 3Upload Rx if Schedule H7c/shop?view=aiPartial
  4. 4Checkout + Razorpay7b/checkoutLive
  5. 5Pharmacist accept + verify Rx7c/vendorPartial
  6. 6Pack → deliver7d/customer/track-orderPartial
  7. 7Return / ticket7d/customer/track-orderGap

Medicine platform 6-step ↔ v2 masters

  • 1 Master schemaPartial
  • 2 Category importPartial
  • 3 Image CDNPartial
  • 4 Search indexPartial
  • 5 Admin approvalPartial
  • 6 AI recommendationsPartial

All phases (spec repo → hospitalnode.in)

Phase 1 · erp-auth-org

Multi-tenant org, RBAC, branches

18%

Partial

Supabase Auth + vendor/admin routes — no Prisma Organization/Branch ERP model; partner KYC on /admin/partners.

  • LiveSupabase auth
  • PartialVendor portal
  • PartialAdmin RBAC
  • PartialModule 1 identity
Gaps (4)
  • No per-pharmacy Organization tenant in hospitalnode
  • Branch hierarchy + user_branch_access
  • Staff permission catalog (pharmacist vs cashier vs prescriptions:verify)
  • PlatformAdmin identity separate from org staff

Phase 2 · products-batches

Products, batches, stock adjustments

22%

Partial

vendor_products.quantity_available — flat stock, not branch-scoped Batch table with adjustment history.

  • PartialVendor products
  • PartialAdmin inventory
  • LiveCatalog browse
  • PartialModule 3 L1
Gaps (4)
  • No Batch model with expiry + purchase price per batch
  • No stock_adjustments reconstructable ledger
  • Multi-unit Strip/Box conversion ratios
  • isListedOnMarketplace opt-in per SKU

Phase 2.5 · master-data

Manufacturer, brand, generic, composition

38%

Partial

master_catalog_items + medicine-platform 6-step pipeline (021 migration) — shared barcode-first grouping gap same as v2 spec.

  • PartialMedicine platform import
  • PartialDrug index browse
  • PartialOpenSearch drug index
  • Live780 products_master
Gaps (4)
  • 9L medicine import — batched; OpenSearch needs Docker
  • Barcode-first cross-vendor grouping (v2 named limitation)
  • Composition label on combo drugs — partial
  • master → vendor_products bridge for orderable cards

Phase 3-erp · purchase-suppliers

Purchase orders, suppliers, receive → batch

25%

Partial

Migration 051: pharma_purchase_orders, pharma_purchase_invoices, pharma_stock_adjustments; legacy pharma_purchase_ledger extended. Receive API + vendor UI pending.

  • GapVendor hub
  • PartialAdmin catalog sync
Gaps (5)
  • POST /api/vendor/procurement/purchase-invoices/:id/receive → product_inventory
  • Purchase order CRUD + fulfillment status sync
  • Supplier payable ledger view
  • Purchase return flow
  • Vendor /vendor/procurement UI

Phase 4 · sales-fefo

Sales invoices + FEFO deduction

24%

Partial

place-catalog-order.ts deducts vendor_products stock — not FEFO across batches; catalog_orders not SalesInvoice.

  • LivePlace order
  • LiveCheckout
  • PartialCancel order
Gaps (4)
  • FEFO batch allocation (v2 fefo.js)
  • OrderItemBatchAllocation traceability
  • B2B customer credit limit
  • SalesReturn with batch restock path

Phase 5 · accounting-gst

Double-entry accounting + GST summary

6%

Gap

catalog_payment_ledger events only — no double-entry ChartOfAccount / JournalEntry.

  • LivePayment ledger
  • PartialLaunch readiness
Gaps (4)
  • No GST summary / GSTR export
  • No MARKETPLACE_AR account on marketplace accept
  • MarketplaceOrderItem gstRatePercent — gap in v2 too for marketplace
  • Vendor payout disbursement (Razorpay Route)

Phase 6 · analytics

Profit, reorder, dead stock reports

12%

Gap

OPS scaling partial — no pharmacy ERP analytics endpoints.

  • PartialAdmin sync metrics
  • PartialClickHouse scaffold
Gaps (3)
  • No profit/COGS from batch purchase price
  • No reorder-forecast API
  • No dead-stock report

Phase 7a · marketplace-search-cart

Consumer identity + cross-pharmacy search + cart

55%

Partial

MarketplaceCartContext + catalog-browse sponsored OpenSearch — consumer is Supabase user not separate Consumer model.

  • LivePharmacy shop
  • LiveCatalog browse API
  • LiveCart
  • PartialDrug recommendations
Gaps (4)
  • Cross-pharmacy price compare grouped by barcode
  • City-scoped search (v2 Patna deliver-to)
  • Distance nearest-first sort (Haversine)
  • Public search without login — live on shop

Phase 7b · checkout-reservation-pay

Checkout, stock reservation, Razorpay

74%

Live

reserveInventory on place-order; Razorpay live with ledger + idempotency — reservation expiry sweep not EventBridge.

  • LiveCheckout
  • LiveRazorpay create-order
  • LiveWebhook
  • LiveModule 4
Gaps (3)
  • Explicit StockReservation table with 15min expiry — 052 catalog_stock_reservations
  • Confirmed reservation after pay — markOrderPaid + confirmOrderReservations
  • Cart cleared at checkout semantics differ

Phase 7c · accept-rx-gate

Pharmacy accept/reject + Rx pharmacist gate

74%

Partial

052: reservation_v1 + confirm on pay; pharmacist verify (vendor_pharmacist_verifiers, granted only via admin approval — 116_pharmacist_approval_audit.sql + /api/admin/pharmacists/[id]/verify); POST accept/reject + FEFO on accept; Schedule X gated at browse/cart (0.4).

  • PartialHospital AI Rx OCR
  • PartialVendor orders
  • GapModule 3 L3
  • PartialAdmin pharmacy
Gaps (3)
  • Order → SalesInvoice ERP conversion on accept
  • Payout ledger entry on accept
  • Per-line partial fulfillment (future)

Phase 7d · delivery-returns-tickets

Delivery pipeline, returns, support tickets

28%

Partial

delivery_status on catalog_orders; connecting-link logistics — no marketplace returns/tickets; Shadowfax not wired.

  • PartialTrack order
  • PartialCancel order
  • PartialLogistics / hospitalnode.in · hnorder.in
  • LiveLegal logistics
Gaps (5)
  • Sequential delivery-status staff API
  • Shadowfax webhook (v2 provider scaffold)
  • Consumer return request + pharmacy approve
  • Support tickets + platform_admin escalate thread
  • Twilio SMS/WhatsApp on status (DLT templates)

Phase ops · platform-ops

License verify, DIGIPIN, platform admin

14%

Gap

Vendor KYC queue partial; no PlatformAdmin; no DIGIPIN on addresses; Hospital AI billing notify partial.

  • PartialAdmin partners KYC
  • PartialPost-payment WhatsApp
  • PlannedBlockchain commerce
Gaps (4)
  • PlatformAdmin license review before isListedOnMarketplace
  • DIGIPIN on consumer addresses
  • Cross-pharmacy platform-admin orders/payouts view
  • DLT-registered SMS templates for order events

API map (v2 → hospitalnode)

  • GET /marketplace/products/searchPartial

  • POST /consumer/cart/itemsLive

  • POST /consumer/checkoutLive

  • POST /orders/marketplace/:id/acceptGap

  • POST .../verify-prescriptionGap

  • PATCH .../delivery-statusGap

  • POST /batches + FEFOGap

  • GET /api/digipin/encodeGap

Ahead of v2 spec on hospitalnode.in

  • Hospital AI Rx OCR + RAG (beyond v2 base64 Rx stopgap)
  • Lab + appointment payments on same Razorpay stack
  • Sponsored catalog boost + Redis browse cache
  • Multi-vertical shop (labs, medicosphere) on one cart core