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

Package: Controlled Substances

Routine: PSDREV


Information

PSDREV ;BIR/LTL-Review Receipt Transactions ; 29 Aug 94

Source Information

Source file <PSDREV.m>

Call Graph

Call Graph Total: 6

Package Total Call Graph
Kernel 3 (,HOME)^%ZIS  ^%ZISC  (,$$S)^%ZTLOAD  
VA Fileman 3 ^DIC  Y^DIQ  ^DIR  

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
Controlled Substances 2 PSD PURCHASE ORDER REVIEW  PSDREC  

Entry Points

Name Comments DBIA/ICR reference
START ;compiles and prints output
END
LOOP
DEV ;asks device and queueing info
HEADER ;prints header info

External References

Name Field # of Occurrence
^%ZIS DEV+2
HOME^%ZIS DEV+3
^%ZISC END+2
^%ZTLOAD DEV+3
$$S^%ZTLOAD HEADER+2
^DIC PSDREV+8
Y^DIQ DEV+1
^DIR END+1, HEADER+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"There have been no receipts for this Purchase Order.",!!
  • Line Location: PSDREV+9
Function Call: WRITE
  • Prompt: !,"NO DEVICE SELECTED OR OUTPUT PRINTED!"
  • Line Location: DEV+2
Function Call: WRITE
  • Prompt: !,"Receiving Site: ",$P($G(^PSD(58.8,+PSDLOC,0)),U),!
  • Line Location: LOOP+1
Function Call: WRITE
  • Prompt: !,"Receiving Site: ",$P($G(^PSD(58.8,+$P($G(^PSD(58.81,+PSDR,0)),U,3),0)),U),!
  • Line Location: LOOP+2
Function Call: WRITE
  • Prompt: !,Y," ",$E($P($G(^PSDRUG(+$P($G(^PSD(58.81,PSDR,0)),U,5),0)),U),1,25)," -> "
  • Line Location: LOOP+3
Function Call: WRITE
  • Prompt: !!,"Task #",$G(ZTSK),", ",$G(ZTDESC)," was stopped by ",$P($G(^VA(200,+$G(DUZ),0)),U),"."
  • Line Location: HEADER+2
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $Y
  • Line Location: HEADER+3
Function Call: WRITE
  • Prompt: !?2,"History of receipts for P.O.# ",$P($G(^PRC(442,+PSDPO,0)),U),?50,RPDT,?70,"PAGE: ",PG,!,LN,!
  • Line Location: HEADER+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+3
Routine Call
  • DIC
  • Line Location:
    • PSDREV+8
Routine Call
  • DIR
  • Line Location:
    • END+1
    • HEADER+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" START+1, LOOP+3
^DD(58.8 DEV+1
^PRC(442 HEADER+3
^PSD(58.8 - [#58.8] DEV+1, LOOP+1, LOOP+2
^PSD(58.81 - [#58.81] PSDREV+9, DEV+1, LOOP, LOOP+1, LOOP+2, LOOP+3, LOOP+4
^PSDRUG - [#50] LOOP+3
^VA(200 - [#200] LOOP+4, HEADER+2

Label References

Name Line Occurrences
END PSDREV+8, PSDREV+9, DEV+3, LOOP
HEADER START+1, LOOP

Naked Globals

Name Field # of Occurrence
^(0 LOOP+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT START+1~
%ZIS DEV+2~*
%ZIS("B" DEV+2*
C PSDREV+7~, DEV+1*
DIC PSDREV+7~, PSDREV+8*!
DIC("A" PSDREV+8*
DIC("S" PSDREV+8*
DIC(0 PSDREV+8*
DIR PSDREV+7~, HEADER+1!
DIR("A" END+1*
DIR(0 END+1*, HEADER+1*
DT START+1
DTOUT PSDREV+7~, PSDREV+8
DUOUT PSDREV+7~, PSDREV+8
DUZ HEADER+2
IO("Q" DEV+2!, DEV+3, END+2!
IOF END, HEADER+3
IOP DEV+2~
IOSL LOOP
IOST END, END+1, HEADER+1
LN START+1~, HEADER+3*
PG START+1~*, HEADER+1, HEADER+3*
POP DEV+2~
PSDEV PSDREV+7~, DEV+1*, DEV+2
PSDLOC PSDREV+7~, DEV+2!, LOOP+1*, LOOP+2*
PSDOUT PSDREV+7~, PSDREV+8*, DEV+3*, START+1*, LOOP, END+1, HEADER+1*, HEADER+2*
PSDPO PSDREV+7~, PSDREV+8*, LOOP, HEADER+3
PSDR START+1~*, LOOP*, LOOP+1, LOOP+2, LOOP+3, LOOP+4
RPDT START+1~*, HEADER+3
U DEV+1, LOOP+1, LOOP+2, LOOP+3, LOOP+4, HEADER+2, HEADER+3
X PSDREV+7~
Y PSDREV+7~, PSDREV+8, PSDREV+9, DEV+1*, START+1*, LOOP+3*, HEADER+1
ZTDESC DEV+3~*, HEADER+2
ZTDTH DEV+3~
ZTIO DEV+3~
>> ZTQUEUED END+2
>> ZTREQ END+2*
ZTRTN DEV+3~*
ZTSAVE DEV+3~
ZTSAVE("PSDPO" DEV+3*
ZTSK DEV+3~, HEADER+2
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All