Conditional Logic 2006 By Donald T. Stewart, MD Practice Partner User Group 2006.

Slides:



Advertisements
Similar presentations
PDS Web Pro Custom Web Design Quick Implementation Powerful Patient Portal Option Powerful Tools on Standard Website Click to see Home page example.
Advertisements

Grade 6 Hopewell Elementary You will read each slide, then try to think of the answer. When you think you know the answer, click ONCE on the mouse.
P1PMF Split1 QBASIC. P1PMF Split2QBasic Command Prompt Will launch the emulator DOS operating system? Press Alt + Enter to display the widescreen.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Orchard Harvest™ LIS Review Results Training
1 VCAM Technical Forum 2006VCAM\10_Oct\Technical Forum001 – 5/13/2015 1:55 AM Common PowerPoint Challenges Date: 04/31/2006.
Microsoft ® Office Word 2007 Training Table of Contents II: Customize your TOC [Your company name] presents:
Creating Accessible Presentations Training Guide.
Using a Template to Create a Resume and Sharing a Finished Document
XP New Perspectives on Microsoft Office Word 2003 Tutorial 1 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
XP 1 Microsoft Office Word 2003 Tutorial 1 – Creating a Document.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 07 Creating Documents with Efficiency and Consistency.
Adobe Forms THE FORM ELEMENT PANEL. Creating a form using the Adobe FormsCentral is a quick and easy way to distribute a variety of forms including surveys.
Automating Practice Partner with Macro Express Donald T. Stewart, MD 2007User Group Meeting.
Designing a Classroom Web Site Using NVU Beginning Level.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
05/09/ Introducing Visual Basic Sequence Programming.
Microsoft Office Word 2003 Tutorial 1 Creating a Document.
Microsoft ® Word 2010 Core Skills Lesson 1: Getting Started Courseware #: 3240 Microsoft Office Word 2010.
XP New Perspectives on Microsoft Word 2002 Tutorial 21 Microsoft Word 2002 Tutorial 2 – Editing and Formatting a Document.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
How to make graphs. Hello, There are many ways to make graphs to represent your data. Throughout this very detailed tutorial you will learn to make bar.
Objective To create a professional, affordable, and easy to use website Create a user friendly interface with accessibility and effortless navigation.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Advanced Basics Don Stewart PPUG 2009
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 5 – Dental Payment Application: Introducing.
Program Design and Coding
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Conditional Execution
How to Create a Document in Google Drive By Tressa Beckler.
1 What to do before class starts??? Download the sample database from the k: drive to the u: drive or to your flash drive. The database is named “FormBelmont.accdb”
A Simple Quiz: Ask User Functions. By Lana Dyck under the direction of Professor Susan Rodger Duke University June 2009, added Part 2 July 2011.
HPHConnect New User Registration Tutorial A Guide for Harvard Pilgrim Providers August 2005.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
Using Link Don Stewart PPUG 2009 Using LINK LINK label marker lets you put a hyperlink into a note template, which is not saved when the note.
22/11/ Selection If selection construct.
XP Tutorial 8 Adding Interactivity with ActionScript.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
McGraw-HillCopyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. Office Word 2010 Lab 1 Creating and Editing a Document.
Word Create a basic TOC. Course contents Overview: table of contents basics Lesson 1: About tables of contents Lesson 2: Format your table of contents.
31/01/ Selection If selection construct.
Input Boxes, List Boxes, and Loops Chapter 5. 2 Input Boxes Method for getting user’s attention to obtain input. InputBox() for obtaining input MessageBox()
Lesson No : 8 Intro. to Word 2000,File mgmt, Editing, Formatting & print. Doc. CHBT-01 Basic Micro process & Computer Operation.
1 4.2 Selection Logical Operators. 2 Learning Objectives Explain how the logical operator AND Boolean statements works. Directly testing if text boxes.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Tutorial 1 – Creating a Document
Chapter 2: The Visual Studio .NET Development Environment
Setting Defaults in Microsoft Word for Accessibility
Tutorial 2 – Editing and Formatting a Document
How to Register OSLIS 2.0 Please NOTE that registration is NOT required to use OSLIS 2.0. It adds additional options for storing and sharing items in.
Tutorial 1 – Creating a Document
Microsoft Access Illustrated
Customization
Conditions and Ifs BIS1523 – Lecture 8.
Integrating JavaScript and HTML
Word offers a number of features to help you streamline the formatting of documents. In this chapter, you will learn how to use predesigned building blocks.
Using the Software ProtoMED Practice Management and Electronic Medical Records software enables users to … View schedules View patient information View.
The National Reference Metadata Editor (NRME)
Chapter 3: Selection Structures: Making Decisions
Boolean Expressions to Make Comparisons
Chapter 3: Selection Structures: Making Decisions
Exploring Microsoft Word 2003
The National Reference Metadata Editor (NRME)
Lab 07 Creating Documents with Efficiency and Consistency
Exploring Microsoft Word 2003
CERNER MILLENNIUM Message Documentation
Presentation transcript:

