Report Writing Tips April 2013: Selection based on a subtotal (MAGIC or Client/Server)

Many NPR report writers have trouble writing a report that has to do selection based on a total. For example, list all patients with three or more visits to a particular doctor during a period. A fragment called from a computed select field can be used for this kind of report, but fragments are tedious and slow. Some loops in a start macro could be used, but that can be a bit too complex.

This tip will show you how you can use the temporary sort file built by your report plus a line check to effectively select based on a total. No fragment is needed, and just one simple loop (using something called “physical nexting”) on the temp file will get the job done.

Even though Joel hates LC’s as a record selection technique, I had a recent request where the hospital asked me to change a report they originally insisted they wanted per visit to one that was per unit number and this trick saved a lot of re-write time. Joel wants me to point out that anything in the TR will be “wrong” because records suppressed with an LC still count in any totals or other statistics. You really don’t have those in a mailing list, however.

First, you need to add a sort by unit.number with a key and trailer, and set up your report to select all visits for a particular attending doctor for a date range.

You also prompt with an “IG” or IGNORE operator so that the desired minimum visit count can be found in c.xx.visit.count.

Without a bit of extra programming, we will see all visits for the selected doctor:

If we could count the visits before printing the set of detail records, we could use a line check to suppress the set of visits for patients with less than the minimum number.

Since we have added a sort, the report writer builds an index of all selected records before it prints any:

What we need to do is loop in the HK1 region (the sort per unit number) and count how many entries are in the temporary file so we can set a flag to control whether the set of visits print or not.

If we use a macro called AL HK1, we will have the local variable unit.number (do not use the @ sign) equal to the unit number of the patient who is about to be printed.

Notice how if we use the @ sign on the variable unit number, the translator converts that to a reference to stored data at the individual record level. In the HK region sorting by unit number, your urn is set to the value of the PRIOR patient or is nil for the first patient, so you should not use that variable to figure out which patient you are “on.”

But if you use unit.number you get dzU, which is the local subscript that the report is looping on, and it represents the unit number of the patient you are about to print.

If we loop on the temp file like so, we can count the records and set a flag in OK to allow the visits to print if we have enough of them:

The > operator is doing “physical nexting.”  This goes through all subscripts of a structure with one loop, so you could have any number of sort subscripts in the temporary sort file after the unit number and the looping and counting would still work.  If you used the “+” operator (logical next), you’d need to write a level of looping for each sort subscript and nest them.

