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

Package: Controlled Substances

Routine: PSDESTF


Information

PSDESTF ;BIR/BJW - Add Non-CS Drug to Holding file ;26 Feb 98

Source Information

Source file <PSDESTF.m>

Call Graph

Call Graph

Call Graph Total: 7

Package Total Call Graph
VA FileMan 4 NOW^%DTC  ^DIC  ^DIE  ^DIR  
Controlled Substances 2 ^PSDGSRV2  ^PSDSET  
Kernel 1 $$FMTE^XLFDT  

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 DEST TEXT DRUG  

Entry Points

Name Comments DBIA/ICR reference
ASKD ;ask disp location
DEST ;set up file 58.86
DIR ;ask free-text drug name
DIR0 ;
DIR2
DIR3 ;enter free-text information(comments)
ASKY ;ask ok to continue
FIND
PRINT ;print 2321
END ;kill variables
MSG

External References

Name Field # of Occurrence
NOW^%DTC PSDESTF+7
^DIC ASKD+4, FIND+1
^DIE FIND+5
^DIR DIR0+1, DIR2DIR3+2, ASKY+4
^PSDGSRV2 PRINT+5
^PSDSET PSDESTF+5
$$FMTE^XLFDT PRINT+4

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Please contact your Pharmacy Coordinator for access to",!,"destroy Controlled Substances.",!!,"PSJ RPHARM or PSD TECH ADV security key required.",!
  • Line Location: PSDESTF+6
Function Call: WRITE
  • Prompt: !!,?5,"NOTE: This Holding for Destruction transaction WILL NOT update your",!,?5,"Controlled Substances inventory balance.",!!
  • Line Location: PSDESTF+8
Function Call: WRITE
  • Prompt: !!,"You may create a free-text CS drug to place on hold for destruction.",!,"Your Dispensing Site inventory balance WILL NOT be updated.",!!
  • Line Location: DIR+1
Function Call: WRITE
  • Prompt: !,"A semicolon is not allowed in the DRUG ITEM field. Please edit your entry.",!,$C(7)
  • Line Location: DIR0+4
Function Call: WRITE
  • Prompt: !!,"You may enter free-text info regarding drug placed on hold for destruction."
  • Line Location: DIR3+1
Function Call: WRITE
  • Prompt: !,"A semicolon is not allowed in the COMMENTS field. Please edit your entry.",!,$C(7)
  • Line Location: DIR3+4
Function Call: WRITE
  • Prompt: !!,PSDRN," has been selected.",!
  • Line Location: ASKY+1
Function Call: WRITE
  • Prompt: !!,"Creating an entry in the Destructions file..."
  • Line Location: ASKY+6
Function Call: WRITE
  • Prompt: !!,"Your Destructions Holding number is ",PSDHLD
  • Line Location: FIND+3
Function Call: READ
  • Variable: NUM
  • Timeout: DTIME
  • Line Location: PRINT+1
Function Call: WRITE
  • Prompt: !!,"No copies printed!!",!!
  • Line Location: PRINT+1
Function Call: WRITE
  • Prompt: !!,"Enter a whole number between 1 and 9",!
  • Line Location: PRINT+2
Function Call: WRITE
  • Prompt: $C(7),!!,"WARNING: Holding for Destructions entry HAS NOT been created.",!!
  • Line Location: MSG+0
Routine Call
  • DIC
  • Line Location:
    • ASKD+4
    • FIND+1
Routine Call
  • DIE
  • Line Location:
    • FIND+5
