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: PSDERCP

Package: Controlled Substances

Routine: PSDERCP


Information

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

Source Information

Source file <PSDERCP.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
VA FileMan 7 ^%DT  NOW^%DTC  ^DIC  (D,Y)^DIQ  ^DIR  ^DIWP  ^DIWW  
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 RESOLVED 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+5
^%ZTLOAD DEV+4
^DIC ASKD+5
D^DIQ DATE+2, DATE+4
Y^DIQ DEV+2
^DIR DONE+1, HDR+1
^DIWP PRINT+5
^DIWW PRINT+6
^PSDSET PSDERCP+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: PSDERCP+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 RESOLVED ERRORS/ADJUSTMENTS ***",!!
  • Line Location: START+14
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),?45,$P(NODE,"^",3),!
  • Line Location: PRINT+4
Function Call: WRITE
  • Prompt: !
  • Line Location: PRINT+6
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 RESOLVED 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,"RESOLVED 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, START+12, PRINT+5
^PSDRUG - [#50] START+9
^TMP("PSDERCP" START+1!, START+13*, PRINT+2, PRINT+4, END+4!
^UTILITY($J PRINT+5!
^VA(200 - [#200] START+10
^XUSEC("PSD ERROR" PSDERCP+4
^XUSEC("PSDMGR" PSDERCP+4

Label References

Name Line Occurrences
DATE PSDERCP+6, DATE+3
DONE START+14
END ASKD+5, DATE+1, DATE+2, DEV+3, DEV+4
HDR START+14, PRINT+1, PRINT+2, PRINT+3, PRINT+5
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+13*, START+14, END+1!
COMM START+3*, START+12*, START+13, PRINT+1*, PRINT+5*, PRINT+6*, 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!
DIWF PRINT+5*, END+1!
DIWL PRINT+5*, END+1!
DIWR PRINT+5*, END+1!
DTOUT END+1!
DUOUT END+1!
DUZ PSDERCP+4
IO DEV+5
IO("Q" DEV+3!, DEV+4!
IOF DONEHDR+2
IOP DEV+3!
IOSL PRINT+2, PRINT+3, PRINT+5
IOST DONEDONE+1, HDR+1
LN START+3!*, END+1!, HDR+4
NODE START+5*, START+6, START+8, PRINT+4*, PRINT+5, END+1!
NODE1 START+6*, START+10, START+11, END+1!
NODE9 START+7*, END+1!
OK PSDERCP+4*, PSDERCP+5!, 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+13, END+2!
PHARMN2 START+10*, START+13, END+2!
POP DEV+3!, END+2!
PSD START+4*, START+11, END+2!
PSDA START+4*, START+5, START+12, START+13, PRINT+2*, PRINT+4, PRINT+5, 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, PRINT+5, DONE+1, END+2!, HDR+1*
PSDR START+6*, START+9, END+2!
PSDRG END+2!
PSDRN START+9*, START+13, PRINT+2*, PRINT+3, PRINT+4, END+2!
PSDS PSDERCP+6*, ASKD+6*, DEV+2, START+4, END+2!
PSDSD DATE+2*, DATE+3, DATE+4*, START+4, END+2!
>> PSDSITE PSDERCP+3, PSDERCP+6, ASKD+6*
PSDSN PSDERCP+6*, ASKD+4, ASKD+6*, END+2!, HDR+3
PSDT START+11*, START+13, END+2!
QTY START+10*, START+13, END+3!
RPDT START+2*, END+3!, HDR+3
TEXT PRINT+5*, END+3!
TYP START+11*, START+13, END+3!
U PSDERCP+6, ASKD+6
X START+2, PRINT+5*, END+3!
Y ASKD+5, ASKD+6, DATE+1, DATE+2, DATE+3, DATE+4, DEV+2*, START+2*, END+3!, HDR+1
ZTDESC DEV+4*, END+3!
ZTDTH DEV+4!, END+3!
ZTIO DEV+4!, END+3!
>> ZTQUEUED END+5
>> ZTREQ END+5*
ZTRTN DEV+4*, END+3!
ZTSAVE DEV+4!, END+3!
ZTSAVE("PSDATE" SAVE+1*
ZTSAVE("PSDED" SAVE+1*
ZTSAVE("PSDS" SAVE+1*
ZTSAVE("PSDSD" SAVE+1*
ZTSAVE("PSDSN" SAVE+1*
ZTSK DEV+4!, END+3!
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All