Presented by Nick Felts

Slides:



Advertisements
Similar presentations
1.2 – Evaluate and Simplify Algebraic Expressions A numerical expression consists of numbers, operations, and grouping symbols. An expression formed by.
Advertisements

February 14 th copyright2009merrydavidson. RATIONAL EXPONENTS 1) Anything to a power of zero =. 1 1.
Dr. Fowler CCM Solving Systems of Equations By Elimination – Harder.
Scientific notation is a way of expressing really big numbers or really small numbers. Scientific notation is a way of expressing really big numbers or.
Significant Figure Rules RulesExamples The following are always significant Non zero digits Zeros between non zero digits Zero to the right of a non zero.
NetTech Solutions Troubleshooting Office Applications Lesson Seven.
Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this.
© 2012 Pearson Prentice Hall. All rights reserved. CHAPTER 3 Number Theory and the Real Number System.
LINGO TUTORIAL.
Year 9 Mathematics Algebra and Sequences
2-7 Variables and Algebraic Expressions Warm Up Problem of the Day
Multiplying and Dividing Integers
Multiplying & Dividing Integers
Pre-Algebra Review Quiz tomorrow!.
Advanced Calculations
Scientific Notation.
Advanced Calculations
Unit 3: Exponents, radicals, and exponential equations
The greatest mathematical tool of all!!
Significant Figures.
Multiplication and Division of Exponents Notes
To solve absolute value equations and inequalities in one variable
Number Theory and the Real Number System
Programming Mehdi Bukhari.
Objective The student will be able to:
Scientific Notation.
Multiplying and Dividing Signed Integers
Objective The student will be able to:
Calculation Basics By Nick Felts.
Day 96 – Exponential Rules review
Lesson 1.1 How do you evaluate and write variable expressions?
MULTIPLICATION OF ALGEBRAIC EXPRESSIONS
In the previous section we were multiplying a monomial by a polynomial expression like this… 3
Exponent Rules
Section 9.7 Complex Numbers.
Patterns and Algebraic rules
Ch 6.5 Absolute Value Equations
SCIENTIFIC NOTATION.
Trace evidence used to create Rules
James R. Pomicter, BS, MLS(ASCP)
INTEGER RULES Positives & negatives.
Number Theory and the Real Number System
Exponential Functions
Presented by Peggy Steele and Jane Blackmar Lab Implementation
vms x Year 8 Mathematics Equations
Unit 2 (8.EE.1) Vocabulary.
Uncertainty in Measurement
Measurements & Calculations
Patterns and Algebraic rules
COMPASS Practice Test D
3.1 Iteration Loops For … To … Next 18/01/2019.
Passport to Advanced Mathematics Lessons 1-2
Day 96 – Exponential Rules review
INTEGER RULES Positives & negatives.
REVIEW.
Base.
The smallest measuring lines on this tool show a jump of ______________ This measuring tool is precise to the ________ column Our rule for writing.
Introduction An exponent is a quantity that shows the number of times a given number is being multiplied by itself in an exponential expression. In other.
Evaluate and Graph Polynomial Functions
Scientific Measurements
Heart of Algebra Lessons 1 & 2
6.2 Evaluate and Graph Polynomial Functions
SCIENTIFIC NOTATION ... a way to express very small or very large numbers that is often used in "scientific" calculations where the analysis must be very.
Multiplying and Dividing Signed Integers
Multiplying and Dividing Signed Integers
§5.2, The Integers; Order of Operations
Multiplying more than two integers
6.2 Multiplying Powers with the Same Base
Presented by Nicholas Felts
Aim: Why are Significant Figures Important?
Presentation transcript:

Presented by Nick Felts Advanced Calculations Presented by Nick Felts

Objectives This presentation cover some more advanced calculation Syntax such as: Functions Time Frames Variables Preservation of historical results Looping Suggested pre-requisite Calculations for beginners Coffee!

I have experience with... GETDBF or “->” RBS Time Frames Changing Calculations Stopping Looping Putting in tasks for calculations because they scare me!

Functions Pre-defined commands that are used to perform a designated operation POW ANY MATCH GETDBF Follow the Syntax! Each Function is unique.

POW POW(.45*@WT,.425)*POW(2.54*@HT,.725) POW( base , exponent )

ANY ANY(@TEST) or #@TEST Looking to see if test has been resulted ANY(@AUER)?@BLAST +" @LEUK":$@BLAST #@AUER?@BLAST + " @LEUK" :$@BLAST

MATCH MATCH( "what" , where ) Can use wild card * MATCH("< *",$@NA)|| MATCH("<*",$@CL)|| MATCH("<*",$@CO2)|| MATCH(">*",$@CO2) ? "@GAP" : @NA-(@CL+@CO2)

GETDBF GETDBF("field") Available fields -> DBFLD (stop using this on 4.0 lines!) Available fields Sex Race Age Doctor Ward Many more...

