> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Doctor Rules Registry • AI Agent SDK

> DoctorRulesRegistry: Registry for doctor migration rules with lazy plugin discovery.

# DoctorRulesRegistry

> Defined in the [**Doctor Registry**](../modules/doctor_registry) module.

<Badge color="blue">AI Agent</Badge>

Registry for doctor migration rules with lazy plugin discovery.

## Methods

<CardGroup cols={2}>
  <Card title="register_rule()" icon="function" href="../functions/DoctorRulesRegistry-register_rule">
    Register a migration rule.
  </Card>

  <Card title="get_rules()" icon="function" href="../functions/DoctorRulesRegistry-get_rules">
    Get all registered rules, loading plugins if not already loaded.
  </Card>

  <Card title="get_rule()" icon="function" href="../functions/DoctorRulesRegistry-get_rule">
    Get a specific rule by ID.
  </Card>

  <Card title="collect_all_findings()" icon="function" href="../functions/DoctorRulesRegistry-collect_all_findings">
    Collect findings from all registered rules.
  </Card>

  <Card title="apply_all_fixes()" icon="function" href="../functions/DoctorRulesRegistry-apply_all_fixes">
    Apply fixes from all rules that have findings.
  </Card>

  <Card title="plan_fixes()" icon="function" href="../functions/DoctorRulesRegistry-plan_fixes">
    Produce a :class:`RepairPlan` describing what the doctor repair changes.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/doctor_registry.py#L19">
  `praisonaiagents/runtime/doctor_registry.py` at line 19
</Card>