Conditional Logic 2006 By Donald T. Stewart, MD Practice Partner User Group 2006

GOALS Demonstrate how Conditional Logic works in Practice Partner Demonstrate common errors and problems with using Conditional Logic Demonstrate applications of Conditional Logic in Templates Answer questions on Conditional Logic.

Resources Practice Partner Help –Search “conditional logic”,then choose “letter templates” Conditional Logic Tutorial 2006 PDF –On your USB flash drives –At the Practice Partner Web Site (soon) This Slide Show (Conditional Logic 2006.ppt ) –Soon to be on PP Web Site – me

Conditional Logic and Practice Partner Conditional logic is a powerful tool built into Practice Partner that enables the user to build and design templates and quick text that change based upon patient information. The information can be Age, Sex, Lab Values, Vitals, and by using Lab Values creatively, clinical data.

Letters to Patients An obvious use of conditional logic would be to design lab letters that convey different messages to the patient based upon whether a lab value was normal or not. In fact, the Practice Partner “Help” facility has traditionally discussed conditional logic under Letter Templates, and the documentation refers to “letter codes.”

How CL Works The most basic statement is in this form: || IF {this happens}|| For example || IF PAT_SEX = “male” {he} || In the above, everything between the two || delimiters will be replaced with the word “he” if the patient is a male, and the phrase will evaluate to nothing if the patient is not a male.

IF The is a letter code. PP Help has a list of letter codes, but it is easier to see more examples by going to the Maintenance Menu  Tables  QuickText, then press the letter code radio button You can use values like ||PAT_SEX||, ||PAT_AGE||, and ||LAB ||, as well as ||BODY_MASS_INDEX|| and ||VITAL_HGT||, as well as the other vital signs.

is a Logical Operator –=means “equal to” –<>means “not equal to” –<means “less than” –<=means “less than or equal to” –>means “greater than” –>= means “greater than or equal to” Comparisons are done as Strings, not Numbers

is a string. The documentation says it can be a letter code, but this does not work (as of 8.2.1) has to be quoted, e.g. –||IF PATIENT_SEX = “male” { } || –||IF LAB > “160” { } || The Quote Marks can’t be curly (“”), must be straight ("") “Nothing” or “No Value Found” = “”

{this happens} {this happens} means that whatever is between the curly braces { } is printed or evaluated if the CL statement preceding it evaluates to “TRUE” If the CL statement preceding the { } does not evaluate to “TRUE,” then nothing is done with whatever is between the braces.

ELSE You can add an ELSE { } behind the first pair of { } to print an alternative statement or do a new comparison For example: || IF PAT_SEX = “” {he or she} ELSE { IF PAT_SEX = “male” {he} ELSE {she}} ||

CL and HM I erroneously wrote that HM did not work with CL in the PDF distributed on your flash drives. The issue is that there may be problems testing || IF HM = “X” { } else { } || The correct way to do this is: –|| IF HM = “” {needs to be done} ELSE { HM } ||

Formatting You can use carriage returns and “white space” to make your statements more readable: || IF PAT_SEX = “” {he or she} ELSE { IF PAT_SEX = “male” {he} ELSE {she}} || As opposed to : || IF PAT_SEX = “” {he or she} ELSE { IF PAT_SEX = “male” {he} ELSE {she} } ||

