pg2342-hub

Referral To Order Agent — Development skill for Claude Code

Development community

Turns faxed DME referrals for CPAP, oxygen and CGM into order packets: Claude extracts fields with page citations, checks them against CMS coverage rules and the NPPES registry, and drafts requests fo.

How to install Referral To Order Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pg2342-hub/referral-to-order-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Referral To Order Agent does

Turns faxed DME referrals for CPAP, oxygen and CGM into order packets: Claude extracts fields with page citations, checks them against CMS coverage rules and the NPPES registry, and drafts requests for anything missing.

Alternatives in Development

  • SwiftUIShaders — 41 hand-curated drop-in SwiftUI Metal shader effects — holographic foil, kaleidoscope, magnetic fields, glitch 353 ★
  • Citation Validation — Verify all citations in a research document for accuracy, completeness, and quality 228 ★
  • Pubmed MCP Server — Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP 150 ★

README

referral-to-order-agent

[![ci](https://github.com/pg2342-hub/referral-to-order-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/pg2342-hub/referral-to-order-agent/actions/workflows/ci.yml)

**Demo: https://pranavgudise.dev/referral-to-order-agent/**

A doctor's office faxes a referral for a CPAP, home oxygen or a glucose monitor: a written order, a visit note, a test report, sometimes a second fax a day later. Before anything ships, a home medical equipment supplier has to read every page, check the paperwork against the payer's coverage rules, and either build the order or tell the office exactly what is missing. This agent does that reading. Claude reports every field with the fax, page and exact words it read it from; code checks each quote on its page, refuses any page that belongs to another patient, and applies the coverage rules, the eligibility response and the supplier's payer rules. The outcome is one of five next steps: ready to schedule, a prior auth packet, a fax back to the office listing exactly what is missing, clinical review, or an eligibility hold. Nothing is sent without a person.

Results

30 synthetic referrals (12 CPAP or bilevel, 9 oxygen, 9 CGM), each one to five fax pages, three runs each. A referral passes when the next step is right, every question to the office is right, and the key fields carry evidence that checks out on its page. The gate is 27 of 30 on every run with no critical failure, where a critical failure is moving a referral toward an order or prior auth that its documentation would not support.

Reader Runs passing Critical failures Gate
Template form reader (labeled boxes on the first fax, keyword checks) 13 of 30 on each run 1 on each run (an oxygen test six days before discharge, with the discharge date only in the note) No-go
Claude (claude-opus-5-5) under the same guardrails 30 of 30 on each run 0 Go

Mean cost $0.067 and median 11 seconds per referral o