The “NOT.AS.GOOD” code, which loops on /[“temp” instead of [/R.TF, is deficient because MEDITECH will swap the temp sort file out to disk and it is kept in a different place, and your loop will fail if you run your report for a large set of records.  Using /R.TF to loop on makes sure your code works whether the temp file is in memory or on the disk.

Now if we run the report, we will only see patients with three or more visits during the period for the selected doctor.

Sample reports called ABS.PAT.zcus.is.suppress.based.on.total have been uploaded to our report library, along with a more complex MAGIC report: ABS.PAT.zcus.is.provider.mailing.list.demo, which includes code to go to MRI.PAT to exclude expired patients and get the latest mailing address information from MRI.DRC. That report also has a “list visits” or “just list patients per unit number” option.

Search our report library for more Report Writing tips:
http://www.iatric.com/Information/NPRReportLibrarySearch.aspx.

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

To subscribe for email notifications for new Report Writing classes, please follow this link:

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

For more information, please contact Karen Roemer at 978.805.3142 or email karen.roemer@iatric.com.

MEDITECH: Nurse and Home Care Conference

MEDITECH has a new video about the upcoming Nurse and Home Care Conference, June 5-7. Click the image to open the video.

Nurse and Home Care Conference

Come to this year’s Nurse & Home Care Conference and learn about the solution. Learn more at meditech.com.

MUSE Weekend Immersion in Nursing Informatics

According to the American Nurses Association (ANA) Scope and Standards of Practice, all nurses need to utilize nursing informatics concepts in their practice.

Whether you are a new informatics nurse, experienced nurse, nurse educator or staff nurse, this course is designed for you.

This continuing nursing education activity was approved by Maryland Nurses Association, an accredited approver by the American Nurses Credentialing Center’s Commission on Accreditation. 18 contact hours will be awarded.

Saturday June 1 and  Sunday June 2, 2013

Learn more: see the full agenda and registration details.

MEDITECH: Make a Reservation

2013 Nurse and Home Care Conference

Preparations are well underway for our 11th annual Nurse and Home Care Conference! Don’t miss this once-a-year chance to hear firsthand what MEDITECH has planned for our Nurse and Home Care communities.

Join us this June and see why this is the premier gathering of MEDITECH nurse executives, informaticists, and home care professionals.

Cathy Turner’s Top Five Reasons to Attend:

  1. Hear from award winning author and Keynote Speaker, Liz Jazwiec, RN!
  2. Explore big picture topics in our Main Program Sessions.
  3. Learn new strategies in the Breakout Sessions.
  4. Earn continuing education credits*.
  5. Network with MEDITECH executives, and fellow nurse and home care professionals.

*Submitted to the Massachusetts Association of Registered Nurses, Inc., for approval to award contact hours.

As always, there are no registration fees to attend. Keep an eye out for additional information, to be posted soon, and sign up today to reserve your spot!

Questions?
Contact Program Coordinator Sharon Collins at 781-774-5387.

Source.

MUSE Webinar: Is your emergency room encountering challenges with EDM, CPOE or eMAR?

Emergency Room Technology – to the Moon and Beyond. 

Hear the story of Southern Hills Medical Center’s progression to a complete electronic record in the emergency room.

This webinar provides details of the facility’s lessons learned, including:

  • managing pharmacy review of medications
  • overrides and quick charge
  • dictionary builds for EDM and CPOE
  • training strategies
  • working from the EDM tracker
  • changes in communication with CPOE

Learn more or register for the 12/12 session.

MEDITECH: Like a Fish Takes to Water

MEDITECH’s BV and TAR fit right into Bert Fish Medical Center’s goals for improving clinical workflow and patient safety.

Bert Fish Medical Center (New Smyrna Beach, FL) is lightening clinicians’ workloads and easing patients’ minds with its new MEDITECH Bedside Verification (BV) and Transfusion Administration Record (TAR) functionality.

With the help of superusers–a group spearheaded by ED Nurse Manager Dawn Myers, RN–Bert Fish’s Emergency Department implemented BV in no time, and started benefiting from it just as quickly.

“Our nurses are loving their new BV solution,” says Lucy Campaniello, RN, clinical analyst at Bert Fish. “It makes the medication administration process so much quicker. Now, when we document something, it’s done. All the information is concentrated – no more retracing steps.”

Read more at meditech.com.

Making a Positive Difference

Home Care Director Beth Hellriegel, RN, shares how she makes a positive difference in patient’s lives with MEDITECH’s EHR.

Check out the video.

Curbside Consult with Dr. Jayne 7/23/12

Last week was the first in a series of pieces about vendors using physicians and other clinical experts in design, implementation, and support…

I received a nice response from HIStalk sponsor Iatric Systems with a thorough write-up of its Physician Design Team, which was created to develop its IatriCare and OrderEase solutions. They win the prize for accompanying their submission with professional head shots, which I know always makes Inga and Mr. H happy. They also get points for showing that they actually read Curbside Consult:

clip_image002

Iatric Systems’ Physician Design Team is made up of physicians, nurses, and programmers. The providers on our team have years of clinical experience. For example, Suresh Nekuri MD is the medical director and a practicing hospitalist at Roane Medical Center (part of Covenant Health) in Knoxville, TN. He participated in the implementation of CPOE and the development of order sets for all eight Covenant hospitals. Michelle Schneider, a registered nurse on the team, has clinical experience in cardiac and intensive care. She worked for 14 years in a healthcare system that uses Meditech before joining Iatric Systems. The team’s focus was to design a CPOE solution that streamlines physician workflow so doctors can provide quality care to patients in less time.

Read more at HISTalk and let us know your thoughts in the comments.

MEDITECH is Listening

Debbie Raposo, BSN, LNC, BC-NI, Director of Clinical Informatics at Southcoast Hospitals Group (New Bedford, MA), shares her enthusiasm to participate on MEDITECH’s Nurse Advisory Council, where industry-leading nurses can network, dialogue, and in turn “really make a difference for patient care.”

Watch the video: “MEDITECH is Listening”

MEDITECH: Social Studies

Turn Up The Patient Voice

We are living in what some would call the “e-patient era.” The typical e-patient searches the web to find out more about her symptoms and health conditions before ever setting foot in a doctor’s office. She connects with other patients over discussion boards and posts opinions about treatments and facilities she’s experienced. Maybe she even evaluates the quality of your care.

“Today’s patients have a power they’ve never had before. They are using new data sources more and more, actively seeking out resources and understanding their own bodies better with the help of the Internet,” says Sally Okun, RN, health data integrity manager at PatientsLikeMe, a free social network that connects people who are coping with similar health conditions.

Read more at meditech.com.