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

Call Graph Total: 9

Package Total Call Graph
Kernel 4 (,HOME)^%ZIS  ^%ZISC  ^%ZTLOAD  $$UP^XLFSTR  
VA FileMan 4 NOW^%DTC  ^DIC  Y^DIQ  ^DIR  
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: 4

Package Total Caller Graph
Controlled Substances 4 PSD ON-HAND  PSD ON-HAND TECH  PSDBALI  PSDBALI1  

Entry Points

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

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+10
Y^DIQ DEV+1
^DIR DRUG+4, DONE+1, HDR+1
^PSDSET PSDBAL+2
$$UP^XLFSTR DRUG+12

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: !,"Select Schedule/Drug"
  • Line Location: DRUG+1
Function Call: WRITE
  • Prompt: !!,?5,"You may select a single drug, several drugs,",!,?5,"or enter ^ALL to select all drugs.",!
  • Line Location: DRUG+8
Function Call: WRITE
  • Prompt: !
  • Line Location: DRUG+9
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,$S(SCH=1:"Schedules I - II",SCH=2:"Schedules III - V",SCH=3:"Schedules I - V",1:""),!?20,RPDT,!!
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: ?5,"DRUG",?50,"SCHEDULE",?61,"CURRENT BALANCE",!,LN,!!
  • Line Location: HDR+3
Routine Call
  • DIC
  • Line Location:
    • ASKD+6
    • DRUG+10
Routine Call
  • DIR
  • Line Location:
    • DRUG+4
    • DONE+1
    • HDR+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2
Routine Call
  • %ZIS
  • Line Location:
    • DEV+3

Global Variables Directly Accessed

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

Label References

Name Line Occurrences
$$SCH PRINT+7
CHKD ASKD+2
DEV DRUG+6
DONE PRINT+3
END ASKD+6, CHKDDRUG+5, DRUG+13, DEV+2, DEV+3
HDR PRINT+2, PRINT+5
SAVE DEV+3

Naked Globals

Name Field # of Occurrence
^(0 START+6, START+8

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+14*, START+2, START+4, END+1!, SAVE+1
BAL START+8*, START+10, PRINT+6*, PRINT+7, END+1!
C DEV+1*, END+1!
DA ASKD+3!, DRUG+9!, END+1!, HDR+1!
DA(1 DRUG+10*
DEA START+3*, START+4, END+1!
DIC ASKD+3!*, ASKD+6!, DRUG+9!, DRUG+10*!, END+1!
DIC("A" ASKD+4*
DIC("B" ASKD+5*
DIC("S" ASKD+3*
DIC("W" DRUG+10*
DIC(0 ASKD+3*, DRUG+10*
DIR DRUG+2~, DONE+1!, HDR+1!
DIR("A" DRUG+3*, DONE+1*
DIR("B" DRUG+3*
DIR(0 DRUG+3*, DONE+1*, HDR+1*
DIRUT DRUG+5, DONE+1!
DT START+7
DTOUT END+1!
DUOUT END+1!
DUZ PSDBAL+3
EXP START+8*, START+9*, START+10, PRINT+6*, PRINT+7, END+1!
I DRUG+2~, DRUG+7*
IO DEV+4
IO("Q" DEV+2!, DEV+3!
IOF DONEHDR+2
IOP DEV+2!
IOSL PRINT+5
IOST DONEDONE+1, HDR+1
J DRUG+2~, DRUG+7*
K DRUG+2~, DRUG+7*
LN PRINT+2!*, END+1!, HDR+3
NODE START+6*, START+7, START+8, PRINT+6*, PRINT+7, END+1!
PG PRINT+1*, END+1!, HDR+1, HDR+2*
POP DEV+2!, END+1!
PSD START+2*, START+3, START+5, START+6*, START+8, START+10, PRINT+4*, PRINT+6, END+1!
PSDEV DEV+1*, DEV+2, END+1!
PSDOK START+7*, START+10, PRINT+6*, PRINT+7, END+1!
PSDOUT PRINT+1*, PRINT+4, PRINT+5, DONE+1, END+1!, HDR+1*
PSDR DRUG+13, PRINT+4*, PRINT+6, PRINT+7, END+1!, SAVE+1
PSDR( DRUG+11*, START+5*, START+6
PSDRN START+8*, START+10, END+1!
PSDS ASKD+1*, ASKD+7*, CHKDDRUG+10, DEV+1, START+2, START+6, 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
SCH DRUG+6!*, START+2, HDR+2
SCH( DRUG+7*, START+4
U ASKD+1, ASKD+2, ASKD+7
X DRUG+12*, DRUG+13, DRUG+14, END+1!, SCH~, SCH+1, SCH+2
Y ASKD+6, ASKD+7, DRUG+6, DRUG+7, DRUG+10, DRUG+11, DEV+1*, START+9*, 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*
ZTSAVE("SCH" SAVE*
ZTSAVE("SCH(" 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