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 |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: PSDERP

Package: Controlled Substances

Routine: PSDERP


Information

PSDERP ;BIR/BJW-CS Error Log Report ; 6 Feb 98

Source Information

Source file <PSDERP.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
VA FileMan 5 ^%DT  NOW^%DTC  ^DIC  (D,Y)^DIQ  ^DIR  
Kernel 3 (,HOME)^%ZIS  ^%ZISC  ^%ZTLOAD  
Controlled Substances 1 ^PSDSET  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Controlled Substances 1 PSD ERR/ADJ PENDING REPORT  

Entry Points

Name Comments DBIA/ICR reference
ASKD ;ask disp location
DATE ;ask date range
DEV ;select device
START ;start looping
PRINT ;prints data
DONE
END ;
HDR ;prints header information
SAVE ;saves variables for queueing

External References

Name Field # of Occurrence
^%DT DATE+1, DATE+2
NOW^%DTC START+2
^%ZIS DEV+3
HOME^%ZIS DEV+4
^%ZISC END+4
^%ZTLOAD DEV+4
^DIC ASKD+5
D^DIQ DATE+2, DATE+4
Y^DIQ DEV+2
^DIR DONE+1, HDR+1
^PSDSET PSDERP+3

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),!!,?9,"** Please contact your Pharmacy Coordinator for access to",!,?12,"the pending Controlled Substances error log.",!!,"PSDMGR or PSD ERROR security key required.",!
  • Line Location: PSDERP+5
Function Call: WRITE
  • Prompt: !!,"You may select a Dispensing Site at the prompt.",!
  • Line Location: ASKD+1
Function Call: WRITE
  • Prompt: !
  • Line Location: ASKD+2
Function Call: WRITE
  • Prompt: !
  • Line Location: DATE+1
Function Call: WRITE
  • Prompt: !!,"The ending date of the range must be later than the starting date."
  • Line Location: DATE+3
Function Call: WRITE
  • Prompt: !!,"This report is designed for a 80 column format.",!,"You may queue this report to print at a later time.",!!
  • Line Location: DEV+1
Function Call: WRITE
  • Prompt: !,"NO DEVICE SELECTED OR REPORT PRINTED!"
  • Line Location: DEV+3
Function Call: WRITE
  • Prompt: !!,?10,"*** NO CONTROLLED SUBSTANCES PENDING ERRORS/ADJUSTMENTS ***",!!
  • Line Location: START+13
Function Call: WRITE
  • Prompt: !,?2,"=> ",PSDRN,!
  • Line Location: PRINT+3
Function Call: WRITE
  • Prompt: !,PSDA,?10,$J($P(NODE,"^"),6),?20,$P(NODE,"^",4),?35,$P(NODE,"^",5),!,?5,$P(NODE,"^",2)
  • Line Location: PRINT+4
Function Call: WRITE
  • Prompt: ?45,$P(NODE,"^",3)
  • Condition for execution: $P(NODE,"^",3)]""
  • Line Location: PRINT+4
Function Call: WRITE
  • Prompt: !
  • Line Location: PRINT+4
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: DONE+0
Function Call: WRITE
  • Prompt: !
  • Line Location: DONE+1
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $Y
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: !,?15,"CS PENDING ERROR/ADJ LOG REPORT",?70,"PAGE: ",PG
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: !,?15,"NAOU: ",PSDSN,!,?15,"Period From: ",$P(PSDATE,"^")," to: ",$P(PSDATE,"^",2),!,?15,"Run Date: ",RPDT
  • Line Location: HDR+3
Function Call: WRITE
  • Prompt: !!,"LOG #",?10,"QUANTITY",?22,"DATE",?35,"ERR/ADJ TYPE",!,?5,"LOGGED BY",?45,"WITNESSED BY",!,LN,!
  • Line Location: HDR+4
Routine Call
  • DIC
  • Line Location:
    • ASKD+5
