NPR Class

Iatric Systems is offering an NPR class in Baltimore, Maryland  October 10-12.

From To Client/Location Class System Status Instructor
10/10/2011 10/12/2011 Greater Baltimore Medical Center
Baltimore, MD
Karen Roemer
978-805-3142
NPR
Int/Adv
C/S Fee for Seat Philip Sherry
(978) 805-4145

For more information, visit http://www.iatric.com/Information/Classes.aspx or contact Phil Sherry or Karen Roemer.

MEDITECH 6.0 Reports

Did your organization migrate to Windows Vista? Will your organization implement production reports using the Report Designer?  MEDITECH Report Writers can only hope that MEDITECH Development is working on a new and improved version of the Report Designer.  Here’s a little review … 6.0 has been in the works for 5+ years

Read more.

Iatric Systems Offers NPR Training in March 2011

Iatric Systems is pleased to offer an Intermediate/Advanced NPR training session hosted by John Muir Health in Walnut Creek, California. Walnut Creek is approximately 30 minutes from the Oakland International airport, and also accessible from the San Francisco airport.

Class Details:

Instructor Dates Cost
Richard Serrano March 23 – 25, 2011 $750 per seat

Topics to Include:

  • Using fragments to return values and select records
  • Handy MEDITECH Standard Programs to use in Reports
  • Writing Macros
  • MV Arrays
  • Control Structures – IF Statements and DO Loops
  • Magic + and – operators
  • Next, Previous and Looping Operators
  • Looping MEDITECH data structures
  • ECB and ECE Loops
  • Converting MEDITECH Standard Reports when INIT REPORT FROM STD fails

If you are interested in attending, please contact karen.roemer@iatric.com or call Karen at 978-805-3142.

Learn more.

Meditech-L: Need Help with NPR Report Calculate date to select by

%Z.day.from.date(@.today) = DOW 1-7

%Z.date.add(DATE,0-N) will subtract N days from any date and give you the date.

Combine these in a start macro to put your date range into /FROM and /THRU and then use those in your selections.

If “a whole week from two weeks ago” means back up to the current week’s Sunday and then go back two weeks from that to get to the start date:

%Z.day.from.date(@.today)^DOW,
%Z.date.add(@.today,0-(DOW-1))^SUN,
%Z.date.add(SUN,0-14)^/START,
%Z.date.add(/START,7)^/END

Posted to the Meditech-L by Joe Cocuzzo, Vice President of NPR Services at Iatric Systems, Inc.

January 2011 NPR Report Writing Tips

by Joe Cocuzzo, Iatric Systems Vice President of NPR Services

Type-Ahead lookup (MAGIC Only)

It is possible to create a lookup field on an NPR report that exploits a “type-ahead” Z program available in MEDITECH MAGIC. The program works in both the 3.x and 4.x versions of the MEDITECH Remote Workstation. You get <OK> and <CANCEL> buttons if you are in the 4.x version.

“Type-ahead” behavior is useful if you want to zero in on the appropriate values rather than enter a partial value and then press the F9 key and hunt down or up the list.

As an example, we will create a report that does a “type-ahead” lookup on user names.

First, create a simple report in the main segment (mis.users) of the MIS.USER dictionary and add two select fields:

January Tip 1

Next, write a macro as a program and call the MEDITECH Z.id.type.ahead.lookup program in that macro.

For this report we call the macro “id” so the program is %MIS.USER.zcus.is.type.ahead.lookup.M.id
There are a lot (A – R) of arguments that are documented at the top of the Z.id.type.ahead.lookup program, but here is what we pass:

A = ^/GUN or the “name of” the name index.
B = A (the value that the user entered in the report screen)
C = “Name”:30TL_” Mnemonic” this is the header we want per screenful of lookup entries
D = MN:30TL_”_D(34)_” “_D(34)_CD:41TL” or the line of code that will display each entry MN = the name subscript CD = the mnemonic
E = “AR” the lookup options (A for Active Only R for Reject New Entries)
F = “Users by Name”:50TL our title for the lookup window . Note that the length of the string determines the width of the lookup window. If you make it too narrow your data will wrap.
G = Number of lines “down” to start data listing
H = Q(30,0,0,””) Length of select prompt and start row and column
I = If true, show exact matches only
J = If true the structure is an index (we send 1 here as \GUN[lookup name, mnemonic] is the name index in MIS.USER)
K = If true the structure is a dictionary (we send nil here as \GUN is not a dictionary)

Our macro code (first line is broken here so the entire line is displayed):

January Tip 2

When we call the Z.id.type.ahead.lookup program, it returns the mnemonic of the selected entry, and we store that in /SELECT so that the report knows which user to print.
We return both the mnemonic and name, so both display in the free text prompt.

If we enter a partial name and hit the F9 key:

January Tip 3

We get a lookup which has type ahead behavior and we can add to the string to narrow down to the value we want to pick:

January Tip 4

