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

Package: Controlled Substances

Routine: PSDRF4


Information

PSDRF4 ;BIR/JPW,LTL-Nurse RF damaged dose ; 8 Aug 94

Source Information

Source file <PSDRF4.m>

Call Graph

Call Graph

Call Graph Total: 11

Package Total Call Graph
Controlled Substances 5 UPDAT^PSDRF1  ^PSDRF2  ^PSDRF5  ^PSDRFV  ^PSDSET  
Kernel 3 EN^XQH  SIG^XUSESIG  $$WITNESS^XUVERIFY  
VA FileMan 3 ^DIC  $$FMDIFF^DILIBF  ^DIR  

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

Package Total Caller Graph
Controlled Substances 2 PSD NURSE DEFECTIVE DOSE  PSDRF5  

Entry Points

Name Comments DBIA/ICR reference
NURSE
NAOU ;select NAOU to dispense from
DRUG ;select drug
BAL
LIQ
DEF
WIT
END
MSG ;display error message

External References

Name Field # of Occurrence
^DIC NAOU+5, DRUG+19
$$FMDIFF^DILIBF DRUG+11, DRUG+14
^DIR DRUG+4, BAL+7, DEF+1
UPDAT^PSDRF1 WIT+5
^PSDRF2 BAL+8
^PSDRF5 LIQ
^PSDRFV BAL+3
^PSDSET PSDRF4+6
EN^XQH PSDRF4+7
SIG^XUSESIG NURSE
$$WITNESS^XUVERIFY WIT

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Please enter the ward from which the defective drug(s) will be destroyed."
  • Line Location: NAOU+2
Function Call: WRITE
  • Prompt: !
  • Line Location: NAOU+5
Function Call: WRITE
  • Prompt: !
  • Line Location: DRUG+4
Function Call: WRITE
  • Prompt: $C(7),!!,"Please enter more than one character.",!
  • Line Location: DRUG+5
Function Call: WRITE
  • Prompt: $C(7),!!,"This is not a valid Pharmacy Dispensing number for this ward.",!!
  • Line Location: DRUG+16
Function Call: WRITE
  • Prompt: $C(7),!!,"This is not a valid Pharmacy Dispensing number for this ward.",!!
  • Line Location: DRUG+19
Function Call: WRITE
  • Prompt: $C(7),!!,"This is not a valid Pharmacy Dispensing number for this ward.",!!
  • Line Location: DRUG+21
Function Call: WRITE
  • Prompt: !!,"Sorry, this drug has a zero balance."
  • Line Location: BAL+1
Function Call: WRITE
  • Prompt: !
  • Line Location: BAL+7
Function Call: WRITE
  • Prompt: !
  • Line Location: DEF+0
Function Call: WRITE
  • Prompt: !!,"Wait a minute, you can't witness yourself!",$C(7)
  • Line Location: WIT+1
Function Call: WRITE
  • Prompt: !!,"Thank you, ",$S($P($G(^VA(200,NUR2,.1)),U,4)]"":$P($G(^(.1)),U,4),1:$P($G(^VA(200,NUR2,0)),U))
  • Line Location: WIT+3
Function Call: WRITE
  • Prompt: !!,"Remaining Balance: ",$P(PSDR(1),U,4)-PSDQ," ",$P(PSDR(1),U,8)
  • Line Location: WIT+4
Function Call: WRITE
  • Prompt: $C(7),!!,?10,"Contact your Pharmacy Coordinator.",!,?10,"This "_$S(MSG=2:"Dispensing Site",MSG=1:"NAOU",1:"Drug")_" is missing "
  • Line Location: MSG+1
Function Call: WRITE
  • Prompt: $S(MSG1=1:"Primary Disp. Site",MSG1=2:"stocked drugs",MSG1=3:"narcotic breakdown unit",MSG1=4:"narcotic package size",1:"data")_".",!
  • Line Location: MSG+2
Routine Call
  • DIC
  • Line Location:
    • NAOU+5
    • DRUG+19
Routine Call
  • DIR
  • Line Location:
    • DRUG+4
    • BAL+7
    • DEF+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" PSDRF4+8