AND and OR To get more complex, you can use AND or OR after your first comparison and before your first “{“. || IF PAT_SEX = “male” AND PAT_AGE > “50” {he might just need a prostate exam} || IF, ELSE, AND and OR used in conditional logic must be capitalized

Logical Statements within Logical Statements You can put a complete logical statement within a pair of { } || IF LAB [-Date] < "40" AND PAT_SEX ="male" { The HDL is too low.} ELSE {IF LAB [-Date] < "50" AND PAT_SEX = "female" {The HDL is too low} ELSE {The HDL is OK} } ||

Spaces: the Necessary Nothings Spaces are important in some situations. For example, | |IF PATIENT_AGE >"65" {bill Medicare}|| will not evaluate correctly because there is no space between the > and the "65". You need a space before and after the keywords AND, OR, and ELSE. You need a space after the keyword IF, but it is OK not to have a space in front of it if a curly brace ({) or double bars (||) are in front of it. You need a space between the last set of double bars in one expression and the first set in the next. For example | |IF LAB > "130" {Too High}||||IF LAB > "160" {GOOD}|| Will not evaluate due to lack of a space between the two expressions, but ||IF LAB > "130" {Too High}|| ||IF LAB > "160" {GOOD}|| will evaluate just fine.

The Code The code will insert a carriage return when it is inserted between the { } Without a code, no carriage return will be recognized This is necessary if you want to load something within the { } with a dot code, since dot codes must be at the beginning of a line

Code Example || IF LAB = "" {Your cardiovascular risk stratification is.L: CV Risk: «*Low» «*Moderate»} «*High» } ELSE {Your cardiovascular risk stratification is LAB [- Date]} ||

Uses of Conditional Logic Customize templates for –Sex (discussed earlier) –Disease –Habits –Age or HM Status –Update Problem List automatically based on Vitals –Change font or color of text based on conditions –Modify your Physical Exam template based on Sex and previous findings

An Aside: Storing Clinical Data as Lab values Up to about 18 characters of clinical data can be stored as lab data values. To do this, you need to create a Lab data Maintenance-  Templates-  Lab Data Test Names-  then click on the “New” button on the Test Name Screen

Customized Clinical Lab Data Names: DiabetesDxDate SmokingStatus Smoke#years PacksPerDay AUA Score HasHomeNebulizer RescueInhalerFreq ThyroidNodule CarotidScar VibrationSense DPPulse ROM Neck Murmur1Location Murmur1Loudness Murmur1Quality Murmur1Location Murmur1Timing EjectionFraction

Customize Templates for Disease Assume that the lab value DiabetesDxDate contains something if the patient has diabetes, and is blank if the patient does not. This requires the provider to consider the foot exam if the patient is a diabetic: ||IF LAB <> “” {«REQ» «*FootExam» } ELSE { «*FootExam»} ||

Customize for Age and HM Status ||IF PAT_AGE > “49” AND LAB <> “never” {«REQ» «*Colonoscopy» } || The above and previous examples have a carriage return after the line with the «REQ» on it because the editor will not save a template with anything after a «REQ» other than quick text.

Update Your Major Problem List Automatically Based on BMI ||IF BODY_MASS_INDEX > "30.0" {.MP: OBESITY} || (PPRnet members can profit from this)

Flag Abnormal Lab Values «del»||LAB [-Date]|| || IF LAB > "6.5" {«***WARNING Not to Goal of less than 6.6 WARNING***...»} || Because the warning is between the «», it will not show when the note is saved.

Change Formatting Based on Conditions ||LAB [-Date]|| < "10" {Desirable is less than 10. Patients with an Lp(a) of 10 or above have a times greater risk of cardiac event than average.} ELSE {Desirable is less than 10. Patients with an Lp(a) of 10 or above have a times greater risk of cardiac event than average. Elevations in Lp(a) tend to be inherited in an autosomal dominant pattern. This means that it would be wise for you to have your direct relatives ask to be tested for it. LP(a) is not affected by diet or exercise. It has not been proven that lowering Lp(a) will result in lower risk, though many people believe that this may be true. We do know that lowering the total LDL to 70 or below does greatly reduce the risk of an elevated Lp(a). } || (The above is from a lab letter I send explaining the VAP results, where I give more of an explanation and bold the text when a result is abnormal)

Conditional Logic in the Physical Exam You can modify your physical exam template so that you are presented with age or sex-appropriate options You can also modify your physical exam template to remind you of previous findings, if you saved those findings as lab values (or as clinical data elements in 9.1)

Customizing Exam Based on Previous Physical Findings - CHEST: || IF LAB = "True" { «*ChestAbnormal»} ELSE {Thorax had no significant bony abnormalities «*ExcpChest».} || Ribs & sternum nontender«*ExcpTendr».

If Previous Chest Exam Normal:

If Previous Chest Exam Abnormal:

When You Click “*ChestAbnormal”:

The Items on the “*Chst…” menu:

The Saved Note:

Questions?

Thank You Feel free to me for questions at