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

Package: Drug Accountability

Routine: PSAVIN1


Information

PSAVIN1 ;BIR/LTL-Physical Inventory Balance Review ;7/23/97

Source Information

Source file <PSAVIN1.m>

Call Graph

Call Graph Total: 7

Package Total Call Graph
Kernel 3 (,HOME)^%ZIS  ^%ZISC  (,$$S)^%ZTLOAD  
VA Fileman 2 ^DIC  ^DIR  
Drug Accountability 1 ^PSADA  
IFCAP 1 ($$DESCR,$$INVNAME)^PRCPUX1  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Drug Accountability 1 PSA GIP COMPARE  

Entry Points

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

External References

Name Field # of Occurrence
^%ZIS DEV+1
HOME^%ZIS DEV+2
^%ZISC END+2
^%ZTLOAD DEV+2
$$S^%ZTLOAD HEADER+2
^DIC CHKD
^DIR END+1, HEADER+1
$$DESCR^PRCPUX1 LOOP+11
$$INVNAME^PRCPUX1 LOOP+12
^PSADA LOOK

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"There are no drugs in ",PSALOCN
  • Line Location: LOOK+1
Function Call: WRITE
  • Prompt: !!,"The balances displayed from a Primary Inventory Point are based on the most",!,"recent physical inventory and may NOT reflect accurate quantities when",!,"converted to the dispensing unit level."
  • Line Location: LOOK+2
Function Call: WRITE
  • Prompt: !!,"You may select one, several, or ^ALL drugs.",!
  • Line Location: LOOK+3
Function Call: WRITE
  • Prompt: !
  • Line Location: CHKD+0
Function Call: WRITE
  • Prompt: !
  • Line Location: DEV+1
Function Call: WRITE
  • Prompt: !,"NO DEVICE SELECTED OR OUTPUT PRINTED!"
  • Line Location: DEV+1
Function Call: WRITE
  • Prompt: "Total of all Primary Inventory items: ",$G(PSAU(7)),!!
  • Line Location: LOOP+1
Function Call: WRITE
  • Prompt: PSAU(6)," ",$P($G(^(0)),U,28),!!
  • Line Location: LOOP+13
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,"Physical Inventory Balance Review",?55,PSARPDT,?70,"PAGE: ",PSAPG,!,PSALN,!
  • Line Location: HEADER+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2
Routine Call
  • DIC
  • Line Location:
    • CHKD
Routine Call
  • DIR
  • Line Location:
    • END+1
    • HEADER+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSD(58.8 - [#58.8] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" START+1
^PRCP(445 LOOP+8, LOOP+9, LOOP+13
^PSD(58.8 - [#58.8] LOOK+1, CHKD+1, LOOP+3, LOOP+9
^PSDRUG - [#50] LOOP+2, LOOP+4, LOOP+5, LOOP+6, LOOP+7
^VA(200 - [#200] HEADER+2

Label References

Name Line Occurrences
END LOOK, LOOK+1, CHKD, DEV+2
HEADER START+1, LOOP

Naked Globals

Name Field # of Occurrence
^(0 LOOP+13

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT START+1~
%ZIS DEV+1~*
DIC PSAVIN1+9~, CHKD*!
DIC("A" CHKD*
DIC("S" CHKD*
DIC(0 CHKD*
DIR PSAVIN1+9~, HEADER+1!
DIR("A" END+1*
DIR(0 END+1*, HEADER+1*
DT START+1
DTOUT PSAVIN1+9~
DUOUT PSAVIN1+9~
DUZ HEADER+2
IO("Q" DEV+1!, DEV+2, END+2!
IOF END, HEADER+3
IOP DEV+1~
IOSL LOOP
IOST END, END+1, HEADER+1
POP DEV+1~
PSA PSAVIN1+9~
PSA( CHKD*, CHKD+1*, START+2
PSA(0 START+1
PSACNT PSAVIN1+9~, LOOK+3*, CHKD*
PSALN START+1~, HEADER+3*
>> PSALOC LOOK, LOOK+1, CHKD+1, LOOP+3
PSALOCN PSAVIN1+9~, LOOK+1, CHKD, LOOP+3
PSAOUT PSAVIN1+9~*, LOOK*, DEV+2*, START+1*, START+2, LOOP, END+1, HEADER+1*, HEADER+2*
PSAPG START+1~*, HEADER+1, HEADER+3*
PSAR PSAVIN1+9~, START+1~*
PSARPDT START+1~*, HEADER+3
PSAT PSAVIN1+9~
PSAU PSAVIN1+9~*, CHKD+1*, START+1*, START+2*, LOOP+2, LOOP+3, LOOP+4, LOOP+5, LOOP+6, LOOP+7
PSAU(1 START+1*, LOOP+6*, LOOP+7
PSAU(2 LOOP+7*, LOOP+8, LOOP+9, LOOP+11, LOOP+13
PSAU(3 LOOP+9*, LOOP+11, LOOP+12, LOOP+13
PSAU(5 LOOP+1, LOOP+2!, LOOP+10*, LOOP+15
PSAU(6 LOOP+13*, LOOP+14
PSAU(7 LOOP+1, LOOP+2!, LOOP+14*, LOOP+15
U LOOP+2, LOOP+3, LOOP+4, LOOP+7, LOOP+13, HEADER+2
X PSAVIN1+9~, CHKD, CHKD+1
Y PSAVIN1+9~, CHKD, START+1*, HEADER+1
ZTDESC DEV+2~*, HEADER+2
ZTDTH DEV+2~
ZTIO DEV+2~
>> ZTQUEUED END+2
>> ZTREQ END+2*
ZTRTN DEV+2~*
ZTSAVE DEV+2~
ZTSAVE("PSA*" DEV+2*
ZTSK DEV+2~, HEADER+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