There are several advantages of using Advanced Scripting commands within Dragon Medical Practice Edition.  Advanced Scripting allows you to create complex scripts and sequences to perform virtually any function on the computer using voice commands.  Creating Advanced Scripting commands within Dragon Medical Practice Edition requires familiarity with the Microsoft Visual Basic programming language.

This illustrated how to guide will walk you through the process of creating an Advance Scripting command to automatically save a Microsoft Word document to a specific directory and automatically name it with the patients name.

STEP 1: Create a Directory

This will be where your reports are saved to once you’ve completed them.  In this guide, I will save the reports to a folder I created, titled, Sample Medical Reports.

The location is: C:UsersJoshua StewartDocumentsSample Medical Reports

NOTE:  This code was written to find the [Name] field in your templates, therefore’ make sure there is a [Name] field in your template(s).

STEP 2: Create an Advanced Scripting to Automatically Save a Document to a Specified Directory

1. Open Dragon Medical Practice Edition

2. Open the MyCommands Editor by going the DragonBar, then Tools > Add New Command


3. Enter a Name. The MyCommands Editor window will open.  Choose a name for your command and enter it in the [MyCommand Name] field.  For this guide, I will name the command, Save Dictation

4.  Enter a Description.In the [Description] field, enter a description that will help you identify the command.

5. Specify a Group.  In the [Group] field, specify whether this command will be a Dragon command or a user-defined command.  If it is user-defined, you can type overuser-defined with a group name of your choice.  The new group name will appear in the list the next time you create a command. Putting macros in a group will make them easier to find and manage within the command browser.

6.  Command Type: Change the Command Type to [Advanced Scripting].

NOTE: When Advanced Scripting is select the content window will change to a script window.

7. Enter the following visual basic script into the Script window

NOTE: SendKeysC:UsersJoshua StewartDocumentsSample Medical Reports should be replaced with whatever directory you chose in Step 1.

8.  Set Object Reference Library.  Right-click in your script window and select [References].

9. Select the Word Processing Application you are using.  In this guide, I am using Microsoft Word 2010, therefore; I will choose Microsoft Word 14.0 Object Library (8.5).

10. Click [OK].

11. You will be brought back to the main MyCommands Editor window, select [Save].

NOTE: If you receive a syntax error, you’ve entered the code incorrectly.

Congratulations, you’ve just created an Advanced Scripting Macro that will allow you to saySave Dictation, which will grab the patients name field from your template and automatically save it.

Verification Source:  In-house testing

Test Date: 10.5.11