Calculation Basics By Nick Felts.

Slides:



Advertisements
Similar presentations
Chapter 4 - Control Statements
Advertisements

Detecting Bugs Using Assertions Ben Scribner. Defining the Problem  Bugs exist  Unexpected errors happen Hardware failures Loss of data Data may exist.
Computer Programming w/ Eng. Applications
Algebraic Word Problems
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
Decision Making George Mason University. Today’s topics 2 Review of Chapter 2: Decision Making Go over exercises Decision making in Python.
Line Continuation, Output Formatting, and Decision Structures CS303E: Elements of Computers and Programming.
Introduction to Python
Decision Structures and Boolean Logic
Chapter 2 - Algorithms and Design
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 6 Decisions and Conditions.
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
ORDER OF OPERATIONS x 2 Evaluate the following arithmetic expression: x 2 Each student interpreted the problem differently, resulting in.
Input, Output, and Processing
Lecture 2: Classes and Objects, using Scanner and String.
CPS120: Introduction to Computer Science Decision Making in Programs.
Accuracy Chapter 5.1 Data Screening. Data Screening So, I’ve got all this data…what now? – Please note this is going to deviate from the book a bit and.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
DIMENSIONAL ANALYSIS NOTES 6.
Greatest Integer/Absolute Value Functions
Copyright Curt Hill The C/C++ switch Statement A multi-path decision statement.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Python Let’s get started!.
September 4, Application problem 1. A guitar has 6 strings. How many strings are there on 6 guitars? Write a multiplication sentence and solve.
If Statements Programming. COMP104 Lecture 7 / Slide 2 Review: Rules for Division l C++ treats integers different than doubles. 100 is an int. l 100.0,
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
1-1 © 2008 Pearson Prentice Hall. All rights reserved Chapter 1 Real Numbers and Algebraic Expressions Active Learning Questions.
JAVASCRIPT A quick review. True False ■The DOM is a standardized way of referring to parts of a Web page. ■TRUE ■In the DOM, attributes have their own.
Today… Operators, Cont. Operator Precedence Conditional Statement Syntax. Winter 2016CISC101 - Prof. McLeod1.
Agenda 1.About Me & My Approach 2.About knowplace Family of Sites 3.About Moodle 4.Skill Check of (my Priority) Moodle items: Layout,
1 Sections 3.1 – 3.2a Basic Syntax and Semantics Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Multiplication & Division
Lesson 3: Using Formulas
CMPT 120 Topic: Python’s building blocks -> More Statements
Excel IF Function.
CS170 – Week 1 Lecture 3: Foundation Ismail abumuhfouz.
Chapter 4 C Program Control Part I
Advanced Calculations
Python Let’s get started!.
INC 161 , CPE 100 Computer Programming
Line Continuation, Output Formatting, and Decision Structures
Logger, Assert and Invariants
Presented by Nick Felts
Modified from Sharon Guffy
Statement atoms The 'atomic' components of a statement are: delimiters (indents, semicolons, etc.); keywords (built into the language); identifiers (names.
Topics The if Statement The if-else Statement Comparing Strings
Addition and Substraction
Factors, multiple, primes: Factors from prime factors
Topics The if Statement The if-else Statement Comparing Strings
Line Continuation, Output Formatting, and Decision Structures
Conditions and Ifs BIS1523 – Lecture 8.
James R. Pomicter, BS, MLS(ASCP)
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Presented by Peggy Steele and Jane Blackmar Lab Implementation
COMPUTER PROGRAMMING PYTHON
Factors, multiple, primes: Prime factors
Math unit 1 review.
JavaScript.
CS2011 Introduction to Programming I Selections (I)
Tutorial 10: Programming with javascript
Beginning Python Programming
Indices: When can you use the multiplication law?
Just how far from zero are you?
Python 4 and 5 Mr. Husch.
Factors, multiple, primes: Multiples
Standard form: In standard form?
True or False True or False
Coordinates: Naming 2D coordinates – quadrant 1
Presented by Nicholas Felts
Presentation transcript:

Calculation Basics By Nick Felts

Objectives This section will answer the following questions regarding calculations. Why do I want it? Where do I put it? How do I write it?

Why do I want them? Because you can Automatically… Result a test using results from other tests BUN/CREAT ratio Calculate corrected WBC based on NRBC’s Cancel a test "." Attach interpretive comment to a result " @CAN"

Where do I put it? Three places Individual test RBS Canned messages 240 characters RBS 255 characters Multiple time frames Canned messages >240 characters ID entered in individual test or RBS as <<CANID>>

How do I write it? First a few Rules! Only individual tests All tests included in calculation must be in same order Except RBS rules! Must follow SYNTAX No special characters in Test Codes! Occurs at Posting

How do I write it? Two Main Types Basic Math True/False Remember order of operations from Algebra? + - * / True/False If this happens? Then do this: Otherwise do this

Basic Math Follow the Syntax… @ = numeric result i.e. @GLU = numeric result of test GLU + , - , * , /

Basic Math BUN/CREAT Ratio Absolute lymphs Urine albumin @BUN/@CREAT @LYMPT * (@WBCX/100) Urine albumin (@UALB1*@UVOL)/100

(@UCRE1/@CREA1)*(@UVOL/(@UPER*60))*(1.73/@UBSA) Basic Math Creatinine Clearance (@UCRE1/@CREA1)*(@UVOL/(@UPER*60))*(1.73/@UBSA)

True/False Calculations True/false statement allows: An action based on a “true” statement. A different action based on a “false” statement Follow the Syntax If this happens? Then do this: Otherwise do this "Alphanumeric characters" >,<,>=,<=,==,!=,&&,||

True/False Calculations @DIG<0.2? "NONE DETECTED" :@DIG @DIG<0.2? "<0.2" :@DIG

True/False Calculations @DIG<0.2? "@LOW" :@DIG

True/False Calculations @ABC>100? @ABC + " @CM" :@ABC

True/False Calculations @MONEY>=1000000? " HAPPY " : " SAD " @ETOH<=0.8? " LET GO":"ARREST" Equal to @ABC==@123?@DEF:@ABC Not equal to @ABC!=@ABCR? " . " : @ABCR

True/False Calculations @HGB<5 && @HCT<20? "BAD" : "GOOD" @HGB<5||@HCT<20? "BAD" : "GOOD"

True/False Calculations More Syntax! $@ =Alphanumeric result i.e.- $@UCOL = the alphanumeric result of UCOL @DIG<0.2? "<0.2" :@DIG What if result was “>5” @DIG<0.2? "<0.2" :$@DIG

True/False Calculations More Syntax! , If calculation has error @NRBC<5? @IWBC : @IWBCC, "." $@MDIFP=="Performed" ?@SEGM:@SEGA, @SEGA

True/False Calculations Nested Calculations String together multiple true/false statements For every ? there must be a : Group together statements with parentheses Every “(“ must have matching “)” @HCGQ>200000?">200000":(@HCGQ<5? "<5":@HCGQ)

True/False Calculations @SWEAT<40?@SWEAT+" @SWTN": (@SWEAT>=60?@SWEAT+" @SWTP": @SWEAT+" @SWTB")

True/False Calculations @FHGBR>=0.0000&&@FHGBR<=0.0045?"1": (@FHGBR>=0.0046&&@FHGBR<0.0091?"3": (@FHGBR>=0.0091&&@FHGBR<0.0136?"4": (@FHGBR>=0.0136&&@FHGBR<0.0181?"5": (@FHGBR>=0.0181&&@FHGBR<0.0226?"6": (@FHGBR>=0.0226&&@FHGBR<0.0271?"7": (@FHGBR>=0.0271&&@FHGBR<0.0315?"8": "Not Indicated"))))))

Reading Practice!

@TRIG>400? "." :@CHOL*(@HDL+(@TRIG/5)) Reading Practice! @TRIG>400? "." :@CHOL*(@HDL+(@TRIG/5))

@ALB> 39.0 ? " @CALA" : @CAL+((40-@ALB)*0.025) Reading Practice! @ALB> 39.0 ? " @CALA" : @CAL+((40-@ALB)*0.025)

((@CKMB/@CK)*100)>25?" @ACK":(@CKMB/@CK)*100 Reading Practice! ((@CKMB/@CK)*100)>25?" @ACK":(@CKMB/@CK)*100

Tips… Write it out first Test all possible answers!!!! Syntax error Something was missed Come to my Advanced Calculations class!!

Questions?