---
title: "Record formulary, compounding, and shortage notes so AI answers from your pharmacy"
description: "Keep payer patterns, validated compounding protocols, shortage substitutes, and state rules in a sourced file so AI answers from your pharmacy's record."
canonical: "https://scalewithsearch.com/articles/ai-for-pharmacists"
date: "2026-01-28"
modified: "2026-09-25"
---
## Site navigation

- [Scale With Search](https://scalewithsearch.com/)
- Real estate
  - Real estate
    - [Real estate](https://scalewithsearch.com/for/real-estate)
- Work
  - Start here
    - [Send your brief](https://scalewithsearch.com/work#send-your-brief)
    - [Prepare your six-question brief](https://scalewithsearch.com/work#prepare-your-six-question-brief)
  - Build
    - [Site build, content library with SEO, signal desk](https://scalewithsearch.com/work)
- For your business
  - Trades and home services
    - [Auto body and collision shops](https://scalewithsearch.com/for/auto-body-and-collision-shops)
    - [Foundation and home repair contractors](https://scalewithsearch.com/for/foundation-and-home-repair)
    - [Garage door and fencing contractors](https://scalewithsearch.com/for/garage-door-and-fencing-contractors)
    - [HVAC contractors](https://scalewithsearch.com/for/hvac-contractors)
    - [Janitorial and commercial cleaning companies](https://scalewithsearch.com/for/janitorial-and-commercial-cleaning)
    - [Locksmiths](https://scalewithsearch.com/for/locksmiths)
    - [Moving companies](https://scalewithsearch.com/for/moving-companies)
    - [Pest control companies](https://scalewithsearch.com/for/pest-control-companies)
    - [Plumbing and electrical contractors](https://scalewithsearch.com/for/plumbing-and-electrical-contractors)
    - [Restoration and water or fire damage companies](https://scalewithsearch.com/for/restoration-and-water-fire-damage)
    - [Roofing companies](https://scalewithsearch.com/for/roofing-companies)
    - [Towing companies](https://scalewithsearch.com/for/towing-companies)
    - [Tree services and landscaping companies](https://scalewithsearch.com/for/tree-services-and-landscaping)
    - [Solar installers](https://scalewithsearch.com/for/solar-installation)
    - [General contractors](https://scalewithsearch.com/for/general-contractors-and-construction)
    - [Paving, concrete, and flooring contractors](https://scalewithsearch.com/for/paving)
  - Practices and professional services
    - [Bookkeeping and tax practices](https://scalewithsearch.com/for/bookkeeping-and-tax-practices)
    - [Dental practices](https://scalewithsearch.com/for/dental-practices)
    - [Family and criminal defense law firms](https://scalewithsearch.com/for/family-and-criminal-defense-law-firms)
    - [Med spas and aesthetics practices](https://scalewithsearch.com/for/med-spas-and-aesthetics)
    - [Personal injury law firms](https://scalewithsearch.com/for/personal-injury-law-firms)
    - [Veterinary clinics](https://scalewithsearch.com/for/veterinary-clinics)
    - [Gyms and fitness studios](https://scalewithsearch.com/for/fitness)
    - [Therapy and outpatient health practices](https://scalewithsearch.com/for/therapy-and-outpatient-health)
    - [Medical billing companies](https://scalewithsearch.com/for/medical-billing)
    - [Insurance agencies](https://scalewithsearch.com/for/insurance-agencies)
    - [Financial advisors](https://scalewithsearch.com/for/financial-advisors)
    - [Property management companies](https://scalewithsearch.com/for/property-management)
    - [Recruiting and staffing agencies](https://scalewithsearch.com/for/recruiting-and-staffing)
    - [Architects and interior designers](https://scalewithsearch.com/for/architects-and-interior-designers)
    - [Logistics and supply chain companies](https://scalewithsearch.com/for/logistics-and-supply-chain)
  - Agencies, MSPs, and manufacturing
    - [IT and managed service providers](https://scalewithsearch.com/for/it-and-managed-service-providers)
    - [Machine shops and precision manufacturers](https://scalewithsearch.com/for/machine-shops-and-precision-manufacturing)
    - [Marketing agencies and freelancers](https://scalewithsearch.com/for/marketing-agencies-and-freelancers)
    - [SEO agencies and consultants](https://scalewithsearch.com/for/seo-agencies-and-consultants)
    - [Small manufacturers and fabricators](https://scalewithsearch.com/for/small-manufacturers-and-fabricators)
  - Restaurants, shops, studios, and nonprofits
    - [Restaurants and hospitality businesses](https://scalewithsearch.com/for/restaurants-and-hospitality)
    - [Retail stores and ecommerce sellers](https://scalewithsearch.com/for/retail-and-ecommerce)
    - [Photographers, event planners, and travel agents](https://scalewithsearch.com/for/photographers)
    - [Churches and nonprofits](https://scalewithsearch.com/for/churches-and-nonprofits)
  - [All industries](https://scalewithsearch.com/for/)
- Learn
  - For your office
    - [Office job guides](https://scalewithsearch.com/guides/)
    - [Browser calculators](https://scalewithsearch.com/tools/)
  - Start here
    - [How it works](https://scalewithsearch.com/how-it-works)
    - [Free Starter Kit](https://scalewithsearch.com/kit/business-memory-starter-kit.zip)
    - [Synthetic specimen](https://scalewithsearch.com/specimen/working-session-specimen.zip)
  - Guides
    - [The Complete Guide to Business Memory for AI Agents](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [The Complete Small-Business Guide to AI Agent Governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [The Complete Guide to Leaving Vendor AI Memory](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - Articles by cluster
    - [Business memory](https://scalewithsearch.com/articles/business-memory-for-ai-agents-guide)
    - [Agent governance](https://scalewithsearch.com/articles/ai-agent-governance-guide-small-business)
    - [Migration and ownership](https://scalewithsearch.com/articles/leaving-vendor-ai-memory-guide)
  - For machines
    - [llms.txt](https://scalewithsearch.com/llms.txt)
    - [llms-full.txt](https://scalewithsearch.com/llms-full.txt)
    - [Machine view](https://scalewithsearch.com/?view=machine)
- Company
  - Evidence
    - [Proof](https://scalewithsearch.com/proof)
  - Company
    - [About](https://scalewithsearch.com/about)

# Record formulary, compounding, and shortage notes so AI answers from your pharmacy.

A prescription arrives for warfarin with aspirin. The pharmacist holds it and calls the prescriber to confirm the intent. An hour later, a different prescriber sends simvastatin 80 mg for a patient who already takes amlodipine. Since the FDA safety communication of 2011-06-08, labeling limits simvastatin to 20 mg a day with amlodipine. The pharmacist catches that one too. By lunch, the pharmacist has stopped four risky combinations.

That is daily pharmacy practice. You verify doses, spot interactions, work through formularies, counsel patients, and manage prior authorizations. Each task needs current, accurate knowledge.

A general AI assistant gives general drug information. It can say that NSAIDs and ACE inhibitors interact. It cannot remember that one payer requires step therapy for biologics. It does not know that last month's pediatric suspension worked at a 2 percent concentration. A practice file can hold that knowledge. This article shows what goes in the file, what stays out, and where the assistant stops.

## Two kinds of knowledge

A pharmacy runs on two kinds of knowledge. The first is published: drug monographs, interaction databases, payer formularies, and state law. The second is local: what you learned about how payers behave, which compounding formulas you validated, and which substitutes worked in the last shortage.

The practice file holds the local knowledge, with a source for each line. It points to the published sources and does not replace them. Your interaction checking stays in your pharmacy system and your clinical references. The file answers questions such as "What did we do the last time this happened?"

## What the practice file holds

| Section | Contents |
|---|---|
| Payer patterns | Formulary notes, step therapy rules, prior authorization requirements, the fastest path for each payer |
| Compounding library | Each validated formula: ingredients, base, concentration, beyond-use date, storage, flavoring, the reference it rests on |
| Shortage playbook | Each shortage: date, the drug, the substitutes used, prescriber agreement, payer coverage, outcome |
| Monitoring rules | High-risk drugs and the monitoring your pharmacy checks before each fill |
| Law and policy | State rules for transfers, controlled substances, immunizations, and prescribing authority; company or hospital policy |
| Intervention patterns | The kinds of errors you catch, and the check that caught them |

## Inspect a sample file

This is a synthetic file. Payer names are placeholders, and the rule lines show format, not real payer policy.

```markdown
# Pharmacy practice file

updated:: 2026.09.25
owner:: pharmacist in charge

## Payer A
- Biologics: step therapy; document failure of the preferred agent first.
- Prior auth: fax requests before 2 p.m. get same-day review.
  source:: pharmacy PA log, 2026 Q2

## Payer B
- Rejects PA requests without the ICD-10 code in the diagnosis field.

## Compounding: oral suspension from tablets (example drug X)
concentration:: 2 percent
base:: <commercial suspending vehicle>
beyond_use_date:: per <USP chapter or stability reference>
flavor:: <agent> masks bitterness; no effect on stability per reference
verified_by:: pharmacist initials, 2026-08-14

## Shortage playbook
- 2025: ACE inhibitor shortage; switched to an alternative agent in the
  same class after prescriber approval.
- Albuterol inhalers: recorded which products stayed in stock and which payers covered them.
```

## Load the file each session

Claude Code reads a file named `CLAUDE.md` from the working folder when a session starts ([Claude Code memory documentation](https://code.claude.com/docs/en/memory), checked 2026.09.25). Put the practice file there, or point to it. Then ask the question directly. "What did we use for an oral suspension of drug X?" returns your validated formula and its reference, not a generic answer.

## Keep up with formulary and prior authorization patterns

You work with a dozen plans. Each has its own formulary, prior authorization rules, and step therapy protocols. One plan covers an inhaler; another requires the generic first. Plans update formularies during the year, add drugs, and move drugs between tiers. You learn the changes through rejected claims and new PA requirements.

Part D changed in 2025. Under the Inflation Reduction Act, the coverage gap phase is gone and annual out-of-pocket drug costs have a cap. Remove any "donut hole" guidance from counseling notes and templates.

Record each payer pattern with its source: the payer bulletin, or your own PA log with a date. When a prescription comes in, the file tells you whether to call the prescriber for an alternative. You learn it before the patient waits at the counter.

## Keep a compounding library

Compounding needs precision. You have developed formulas that work: concentrations, bases, stability data, and flavorings that mask taste without affecting the drug.

A pediatrician calls for a suspension of a drug that comes only in tablets. You made it six months ago. You know which base works and what concentration suits pediatric doses. You do not remember the exact beyond-use date. The notes sit in a binder or a folder somewhere.

The compounding library holds each validated formula with its reference and verification. Ask the assistant for the formula, then verify it against the reference and your pharmacy's compounding records before you compound. The assistant finds the record. The pharmacist confirms it.

## Build a shortage playbook

Shortages happen often. A manufacturer stops production, a supply chain breaks, or an FDA inspection closes a facility. You learn when the wholesaler shows zero stock.

You need a substitute fast: same therapeutic class, similar dosing, covered by the payer, and in stock. You solved this before. When an ACE inhibitor was short, you moved patients to an alternative with prescriber approval. When albuterol inhalers were scarce, you found which products stayed available.

Those answers usually live nowhere. The shortage playbook keeps them. The next time a drug goes unavailable, you check what worked, and you record new solutions as you find them.

## Record monitoring rules and counseling needs

Warfarin needs INR monitoring. Lithium needs levels and kidney function. Methotrexate needs liver function and blood counts. Vancomycin needs drug levels and kidney monitoring. That is core knowledge.

What you also know are the patients who miss monitoring, need counseling on the same point each month, or have trouble swallowing large tablets. That knowledge matters. One patient cannot swallow large tablets, and a new prescription is extended-release, so it cannot be crushed. You call the prescriber for an alternative before the patient leaves.

That is patient information, and it belongs in the pharmacy system's patient profile and counseling notes, not in the practice file. The practice file holds the rule: "Check whether a new solid oral dose can be crushed when the profile notes swallowing difficulty." The patient profile holds the flag.

## Record state law and policy with sources

Rules vary by state. Transfer rules differ. Controlled substance requirements differ. Immunization scope differs. Some states let pharmacists prescribe certain drugs under statewide protocols; others do not.

If you work across state lines, through telepharmacy or near a border, you track several sets of rules. Your employer also has policy. Retail chains have protocols beyond the law. Hospitals have formularies and restriction policies. Long-term care facilities have their own documentation needs.

Record each rule with the statute, board rule, or policy number and the date you checked it. When the board changes a rule, update the line and keep the old one marked as superseded.

## Keep patient data out of the file

Protected health information does not go into the practice file. It also stays out of AI sessions unless your organization has a HIPAA business associate agreement with the AI vendor. That agreement must cover the product you use.

The file stays on your computer, but the text Claude Code reads goes to Anthropic for processing. Retention and training terms depend on your plan. Ask questions in general terms: the drug, the dose, the payer, the clinical pattern. Keep names, dates of birth, and prescription numbers in the pharmacy system. The guide on [what client data belongs in AI agent memory](/articles/client-data-in-ai-agent-memory) gives a field-by-field sorting test.

## Know where the assistant stops

The assistant retrieves and drafts. The pharmacist verifies and decides. Set these limits:

1. The assistant does not replace your interaction screening or your clinical references.
2. It does not approve a substitution. The prescriber and the pharmacist do.
3. It stops when a compounding formula has no reference or verification line.
4. It stops when a rule has no source, and asks for the statute or policy.

The file is a record of what your pharmacy decided. It is not the authority for a clinical fact. The guide [RAG is retrieval, business memory also needs authority](/articles/rag-vs-business-memory) explains why a retrieved note needs a source before anyone relies on it. Some steps should stay manual entirely; see [when an AI workflow should stay manual](/articles/when-an-ai-workflow-should-stay-manual).

## Keep the file current

When you solve a problem, record it: a shortage substitute, a new compounding formula, a faster PA path. When a payer or board changes a rule, update the line with the new source and date. An [AI correction log](/articles/ai-correction-log-template) keeps the history, so an old rule never comes back as a current answer.

Review the whole file each quarter against current payer bulletins and board rules. Record the review date at the top of the file.

----

```text
                  .|########||.                                       .|########||.                                       .|########||.
               |##||.      .||##|.                                 |##||.      .||##|.                                 |##||.      .||##|.
             |#|.              .|#|.                             |#|.              .|#|.                             |#|.              .|#|.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
        .#.                          .#|                    .#.                          .#|                    .#.                          .#|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
      |#             ......             #|                |#             ......             #|                |#             ......             #|
     .#           ||#########|           #|              .#           ||#########|           #|              .#           ||#########|           #|
    .#.         |######||######|.        .#.            .#.         |######||######|.        .#.            .#.         |######||######|.        .#.
    #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#            #.        .##|###|##|#|######|        .#
   ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||          ||        |##|#||||||||||||#||#|        ||
   #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.         #        |#||||||||||||||||||||#|        #.
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #        #       .#||||||||||||||||||||||||#|       #
 ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||      ||   ....|||#||||||##|#|||#|#||##||||....|. ||
 #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#      #.  .  ....|#  ....#|||   ||| .#|||  ....#. .#
 #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.     #   .  ||||#| .#####||  . .#| .#|||  ||||#   #.
.|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||    .|   |||||  #. |#|||||. ||  #. |#||. .|||||   ||
||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||    ||   |....  #. ....|#.      |. ...|. ....||   ||
#.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#    #.  .||||||##||||||##||####|||||||#||||||#|   .#
#    .||####|###########################|.     #    #    .||####|###########################|.     #    #    .||####|###########################|.     #
#      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #    #      .#||||||.#.|| # |. ..# #| #|||||#|      #
#      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #    #      .#|||||| ..  |# ## |#| ...#|#|||#|      #
#      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #    #      .#|||#|# .# .#| #| ##|.#..#|||||#|      #
#      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #    #      .#||||||############|######|||||#|      #
#   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #    #   |...||#||||||#||||#|#||||||#|||||#||| |.|  #
#. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#    #. .. ||||# .|||##|.  |#| .|| || .|||#. #|  # .#
|| |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||    || |  ...||  ...##| |  #| .|. |. #####  .. .| ||
|| ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||    || ||||| || ||||#|  .  |. |. |#. ||||| |#| || ||
.# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.    .# |.....#|....|#.||||.|||##.|#|....||.#||.#. #.
 #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#      #.|||||||#############################| ||| .#
 ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||      ||       ##||#||#||||||#||#||#||#||##.      ||
  #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #        #       .#|||||||||#||#|||||||||||#|       #
  ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||        ||       |#||||||||||||||||||||||#|       ||
  .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.        .#        |#||||||||||||||||||||#|        #.
   ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||          ||        |#||||||||||||||||||#|        ||
    #.        .######|#|#########|        .#            #.        .######|#|#########|        .#            #.        .######|#|#########|        .#
    .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.            .#.         |#####||||#####|         .#.
     |#           ||########||           #.              |#           ||########||           #.              |#           ||########||           #.
      |#             ......             #|                |#             ......             #|                |#             ......             #|
       |#.                            .#|                  |#.                            .#|                  |#.                            .#|
        |#.                          .#.                    |#.                          .#.                    |#.                          .#.
         .#|                        |#.                      .#|                        |#.                      .#|                        |#.
           |#|                    |#|                          |#|                    |#|                          |#|                    |#|
            .|#|.              .|#|.                            .|#|.              .|#|.                            .|#|.              .|#|.
               |##||.      .||##|                                  |##||.      .||##|                                  |##||.      .||##|
                 .||########||.                                      .||########||.                                      .||########||.

Scale With Search  2026  [scalewithsearch.com](https://scalewithsearch.com)
```
