Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: ORWPS

Package: Order Entry Results Reporting

Routine: ORWPS


Information

ORWPS ; SLC/KCM/JLI/REV/CLA - Meds Tab; 02/11/2008

Source Information

Source file <ORWPS.m>

Call Graph

Call Graph Total: 9

Package Total Call Graph
Order Entry Results Reporting 3 MEDS^ORCXPND1  WPVAL^ORWDXR  $$OI^ORX8  
Barcode Medication Administration 2 HISTORY^PSBMLHS  RPC^PSBO  
Kernel 1 $$PATCH^XPDUTL  
Outpatient Pharmacy 1 OCL^PSOORRL  
Toolkit 1 ($$GET,DEL,GETLST,PUT)^XPAR  
VA Fileman 1 ^%DT  

Caller Graph

Caller Graph Total: 3

Package Total Caller Graph
Outpatient Pharmacy 3 PSOQMCAL  PSOQUAP  PSOQUAP2  

Entry Points

Name Comments DBIA/ICR reference
UDINST(Y,INDEX) ; assembles instructions for a unit dose order
COVER(LST,DFN) ; retrieve meds for cover sheet
DT(X) ; -- Returns FM date for X
NXT() ; increment ILST
OPINST(Y,INDEX) ; assembles instructions for an outpatient prescription
MEDHIST(ORROOT,DFN,ORIFN) ; -- show admin history for a med (RV)
NVREASON(ORR,NVSDT,INDEX) ; assembles start date and reasons for a non-VA med
REASON(ORY) ; -- Return Non-VA Med Statement/Reasons
NVINST(Y,INDEX) ; assembles instructions for a non-VA med
DETAIL(ROOT,DFN,ID) ; -- show details for a med order
IVINST(Y,INDEX) ; assembles instructions for an IV order
ACTIVE(LST,DFN,USER,VIEW,UPDATE) ; retrieve active inpatient & outpatient meds
SETMULT(Y,INDEX,SUB) ; appends the multiple at the subscript to Y
COMPRESS(Y) ; concatenate Y subscripts into smallest possible number

External References

Name Field # of Occurrence
^%DT DT+1
MEDS^ORCXPND1 DETAIL+4
WPVAL^ORWDXR NVREASON+7
$$OI^ORX8 MEDHIST+3
HISTORY^PSBMLHS MEDHIST+15, MEDHIST+17, MEDHIST+24, MEDHIST+26
RPC^PSBO MEDHIST+22
OCL^PSOORRL COVER+2, ACTIVE+19
$$GET^XPAR ACTIVE+8, ACTIVE+10, ACTIVE+14
DEL^XPAR ACTIVE+9
GETLST^XPAR REASON+2
PUT^XPAR ACTIVE+15, ACTIVE+16
$$PATCH^XPDUTL MEDHIST+10

Used in RPC