Routine Call
  • DIR
  • Line Location:
    • DONE+1
    • HDR+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+4

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" START+2
^DD(58.8 DEV+2
^PSD(58.8 - [#58.8] DEV+2
^PSD(58.81 - [#58.81] START+6, START+7
^PSD(58.84 - [#58.84] START+11
^PSD(58.89 - [#58.89] START+4, START+5
^PSDRUG - [#50] START+9
^TMP("PSDERP" START+1!, START+12*, PRINT+2, PRINT+4, END+3!
^VA(200 - [#200] START+10
^XUSEC("PSD ERROR" PSDERP+4
^XUSEC("PSDMGR" PSDERP+4

Label References

Name Line Occurrences
DATE PSDERP+6, DATE+3
DONE START+13
END ASKD+5, DATE+1, DATE+2, DEV+3, DEV+4
HDR START+13, PRINT+1, PRINT+2, PRINT+3
SAVE DEV+4

Naked Globals

Name Field # of Occurrence
^(0 START+10

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% END+1!
%DT DATE+1!*, END+1!
%DT("A" DATE+1*, DATE+2*
%H END+1!
%I END+1!
%ZIS DEV+3!*, END+1!
%ZIS("B" DEV+3*
C DEV+2*, END+1!
CNT START+3*, START+12*, START+13, END+1!
DA ASKD+2!, END+1!, HDR+1!
DIC ASKD+2!*, ASKD+5!, END+1!
DIC("A" ASKD+4*
DIC("B" ASKD+4*
DIC("S" ASKD+3*
DIC(0 ASKD+2*
DIR DONE+1!, END+1!, HDR+1!
DIR("A" DONE+1*
DIR(0 DONE+1*, HDR+1*
DIROUT END+1!
DIRUT DONE+1!, END+1!
DTOUT END+1!
DUOUT END+1!
DUZ PSDERP+4
IO DEV+5
IO("Q" DEV+3!, DEV+4!
IOF DONEHDR+2
IOP DEV+3!
IOSL PRINT+2, PRINT+3
IOST DONEDONE+1, HDR+1
LN START+3!*, END+1!, HDR+4
NODE START+5*, START+6, PRINT+4*, END+1!
NODE1 START+6*, START+10, START+11, END+1!
NODE9 START+7*, START+8, END+1!
OK PSDERP+4*, PSDERP+5!, ASKD+3, END+1!
PG START+3*, END+2!, HDR+1, HDR+2*
PHARM START+7*, START+10, END+2!
PHARM2 START+8*, START+10, END+2!
PHARMN START+10*, START+12, END+2!
PHARMN2 START+8*, START+10*, START+12, END+2!
POP DEV+3!, END+2!
PSD START+4*, START+11, END+2!
PSDA START+4*, START+5, START+12, PRINT+2*, PRINT+4, END+2!
PSDATE DATE+2*, DATE+4*, END+2!, HDR+3
PSDED DATE+4*, START+4, END+2!
PSDEV DEV+2*, DEV+3, END+2!
PSDN START+6*, START+7, END+2!
PSDOUT DATE+1*, DATE+2*, START+3*, PRINT+1, PRINT+2, PRINT+3, DONE+1, END+2!, HDR+1*
PSDR START+6*, START+9, END+2!
PSDRG END+2!
PSDRN START+9*, START+12, PRINT+2*, PRINT+3, PRINT+4, END+2!
PSDS PSDERP+6*, ASKD+6*, DEV+2, START+4, END+2!
PSDSD DATE+2*, DATE+3, DATE+4*, START+4, END+2!
>> PSDSITE PSDERP+3, PSDERP+6, ASKD+6*
PSDSN PSDERP+6*, ASKD+4, ASKD+6*, END+2!, HDR+3
PSDT START+11*, START+12, END+2!
QTY START+10*, START+12, END+2!
RPDT START+2*, END+2!, HDR+3
TYP START+11*, START+12, END+2!
U PSDERP+6, ASKD+6
X START+2, END+2!
Y ASKD+5, ASKD+6, DATE+1, DATE+2, DATE+3, DATE+4, DEV+2*, START+2*, END+2!, HDR+1
ZTDESC DEV+4*, END+2!
ZTDTH DEV+4!, END+2!
ZTIO DEV+4!, END+2!
>> ZTQUEUED END+4
>> ZTREQ END+4*
ZTRTN DEV+4*, END+2!
ZTSAVE DEV+4!, END+2!
ZTSAVE("PSDATE" SAVE+1*
ZTSAVE("PSDED" SAVE+1*
ZTSAVE("PSDS" SAVE+1*
ZTSAVE("PSDSD" SAVE+1*
ZTSAVE("PSDSN" SAVE+1*
ZTSK DEV+4!, END+2!
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All