GETDBF("SEX")=="F"? @TESTO+" @CM":@TESTO

-> (Test Access Operator) (@CREAT->"AGE")/365.25)                                

Variables $N:=@FISH+10; @FISH>30?@FISH: (@FISH<10? $N*2+" @LIE": $N+ " @LIE“) One letter code to represent a calculation Useful in long calculations or when the same expression is used multiple times

Variables $A:=(@CREAT->"AGE")/365.25); $A<1? @TST + " @CM1": ($A>=1 && $A<18? @TST + " @CM2": @TST) Pommegrannite

When can Calculations look at previous results from different orders? When written in Canned Messages When written in Test Setup When written in RBS Rules Never

Time Frames Calculation can only look back in time if written in a Post Result RBS rule. Syntax @TEST[2] Search back 2 days for numeric result of TEST starting with the current order. @TEST[-2] Search back 2 hours for numeric result of TEST starting with the current order. @TEST{1}[2] Search back 2 days for numeric result of TEST skipping the current order.

Time Frames $@ACOAG[2]=="HEPARIN"? @PTI+" @HEP": ($@ACOAG[-8]=="COUMADIN"? @PTI+" @COUM": @PTI)

Preserving Historical Data Every time you go into Edit Mode, calculated results will RECALCULATE! Verified results that Recalculate, will generate an RMOD (corrected result)!

Preserving Historical Data 2 ways to keep historical data safe! GETDBF GETDBF("ACCDATE") MESEXPDATE

GETDBF GETDBF("ACCDATE")<20140905? $@TEST :"New Calculation" "Old Calculation":"New Calculation"

MESEXPDATE

Looping Occurs when trying to calculate a test based on its own results...

Looping 4 Types Cyclic dependencies Change precision Absolute Expression Keep adding canned message

Cyclic dependencies Problem Test HGB contains calculation... @HGB/3

Cyclic dependencies Solutions Build a new test Add @L HGBI HGB (reportable) @HGBI/3 Add @L (@HGB/3)+" @L"

Changing Precision Problem Alphanumeric Test contains calculation @VZV>0.8 && @VZV<1.1? @VZV+"@EQU": @VZV .25 becomes 0.250000

Changing Precision Build the test as Numeric Add @L Solution @VZV>0.8&& @VZV<1.1? @VZV+" @EQU" +" @L":$@VZV+" @L"

Absolute Expression Numeric Results changed to Alphanumeric Problem Numeric Results changed to Alphanumeric @TST>5?"POSITIVE": "NEGATIVE" Result will always be NEGATIVE

Absolute Expression Solutions TSTI TST (reportable) Build a new test TSTI TST (reportable) @TSTI>5?"POSITIVE": "NEGATIVE" Add @L @TSTI>5?"POSITIVE"+" @L": "NEGATIVE"+" @L"

Continuously Adding Canned Messages Problem $@ACOAG=="COUMADIN“? $@PTI+"@COUM": ($@ACOAG=="HEPARIN"?$@PTI+“ @HEPA": $@PTI)

Continuously Adding Canned Messages Solution MATCH MATCH("*@*",$@PTI)? $@PTI: ($@ACOAG=="COUMADIN"?$@PTI+" @COUM": ($@ACOAG== "HEPARIN"?$@PTI+" @HEPA":$@PTI)) STRSTR STRSTR($@PTI,"@")>0?$@PTI: ($@ACOAG == "COUMADIN"?$@PTI+"@COUM": ($@ACOAG =="HEPARIN"?$@PTI+"@HEPA":$@PTI))

When does looping occur? When a test in the calculation isn’t on the current order. When adding canned messages to results. When a test is calculated based on its own result. When using $@ Whenever I try to write a calculation!!!

Complex Examples

GFR $F:=GETDBF("SEX")=="F"?0.742:1; $B:=GETDBF("RACE")=="B"?1.21:1); $X:=186*POW(@CREAT,1.154)* POW((@CREAT->"AGE"/365.25),-0.203) *$F*$B; $X>60?">60":$X

More complex GFR $F:=(GETDBF("SEX")=="F"?0.742:1); $B:=(GETDBF("RACE")=="B"?1.21:1); $A:=(@CREAT->"AGE"/365.25); $V:=186* POW(@CREAT,-1.154)*POW($A,-0.203)*$F*$B; $X:=$V>60?">60":$V; $A<20?$X: (($A>=20 && $A<30) ? $X + " @AV20" : (($A>=30 && $A<40) ? $X + " @AV30" : (($A>=40 && $A<50) ? $X + " @AV40" : (($A>=50 && $A<60) ? $X + " @AV50" : (($A>=60 && $A<70) ? $X + " @AV60" : (($A>=70) ? $X + " @AV70" :$X)))))),$X

Tips… Test ALL possible answers Combat looping Don’t cut and paste from emails or Word - Use Notepad

Questions?