Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.medera.info/llms.txt

Use this file to discover all available pages before exploring further.

Category: Documentation & Coding  ·  Signals: Referral reason · Chart context · Network logic · Closed-loop confirmations
Generate complete, contextual referral letters from chart and visit context.

Overview

The Referral Generator drafts a complete, contextual letter from the chart and the referral reason. It applies in-network and partner-preference rules and attaches the right context — prior care, screeners, labs. Every referral is tracked to closed-loop confirmation. Stalled referrals are surfaced to the care team with rationale.

How this agent works

Configuration

This agent takes the following configuration from your practice settings:
  • Specialty referral templates
  • In-network and partner referral graph
  • Attachment policy (notes, screeners, labs)
  • Closed-loop tracking and reminders

Execution

At runtime, the agent executes the following steps:
  1. Classifies the referral reason and required content
  2. Pulls chart context, prior care, and relevant attachments
  3. Applies in-network and partner-preference rules
  4. Drafts the letter against the specialty template
  5. Tracks receipt, scheduling, completion, and documentation

Composable experts

The Referral Generator Agent bundles the following experts from the registry:
ExpertRole
Referral Reason ExpertReason classification and required-content mapping
Chart Context ExpertRelevant prior care, current state, and attachments
Network Logic ExpertIn-network and partner-preference rules
Closed-Loop Audit ExpertReceipt, scheduled, completed, documented

Typical use cases

  • Generate a complete referral letter in 60 seconds, not 20 minutes
  • Route referrals to the right specialist by network and capacity
  • Track closed-loop confirmation and surface stalled referrals
  • Attach the right notes and screeners every time

Compliance & safety guarantees

  • Every referral letter is anchored to chart spans and screener scores
  • Closed-loop tracking is mandatory and documented
  • Network preferences are configured by the practice, not the model

Tags

Referral · Letter · Closed-loop · Network

Agentic Framework Overview

Learn how agents compose with experts and the orchestrator.

Expert Registry

Browse the typed expert registry agents bundle.

Quickstart

Send your first message to an agent.

A2A Protocol

Learn how agents talk to each other.