/medtech • v1.0.0

MedTech UDI/NDC & EU EUDAMED Pre-Flight API

Zero-PHI medical device and drug identifier engine for healthcare ERPs, hospital supply chains, and medtech regulatory teams. Deterministically parses GS1, HIBCC, and ICCBBA ISBT 128 UDI barcodes and FDA NDC-10/11 codes, pre-flight validates EU EUDAMED (MDR/IVDR) JSON & XML submissions, and screens inventories against public-domain CC0 openFDA recalls—backed by SHA-256 med_* audit receipts.

Zero-PHI Product & Device ReferenceEU EUDAMED MDR/IVDR Pre-FlightFDA openFDA CC0 Recall Guard

Core REST Endpoints

Base path: https://api.contextapi.dev/medtech (or /api/medtech via local portal proxy).

MDR 2017/745 • IVDR 2017/746
Method Path Cost Capabilities
POST /v1/medtech/udi/parse 1 credit Parses GS1, HIBCC (Mod-43), and ICCBBA ISBT 128 UDI barcodes plus FDA NDC-10/11 codes (5-4-2), validates GTIN-14 MOD-10 & expiry dates, optionally screens CC0 openFDA recalls, and stores a SHA-256 med_* receipt.
POST /v1/medtech/eudamed/preflight 3 credits XXE-hardened EU EUDAMED (MDR 2017/745 & IVDR 2017/746) JSON or XML pre-flight validating Actor SRN, GS1 GMN Basic UDI-DI (Mod-1021), UDI-DI, EMDN nomenclature, Risk Class vs 4-digit Notified Body NANDO, and Non-EU AR rules.
POST /v1/medtech/recalls/batch Pay-Per-Success Concurrently screen up to 50 UDI-DIs or FDA NDCs against active Class I/II/III openFDA recalls (SQLite WAL cached; upstream 502 errors cost 0 credits).
POST /v1/medtech/eudamed/explain-fix 1 credit (5 LLM) Produces field-by-field EUDAMED remediation steps and auto-verified patched payloads (1 credit deterministic rules; 5 credits optional LLM-verified explanation).
GET /v1/medtech/audit/{receipt_id} & /v1/medtech/audit 1 credit Retrieve tenant-isolated SHA-256 med_* compliance receipts and tier retention metadata (up to 10-year / 3,650-day retention on Scale+).

Quickstart & Hosted MCP Integration

Validate UDI barcodes and EUDAMED XML pre-flight or register https://api.contextapi.dev/medtech/mcp in your AI agent.

Quickstart — Parse GS1 UDI Barcode & Expiry

curl -X POST "https://api.contextapi.dev/medtech/v1/medtech/udi/parse" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "(01)00844588003288(17)280200(10)LOT42A(21)SN9981",
    "check_recalls": false
  }'
→ {"valid": true, "issuing_agency": "GS1", "device_identifier": "00844588003288", "production_identifiers": {"expiration_date": "2028-02-29", "lot_number": "LOT42A"}}

Hosted Streamable HTTP MCP (4 Tools + Resource)

Register in .cursor/mcp.json (or use npx -y mcp-remote for Claude Desktop):

{
  "mcpServers": {
    "contextapi-medtech": {
      "url": "https://api.contextapi.dev/medtech/mcp",
      "headers": { "X-API-Key": "${CONTEXTAPI_API_KEY}" }
    }
  }
}
  • parse_and_check_udi_ndcTool

    Decodes GS1/HIBCC/ICCBBA UDI & FDA NDC barcodes so agents can verify device identifiers without manual parsing.

  • validate_eudamed_preflightTool

    Checks EU MDR/IVDR EUDAMED readiness and stores a tamper-evident SHA-256 audit receipt.

  • batch_check_fda_recallsTool

    Screens device lists against FDA recall records in a single call to catch affected lots early.

  • explain_eudamed_preflight_fixTool

    Returns actionable remediation steps for failed EUDAMED pre-flight checks so teams can resolve blockers faster.

  • contextmedtech://vault/statusResource

    Exposes live audit vault receipt counts and service readiness for agent pre-flight health checks.