A copy of this example report, MIS.USER.zcus.is.type.ahead.lookup has been posted to our MAGIC NPR report library.

http://www.iatric.com/Information/NPRReportLibrarySearch.aspx.

P.S.

The Z.id.type.ahead.lookup program has documentation of arguments as comments at the top of the program, as is typical of most NPR procedures. To view them, use the F4 key in a macro and then enter \ and the name of the procedure. A lookup is available of procedures. You can use the same technique to copy the source code of programmer NPR R/W macros, except that (in MAGIC only) you need to type the name of the macro exactly. In Client Server you can use the F5 key then enter the DPM, enter M<space>procedure name and get a lookup of macro names.

You can find additional NPR Tips on our website athttp://www.iatric.com/Information/NPRTips.aspx, as well as information about our on-site NPR Report Writer Training and NPR Report Writing Services.

Upcoming NPR Training Opportunities:

We are pleased to offer NPR Report Writer training sessions at host sites.  Details and a course description are available on our website at http://www.iatric.com/Information/Classes.aspx.

Location Level Instructor Date Cost
John Muir Health
Walnut Creek, CA
Intermediate / Advanced Richard Serrano March 23-25, 2011 $750

To subscribe for email notifications for new classes, please follow this link:http://www.iatric.com/Information/Classes.aspx.

For more information or to reserve a seat, please contact Karen Roemer at 978-805-3142 or email karen.roemer@iatric.com.

(This article originally appeared in the January 2011 issue of Iatric Systems’  Updates! newsletter.)

Meditech-L: Get rid of trailing spaces in NPR fields

From Joe Cocuzzo, Iatric Systems VP of NPR Services:
If you just have to do your output in the picture, do the following:

Add footnotes:

SFF NO
EFF NO
PFF NO (if you are C/S)
FD 124

Add a DAT=INT to every field (standard or computed)

Go to http://mtusers.net for more.

December 2010 NPR Report Writing Tips

by Joe Cocuzzo, Iatric Systems Vice President of NPR Services

Nursing Report that finds its own interventions (MAGIC or Client/Server)

Recently I was asked to write a report to present the most recently documented home medications on a selected patient, and I was given a list of 20 comment queries that contained the data of interest. Unfortunately, these queries were on about six different interventions, so it was necessary to check all six interventions for the patient and present data from the most recently documented intervention of that set.

I could have hard-coded the six “int base” values in my report, but if there are six interventions today there might be seven tomorrow and the report would break as the new intervention was created. I could have processed all the documentation of the patient to pick out the most recent set of home medication queries, but such a report is slower and not as convenient to write.

Instead, I picked one of the home medication queries and used it to check the Nursing index of screens and interventions to gather a list of the possible interventions at run time, and to check that set. This way I have the best of both worlds, the report does not break if new home med interventions are created, yet the report remains speedy and reasonably easy to write.

The report is written in NUR.PC.WORK with a detail segment of “times.done” (C/S) or nur.int.documented.activity (MAGIC). No index is needed as we prompt for a single patient, and (combined with the subscripts we set up in the start macro) that gets us right to the instance of documentation that we want, the most recent time home meds were filed, considering all home med interventions that could have been documented.

MAGIC approach:

In a start macro, I wrote a loop that checked all the screens currently associated with interventions in NUR to see if one of the home med queries was present on that screen. If so, I saved the intervention number in a little slash file as the subscript.

It might be easier to follow this as object code:

Client/Server Approach

In Client Server (C/S), the @ NUR.INT.screen.x actually holds the mnemonics of MIS assessments, not CDSs, so the code needs to go through that index, then check the assessment dictionary (also handling group type assessments) for the query of interest. Other than this step, the code in the C/S report is identical to that used in the MAGIC report.

Once I have my list of interventions, I can process that list, checking the documentation of the patient the user has selected and picking out the most recent instance of documentation.

The easiest way to do that is to loop through all the interventions, then the documentation activity, skipping any undone or subsequently edited instances and holding on to the subscripts if the date and time are greater than or equal to the most recent date and time for the prior intervention processed. The report can then be set up to select that instance of documentation and you can print the queries you need on the picture.

In the example report (a real report at a customer site), the home med information is collected in a set of 60 character long comment queries, named in this fashion:
NUR.ADM650 – NUR.ADM660 and then NUR.ADM670 – NUR.ADM679.

To save the effort of building 18 computed fields and using line checks to suppress lines built to show a query that is empty for a particular patient, we can use a counter and a couple of loops to create a list in a temporary structure containing the query responses:

Here is an example of the list created by this loop. Note that we are using the same variable to build our query mnemonics as to store our data, so the numbering starts at 650.

