Section 10.3: Building Templates, Macros, and Order Sets
This is the power-user’s toolkit. Learn how to create custom note templates (SmartPhrases/DotPhrases), build personalized order sets, and use macros to automate repetitive documentation tasks, saving you hours of work each week.
From Manual Labor to Automated Excellence: The Pharmacist’s Efficiency Toolkit
Engineering Your Workflow to Maximize Clinical Impact.
10.3.1 The “Why”: The Compounding Cost of Clicks and Keystrokes
As a pharmacist, you have an intuitive understanding of the power of compounding. A small amount of interest, applied consistently over time, yields an enormous return. Unfortunately, this principle also applies to inefficiency. Every unnecessary click, every manually typed repetitive phrase, every moment spent searching for the same combination of orders is a small “tax” on your time and cognitive energy. Individually, these moments seem trivial—a few seconds here, a minute there. But compounded over the course of a 10-hour shift, across a 40-hour week, and throughout a 50-week year, this tax becomes monumental. This is the hidden cost of manual labor in a digital environment, and it is a primary driver of the phenomenon known as EHR burnout.
This section is dedicated to eliminating that tax. We are moving you from being a simple user of the EHR to being an architect of your own workflow. The tools we will discuss—templates, macros, and order sets—are not “shortcuts” in the sense of cutting corners. They are professional-grade efficiency instruments designed to achieve two critical objectives:
- To Enhance Safety and Standardization: A well-designed template for a vancomycin dosing recommendation ensures that you never forget to include the patient’s weight, renal function, and target goal. A personalized order set for aminoglycoside monitoring guarantees that the correct peak, trough, and renal function labs are ordered every single time. By automating the process, you are hard-wiring best practices into your workflow, reducing the risk of human error and omission. Consistency is a form of safety.
- To Achieve Cognitive Unloading: Your brain has a finite amount of high-level processing power in a given day. This precious resource is your “clinical judgment.” Every ounce of mental energy you spend on mundane, repetitive, clerical tasks—like typing out your contact information at the end of every note or looking up the standard orders for initiating warfarin—is energy that cannot be spent on solving a complex clinical problem, catching a subtle drug interaction, or having a crucial conversation with a provider. Automating these routine tasks is a deliberate strategy to “unload” the cognitive burden of the clerical so you can dedicate your full intellectual capacity to the professional.
Investing a few hours to build a robust library of personal automation tools will pay you back with hundreds of hours of reclaimed time and thousands of preserved cognitive cycles over the course of your career. It is one of the highest-yield investments you can make in your own professional effectiveness and well-being.
Pharmacist Analogy: From Manual Compounding to a Master Formulation Record
Imagine you work in a compounding pharmacy that specializes in a complex, 15-ingredient topical cream. For your first few months on the job, every time you get a prescription for this cream, you perform the entire process manually. You pull 15 different stock bottles, weigh each ingredient one by one, document each weight on a scrap of paper, perform the geometric dilution, package the cream, and then manually type out the long, complicated label with all the ingredients and instructions.
The process is slow, tedious, and fraught with potential for error. Did you grab the right concentration of hydrocortisone? Did you write down the correct lot number? Did you forget to type one of the ingredients on the label?
After a month of this, you decide to professionalize the process. You sit down and create a Master Formulation Record. You do the hard intellectual work once, up front:
- You create a detailed, step-by-step worksheet that lists every ingredient, the required quantity, and a checkbox for completion.
- You calibrate the scanner so you can scan the barcode of each stock bottle to ensure accuracy.
- You create a pre-formatted label template in your computer that automatically populates all 15 ingredients and instructions.
Building this Master Formulation Record took a few hours of focused effort. But now, when an order for the cream comes in, your workflow is transformed. You simply pull up the master record and execute the pre-defined, safety-checked steps. The process is now three times as fast, and the risk of error has been reduced by 90%. You have standardized excellence.
Building EHR templates, macros, and order sets is the digital equivalent of creating a Master Formulation Record for your clinical and documentation tasks. You are taking the time to pre-plan your most common workflows, hard-wiring safety and efficiency into the process so that you can execute them flawlessly under pressure, freeing your mind to focus on the patient.
10.3.2 The Cornerstone of Efficiency: Note Templates (SmartPhrases / DotPhrases)
The single most powerful and frequently used automation tool in any EHR is the note template. The concept is simple: you create a pre-written block of text and save it with a short, easy-to-remember trigger phrase. When you type that trigger phrase into any text field and hit a key (like the spacebar or Enter), the system automatically expands it into your full block of text. This simple function will save you thousands of keystrokes every single day.
Masterclass Table: Common Terminology Across Platforms
| EHR Platform | Official Terminology | Common Slang / Nickname | Example Trigger |
|---|---|---|---|
| Epic | SmartPhrase | DotPhrase | .akidose |
| Cerner | Autotext, PowerPhrase | Macro | p_akidose |
| General / Other EHRs | Macro, Template | DotPhrase | #akidose |
For the rest of this course, we will use the generic term “DotPhrase” to refer to this functionality, as it is the most widely understood slang. The trigger is so named because it often begins with a period or “dot” to distinguish it from normal text.
Anatomy of a Powerful Pharmacist DotPhrase
A basic DotPhrase is just static text. A powerful DotPhrase is a dynamic template that prompts you for patient-specific information, pulling data directly from the chart and ensuring your note is both efficient and comprehensive. Let’s dissect the key components.
- The Trigger Phrase: This is the short code you type to call the template. The key is to create a naming convention that is logical and easy to remember. A good convention might be:
- Start with a consistent prefix: Use your initials (e.g., `.jd_vanc`) or a department prefix (e.g., `.rx_vanc`) to keep your DotPhrases organized and avoid conflicts with system-wide phrases.
- Be descriptive but brief: `.vancinitial` is better than `.v1`, and `.warfarinbridge` is better than `.warfarinprotocolnumberone`.
- Static Text: This is the boilerplate content that will be the same in every note. It includes your section headers, standard explanations, and your signature block.
- Wildcards (The “Fill-in-the-Blanks”): This is what makes a DotPhrase dynamic. A wildcard is a special code that acts as a placeholder. When the DotPhrase expands, your cursor will automatically jump to the first wildcard, allowing you to type in the patient-specific information. In Epic, the wildcard is three asterisks (***). In other systems, you might use a function key like F2. A well-designed template will have wildcards for every piece of unique information.
- SmartLinks (The “Auto-Fill”): Many EHRs can take this a step further with SmartLinks (Epic’s term), which are special codes that automatically pull discrete data directly from the patient’s chart into your note. For example, a `@NAME@` SmartLink will automatically insert the patient’s name. A `@LASTLAB(SCr)@` SmartLink will pull in the value of the most recent serum creatinine. Using these is the hallmark of a true power-user.
- Instructional Text: These are prompts or reminders to yourself, embedded within the template, that guide you on what information to include. A common convention is to enclose these in brackets `[ ]`. For example: `[Enter indication for vancomycin here]` or `[Ensure trough was drawn correctly 30 min prior to this dose]`. These instructional prompts are meant to be deleted from the final note before you sign it.
Building Your First Template: A Step-by-Step Guide for a Vancomycin Dosing Note
Let’s walk through the creation of the most common and essential pharmacist DotPhrase: an initial vancomycin dosing recommendation. Our goal is to create a template that is fast, comprehensive, and guides us to follow best practices every time.
Step-by-Step DotPhrase Creation: .rx_vancinitial
- Define the Goal & Name It: We need a template for initial vancomycin dosing recommendations, including a loading dose and maintenance regimen. We’ll name it with a pharmacy prefix and a descriptive name: .rx_vancinitial
-
Draft the Structure with Static Text: We’ll create a note using a standard SOAP or TITRS format. This is our skeleton.
Vancomycin Dosing Recommendation Subjective/Objective: Patient is a [age]-year-old [male/female] admitted with [indication]. Pertinent Labs: SCr: *** mg/dL on [date] CrCl (Cockcroft-Gault): ~*** mL/min Weight: *** kg ([type of weight – actual/ideal/adjusted]) Assessment: [Brief assessment of renal function and indication]. The goal is to achieve a target AUC/MIC of 400-600 for optimal efficacy against MRSA. Plan/Recommendation: 1. Loading Dose: Vancomycin *** mg ([calculation: 20-25 mg/kg]) IV x 1 dose. 2. Maintenance Dose: Vancomycin *** mg IV every *** hours. 3. Monitoring: – Recommend obtaining a trough level prior to the 4th dose. – Monitor SCr daily. – Notify pharmacy with all vancomycin levels. Thank you, [Your Name/Title/Contact Info]
-
Insert Wildcards (***) for Dynamic Data: Now, we replace all the patient-specific information with wildcards. This tells the system where to stop and ask for input.
Vancomycin Dosing Recommendation Subjective/Objective: Patient is a ***-year-old *** admitted with ***. Pertinent Labs: SCr: *** mg/dL on *** CrCl (Cockcroft-Gault): ~*** mL/min Weight: *** kg (***) Assessment: ***. The goal is to achieve a target AUC/MIC of 400-600 for optimal efficacy against MRSA. Plan/Recommendation: 1. Loading Dose: Vancomycin *** mg (***) IV x 1 dose. 2. Maintenance Dose: Vancomycin *** mg IV every *** hours. 3. Monitoring: – Recommend obtaining a trough level prior to the 4th dose. – Monitor SCr daily. – Notify pharmacy with all vancomycin levels. Thank you, [Your Name/Title/Contact Info]
-
(Power-User Step) Add SmartLinks and Instructional Text: Let’s make it even smarter. We’ll add SmartLinks (using Epic’s `@` syntax for this example) to auto-pull data and bracketed `[ ]` instructions to guide ourselves.
Vancomycin Dosing Recommendation Subjective/Objective: Patient is a @AGE@-year-old @SEX@ admitted with ***. [Enter primary indication – e.g., cellulitis, pneumonia] Pertinent Labs: SCr: @LASTLAB(SCr)@ mg/dL on @LASTLABDT(SCr)@ CrCl (Cockcroft-Gault): ~*** mL/min [Calculate using @WT@ kg and @AGE@] Weight: @WT@ kg (@WTTYPE@) Assessment: Patient has [stable/declining/improving] renal function. Dosing regimen is designed to achieve a target AUC/MIC of 400-600 for optimal efficacy against MRSA. Plan/Recommendation: 1. Loading Dose: Vancomycin *** mg ([Calculation: 20-25 mg/kg x @WT@ kg]) IV x 1 dose. 2. Maintenance Dose: Vancomycin *** mg IV every *** hours. 3. Monitoring: – Recommend obtaining a trough level prior to the 4th dose. – Monitor SCr daily. – Notify pharmacy with all vancomycin levels. Thank you, John Doe, PharmD Clinical Pharmacist | Pager 555-1234
The Result in Practice: Now, when you need to write this note, your workflow is transformed.
Before: 3-5 minutes of typing, looking up labs, copying/pasting, and formatting. High risk of transcription error.
After: Type “.rx_vancinitial” and hit space. The entire template appears. The patient’s age, sex, weight, and latest SCr are already filled in. Your cursor jumps to the first “***”. You type the indication, hit a key, it jumps to the CrCl, you type the number, and so on. You fill in 5-6 blanks. The entire, perfectly formatted, comprehensive note is completed in under 60 seconds.
10.3.3 Pharmacist Template Library: Essential DotPhrases to Build on Day One
To accelerate your efficiency, here is a comprehensive library of high-yield DotPhrases that will cover a significant portion of your daily documentation needs. You should use these as a starting point and customize them to fit your institution’s specific policies and your personal preferences. For brevity, we will show the final, complete template text.
Category: Pharmacokinetics & Dose Adjustment
| DotPhrase Name & Purpose | Full Template Text (with Wildcards and Instructions) |
|---|---|
|
.rx_vancinitial
Initial vancomycin loading and maintenance dose recommendation. |
Vancomycin Dosing Recommendation S/O: Pt is a @AGE@ Y/O @SEX@ admitted for *** [Indication]. Wt: @WT@ kg (@WTTYPE@). Ht: @HT@ cm. SCr: @LASTLAB(SCr)@ mg/dL. CrCl (CG): ~*** mL/min. A: New vancomycin order. Dosing for target AUC/MIC of 400-600. P/R: 1. Loading Dose: Vancomycin *** mg (20-25 mg/kg) IV x 1. 2. Maintenance Dose: Vancomycin *** mg IV q***h. 3. Monitoring: Obtain trough prior to 4th dose. Monitor SCr daily. Notify pharmacy with levels. Thank you, [Your Name/Contact] |
|
.rx_vancrelevel
Vancomycin level assessment and dose adjustment recommendation. |
Vancomycin Level Assessment S/O: Pt is on vancomycin *** mg IV q***h for *** [Indication]. Wt: @WT@ kg. SCr: @LASTLAB(SCr)@. CrCl: ~*** mL/min. Trough level drawn on [date] at [time] was *** mcg/mL. [Confirm timing was appropriate: drawn <30 min before a dose]. A: The current trough is [subtherapeutic/therapeutic/supratherapeutic]. Calculated AUC/MIC is ~***. [State if goal is met]. P/R: 1. [Choose one: Continue current dose / Hold next dose / etc.] 2. Recommend adjusting maintenance dose to Vancomycin *** mg IV q***h. 3. Recheck trough prior to 4th dose of new regimen. Thank you, [Your Name/Contact] |
|
.rx_renaldoseadjust
General template for any renal dose adjustment recommendation. |
Renal Dose Adjustment Recommendation S/O: Pt’s SCr has [increased/decreased] to @LASTLAB(SCr)@. Estimated CrCl is now ~*** mL/min. A: The patient is currently on [Drug Name] at a dose of [Current Dose]. This dose is supratherapeutic for the patient’s current renal function and may increase the risk of [specific toxicity, e.g., seizures, nephrotoxicity]. P/R: 1. Recommend adjusting dose of [Drug Name] to *** mg [route] q***h per manufacturer/evidence-based guidelines for a CrCl of *** mL/min. Thank you, [Your Name/Contact] |
Category: Anticoagulation Management
| DotPhrase Name & Purpose | Full Template Text (with Wildcards and Instructions) |
|---|---|
|
.rx_warfarininitiation
Initial warfarin dosing and bridging plan for VTE/Afib. |
Warfarin Initiation Plan S/O: Pt is a @AGE@ Y/O @SEX@ with new diagnosis of *** [Indication]. INR today: @LASTLAB(INR)@. LFTs: [Note if elevated]. Interacting meds: [List any – e.g., amiodarone, antibiotics]. A: Initiating warfarin therapy with a goal INR of 2-3. Plan includes bridging with a parenteral anticoagulant. P/R: 1. Bridge: [Enoxaparin 1 mg/kg SC q12h / Heparin infusion]. 2. Initiate Warfarin: Start warfarin *** mg PO daily. [Typically 5mg, consider 2.5mg if elderly, frail, liver disease]. 3. Monitoring: Check INR daily. Continue parenteral bridge for a minimum of 5 days AND until INR is therapeutic (≥2.0) for at least 24 hours. Thank you, [Your Name/Contact] |
|
.rx_doacinitiation
Recommendation for initiating a DOAC, focusing on appropriate dosing. |
DOAC Initiation Recommendation S/O: Pt is a @AGE@ Y/O @SEX@ with new diagnosis of *** [Indication]. Wt: @WT@ kg. SCr: @LASTLAB(SCr)@. CrCl: ~*** mL/min. A: Recommending initiation of [Apixaban/Rivaroxaban] for [Indication]. Patient’s age, weight, and renal function have been assessed to determine appropriate dose. P/R: 1. Recommend initiating [Apixaban 5mg PO BID / Rivaroxaban 20mg PO daily with evening meal]. [**CRITICAL**: Note if dose adjustment is needed. E.g., for Apixaban in Afib, requires 2 of 3 criteria: Age ≥80, Wt ≤60kg, SCr ≥1.5. If so, recommend 2.5mg BID]. 2. Discontinue any current parenteral anticoagulants upon initiation. Thank you, [Your Name/Contact] |
10.3.4 Beyond Notes: Building Personalized Order Sets and Favorites
While DotPhrases streamline your documentation, Order Sets streamline your therapeutic interventions. An order set is a pre-configured group of related orders (medications, labs, nursing instructions) that are commonly prescribed together for a specific condition. Hospitals and health systems invest enormous resources in developing evidence-based, official order sets for conditions like Sepsis, Community-Acquired Pneumonia, or Acute MI. You will use these official sets every day.
However, most EHRs also allow you to create your own personal order sets or “favorites.” These are not meant to replace official protocols, but to make your own common workflows more efficient. Think of them as your personal “go-to” bundles for tasks that you, as a pharmacist, perform repeatedly. The goal is to take a multi-step, multi-order process and turn it into a single, one-click action.
Step-by-Step Guide: Building a “Pharmacist Aminoglycoside Monitoring” Order Set
Let’s say a provider orders tobramycin for a patient, but forgets to add the necessary monitoring parameters. This happens frequently. Instead of manually entering 3-4 separate orders every time, you can build a personal order set to do it instantly.
Personal Order Set Builder: “RX AMINOGLYCOSIDE MONITORING”
1. Medication Orders (Lab Draws)
- Order Name: Tobramycin Trough Level, Timed
Details: STAT, Trough, Draw 30 minutes prior to next scheduled dose. - Order Name: Tobramycin Peak Level, Timed
Details: STAT, Peak, Draw 30 minutes after completion of infusion. - Order Name: Basic Metabolic Panel (BMP)
Details: Daily x 3 days. [To monitor renal function].
2. Nursing Orders
- Order Name: Nursing Communication
Details: “Please document exact draw times for all aminoglycoside levels.”
3. Communication Orders
- Order Name: Notify Provider
Details: “Notify Pharmacy for all resulting aminoglycoside levels.”
The Result in Practice:
Before: The provider places the tobramycin order. You see it in your queue. You realize there is no monitoring. You then have to manually search for and create four separate orders: trough lab, peak lab, daily BMPs, and the nursing communication. This can take 2-5 minutes of clicking and searching.
After: You see the tobramycin order. You go to your personal favorites, click “RX AMINOGLYCOSIDE MONITORING.” All four pre-configured orders populate the screen. You review them for appropriateness, sign, and you are done. The entire process takes 20 seconds.
10.3.5 Advanced Tools: Macros and Workflow Optimization
While DotPhrases and personal order sets will account for 80% of your efficiency gains, true power-users can leverage even more advanced tools to automate their workflows. These tools often exist at the operating system level or are deeper features within the EHR that require more setup.
- Macros: A macro is a recorded sequence of user actions—mouse clicks, menu selections, and keystrokes—that can be played back on command. Unlike a DotPhrase, which just inserts text, a macro can perform actions. For example, you could create a macro triggered by a keyboard shortcut (e.g., Ctrl+Shift+C) that performs the following sequence:
- Navigate to the “Results” activity.
- Click the filter for “Chemistry.”
- Find the row for “Serum Creatinine.”
- Click the button to graph the result over the last 7 days.
- Personalized Toolbars & Views: Most EHRs allow you to customize your workspace. You can often create personalized toolbars with one-click buttons for your most-used activities. Instead of hunting through a menu, you can have a “Vancomycin Calculator” button right at the top of your screen. You can also set up default “views” in sections like Results Flowsheet, so that every time you open it, it automatically displays your preferred set of labs (e.g., renal function panel + CBC + LFTs) without you needing to select them each time.
The Danger of “Dumb” Automation: Know the Limits
It is crucial to understand the difference between automating a clerical task and attempting to automate clinical judgment. The tools in this section are designed to handle the former. They can pull up data, fill out templates, and queue up orders with incredible speed.
However, they cannot interpret that data. A macro can graph a creatinine trend for you, but it cannot tell you why it’s rising. A DotPhrase can populate a vancomycin dosing template, but it cannot decide if vancomycin is the appropriate antibiotic for the patient’s cultured pathogen. Your value as a pharmacist lies in that interpretation and clinical decision-making. Use automation to bring the information to you faster and to document your decisions more efficiently, but never allow it to replace the critical thinking process itself. The goal is to automate the routine so you can focus on the remarkable.