Skip to content
View NHID-Clinical's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report NHID-Clinical

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
NHID-Clinical/README.md

NHID-Clinical

NHID-Clinical

A voluntary behavioral baseline for AI voice agents in B2B healthcare payer–provider calls — with an open cryptographic authorization layer (v2) in reference implementation.

Built by a former payer operations associate who saw the problem firsthand on live calls. Not a standard. Not a certification. An open, testable reference.

CI Python Tests TypeScript Tests Version License: CC BY 4.0 NIST Discord

Python TypeScript AWS Lambda FHIR

Website · Simulator · Spec · v2 Identity Layer · Discord


Table of Contents


Live API — Try It Now

The conformance API is live. No signup, no key required for the demo and vendor adapter routes.

# Test a non-compliant VAPI call (PHI requested before identity disclosure → IDG-01 + PDX-01 FAIL)
curl -s -X POST https://dc2ipcqs7k.execute-api.us-east-2.amazonaws.com/prod/v1/adapters/vapi/check \
  -H "Content-Type: application/json" \
  -d @tests/demo_scenarios/vapi_noncompliant.json | python3 -m json.tool
{
  "conformant": false,
  "action": "DENY_DATA",
  "violations": [
    { "rule_id": "IDG-01", "severity": "critical" },
    { "rule_id": "PDX-01", "severity": "critical" }
  ]
}
Full endpoint reference (click to expand)
Endpoint Auth Purpose
POST /v1/demo/check none Raw NHID event → conformance result
POST /v1/adapters/vapi/check none Native VAPI payload → conformance result
POST /v1/adapters/twilio/check none Native Twilio payload → conformance result
POST /v1/adapters/vonage/check none Native Vonage payload → conformance result
POST /v1/adapters/retell/check none Native Retell AI payload → conformance result
POST /v1/adapters/connect/check none Amazon Connect Contact Lens → conformance result
POST /v1/webhooks/call-progress none Turn-by-turn in-call evaluation
GET /v1/public/vendor/{id}/badge none Public CAS badge SVG (embeddable)
GET /v1/vendor/metrics/summary x-api-key Per-vendor pass rate + CAS trend
POST /v1/pilot/enroll none Shadow pilot enrollment
POST /v1/cts/evaluate none Run CTS YAML test suite against the policy engine
POST /v1/conformance/check x-api-key Production conformance check

New here? Start with the 5-minute quickstart, then the staged v2 integration guide (Tier 0: 15 min → Tier 2: 1 day).

⬆ Back to top


The Four Controls

Control Name Requirement
IDG-01 Identity Disclosure Gate AI agent must identify itself as automated before any PHI exchange
PDX-01 PHI Data Exchange Gate No protected data until identity is disclosed
DBC-01 Deceptive Behavior Check No synthetic voice artifacts designed to impersonate a human
EIT-01 Escalation & Intervention Human escalation path must be communicated and available

Plus one supplemental control, ATR-01 (Audit Trail Requirement) — every call must produce a machine-readable audit trace.

18-case CTS suite · same inputs → identical trace output · 270 passing in the Python test suite (18 skipped without a running server) + 66 passing in the TypeScript middleware

⬆ Back to top


Five-Layer Trust Stack

Layer Standard Role
0 NPI Gap The problem — no existing diagram addresses cross-org NPI authorization
1 STIR/SHAKEN (RFC 8224) Carrier number authentication — A/B/C attestation
2 NHID-Clinical v1.3 Behavioral disclosure baseline — 4 core controls + ATR-01
3 NHID-Auth v2 Cryptographic authorization layer — reference implementation live (CC BY 4.0)
4 FHIR AuditEvent R4 (base spec only) Healthcare-native audit logging
5 OpenTelemetry spans SIEM / enterprise observability export

Five-Layer Trust Stack diagram

Full technical architecture →

⬆ Back to top


Regulatory Alignment

Regulatory drivers mapped to controls
Regulatory Driver Specific Requirement NHID-Clinical Control
CMS-0057-F FHIR API, 72hr turnaround, 5yr retention FHIR AuditEvent + ATR-01
MACPAC May 2026 AI transparency, human review EIT-01 + ATR-01
DOJ FCA 2026 Explainability + audit trail ATR-01 + CTS evidence
State AI Laws Inspectable, auditable AI decisions IDG-01 + DBC-01
NIST CAISI 2026 Cross-org agent identity NHID-Auth v2

Full regulatory alignment matrix →

⬆ Back to top


Repository Structure

Show full directory tree
NHID-Clinical/
├── schema/          # Canonical event schema (JSON Schema Draft 2020-12)
├── src/             # Policy engine + cryptographic identity layer (pure Python)
├── tests/           # Conformance suite (YAML) + failure harness (pytest) + trace generator
│   └── demo_scenarios/  # Pre-built VAPI + Twilio test payloads
├── traces/          # 10 pre-generated failure traces
├── adapters/        # Vendor adapters — VAPI, Twilio, Vonage, Retell, Amazon Connect
├── functions/       # AWS Lambda handler
├── vendor/          # Vendor compliance dashboard (static HTML, no build step)
├── tools/           # Pilot report generator
├── docs/            # 5-minute quickstart, staged v2 integration guide
├── NHIDClinical.psm1  # PowerShell module for payer teams
└── specs/           # PDF artifacts — Core Specification + Operational Blueprint

⬆ Back to top


Quick Start

git clone https://github.com/NHID-Clinical/NHID-Clinical.git
cd NHID-Clinical
pip install -r requirements.txt
python -m pytest tests/ -v

Expected output: 270 passing in ~1.4s (requires cryptography package for identity tests; ~18 skip when no server is running).

⬆ Back to top


NHID-Auth v2 — Cryptographic Agent Identity

v1.3 verifies disclosure behavior. v2 verifies authorization: provider-signed agent credentials with NPI binding, scoped delegation chains (max 3 hops), per-agent revocation, and call-SID nonce binding. Reference implementation in src/agent_identity.py (26 tests). Released June 2026 under CC BY 4.0.

python -m pytest tests/test_identity.py -v
python examples/issue_and_verify.py

Details →

⬆ Back to top


Contributing & Pilot Partners

We are actively seeking payer and provider organizations to run a 90-day shadow evaluation — no vendor changes required.

Become a Pilot Partner →

Community · Discord · contact@nhid-clinical.org

⬆ Back to top


CC BY 4.0 · Brianna Baynard · NIST-2025-0035-0026 · nhid-clinical.org

Pinned Loading

  1. NHID-Clinical NHID-Clinical Public

    Voluntary behavioral baseline + conformance testing for transparent AI voice agents in healthcare. Open proposal with cryptographic authorization layer.

    Python 7