Technical overview of the Medmonk Prior Authorization AI platform — system design, data flows, infrastructure requirements, security model, and build roadmap.
A multi-agent AI pipeline behind the Medmonk portal. The prescriber's office uploads once; six agents handle everything from OCR to payer submission and return a single status back to Medmonk.
| Layer | Technology |
|---|---|
| document_intake | eFax inbound + cloud OCR (Textract / Document AI) |
| ai_extraction | GPT-4o via Azure OpenAI or self-hosted LLM |
| payer_rules_db | SQL + JSONB policy configs per payer / drug |
| validation_engine | NPI / NDC checks; dosing & completeness rules |
| packet_assembly | PDF generation with payer-specific templates |
| submission_layer | FHIR R4 PAS primary; eFax API fallback |
| Layer | Technology |
|---|---|
| database | PostgreSQL — PA lifecycle schema + audit log |
| backend_api | REST API (FastAPI / Node.js) |
| frontend | Web dashboard (React or lightweight JS) | auth | OAuth 2.0 + RBAC; JWT-based sessions |
| infra | AWS / Azure HIPAA-eligible services |
| observability | Cloud logs + metrics (CloudWatch / Datadog) |
All endpoints: Authorization: Bearer <JWT> · TLS 1.3 · role-scoped access.
| Integration | Purpose | Protocol | Phase |
|---|---|---|---|
| eFax API | Inbound PA faxes and outbound fallback submission | REST / HTTPS | Phase 1 |
| Azure OpenAI / LLM | Clinical note extraction and field structuring | REST / HTTPS | Phase 1 |
| CMS NPI Registry | NPI verification | REST (public) | Phase 1 |
| FDA NDC Directory | NDC validation | REST (public) | Phase 1 |
| FHIR PAS (Da Vinci) | ePA submission for enabled payers | FHIR R4 / HTTPS | Phase 2 |
| Payer Portals | Automated browser-based portal submission | Web automation | Phase 2+ |