Today I will continue our Techie Tuesday series: the Top 5 Things You Hate About NPR and How to Love Them. Today we will focus on MV arrays, and unlocking the mystery behind them.
To demonstrate utilizing MV Arrays, we will create a report that displays allergy information for all in-house patients.
Build /MV Structure
–Magic: /MV[<MV Name>,<Sort Field>,<Field Number>]
–C/S: /R.MV[<MV Name>,<Sort Field>,<Field Number>]
MV Name – Name used to identify the array
Sort Field – key value used to sort the values stored in the array. This value must be unique for each value in the list
Field Number – field number must match the field number on page 3
Add fields to report (as a multiple) for displaying MV array information
–If displaying on detail section, add field attribute FNC=LST
Add MV line attribute to first row of multiple (MV=<MV Name>)
/MV[“AL”,1,6] = “TYLENOL”
/MV[“AL”,2,6] = “LATEX”
/MV[“AL”,3,6] = “PENICILLIN”
/R.MV[“AL”,1,6] = “TYLENOL”
/R.MV[“AL”,2,6] = “LATEX”
/R.MV[“AL”,3,6] = “PENICILLIN”
Open prefix to Pharmacy using %Z.link.db for C/S (%Z.link for Magic)
Call %PHA.MAR.allergies in order to build /R.MV array (/MV for Magic) with allergy information for the current patient
Once you have solved the mystery, MV Arrays can be a powerful asset in NPR. I’d love to hear how this Techie Tuesday tip works for you.