Pain
Everyday medical support built on trust, quality checkups, and personal attention to your overall wellness.

Opioid Stewardship AI Prompting Rules: The Clinical Library Playbook for Math-Driven Compliance
What Competitors Miss: Why Opioid Stewardship Prompts Must Compute Scheduled and PRN-Ceiling MME Directly From Dictation
Scribing.io Clinical Logic: Real-Time MME Computation From Dictation — A Before-and-After Decision Scenario
The Prompting Architecture: Custom Instruction Sets for Opioid Stewardship
Technical Reference: ICD-10 Documentation Standards
Implementation: EHR Integration, FHIR R4 Parsing, and State PDMP Compliance Matrix
Audit Trail Architecture: DEA, CMS, and Payer Defensibility
Deploy Opioid Stewardship Prompts in Your EHR: 15-Minute Sandbox Validation
What Competitors Miss: Why Opioid Stewardship Prompts Must Compute Scheduled and PRN-Ceiling MME Directly From Dictation
The AMA's June 2026 policy framework establishes physician oversight, evidence attribution, explainability, and annual audits of algorithmic tools as policy guardrails for AI in clinical settings. These are necessary principles. They are not operational specifications. And the distinction matters when a signed note lacking a computed MME triggers a denial cascade that costs your practice 45 minutes and your patient three days of uncontrolled pain.
Scribing.io exists to close the gap between policy aspiration and clinical execution. This playbook provides the definitive prompting rules, clinical decision logic, ICD-10 coding standards, and implementation architecture that medical directors need to operationalize opioid stewardship through AI scribes. The core problem is precise: when a physician dictates a dosage change, the AI must compute — not transcribe — the resulting MME, separate scheduled from PRN-ceiling values, and generate audit-ready documentation before the note is signed.
No competing ambient AI documentation platform we have evaluated addresses this requirement with computational specificity. The AMA does not specify it. CMS prior-authorization protocols assume it has already happened. State PDMPs cross-reference dispensed quantities against it. The DEA's audit framework examines whether it was documented contemporaneously with dose escalation. The MME number is the compliance fulcrum, and the industry standard still leaves its calculation to someone downstream — a pharmacist, a PA nurse, a billing coder — days after the note is signed.
The Anchor Truth: Opioid Compliance Is Math-Driven
The CDC's 2022 Clinical Practice Guideline for Prescribing Opioids, with reinforcing evidence reviews through 2025, established 50 MME/day and 90 MME/day as critical risk thresholds. CMS and commercial payers operationalized these thresholds into hard prior-authorization gates. State PDMPs cross-reference dispensed quantities against documented MME. Every one of these compliance requirements depends on a number being calculated correctly, at the moment of prescribing, from the exact dosage parameters the clinician verbalized.
Yet the workflow gap persists: the clinician dictates, the scribe transcribes the medication name and dose into the plan, and the MME calculation occurs retroactively — if it occurs at all. By then, the note is signed, the e-prescription is transmitted, and any discrepancy demands an addendum, a peer-to-peer call, and rework benchmarked at 30–45 minutes per incident.
This same principle of specialty-specific computational logic — where generic AI policies fail to capture the math a specialty demands — applies across disciplines. In Psychiatry, controlled substance documentation for benzodiazepines and stimulants requires analogous structured prompting with equipotency calculations. In Cardiology, anticoagulation dosing decisions and CHA₂DS₂-VASc scoring demand real-time computation from dictated clinical parameters. The underlying architecture is identical: the AI must compute, not merely transcribe.
What the AMA Framework Addresses — and What It Does Not
Gap Analysis: AMA 2026 AI Policy vs. Operational Opioid Stewardship Requirements | ||
Requirement Domain | AMA 2026 Policy Coverage | Operational Gap |
|---|---|---|
Physician oversight of AI | ✅ Explicit: "human-in-the-loop" policy | Does not specify how AI should surface calculable data (e.g., MME) to enable that oversight in real time |
Evidence-based grading in AI tools | ✅ Explicit: graded evidence hierarchies | Does not address how opioid-specific evidence (CDC thresholds, state PDMP mandates) should be encoded into scribe prompts |
Transparency of clinical logic | ✅ Explicit: "specific clinical logic" disclosure for payer tools | Applied only to payer adverse determinations — not to documentation-side AI that generates the clinical record |
AI-generated note accuracy | ⚠️ General: "training in the use of AI is highly recommended" | No specification of structured data validation (RxNorm normalization, FHIR dosage parsing, unit reconciliation) |
Real-time MME calculation from dictation | ❌ Not addressed | Core compliance requirement for DEA, CMS, commercial payers, and state PDMP programs |
Scheduled vs. PRN-ceiling MME separation | ❌ Not addressed | Payers and PDMP systems evaluate maximum possible MME, not just scheduled — PRN ceiling omission is a primary denial trigger |
Auto-documentation of naloxone co-Rx, PDMP check, opioid agreement, taper plan | ❌ Not addressed | Required by ≥40 state PDMP laws and most commercial payer PA protocols for opioid prescriptions exceeding 50 MME/day |
Audit trail with computation provenance | ⚠️ General: "auditable data demonstrating safety and efficacy" | No specification of per-encounter MME computation logs tied to the signed note |
Policy without implementation is a memorandum — not a safeguard. The information gain in this playbook is the implementation layer.
Scribing.io Clinical Logic: Real-Time MME Computation From Dictation — A Before-and-After Decision Scenario
This section provides the granular, step-by-step logic breakdown of how Scribing.io transforms a verbalized opioid dose change into audit-ready, denial-proof documentation. The scenario is not hypothetical. It is the single most common opioid documentation failure pattern we encounter in practice audits.
Before: Standard AI Scribe Workflow
A primary care physician dictates during a chronic pain follow-up:
"Increase oxycodone IR from 5 mg q6h to 10 mg q6h and allow up to two extra tablets PRN at night."
The standard AI scribe transcribes the medication change into the Assessment & Plan. The note is reviewed and signed. The downstream cascade:
No MME is calculated in the note. The signed documentation contains "oxycodone 10 mg q6h + 2 tabs PRN nocturnal breakthrough" — a text string with no milligram equivalent computation.
The e-prescription is transmitted. The pharmacy dispenses. The PDMP updates.
Three days later, the insurer flags the refill. Their automated system calculates total possible daily consumption: 10 mg × 4 (scheduled) + 10 mg × 2 (PRN) = 60 mg oxycodone/day × 1.5 conversion factor = 90 MME/day. This exceeds both the 50 MME/day PA threshold and the 90 MME/day hard stop.
Prior authorization ping-pong begins. The payer requests documentation of: risk-benefit analysis, PDMP check date, naloxone co-prescription, opioid treatment agreement status, and taper plan consideration.
None of these elements are in the signed note. The physician must draft an addendum, pull the PDMP, document retroactively, and complete a peer-to-peer review.
Patient impact: Therapy is delayed 3+ days. The patient presents to the ED for uncontrolled pain — generating a separate claim, potential opioid-related ED coding, and continuity-of-care fragmentation.
Administrative impact: Two payer denials, one addendum, one peer-to-peer call. Estimated ~45 minutes of physician rework. Compliance exposure from a signed note that lacked contemporaneous MME documentation at the time of dose escalation.
After: Scribing.io Opioid Stewardship Prompt Architecture
The same physician dictates the identical sentence. Scribing.io's stewardship prompt layer processes it through seven discrete computational steps:
Step 1 — Medication Entity Extraction & RxNorm Normalization
The NLP pipeline extracts structured entities from the dictation stream: Drug = oxycodone; Form = immediate release; Prior dose = 5 mg; New dose = 10 mg; Scheduled frequency = q6h (every 6 hours = 4×/day); PRN = up to 2 additional tablets; PRN timing = nocturnal. RxNorm CUI normalization confirms oxycodone IR 10 mg tablet (RxCUI: 1049621) and retrieves the CDC-defined conversion factor = 1.5.
Step 2 — FHIR R4 MedicationRequest Parsing
Scribing.io structures the order against the FHIR R4 MedicationRequest resource, parsing dosageInstruction components:
doseAndRate.doseQuantity: 10 mgtiming.repeat.frequency: 4 (times per day, scheduled component)timing.repeat.period: 1 dayasNeededBoolean: true (PRN component)PRN ceiling: 2 × 10 mg = 20 mg/day maximum
This parsing operates even when the connected EHR's API omits dispenseRequest or transmits incomplete strength units — a common interoperability failure in legacy EHR integrations that causes downstream MME computation errors. Scribing.io's normalization layer infers missing fields from the RxNorm-mapped formulation and dictation context, logging every inference for audit review.
Step 3 — Dual MME Calculation (The Core Math)
Real-Time Dual MME Computation: Scheduled vs. Max-PRN Ceiling | |||
Component | Daily Dose Calculation | CDC Conversion Factor | MME/day |
|---|---|---|---|
Scheduled: oxycodone IR 10 mg q6h | 10 mg × 4 = 40 mg | 1.5 | 60 MME |
Max PRN ceiling: 2 additional tabs nocturnal | 10 mg × 2 = 20 mg | 1.5 | 30 MME |
Scheduled MME total | 60 MME/day | ||
Max-PRN MME total (scheduled + PRN ceiling) | 90 MME/day |
The separation of scheduled MME from max-PRN MME is not optional. Payers compute the maximum possible daily consumption when evaluating PA thresholds. A system that reports only scheduled MME (60) would miss the 90 MME hard stop that triggers the denial. A system that reports only a single combined number (90) fails to communicate that the patient's typical daily exposure is 60 — a clinically meaningful distinction for risk stratification. Both numbers must be computed, documented, and flagged independently.
Step 4 — Threshold Flagging With On-Screen Warning
The system evaluates both computed values against payer and regulatory thresholds in a rules engine that incorporates the practice's state-specific PDMP requirements and contracted payer PA protocols:
Scheduled MME (60) exceeds 50 MME/day → triggers CMS and most commercial PA thresholds
Max-PRN MME (90) meets 90 MME/day → triggers CDC high-risk threshold and most state PDMP hard-stop mandates
An on-screen warning surfaces to the physician before the note is signed:
⚠️ MME Alert: Scheduled MME = 60/day | Max-PRN MME = 90/day. Exceeds 50 MME PA threshold. Meets 90 MME high-risk threshold. Required documentation elements auto-generated below. Review and confirm.
The warning is not a passive notification. It is a gate: the physician must acknowledge the alert and review the auto-generated documentation elements before the note can be finalized. This satisfies the AMA's "human-in-the-loop" requirement with operational specificity — the physician is overseeing a computed result, not a raw transcription.
Step 5 — Auto-Documentation of Required Compliance Elements
Scribing.io's prompt architecture auto-inserts the following into the note draft, pre-populated from the encounter context, PDMP integration, and structured data. Each element maps to a specific regulatory or payer requirement:
PDMP Check: "State PDMP reviewed [auto-populated date]. No inconsistent prescribing patterns identified." (Physician confirms or edits. Required by ≥40 state PDMP laws per SAMHSA PDMP review.)
Naloxone Co-Prescription: "Naloxone nasal spray 4 mg prescribed per CDC guideline for patients at ≥50 MME/day."
Risk-Benefit Documentation: "Risks and benefits of dose escalation from 30 MME/day (prior) to 60–90 MME/day (current) discussed with patient. Functional goals reviewed. Patient reports [current pain level] with [functional status]. Benefits of improved pain control for [specific ADL goals] judged to outweigh risks at this time."
Opioid Treatment Agreement: "Current opioid treatment agreement on file, signed [date from chart]. Reviewed with patient today."
Taper Plan Consideration: "Taper discussed. Current clinical status supports maintenance at adjusted dose with reassessment in [interval]. Taper plan to be initiated if functional goals not met or if adverse risk indicators emerge."
Every auto-generated element is editable. The physician retains full control over clinical language and clinical judgment. The system provides the structure and regulatory scaffolding; the physician provides the clinical decision.
Step 6 — ICD-10 and CPT Coding Suggestions
Based on the documented encounter context, Scribing.io suggests applicable codes:
Z79.891 — Long term (current) use of opiate analgesic (required secondary code for any patient on chronic opioid therapy >90 days)
G2211 — Complex E/M visit add-on (where the prolonged opioid stewardship discussion, dose-adjustment decision-making, multi-system risk evaluation, and care coordination meet medical decision-making complexity criteria)
Step 7 — Audit Trail Storage
The complete computation — dictation transcript, extracted entities, RxNorm CUI mapping, FHIR-structured dosage, conversion factor source, scheduled MME, max-PRN MME, threshold evaluation results, and auto-documentation elements — is stored as a structured JSON object linked to the encounter ID. This audit trail is immutable, timestamped, and retrievable for DEA audit, payer dispute, malpractice defense, or internal compliance review. It is not embedded in the clinical note (which would clutter the medical record); it is stored in Scribing.io's compliance layer and accessible via the practice's administrative dashboard.
Net result: Claim passes on first submission. Zero addenda. Zero peer-to-peer calls. The provider saves approximately 6 minutes on the encounter itself (through auto-documentation of stewardship elements that would otherwise require manual entry) and avoids the 45-minute rework cascade entirely.
The Prompting Architecture: Custom Instruction Sets for Opioid Stewardship
Medical directors deploying Scribing.io's opioid stewardship module configure custom instruction sets that encode their practice's specific compliance requirements. These are not generic prompts. They are deterministic rules that constrain the AI's behavior at the medication-parsing layer.
Core Custom Instructions (Mandatory for All Opioid Stewardship Deployments)
ALWAYS compute MME from verbalized dosage changes. When any Schedule II–III opioid is mentioned with a dose, frequency, or quantity change, extract the medication entity, normalize against RxNorm, retrieve the CDC conversion factor, and calculate both scheduled MME and max-PRN MME. Display both values in the note draft.
ALWAYS separate scheduled and PRN-ceiling calculations. Report scheduled MME and max-PRN MME as distinct values. Never report only a single combined figure.
ALWAYS flag threshold crossings. Evaluate computed MME against: 50 MME/day (standard PA threshold), 90 MME/day (high-risk threshold), and any practice-configured custom thresholds. Surface on-screen warnings for any crossing.
ALWAYS auto-insert compliance documentation scaffolding when computed MME exceeds 50 MME/day: PDMP check confirmation, naloxone co-prescription, risk-benefit statement template, opioid agreement reference, and taper plan consideration.
ALWAYS log computation provenance. Store the full extraction-normalization-computation chain as a structured audit artifact linked to the encounter.
NEVER sign or finalize a note containing an opioid dose change without displaying the MME computation to the physician. The MME alert is a required gate, not an optional notification.
Configurable Instructions (Practice-Specific)
Configurable Opioid Stewardship Parameters | ||
Parameter | Default Value | Configuration Options |
|---|---|---|
PA threshold (lower) | 50 MME/day | Adjustable per payer contract (e.g., 40 MME for certain Medicaid MCOs) |
High-risk threshold | 90 MME/day | Adjustable per state law or institutional policy |
PDMP auto-query | Enabled (where state API permits) | Manual confirmation mode for states without API access |
Naloxone co-Rx trigger | ≥50 MME/day | Adjustable; some states mandate at any opioid prescription |
Conversion factor source | CDC 2022 table | Configurable for CMS-specific or state-specific factor tables |
Multi-opioid MME aggregation | Enabled | Computes total MME across all active opioid prescriptions, not just the current order |
Benzodiazepine co-Rx flag | Enabled | Flags concurrent benzodiazepine prescriptions per FDA boxed warning requirements |
G2211 suggestion logic | Suggest when stewardship discussion ≥ 5 minutes documented | Adjustable complexity criteria per practice billing policy |
Technical Reference: ICD-10 Documentation Standards
Opioid stewardship encounters generate coding complexity that is a primary source of denials when documentation lacks specificity. Scribing.io's coding suggestion engine enforces maximum specificity by mapping documented clinical elements to the most granular applicable ICD-10-CM codes and flagging under-coded encounters before submission.
Primary Code Set for Chronic Opioid Therapy Encounters
Z79.891 is a mandatory secondary code for any encounter involving chronic opioid therapy management. Scribing.io auto-suggests this code whenever the system detects an active opioid prescription exceeding 90 days' duration in the medication list. Failure to include Z79.891 is the single most common coding omission in opioid stewardship encounters — and it is the code that CMS and commercial payer algorithms query first when auditing opioid prescribing patterns. G89.4 (Chronic pain syndrome) captures the underlying pain condition with greater specificity than unqualified pain codes, supporting medical necessity for ongoing opioid therapy. M54.50 (Low back pain, unspecified) or its lateralized variants should be specified to the highest anatomical detail documented in the encounter. Scribing.io prompts the physician to confirm laterality, acuity, and etiology to reach fifth- or sixth-character specificity where possible.
Opioid Use Disorder and Risk Monitoring Codes
unspecified; F11.20 Opioid dependence
F11.20 (Opioid dependence, uncomplicated) must only be applied when the clinical record supports a diagnosis of opioid use disorder per DSM-5-TR criteria. Scribing.io's coding engine does not auto-suggest F11.20 based solely on MME thresholds or prescription duration. It is surfaced only when the physician documents clinical indicators: loss of control over use, continued use despite harm, tolerance beyond therapeutic expectations, or withdrawal management. The distinction between long-term therapeutic use (Z79.891) and opioid dependence (F11.20) is clinically and legally significant — conflating them creates audit liability and potential patient harm through insurance discrimination.
Z71.51 applies when the encounter includes counseling regarding substance misuse risk — distinct from a diagnosed substance use disorder. This code is appropriate when the physician documents a risk discussion prompted by MME threshold crossing, aberrant PDMP findings, or patient-reported concerns. Scribing.io suggests Z71.51 when the auto-generated risk-benefit documentation includes counseling language and the encounter does not support F11.20.
How Scribing.io Prevents Coding Denials
Three mechanisms enforce coding accuracy:
Specificity validation. The system flags any ICD-10 code that terminates at a nonspecific level when the documented encounter contains information sufficient for greater specificity. Example: M54.5 (low back pain) without laterality when the note documents "left-sided lumbar pain" — the system prompts correction to M54.52.
Code-documentation concordance. Every suggested code is linked to specific documentation elements in the note. If the physician removes or modifies the supporting documentation, the code suggestion updates or withdraws. This prevents orphaned codes — codes present on the claim without supporting documentation in the note.
Payer-specific edit logic. The coding engine applies CMS National Correct Coding Initiative (NCCI) edits and known commercial payer bundling rules to flag code combinations that will trigger automated denials before submission.
Implementation: EHR Integration, FHIR R4 Parsing, and State PDMP Compliance Matrix
Scribing.io's opioid stewardship module operates within existing EHR environments through FHIR R4 API integration. The implementation does not require EHR replacement, custom builds, or workflow disruption. The module layers onto the ambient documentation workflow the physician already uses.
FHIR R4 Integration Points
FHIR R4 Resources Used in Opioid Stewardship Processing | ||
FHIR R4 Resource | Stewardship Function | Fallback When EHR API Is Incomplete |
|---|---|---|
| Structured dose, frequency, PRN parsing | Dictation-derived entity extraction with RxNorm normalization |
| Quantity, days supply, refill validation | Inferred from dose × frequency × documented interval; flagged for physician confirmation |
| Active medication list for multi-opioid MME aggregation | Patient-reported medication reconciliation from dictation; cross-referenced with PDMP where available |
| Risk-benefit documentation pre-population | Extracted from dictated clinical findings |
| Opioid agreement, prior PDMP checks | Manual confirmation prompt to physician |
The fallback mechanisms are critical. Legacy EHR installations — particularly older versions of Epic, Cerner (now Oracle Health), and eClinicalWorks — frequently transmit incomplete MedicationRequest resources that omit doseAndRate structured fields or return strength as free text rather than coded quantities. Scribing.io's normalization layer handles these gaps by cross-referencing the dictation-derived medication entity against RxNorm and resolving ambiguities deterministically. Every inference is logged and flagged in the audit trail.
State PDMP Compliance
As of Q1 2026, 49 states and the District of Columbia mandate PDMP checks for opioid prescriptions, with varying trigger thresholds (new patient vs. every encounter vs. MME-dependent), check frequency requirements, and documentation standards. Scribing.io maintains a state-specific PDMP rules engine updated quarterly that configures auto-query timing, documentation language, and alert thresholds to match the practice's licensing jurisdiction. For practices operating across state lines (telehealth, multi-site), the system applies the most restrictive applicable standard and documents which state's requirements governed the encounter.
Audit Trail Architecture: DEA, CMS, and Payer Defensibility
The audit trail is the compliance backbone. Without it, every computed MME, every auto-generated compliance element, and every coding suggestion is an undocumented assertion. With it, the practice holds a timestamped, immutable chain of evidence linking the physician's dictation to the computed clinical output.
Audit Trail Data Structure (Per Encounter)
Dictation timestamp and transcript segment containing opioid-related medication discussion
Extracted medication entities with confidence scores
RxNorm CUI mapping with source version identifier
FHIR R4 structured dosage (as parsed or inferred)
Conversion factor with source citation (CDC 2022 table version)
Computed scheduled MME and max-PRN MME with calculation formula
Threshold evaluation results (which thresholds crossed, which rules applied)
On-screen warning displayed (timestamp, content, physician acknowledgment timestamp)
Auto-generated documentation elements (template used, pre-populated fields, physician modifications)
Coding suggestions presented and accepted/modified/rejected
Final signed note hash linking to the computation chain
This architecture satisfies the DEA's 21 CFR 1304.04 requirements for contemporaneous record-keeping of controlled substance prescribing decisions. It also provides the evidentiary foundation for payer appeals: when a denial cites insufficient documentation, the practice can produce the audit record demonstrating that all required elements were documented at the time of prescribing — not retroactively added in an addendum.
For medical malpractice defense, the audit trail demonstrates that the physician was presented with computed risk data (the MME values and threshold warnings) and made an informed clinical decision — a far stronger defensive position than a note that contains only a transcribed medication order without evidence of risk evaluation.
Deploy Opioid Stewardship Prompts in Your EHR: 15-Minute Sandbox Validation
Bring your top 10 opioid regimens and 3 recent notes. In 15 minutes, we'll plug them into your EHR sandbox, show live speech-to-MME math (scheduled + PRN), auto-insert threshold/PDMP/naloxone language, and map codes that reduce denial risk while returning 4–8 minutes per visit — without changing clinician workflow. Walk away with a ready-to-deploy opioid stewardship prompt pack tailored to your formulary and state PDMP.
Schedule your 15-minute sandbox validation at Scribing.io →
The prompt pack includes: pre-configured custom instructions for your state's PDMP requirements, conversion factor tables mapped to your formulary, threshold settings aligned with your top five contracted payers, and documentation templates that satisfy both CMS and commercial PA requirements. Every element is editable. Every computation is auditable. Every clinical decision remains yours.


