Standard Medical Prescription (Rx Pad) PDF Template — Multi-Engine Code Generator

An authentic clinical prescription pad (Rx) built with e-prescribing Code-128 barcode routing, structured patient vitals fields, allergy alert pills, repeating medication order cards, DAW dispensing controls, and physician signature capture.

Customize Visually in Studio | Export Full Source Code (22 Libraries) | Open Sample PDF

Standard Medical Prescription (Rx Pad) PDF template preview

Generate Standard Medical Prescription (Rx Pad) Programmatically (Code & JSON Schema)

Bind dynamic JSON data and compile this layout into standalone production code for @react-pdf/renderer, pdf-lib, Python ReportLab, PHP Dompdf, C# QuestPDF, and 17 more engines.

React / TypeScript (@react-pdf/renderer) Excerpt

import React from 'react';
import { Document, Page, View, Text, Image, TextInput, FieldSet, Checkbox, Svg, Rect, Path, StyleSheet, Font } from '@react-pdf/renderer';

// This code is generated using codepdf.dev

Font.registerHyphenationCallback((word) => [word]);

// Document-wide defaults configured in the editor.
export const DOCUMENT_DEFAULTS = {
  "fontFamily": "Helvetica",
  "fontSize": 12,
  "textColor": "#000000",
  "locale": "en-US",
  "currency": "USD",
  "currencyDisplay": "symbol",
  "timeZone": "GMT",
  "dateFormat": "DD/MM/YYYY",
  "timeFormat": "HH:mm",
  "showPageNumbers": false,
  "pageNumberFormat": "{{page}} / {{total}}",
  "pageNumberPosition": "center",
  "compress": true
};

// … (1344 more lines in full generated file)

Python (ReportLab) Excerpt

from reportlab.lib.colors import HexColor
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics

# This code is generated using codepdf.dev

class _NumberedCanvas(canvas.Canvas):
    _DOC_KEYS = frozenset({
        "_page_states", "_page_stamps", "_active_page", "_num_pages",
        "AcroForm", "_doc", "_filename", "_destinations", "_outlines",
        "_annotationCount", "_extgstate", "_namedCB", "_onPage",
    })

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self._page_states = {}
        self._page_stamps = {}
        self._active_page = 1
        self._num_pages = 1

    def _save_active_state(self):
        self._page_states[self._active_page] = {
# … (597 more lines in full generated file)

Sample Dynamic JSON Payload (sample.json)

{
  "clinicName": "BEACON HILL INTERNAL MEDICINE & CARDIOLOGY",
  "clinicContact": "742 Healthcare Blvd, Suite 400, Boston, MA 02115 · NPI: 1487920194 · DEA: BV-9041284",
  "rxDate": "2026-09-12",
  "erxCode": "ERX-2026-884210",
  "patientName": "Jonathan Davis",
  "patientDob": "1984-03-14 (42Y / M)",
  "patientWeightBp": "78.5 kg · BP 122/78 mmHg",
  "pharmacyTarget": "CVS Pharmacy #0418 — Beacon St, Boston",
  "allergies": [
    "NKDA (No Known Drug Allergies)",
    "No Sulfonamide Reaction",
    "Renal Function Normal"
  ],
  "prescriptions": [
    {
      "rxNum": "Rx #1",
      "drug": "Amoxicillin-Clavulanate 875/125 mg Oral Tablet",
      "dispense": "Dispense: #14 Tabs",
      "sig": "SIG: Take 1 tablet by mouth twice daily with meals for 7 days until finished.",
// … (20 more lines in full generated file)

Template Specifications

Category
Healthcare
Page Size
A4 (portrait)
Default Engine
react-pdf-renderer
License
Free / MIT Commercial Code Ownership

Key Features

  • Practice letterhead with DEA/NPI credentials, issue date, and scannable Code-128 eRx barcode
  • Patient identification form grid paired with clinical allergy and vitals alert pills
  • Structured repeating Rx medication cards detailing strength, SIG instructions, dispense qty, and refills
  • Interactive DAW substitution radio group, counseling checkboxes, pharmacy tear-off stub, and doctor signature

Standard Medical Prescription (Rx Pad) Template FAQs

Where can I use the Standard Medical Prescription (Rx Pad) template?

Use it in outpatient clinics, telehealth platforms, and EHR portals to generate printable or faxable medication orders for retail and mail-order pharmacies.

What clinical details appear on this Rx pad?

It displays clinic DEA/NPI credentials, an eRx Code-128 barcode, patient demographics and allergy pills, repeating medication cards with SIG and refills, DAW controls, and prescriber signature.

What are the DAW dispensing controls on this prescription?

Dispense As Written (DAW) radio options let the prescriber specify whether the pharmacist must fill the exact brand medication or may substitute an approved generic.

Related Healthcare PDF Templates