We could have used an MV array to store and then print out the data, but then we would need to worry about the field number to store in the MV array: /MV[“D”,SORT,FIELD#]. Instead we can use a loop wrapped around a single line of our report picture and a computed field to print out each value from /DATA[CNT] = home medication:

So here is the report output:

Two sample reports have been placed in our report library, a MAGIC report NUR.PC.WORK.zcus.med.recon.audit and a C/S report NUR.PC.WORK.zcus.is.get.assessments by query.

You can find additional NPR Tips on our website at http://www.iatric.com/information/npr-tips.asp, as well as information about our on-site NPR Report Writer Training and NPR Report Writing Services.

Upcoming NPR Training Opportunities:

We are pleased to offer NPR Report Writer training sessions at host sites.  Details and a course description are available on our website at http//www.iatric.com/npr/class-schedule.asp.

Location Level Instructor Date Cost
John Muir Health
Walnut Creek, CA
Intermediate / Advanced Richard Serrano March 23-25, 2011 $750

To subscribe for email notifications for new classes, please follow this link:http://www.iatric.com/npr/class-schedule.asp.

For more information or to reserve a seat, please contact Karen Roemer at 978-805-3142 or emailkaren.roemer@iatric.com.

(This originally appeared in the December 2010 issue of Iatric Systems’  Updates! newsletter.)

Latest MEDITECH Data Definitions

MEDITECH recently posted MAGIC 5.64 and Client/Server 5.64 data definitions to their customer website.

Read & download if you have access at http://www.meditech.com/prrw/pages/RWbbASdatadef.htm.

November 2010 NPR Report Writing Tips

by Joe Cocuzzo, Iatric Systems Vice President of NPR Services

Using the Spell Check Dictionary in a Program (MAGIC Only)

As I was driving home last Sunday, listening to NPR on the radio, I heard the “Sunday Puzzler listener challenge:”

“Name a creature in six letters. Move the first three letters to the end and read the result backward to name another creature. Clue: If you break either six-letter word in half, each pair of three letters will themselves spell a word.”

I knew I could solve this puzzle in a few lines of code, provided the Merriam-Webster/Proximity spell-check dictionary contains all the words of the puzzle.

Back home, unfortunately after the submission deadline of Thursday 3pm, but just in time for my Updates “NPR Tip” deadline, I wrote a quick NPR report to solve the puzzle as follows:

  • Loop thru the spell check dictionary, checking just the six letter words  L(WORD)=6
  • Make sure the first three letters (WORD$3) and the last three letters (WORD%2) are words
  • Rearrange the letters from ABCDEF to DEFABC and make sure the re-arranged string is also a word
  • (Use #n to extract each character and _ to rebuild the new string)

Or…  in MAGIC code:

Enter/Edit Macro

In just a few seconds, the program produces these words that meet the puzzle criteria:

Puzzle Solution

Is there a practical use for the spell check dictionary in a report?

I wrote a report years ago for a hospital that does not encrypt passwords, and has a policy that a password cannot be a word, part of your name, a date or your phone number or extension.

Apparently, there are still a few violators of the policy, although most of the user mnemonics look like training, scripting, or other not-real-user users.

Names and passwords have been removed from this screen shot, to protect the innocent.  I’ve not put the report in the library as I don’t want to post the code that gets passwords.  If you have a legitimate need for such a report, let me know.

Check Passwords

You can find additional NPR Tips on our website at http://www.iatric.com/information/npr-tips.asp, as well as information about our on-site NPR Report Writer Training and NPR Report Writing Services.

Read Joe’s blog posts at MEDI-Talk.

Upcoming NPR Training Opportunities:

We are pleased to offer NPR Report Writer training sessions at host sites.  Details and a course description are available on our website at http//www.iatric.com/npr/class-schedule.asp.

Location Level Instructor Date Cost
John Muir Health
Walnut Creek, CA
Intermediate / Advanced Richard Serrano March 23-25, 2011 $750

To subscribe for email notifications for new classes, please follow this link: http://www.iatric.com/npr/class-schedule.asp.

For more information or to reserve a seat, please contact Karen Roemer at 978-805-3142 or email karen.roemer@iatric.com.

(This originally appeared in the November 2010 issue of Iatric Systems’  Updates! newsletter.)

Intermediate/Advanced NPR training session

Iatric Systems is pleased to offer an Intermediate/Advanced NPR training session hosted by John Muir Health in Walnut Creek, California.  Walnut Creek is approximately 30 minutes from Oakland International airport, and also accessible from the San Francisco airport.

Class Details
Instructor            Richard Serrano
Dates                 March 23-25, 2011
Cost                   $750 per seat

Topics to include:
Using fragments to return values and select records

  • Handy MEDITECH Standard Programs to use in Reports
  • Writing Macros
  • MV Arrays
  • Control Structures – IF Statements and DO Loops
  • Magic + and – operators
  • Next, Previous and Looping Operators
  • Looping MEDITECH data structures
  • ECB and ECE Loops
  • Converting MEDITECH Standard Reports with INIT REPORT FROM STD fails

If you are interested in attending, please contact:

Karen Roemer
karen.roemer@iatric.com
Ph: 978-805-3142

Check out our training schedule.