Using Link
Don StewartPPUG 2009
DonS@SDALC
Using LINK• LINK label marker lets you put a hyperlink into a
note template, which is not saved when the note is saved.– Can link to program, spreadsheet, webpage, or
document– «LINK: Calculator | C:\Windows\system32\calc.exe» – «LINK: Brief Psychiatric Rating Scale |
http://www.medal.org/visitor/www/Files/Sheets/ch18/brief%20psychiatric%20rating%20scale/brief%20psychiatric%20rating%20scale.aspx»
More Ways of Using Link
• Acrobat Forms that calculate or manipulate data can be linked (presented by ? at the UG in 2003)
• Microsoft Word or Open Office Writer, using the program to calculate and manipulate data (described by Walker Jackson)
• Linking to Javascript programs (described by the prolific Robert Pierce)
Linking a Spreadsheet
Clicking on this Link will bring up the spreadsheet in a Practice Partner Browser Window
This spreadsheet has some macros in it, which may
need to be enabled
The Score is updated automatically
As is the severity
Putting the cursor back in the note template and pressing “Control-V” will paste a screenshot of the spreadsheet into your note, nicely formatted in a table.
A Brief Diversion
Before we move to the next level
Conditional Logic within Labels
• Conditional logic statements and letter codes are evaluated by Practice Partner within Labels, which can be very helpful at times.
• For example, you can pop up a Label to remind you about something:
• ||IF BODY_MASS_INDEX >= "25.0" {«*** BMI OVER 25 -- DIABETES SCREENING
INDICATED*** LAB<GLUCOSE, FASTING>[- Date] LAB<GLUCOSE, RANDOM>[-Date] LAB<HEMOGLOBIN A1C>[-Date] ...»} ||
This is how it looks in the note.
Way Cool Stuff!
Clicking on this Link will bring up an Ideal Body Weight Calculator
Courtesy of Robert Pierce
Clicking on the “Copy text” button sends “L:IBW: 110” to the Windows Clipboard. Then, hitting the Escape Key or closing the PMSI browser window will put you back in your template
Back to the Template
Place your cursor here and press “Control-V” to paste from the clipboard.
After You Press “Control-V”
Passing Parameters in Link
• Robert Pierce made the cognitive leap of genius that you can pass command-line parameters to programs using the Link label.
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html?hgt=||VITAL_HGT||&sex=||IF PAT_SEX = "male" {1} ELSE {0}||&datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||&age=||PAT_AGE||»
Let’s Break this Down:
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html
IBW is the name of the
Link
Q:\PPART\Descision Tools\IBW.html is the Javascript program
that is activated when the link lablel is clicked
The Parameters being Passed
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html?hgt=||VITAL_HGT||&sex=||IF PAT_SEX = "male" {1} ELSE {0}||&datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||&age=||PAT_AGE||»
• hgt is set to ||VITAL_HGT||
hgt is the parameter passed to IBW.htnl
||VITAL_HGT|| is the letter code for the patient’s
height
Conditional Logic for sex
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html?hgt=||VITAL_HGT||&sex=||IF PAT_SEX = "male" {1} ELSE {0}||&datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||&age=||PAT_AGE||»
• &sex=||IF PAT_SEX = "male" {1} ELSE {0}||
sex is set to 1 or 0
Based upon the evaluation of the conditional logic
statement
Do We Have Data for Height?
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html?hgt=||VITAL_HGT||&sex=||IF PAT_SEX = "male" {1} ELSE {0}||&datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||&age=||PAT_AGE||»
• &datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||
datahgt tells the
Javascript program whether
data exists
According to this conditional logic
statement
Finally, We Pass Age to IBW.html
• «LINK: IBW | Q:\PPART\Decision Tools\IBW.html?hgt=||VITAL_HGT||&sex=||IF PAT_SEX = "male" {1} ELSE {0}||&datahgt=||IF VITAL_HGT = "" {0} ELSE {1}||&age=||PAT_AGE||»
Logging In to the Home System
to show that this stuff really works