RPC Name Call Tags
ORWPS ACTIVE ACTIVE
ORWPS DETAIL DETAIL
ORWPS COVER COVER
ORWPS MEDHIST MEDHIST
ORWPS REASON REASON

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^OR(100 - [#100] ACTIVE+26, NVREASON+5, NVREASON+6, MEDHIST+5, MEDHIST+19
^ORD(100.98 - [#100.98] MEDHIST+6, MEDHIST+7, MEDHIST+8
^ORD(101.41 - [#101.41] MEDHIST+9
^SC - [#44] ACTIVE+32
^TMP("ORACT" ACTIVE+2!, ACTIVE+23!, ACTIVE+50!
^TMP("ORHIST" MEDHIST+4
^TMP("ORXPND" DETAIL+1!, DETAIL+5
^TMP("PS" COVER+1!, COVER+4, COVER+5, COVER+7, COVER+9!, ACTIVE+1!, ACTIVE+21, ACTIVE+25, ACTIVE+27*, ACTIVE+29
, ACTIVE+31, ACTIVE+34, ACTIVE+35, ACTIVE+49!, UDINST+2, OPINST+2, IVINST+10, IVINST+13, IVINST+14, NVINST+2
, NVREASON+3, SETMULT+3

Label References

Name Line Occurrences
$$DT ACTIVE+11
$$NXT COVER+7, COVER+8, ACTIVE+44, ACTIVE+45, ACTIVE+46, ACTIVE+47, ACTIVE+48
IVINST ACTIVE+38
NVINST ACTIVE+39
NVREASON ACTIVE+39
OPINST ACTIVE+37
SETMULT ACTIVE+40, UDINST+7, UDINST+9, OPINST+7, OPINST+9, OPINST+10, OPINST+11, IVINST+4, IVINST+5, IVINST+9
, NVINST+5, NVINST+7, NVINST+8, NVINST+9
UDINST ACTIVE+36

Naked Globals

Name Field # of Occurrence
^( SETMULT+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT DT+1~*
BEG ACTIVE+3~, ACTIVE+4*, ACTIVE+11*, ACTIVE+19
CKPKG MEDHIST+1~, MEDHIST+10*, MEDHIST+20, MEDHIST+21
CLINDISP MEDHIST+2~, MEDHIST+8*, MEDHIST+19
CNT IVINST+1~, IVINST+8*
COMMENTS ACTIVE+20~, ACTIVE+22!, ACTIVE+24*, ACTIVE+25*, ACTIVE+40, ACTIVE+41*
COMMENTS( ACTIVE+47
COMMENTS(1 ACTIVE+42*
CTX ACTIVE+3~, ACTIVE+4*, ACTIVE+8*, ACTIVE+9, ACTIVE+10*, ACTIVE+11
DFN COVER~, COVER+2, ACTIVE~, ACTIVE+19, DETAIL~, DETAIL+3, MEDHIST~, MEDHIST+17, MEDHIST+22, MEDHIST+26
DURU IVINST+16~*, IVINST+21*, IVINST+22, IVINST+23, IVINST+24, IVINST+25
DURV IVINST+16~*, IVINST+18*, IVINST+19, IVINST+21*, IVINST+22, IVINST+23, IVINST+24, IVINST+25
DUZ ACTIVE+9, ACTIVE+12, ACTIVE+15, ACTIVE+16
END ACTIVE+3~, ACTIVE+4*, ACTIVE+11*, ACTIVE+19
ERROR ACTIVE+3~, ACTIVE+15, ACTIVE+16
FIELDS ACTIVE+20~, ACTIVE+25*, ACTIVE+26, ACTIVE+28, ACTIVE+33, ACTIVE+43*, ACTIVE+44, ACTIVE+45, IVINST+6
HPIV MEDHIST+1~, MEDHIST+3*, MEDHIST+7*, MEDHIST+19
I UDINST+1~, UDINST+10*, OPINST+1~, OPINST+13*, IVINST+1~, IVINST+11*, NVINST+1~, NVINST+11*, SETMULT+1~, SETMULT+3*
, COMPRESS+1~, COMPRESS+2*, COMPRESS+3, COMPRESS+4
ID DETAIL~
ILST COVER+3~*, ACTIVE+20~*, NXT+1*, NXT+2
INDEX UDINST~, UDINST+2, UDINST+7, UDINST+9, OPINST~, OPINST+2, OPINST+7, OPINST+9, OPINST+10, OPINST+11
, IVINST~, IVINST+4, IVINST+5, IVINST+9, IVINST+10, IVINST+13, IVINST+14, NVINST~, NVINST+2, NVINST+5
, NVINST+7, NVINST+8, NVINST+9, NVREASON~, NVREASON+3, SETMULT~, SETMULT+3
INSTRUCT ACTIVE+20~, ACTIVE+22!, ACTIVE+25*, ACTIVE+36, ACTIVE+37, ACTIVE+38, ACTIVE+39
INSTRUCT( ACTIVE+46
ISIV MEDHIST+1~, MEDHIST+3*, MEDHIST+6*, MEDHIST+19
ITMP COVER+3~, COVER+4*, COVER+5, COVER+7, ACTIVE+20~, ACTIVE+21*, ACTIVE+25, ACTIVE+27, ACTIVE+29, ACTIVE+31
, ACTIVE+34, ACTIVE+35, ACTIVE+36, ACTIVE+37, ACTIVE+38, ACTIVE+39, ACTIVE+40
IVDIAL MEDHIST+2~, MEDHIST+9*, MEDHIST+19
IVDUR IVINST+1~, IVINST+2*, IVINST+14*, IVINST+15, IVINST+17, IVINST+18, IVINST+19*, IVINST+20, IVINST+21, IVINST+22*
, IVINST+23*, IVINST+24*, IVINST+25*, IVINST+26
J ACTIVE+20~, ACTIVE+46*, ACTIVE+47*, ACTIVE+48*, NVREASON+1~, NVREASON+8*, SETMULT+1~, SETMULT+2*, SETMULT+5*, SETMULT+6
, COMPRESS+1~*, COMPRESS+3*, COMPRESS+4
LCNT DETAIL+2~, DETAIL+3*
LOC ACTIVE+30~*, ACTIVE+31*, ACTIVE+32, ACTIVE+44
LOCEX ACTIVE+30~*, ACTIVE+32*, ACTIVE+44
LST COVER~, ACTIVE~
LST( COVER+7*, COVER+8*, ACTIVE+44*, ACTIVE+45*, ACTIVE+46*, ACTIVE+47*, ACTIVE+48*
LST(0 ACTIVE+18*
NVSDT ACTIVE+20~, ACTIVE+39, ACTIVE+43, NVREASON~, NVREASON+6*
ORA NVREASON+1~, NVREASON+7
ORA( NVREASON+8
ORE REASON+1~
ORI NVREASON+1~, NVREASON+2*, NVREASON+8*
ORIFN MEDHIST~, MEDHIST+3, MEDHIST+5, MEDHIST+19
ORN NVREASON+1~, NVREASON+4*, NVREASON+5, NVREASON+6, NVREASON+7
ORPHMID MEDHIST+1~, MEDHIST+5*, MEDHIST+14, MEDHIST+22
ORPSID MEDHIST+1~, MEDHIST+3*, MEDHIST+17, MEDHIST+26
ORR NVREASON~, NVREASON+2!
ORR( NVREASON+8*
ORROOT MEDHIST~, MEDHIST+4*, MEDHIST+16, MEDHIST+17, MEDHIST+20, MEDHIST+22, MEDHIST+23, MEDHIST+25, MEDHIST+26
ORVP DETAIL+2~, DETAIL+3*
ORY REASON~, REASON+2
REASON ACTIVE+20~, ACTIVE+22!, ACTIVE+39
REASON( ACTIVE+48
ROOT DETAIL~, DETAIL+5*
RST UDINST+1~, UDINST+3*, UDINST+4, UDINST+6, UDINST+7, UDINST+8, UDINST+9, UDINST+10, UDINST+11, OPINST+1~
, OPINST+3*, OPINST+4, OPINST+5, OPINST+6, OPINST+7, OPINST+8, OPINST+9, OPINST+10, OPINST+11, OPINST+12
, OPINST+13, OPINST+14, IVINST+1~, IVINST+3*, IVINST+4, IVINST+5, IVINST+6, IVINST+7, IVINST+8, IVINST+9
, IVINST+10, IVINST+11, IVINST+12, IVINST+13, IVINST+20, IVINST+26, IVINST+27, NVINST+1~, NVINST+3*, NVINST+4
, NVINST+5, NVINST+6, NVINST+7, NVINST+8, NVINST+9, NVINST+10, NVINST+11, NVINST+12
SOLN1 IVINST+1~, IVINST+4*, IVINST+6, IVINST+7*
STVIEW ACTIVE+3~, ACTIVE+14*, ACTIVE+15*, ACTIVE+16*, ACTIVE+17, ACTIVE+18
SUB SETMULT~, SETMULT+3, SETMULT+4
TYPE ACTIVE+20~, ACTIVE+28*, ACTIVE+29*, ACTIVE+31, ACTIVE+33*, ACTIVE+34*, ACTIVE+35*, ACTIVE+36, ACTIVE+37, ACTIVE+38
, ACTIVE+39, ACTIVE+40, ACTIVE+43, ACTIVE+45
U COVER+6, COVER+7, COVER+8, ACTIVE+28, ACTIVE+32, ACTIVE+43, ACTIVE+44, ACTIVE+45, UDINST+4, UDINST+5
, OPINST+4, OPINST+5, OPINST+6, IVINST+6, IVINST+11, IVINST+13, NVINST+4, NVREASON+4, NVREASON+6, SETMULT+4
, MEDHIST+3, MEDHIST+19
UPDATE ACTIVE~, ACTIVE+6*, ACTIVE+7, ACTIVE+13
USER ACTIVE~, ACTIVE+12*, ACTIVE+14
VIEW ACTIVE~, ACTIVE+5*, ACTIVE+7*, ACTIVE+15, ACTIVE+16*, ACTIVE+17*, ACTIVE+19
X COVER+3~, COVER+5*, COVER+6*, COVER+7, COVER+8, DT~, DT+1, UDINST+1~, UDINST+2*, UDINST+4
, UDINST+5*, UDINST+6, OPINST+1~, OPINST+2*, OPINST+4, OPINST+5, OPINST+6, NVINST+1~, NVINST+2*, NVINST+4
, NVREASON+1~, NVREASON+3*, NVREASON+4, SETMULT+1~, SETMULT+3*, SETMULT+4*, SETMULT+5, COMPRESS+1~, COMPRESS+5
X( COMPRESS+1*, COMPRESS+3*, COMPRESS+4*
Y DT+1~*, DT+2, UDINST~, UDINST+11*, OPINST~, OPINST+14*, IVINST~, IVINST+27*, NVINST~, NVINST+12*
, SETMULT~, SETMULT+2, SETMULT+5, SETMULT+6, COMPRESS~, COMPRESS+5!*
Y( COMPRESS+2, COMPRESS+3, COMPRESS+4

Marked Items

Name Field # of Occurrence
$T(HISTORY^PSBMLHS MEDHIST+15, MEDHIST+24
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All