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

Package: Controlled Substances

Routine: PSDGSPU


Information

PSDGSPU ;BIR/JPW-Pickup Green Sheet ; 6 July 94

Source Information

Source file <PSDGSPU.m>

Call Graph

Call Graph Total: 4

Package Total Call Graph
VA Fileman 3 NOW^%DTC  (,IX)^DIC  ^DIE  
Controlled Substances 1 ^PSDSET  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Controlled Substances 1 PSD PICKUP GS  

Entry Points

Name Comments DBIA/ICR reference
ASKD ;ask disp location
GS ;select green sheet #
RET ;return gs
END

External References

Name Field # of Occurrence
NOW^%DTC GS+8
^DIC ASKD+5
IX^DIC GS+3
^DIE RET+4, RET+8
^PSDSET PSDGSPU+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),!!,?9,"** Please contact your Pharmacy Coordinator for access to return",!,?12,"Green Sheets. PSJ RPHARM or PSJ PHARM TECH security key required.",!
  • Line Location: PSDGSPU+4
Function Call: WRITE
  • Prompt: ?10,!!,"Return a Green Sheet to Pharmacy",!
  • Line Location: PSDGSPU+5
Function Call: WRITE
  • Prompt: !
  • Line Location: GS+1
Function Call: WRITE
  • Prompt: $C(7),!!,"There's no data on ",NAOUN," for Green Sheet # ",PSDPN,".",!,"Contact your Pharmacy Coordinator for assistance.",!
  • Line Location: GS+6
Function Call: WRITE
  • Prompt: !!,"This order has a status of "_$S(STATN]"":STATN,1:"UNKNOWN")_".",!,"Please contact your Pharmacy Coordinator for assistance.",!
  • Line Location: GS+7
Function Call: WRITE
  • Prompt: !!,"Accessing ",PSDRN," information...",!
  • Line Location: RET+1
Function Call: WRITE
  • Prompt: $C(7),!!,"** THIS GREEN SHEET HAS NOT BEEN PICKED UP **",!!,"The status remains "_STATN,!
  • Line Location: RET+5
Function Call: WRITE
  • Prompt: !!,"Updating your records now..."
  • Line Location: RET+7
Function Call: WRITE
  • Prompt: "done.",!!
  • Line Location: RET+9
Function Call: WRITE
  • Prompt: ?2,"*** Your Green Sheet #"_PSDPN_" is now "_$S($P($G(^PSD(58.82,STAT,0)),"^")]"":$P(^(0),"^"),1:"UNKNOWN")_" ***",!
  • Line Location: RET+10
Routine Call
  • DIE
  • Line Location:
    • RET+4
    • RET+8
Routine Call
  • DIC
  • Line Location:
    • ASKD+5
Routine Call
  • DIC
  • Line Location:
    • GS+3

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" GS+8
^PSD(58.8 - [#58.8] GS+5, GS+6
^PSD(58.81 - [#58.81] RET+3, RET+10
^PSD(58.82 - [#58.82] GS+4, RET+10
^PSDRUG - [#50] GS+5
^VA(200 - [#200] PSDGSPU+5
^XUSEC("PSJ PHARM TECH" PSDGSPU+3
^XUSEC("PSJ RPHARM" PSDGSPU+3

Label References

Name Line Occurrences
END ASKD+5, GS+3, GS+6, GS+7, RET+5
GS ASKD+2, RET+11

Naked Globals

Name Field # of Occurrence
^(0 RET+10

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% GS+8, END!
%DT END!
%H END!
%I END!
D GS+1*, END!
DA ASKD+3!, GS+1!, RET+4!*, RET+8!*, END!
DA(1 RET+8*
DA(2 RET+8*
DIC ASKD+3!*, ASKD+5!, GS+1!*, GS+3!, END!
DIC("A" ASKD+4*, GS+1*
DIC("B" ASKD+4*
DIC("S" ASKD+3*, GS+2*, GS+3*
DIC(0 ASKD+3*, GS+1*
DIE RET+4!*, RET+8!*, END!
DR RET+4!*, RET+8!*, END!
DTOUT RET+5, END!
DUOUT END!
DUZ PSDGSPU+3, PSDGSPU+5
NAOU GS+5*, GS+6, RET+8, END+1!
NAOUN GS+5*, GS+6, END+1!
NURSE RET+3*, END+1!
OK PSDGSPU+3*, PSDGSPU+4!, GS+2, GS+3, GS+7, END+1!
ORD GS+5*, GS+6, RET+8, END+1!
PSDA GS+3*, RET+3, RET+4, RET+10, END+1!
PSDPN GS+4*, GS+6, RET+10, END+1!
PSDR GS+5*, GS+6, RET+8, END+1!
PSDRN GS+5*, RET+1, END+1!
PSDS ASKD+1*, ASKD+6*, END+1!
>> PSDSITE PSDGSPU+2, ASKD+1, ASKD+2, ASKD+6*
PSDSN ASKD+1*, ASKD+4, ASKD+6*, END+1!
PSDUZ PSDGSPU+5*, END+1!
PSDUZN PSDGSPU+5*, END+1!
RECDT GS+8*, END+1!
STAT GS+4*, GS+7, RET+10*, END+1!
STATN GS+4*, GS+7, RET+5, END+1!
U ASKD+1, ASKD+2, ASKD+6
X END+1!
Y ASKD+5, ASKD+6, GS+3, GS+8*, RET+5, END+1!
Y(0 GS+4, GS+5
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All