Routine Call
  • DIR
  • Line Location:
    • DIR0+1
    • DIR2
    • DIR3+2
    • ASKY+4

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" PRINT+3
^PSD(58.86 - [#58.86] ASKY+7, FIND*, FIND+2, FIND+6
^XUSEC("PSD TECH ADV" PSDESTF+6
^XUSEC("PSJ RPHARM" PSDESTF+6

Label References

Name Line Occurrences
DEST ASKD+1
DIR ASKY+5
DIR0 DIR0+4
DIR3 DIR3+4
END PSDESTF+6, ASKD+4, DIR0+2, DIR0+3, DIR2DIR3+3, ASKY+4
FIND FIND
MSG DIR0+2, DIR0+3, DIR2DIR3+3, ASKY+4
PRINT PRINT+2

Naked Globals

Name Field # of Occurrence
^(1 FIND+6

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% PSDESTF+7, END+1!
%DT END+1!
%H END+1!
%I END+1!
ALL END+1!
CNT END+1!
DA ASKD+2!, DIR0+1!, DIR2!, DIR3+2!, ASKY+2!, FIND+1!, FIND+4!*, FIND+5!, END+1!
DIC ASKD+2!*, ASKD+4!, FIND+1!*, END+1!
DIC("A" ASKD+3*
DIC("B" ASKD+3*
DIC("S" ASKD+2*
DIC(0 ASKD+2*, FIND+1*
DIE FIND+4!*, FIND+5!, END+1!
>> DILOCKTM ASKY+7
DINUM FIND+1*!, END+1!
DIR DIR0+1!, DIR2!, DIR3+2!, ASKY+2!, ASKY+4!, END+1!
DIR("?" ASKY+3*
DIR("A" ASKY+2*
DIR("B" ASKY+2*
DIR(0 DIR0+1*, DIR2*, DIR3+2*, ASKY+2*
DIROUT END+1!
DIRUT DIR0+1!, DIR0+2, DIR2!, DIR2+4!, DIR3+2!, ASKY+2!, ASKY+4, END+1!
DLAYGO FIND+1!*, END+1!
DR FIND+4!*, FIND+5!, END+1!
DTIME PRINT+1
DTOUT DIR2!, DIR2+1, DIR2+4!, DIR3+3, END+1!
DUOUT DIR2!, DIR2+1, DIR2+4!, DIR3+3, END+1!
DUZ PSDESTF+6, PSDESTF+7
EXP DEST+2*, PRINT+4, END+1!
EXP1 PRINT+4*, END+1!
EXPD PRINT+4*, END+1!
LN END+1!
LOT DEST+2*, END+1!
MFG DEST+2*, END+1!
NUM PRINT+1*, PRINT+2, END+1!
PG PRINT+4*, END+2!
PSD END+2!
PSD( DIR2+3*
PSD(11 FIND+4
PSD(12 FIND+4
PSD(18 FIND+4
PSD(2 FIND+4
PSD(4 FIND+4
PSDANS DIR2*, DIR2+2, DIR2+3, END+2!
PSDCOMS DIR3+5*, FIND+4, END+2!
PSDCT DEST+1*, END+2!
PSDHLD FIND*, FIND+1, FIND+3, FIND+4, FIND+6, END+2!
PSDOK FIND+7*, END+2!
PSDOUT PSDESTF+7*, DEST+1*, DIR2DIR2+1*, DIR2+2*, END+2!
PSDRN DIR0+5*, ASKY+1, FIND+4, FIND+6*, END+2!
PSDS ASKD+1*, ASKD+5*, FIND+4, END+2!
>> PSDSITE PSDESTF+5, ASKD+1, ASKD+5*
PSDSN ASKD+1*, ASKD+3, ASKD+5*, END+2!
PSDT PSDESTF+7*, FIND+4, PRINT+3, PRINT+4, END+2!
PSDUZ PSDESTF+7*, FIND+4, END+2!
PSDYR PRINT+3*, PRINT+4, END+2!
RECDT PRINT+4*, END+2!
RPDT END+2!
RQTY FIND+6*, END+2!
U ASKD+1, ASKD+5
X FIND+1*, END+2!
Y ASKD+4, ASKD+5, DIR0+3, DIR0+4, DIR0+5, DIR2+2, DIR2+3, DIR3+4, DIR3+5, ASKY+5
PRINT+3*, END+2!
ZTDESC END+2!
ZTDTH END+2!
ZTIO END+2!
ZTRTN END+2!
ZTSAVE END+2!
ZTSK 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