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

Package: Controlled Substances

Routine: PSDBAL


Information

PSDBAL ;BIR/JPW-Display/Print Current Drug Balance ; 29 Aug 94

Source Information

Source file <PSDBAL.m>

Call Graph

Call Graph Total: 8

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

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
Controlled Substances 2 PSD ON-HAND  PSD ON-HAND TECH  

Entry Points

Name Comments DBIA/ICR reference
END ;
HDR ;header
START ;entry for compile
PRINT ;prints data
DEV ;sel device
ASKD ;ask disp location
DONE
DRUG ;ask drug
CHKD
SAVE

External References

Name Field # of Occurrence
NOW^%DTC PRINT+1
^%ZIS DEV+2
HOME^%ZIS DEV+3
^%ZISC END+3
^%ZTLOAD DEV+3
^DIC ASKD+6, DRUG+2
Y^DIQ DEV+1
^DIR DONE+1, HDR+1
^PSDSET PSDBAL+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Contact your Pharmacy Coordinator for access to display current CS drug",!,"balances.",!!,"PSJ RPHARM or PSD TECH security key required.",!
  • Line Location: PSDBAL+3
Function Call: WRITE
  • Prompt: !!,"There are no CS stocked drugs for your dispensing vault.",!!
  • Line Location: CHKD+0
Function Call: WRITE
  • Prompt: !!,?5,"You may select a single drug, several drugs,",!,?5,"or enter ^ALL to select all drugs.",!!
  • Line Location: CHKD+1
Function Call: WRITE
  • Prompt: !
  • Line Location: DRUG+1
Function Call: WRITE
  • Prompt: !
  • Line Location: DEV+2
Function Call: WRITE
  • Prompt: !!,"NO DEVICE SELECTED OR REPORT PRINTED!!",!
  • Line Location: DEV+2
Function Call: WRITE
  • Prompt: !!,?15,"**** NO STOCK BALANCE DATA AVAILABLE ****",!!
  • Line Location: PRINT+3
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: !,?12,"Current Stock Balances for ",PSDSN,?72,"Page: ",PG,!,?20,RPDT,!!
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: ?5,"DRUG",?60,"CURRENT BALANCE",!,LN,!!
  • Line Location: HDR+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+3
Routine Call
  • DIC
  • Line Location:
    • ASKD+6
    • DRUG+2
Routine Call
  • DIR
  • Line Location:
    • DONE+1
    • HDR+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" START+6, PRINT+1
^DD(58.8 DEV+1
^PSD(58.8 - [#58.8] CHKD, DEV+1, START+2, START+3
^PSDRUG - [#50] START+5
^TMP("PSDBAL" START+1!, START+7*, PRINT+3, PRINT+4, PRINT+6, END+2!
^XUSEC("PSD TECH" PSDBAL+3
^XUSEC("PSJ RPHARM" PSDBAL+3

Label References

Name Line Occurrences
CHKD ASKD+2
DONE PRINT+3
END ASKD+6, CHKD, DRUG+4, DEV+2, DEV+3
HDR PRINT+2, PRINT+5
SAVE DEV+3

Naked Globals

Name Field # of Occurrence
^(0 START+3, START+5

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% PRINT+1, END+1!
%H END+1!
%I END+1!
%ZIS DEV+2!*, END+1!
%ZIS("B" DEV+2*
ALL DRUG+5*, START+2, END+1!, SAVE+1
BAL START+5*, START+7, PRINT+6*, PRINT+7, END+1!
C DEV+1*, END+1!
DA ASKD+3!, DRUG+1!, END+1!, HDR+1!
DA(1 DRUG+2*
DIC ASKD+3!*, ASKD+6!, DRUG+1!, DRUG+2*!, END+1!
DIC("A" ASKD+4*
DIC("B" ASKD+5*
DIC("S" ASKD+3*
DIC("W" DRUG+2*
DIC(0 ASKD+3*, DRUG+2*
DIR DONE+1!, HDR+1!
DIR("A" DONE+1*
DIR(0 DONE+1*, HDR+1*
DIRUT DONE+1!
DT START+4
DTOUT END+1!
DUOUT END+1!
DUZ PSDBAL+3
EXP START+5*, START+6*, START+7, PRINT+6*, PRINT+7, END+1!
IO DEV+4
IO("Q" DEV+2!, DEV+3!
IOF DONE, HDR+2
IOP DEV+2!
IOSL PRINT+5
IOST DONE, DONE+1, HDR+1
LN PRINT+2!*, END+1!, HDR+3
NODE START+3*, START+4, START+5, PRINT+6*, END+1!
PG PRINT+1*, END+1!, HDR+1, HDR+2*
POP DEV+2!, END+1!
PSD START+2*, START+3*, START+5, START+7, PRINT+4*, PRINT+6, END+1!
PSDEV DEV+1*, DEV+2, END+1!
PSDOK START+4*, START+7, PRINT+6*, PRINT+7, END+1!
PSDOUT PRINT+1*, PRINT+4, PRINT+5, DONE+1, END+1!, HDR+1*
PSDR DRUG+4, PRINT+4*, PRINT+6, PRINT+7, END+1!, SAVE+1
PSDR( DRUG+3*, START+2*, START+3
PSDRN START+5*, START+7, END+1!
PSDS ASKD+1*, ASKD+7*, CHKD, DRUG+2, DEV+1, START+2, START+3, END+1!
>> PSDSITE PSDBAL+2, ASKD+1, ASKD+2, ASKD+7*
PSDSN ASKD+1*, ASKD+5, ASKD+7*, END+1!, HDR+2
RPDT PRINT+1*, END+1!, HDR+2
U ASKD+1, ASKD+2, ASKD+7
X DRUG+4, DRUG+5, END+1!
Y ASKD+6, ASKD+7, DRUG+2, DRUG+3, DEV+1*, START+6*, PRINT+1*, END+1!, HDR+1
ZTDESC DEV+3*, END+2!
ZTDTH DEV+3!, END+2!
ZTIO DEV+3!, END+2!
>> ZTQUEUED END+3
>> ZTREQ END+3*
ZTRTN DEV+3*, END+2!
ZTSAVE DEV+3!, END+2!
ZTSAVE("ALL" SAVE+1*
ZTSAVE("PSDR(" SAVE+1*
ZTSAVE("PSDS" SAVE*
ZTSAVE("PSDSITE" SAVE*
ZTSAVE("PSDSN" SAVE*
ZTSK DEV+3!, 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