^PSD(58.8 - [#58.8] NAOU+1, NAOU+6, NAOU+7, NAOU+8, NAOU+9, NAOU+10, NAOU+11, DRUG+10, DRUG+16, BAL
LIQ
^PSD(58.81 - [#58.81] DRUG+6, DRUG+8
^PSDRUG - [#50] DRUG+10, DRUG+13, DRUG+16, DRUG+22
^VA(200 - [#200] PSDRF4+7, WIT+3

Label References

Name Line Occurrences
DRUG NAOU+1, DRUG+5, DRUG+17, BAL+1
END PSDRF4+7, NURSENAOU+5, NAOU+6, NAOU+7, NAOU+8, NAOU+9, NAOU+10, NAOU+11, DRUG+4
DRUG+16, DRUG+17, DRUG+21, BAL+3, BAL+7, BAL+8, DEF+1
MSG NAOU+6, NAOU+7, NAOU+8, NAOU+9, NAOU+10, NAOU+11
WIT WIT+1

Naked Globals

Name Field # of Occurrence
^( WIT+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% END!
%DT END!
%H END!
%I END!
CNT END!
CNT1 END!
DA NAOU+3!, END!
DA(1 DRUG+18*
DIC NAOU+3!*, NAOU+5!, DRUG+18*, DRUG+19!, END!
DIC("A" NAOU+3*
DIC("S" NAOU+4*
DIC(0 NAOU+3*, DRUG+18*
DIE END!
DINUM END!
DIR DRUG+1~, DRUG+4!, BAL+7!, DEF+1!, END!
DIR("?" BAL+6*
DIR("A" DRUG+3*, BAL+4*, DEF*
DIR("B" BAL+5*, DEF+1*
DIR(0 DRUG+2*, BAL+4*, DEF*
DIROUT END!
DIRUT DRUG+4, BAL+7, DEF+1, END!
DIWF END!
DIWL END!
DIWR END!
DR END!
DT PSDRF4+8, DRUG+11, DRUG+14
DTOUT DRUG+17, DRUG+19, END!
DUOUT DRUG+17, DRUG+19, END!
DUZ PSDRF4+7, PSDRF4+8, BAL+5, WIT+1
LN END!
MSG PSDRF4+8*, NAOU+6*, NAOU+7*, NAOU+8*, NAOU+9*, NAOU+10*, NAOU+11*, END!, MSG+1
MSG1 PSDRF4+8*, NAOU+7*, NAOU+9*, NAOU+11*, END!, MSG+2
NAOU NAOU+1, NAOU+5*, NAOU+6, NAOU+7, NAOU+8, NAOU+9, DRUG+8, DRUG+10, DRUG+16, DRUG+18
BALEND+1!
NAOUN NAOU+5*, END+1!
NBKU END+1!
NPKG END+1!
NUR1 BAL+5*, END+1!
NUR2 WIT*, WIT+1, WIT+2, WIT+3, END!
OK END+1!
OKTYP END+1!
OQTY BAL*, BAL+1, BAL+4, BAL+8*, DEFEND+1!
ORD END+1!
PSD DRUG+1~, DRUG+7*, DRUG+8*
PSD(1 DRUG+8*, DRUG+11, DRUG+13, DRUG+14
PSDA END+1!
PSDDAVE BAL+3!
PSDDT DRUG+1~, DRUG+11*, DRUG+12, DRUG+14*, DRUG+15
PSDEM END+1!
PSDOUT BAL+3*, BAL+8, WIT+2*, ENDEND+1!
PSDPN DRUG+8*, END+1!
PSDQ DRUG+1~, DEF+1*, WIT+4
PSDQ(1 BAL+8
PSDQTY END+1!
PSDR DRUG+1~, DRUG+8*, DRUG+9, DRUG+12*, DRUG+15!, DRUG+16, DRUG+17, DRUG+20*, DRUG+21, DRUG+22
BALLIQEND+1!
PSDR(1 BAL*, BAL+4, BAL+8*, WIT+4
PSDRD END+1!
PSDRE DRUG+20*, END+1!
PSDRN END+1!
PSDS NAOU+1*, NAOU+9*, NAOU+10, NAOU+11, LIQEND+1!
>> PSDSITE PSDRF4+6
PSDT END+1!
PSDTYP DRUG+8*, DRUG+20*, BAL+8*, END+1!
PSDUZ PSDRF4+8*, END+1!
PSDUZN END+1!
REQD PSDRF4+8*, END+1!
TEXT END+1!
TYPE END+1!
U PSDRF4+7, NAOU+1, NAOU+8, DRUG+8, DRUG+11, DRUG+14, DRUG+22, BALBAL+4, BAL+8
LIQWIT+3, WIT+4
WORD END+1!
WQTY DEF+1*, END!
X NURSE~, END+1!
X1 NURSE~
XQH PSDRF4+7~*
Y PSDRF4+8*, NAOU+5, DRUG+5, DRUG+6, DRUG+8, DRUG+9, DRUG+10, DRUG+12, DRUG+13, DRUG+16
DRUG+17, DRUG+19, DRUG+20, BAL+8, DEF+1, END+1!
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