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

Package: Controlled Substances

Routine: PSDBALI


Information

PSDBALI ;BIR/JPW-Display/Print Drug Inv Sheet & Balance ; 29 Aug 94

Source Information

Source file <PSDBALI.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Kernel 4 (,HOME)^%ZIS  ^%ZISC  ^%ZTLOAD  $$UP^XLFSTR  
VA FileMan 4 NOW^%DTC  ^DIC  Y^DIQ  ^DIR  
Controlled Substances 3 $$SCH^PSDBAL  PRINT^PSDBALI1  ^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 INVEN SHEET PRT  

Entry Points

Name Comments DBIA/ICR reference
ASKD ;ask disp location
CHKD
SORT ;asks sort
DRUG ;ask schedule/drug
DEV ;sel device
START ;entry for compile
PRINT ;prints data
PRT ;
DONE
END ;
SAVE
HDR ;header
LOOP ;sets inv type
LOOP1

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 SORT+3, DRUG+4, DONE+1, HDR+1
$$SCH^PSDBAL PRINT+8
PRINT^PSDBALI1 PRINT+4
^PSDSET PSDBALI+2
$$UP^XLFSTR DRUG+12

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"There are no CS stocked drugs for your dispensing vault.",!!
  • Line Location: CHKD+0
Function Call: WRITE
  • Prompt: !
  • Line Location: SORT+1
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: !,?10,"Inspector's Signature: ______________________________",!
  • Line Location: PRINT+6
Function Call: WRITE
  • Prompt: ?5,"Stock Level: ",SLVL
  • Condition for execution: SLVL
  • Line Location: PRINT+8
Function Call: WRITE
  • Prompt: ?30,"Exp. Date: ",EXP
  • Condition for execution: EXP]""
  • Line Location: PRINT+8
Function Call: WRITE
  • Prompt: !
  • Line Location: PRINT+8
Function Call: WRITE
  • Prompt: !
  • Line Location: PRT+1
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,"Inventory Sheet 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",?41,"CURRENT BALANCE",?58,"SCHEDULE",?69,"ON-HAND",!,LN,!!
  • Line Location: HDR+3
Routine Call
  • DIC
  • Line Location:
    • ASKD+6
    • DRUG+10
Routine Call
  • DIR
  • Line Location:
    • SORT+3
    • 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, LOOP+1, LOOP+2
^PSDRUG - [#50] START+3, START+8, START+11, LOOP1
^PSI(58.16 - [#58.16] LOOP+2
^TMP("PSDBALI" START+1!, START+11*, PRINT+3, PRINT+5, PRINT+7, END+2!, LOOP1*

Label References

Name Line Occurrences
CHKD ASKD+2
DEV DRUG+6
DONE PRINT+3, PRINT+4
END ASKD+6, CHKDSORT+3, DRUG+5, DRUG+13, DEV+2, DEV+3
HDR PRINT+2, PRINT+6
LOOP START+10
LOOP1 LOOP+1, LOOP+2
SAVE DEV+3

Naked Globals

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

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
ASKN SORT+3*, START+10, PRINT+4, END+1!
BAL START+8*, START+11, PRINT+7*, PRINT+8, END+1!, LOOP1
C DEV+1*, END+1!
DA ASKD+3!, SORT+1!, DRUG+9!, END+1!, HDR+1!
DA(1 DRUG+10*
DEA START+3*, START+4, END+2!
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 SORT+1!, SORT+3!, DRUG+2~, DONE+1!, HDR+1!
DIR("?" SORT+2*
DIR("A" SORT+1*, DRUG+3*, DONE+1*
DIR("B" SORT+1*, DRUG+3*
DIR(0 SORT+1*, DRUG+3*, DONE+1*, HDR+1*
DIRUT SORT+1!, SORT+3, DRUG+5, DONE+1!
DRUGN START+8*, START+11, END+1!, LOOP1
DT START+7
DTOUT END+1!
DUOUT END+1!
EXP START+8*, START+9*, START+11, PRINT+7*, PRINT+8, END+1!, LOOP1
I DRUG+2~, DRUG+7*
IO DEV+4
IO("Q" DEV+2!, DEV+3!
IOF DONEHDR+2
IOP DEV+2!
IOSL PRINT+6, PRT+1
IOST DONEDONE+1, HDR+1
J DRUG+2~, DRUG+7*
JJ PRT+1*, END+1!
K DRUG+2~, DRUG+7*
LN PRINT+2!*, END+1!, HDR+3
LNUM PRINT+8*, PRT+1, END+1!
NODE START+6*, START+7, START+8, PRINT+7*, PRINT+8, 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+11, PRINT+5*, PRINT+7, END+1!, LOOP+1
LOOP+2, LOOP1
PSDEV DEV+1*, DEV+2, END+1!
PSDOK START+7*, START+11, PRINT+7*, PRINT+8, END+1!, LOOP1
PSDOUT PRINT+1*, PRINT+5, PRINT+6, PRT+2, DONE+1, END+1!, HDR+1*
PSDR DRUG+13, PRINT+5*, PRINT+7, PRINT+8, END+1!, SAVE+1
PSDR( DRUG+11*, START+5*, START+6
PSDRN END+1!
PSDS ASKD+1*, ASKD+7*, CHKDDRUG+10, DEV+1, START+2, START+6, END+1!, LOOP+1, LOOP+2
>> PSDSITE PSDBALI+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, END+2!, HDR+2
SCH( DRUG+7*, START+4
SLVL START+8*, START+11, PRINT+7*, PRINT+8, END+1!, LOOP1
TYP END+1!, LOOP+2*
TYPN END+1!, LOOP+1*, LOOP+2*, LOOP1
U ASKD+1, ASKD+2, ASKD+7
X DRUG+12*, DRUG+13, DRUG+14, END+1!
Y ASKD+6, ASKD+7, SORT+3, 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("ASKN" SAVE*
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