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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: PSDEA41

Package: Controlled Substances

Routine: PSDEA41


Information

PSDEA41 ;BIR/BJW/DJE-Destroyed CS Drugs DEA 41 Report ; 15 JAN 96

Source Information

Source file <PSDEA41.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
VA FileMan 5 NOW^%DTC  ^DIC  Y^DIQ  EN^DIQ1  ^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 DESTROY DEA41  

Entry Points

Name Comments DBIA/ICR reference
ASKD ;ask disp location
ASKV ;ask vault(s),added 8/9/95
DEV ;select device
START ;start looping
PRINT ;prints data
DONE
END ;
HDR ;prints header information
SAVE ;saves variables for queueing
SIG ;print signature lines
SET ;sets data

External References

Name Field # of Occurrence
NOW^%DTC ASKV+2, START+2
^%ZIS DEV+3
HOME^%ZIS DEV+4
^%ZISC END+4
^%ZTLOAD DEV+4
^DIC ASKV+3
Y^DIQ DEV+2
EN^DIQ1 ASKV+14
^DIR DONE+1, HDR+1
^PSDSET PSDEA41+5

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,?5,"You may select a single VAULT, several VAULT(s),",!,?5,"or enter ^ALL to select all VAULT(s).",!
  • Line Location: ASKV+1
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 SUBSTANCE DESTRUCTIONS ***",!!
  • Line Location: START+5
Function Call: WRITE
  • Prompt: !,PSDA,?10,$P(NODE,"^"),?55,$J($P(NODE,"^",2),3),?60,$J($P(NODE,"^",3),6),?69,$P(NODE,"^",4)
  • Line Location: PRINT+4
Function Call: WRITE
  • Prompt: !!,?25,"END OF REPORT!!",!
  • Line Location: PRINT+5
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,"DESTROYED CS DRUGS REPORT for DEA FORM 41",?70,"PAGE: ",PG
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: !,?15,"Dispensing Site: ",PSDSN,!,?15,"Printed: ",RPDT
  • Line Location: HDR+3
Function Call: WRITE
  • Prompt: !,?55,"# OF",!,"HOLD #",?10,"DRUG",?55,"CONT",?63,"QTY",?69,"UNIT",!,LN,!
  • Line Location: HDR+4
Function Call: WRITE
  • Prompt: !!!,?23,"Date: _____________________________________",!!!,?15,"Destroyed By: _____________________________________",!
  • Line Location: SIG+1
Function Call: WRITE
  • Prompt: !!,?15,"Witnessed By: _____________________________________",!
  • Line Location: SIG+2
Function Call: WRITE
  • Prompt: !
  • Line Location: SIG+3
Routine Call
  • DIC
  • Line Location:
    • ASKV+3
Routine Call
  • DIR
  • Line Location:
    • DONE+1
    • HDR+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+4

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(4 - [#4] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" ASKV+2, START+2
^DD(58.8 DEV+2
^PSD(58.8 - [#58.8] ASKV+11, ASKV+15, DEV+2
^PSD(58.86 - [#58.86] START+4, SET+2, SET+3
^PSDRUG - [#50] SET+3
^TMP("PSDEA41" START+1!, PRINT+2, PRINT+4, END+3!, SET+5*
^XMB(1 - [#4.3] ASKV+13
^XUSEC("PSD TECH ADV" PSDEA41+6
^XUSEC("PSJ RPHARM" PSDEA41+6

Label References

Name Line Occurrences
DONE START+5, PRINT+1
END PSDEA41+6, ASKV+4, DEV+3, DEV+4
HDR START+3, PRINT+3, PRINT+5
SAVE DEV+4
SET START+4
SIG PRINT+1

Naked Globals

Name Field # of Occurrence
^(0 ASKV+11, START+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% END+1!
%DT END+1!
%H END+1!
%I END+1!
%ZIS DEV+3!*, END+1!
%ZIS("B" DEV+3*
ALL END+1!, SAVE+2
C DEV+2*, END+1!
CNT START+3*, START+5, END+1!, SET+1*
CONT END+1!, SET+4*, SET+5
DA ASKV+2!, ASKV+13*, ASKV+14!, END+1!, HDR+1!
DIC ASKV+2!, ASKV+3*!, ASKV+13*, ASKV+14!, END+1!
DIC("A" ASKV+3*
DIC("S" ASKV+3*
DIC(0 ASKV+3*
DIQ ASKV+13*, ASKV+14!
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!
DR ASKV+13*, ASKV+14!
DTOUT END+1!
DUOUT END+1!
DUZ PSDEA41+6
IO DEV+5
IO("Q" DEV+3!, DEV+4!
IOF DONEHDR+2
IOP DEV+3!
IOSL PRINT+3, PRINT+5
IOST DONEDONE+1, HDR+1
JJ ASKV+12*, ASKV+15, END+1!
KK END+1!, SIG+2*
LN START+3!*, END+1!, HDR+4
NODE PRINT+4*, END+1!, SET+2*, SET+4
PG START+3*, END+2!, HDR+1, HDR+2*
POP DEV+3!, END+2!
PSD ASKV+11*, ASKV+14*, ASKV+15!, END+2!
PSD(4 ASKV+14
PSDA START+4*, PRINT+2*, PRINT+4, END+2!, SET+2, SET+3, SET+5
PSDATE END+2!
PSDED END+2!
PSDEV DEV+2*, DEV+3, END+2!
PSDN END+2!
PSDOUT START+3*, PRINT+1, PRINT+2, PRINT+3, PRINT+5, DONE+1, END+2!, HDR+1*
PSDR END+2!, SET+2*, SET+3
PSDRN END+2!, SET+3*, SET+5
PSDS ASKD+1*, DEV+2, END+2!
PSDSD END+2!
>> PSDSITE PSDEA41+5, ASKD+1, ASKV+11
PSDSN ASKD+1*, ASKV+15*, END+2!, HDR+3
PSDT ASKV+2*, END+2!
PSDVAU ASKV+4, END+2!, SAVE+2
PSDVAU( ASKV+3*, ASKV+11*, ASKV+12, START+4
PSDVAU(0 ASKV+12, ASKV+15
QTY END+2!, SET+4*, SET+5
RPDT ASKV+2*, START+2*, END+2!, HDR+3
U ASKD+1, ASKV+13, ASKV+15
UNIT END+2!, SET+4*, SET+5
X ASKV+2, ASKV+4, ASKV+11, START+2, END+2!
Y ASKV+2*, ASKV+3, 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("ALL" SAVE+2*
ZTSAVE("JJ" SAVE+1*
ZTSAVE("PSDS" SAVE+1*
ZTSAVE("PSDSN" SAVE+1*
ZTSAVE("PSDVAU(" SAVE+2*
ZTSK DEV+4!, END+2!
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All