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

Package: Controlled Substances

Routine: PSDCOR


Information

PSDCOR ;BIR/JPW-CS Correction Action ; 6 July 94

Source Information

Source file <PSDCOR.m>

Call Graph

Call Graph Total: 7

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

Caller Graph

Caller Graph Total: 3

Package Total Caller Graph
Controlled Substances 3 PSD CORRECT EXISTING GS  PSD CORRECT GS STATUS  PSD CORRECT STATUS  

Entry Points

Name Comments DBIA/ICR reference
GS ;select green sheet #
START ;start proc
EN1 ;sets type=1
EN2 ;sets type=2
EN3 ;sets type=3
ASK
END
ASKN ;ask naou
COM ;complete correction
FIND

External References

Name Field # of Occurrence
NOW^%DTC COM+1
^DIC ASKN+3, FIND+1
IX^DIC GS+4
^DIE FIND+4, FIND+7, FIND+9
^DIR ASK+3
^PSDCOR1 START+4
^PSDCOR2 START+4
^PSDSET START+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),!!,?9,"** Please contact your Pharmacy Coordinator for access to correct",!,?12,"narcotic orders.",!!,"PSDMGR security key required.",!
  • Line Location: START+2
Function Call: WRITE
  • Prompt: !!,"Controlled Substances Correction Action"
  • Line Location: START+3
Function Call: WRITE
  • Prompt: !
  • Line Location: ASKN+1
Function Call: WRITE
  • Prompt: $C(7),!!,?15,"** NOTE **",!,"Your Green Sheet selection is limited to those Green Sheets flagged as",!,"'COMPLETED - GREEN SHEET READY FOR PICKUP' on the selected NAOU.",!
  • Line Location: GS+1
Function Call: WRITE
  • Prompt: !
  • Line Location: GS+2
Function Call: WRITE
  • Prompt: $C(7),!!,"The Green Sheet # ",PSDPN," is assigned to ",NAOUN,".",!,"Please select another Green Sheet.",!
  • Line Location: GS+9
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+10
Function Call: WRITE
  • Prompt: $C(7),!!,"This Green Sheet has a status of "_$S(STATN]"":STATN,1:"UNKNOWN")_".",!,"Please select another Green Sheet.",!
  • Line Location: GS+11
Function Call: WRITE
  • Prompt: !!,"This action will update Green Sheet #",PSDPN," as ",!,?5,"** DELIVERED - ACTIVELY ON NAOU **",!
  • Line Location: ASK+0
Function Call: WRITE
  • Prompt: !
  • Line Location: ASK+1
Function Call: WRITE
  • Prompt: !!,"No action taken.",!!
  • Line Location: ASK+3
Function Call: WRITE
  • Prompt: !!,"Accessing Green Sheet #",PSDPN," information...",!!
  • Line Location: COM+2
Function Call: WRITE
  • Prompt: !!,"Updating your records now..."
  • Line Location: FIND+5
Function Call: WRITE
  • Prompt: $C(7),!!,"** THIS GREEN SHEET HAS NOT BEEN CORRECTED **",!!,"The status remains "_STATN,!
  • Line Location: FIND+8
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: FIND+10
Routine Call
  • DIE
  • Line Location:
    • FIND+4
    • FIND+7
    • FIND+9
Routine Call
  • DIC
  • Line Location:
    • ASKN+3
    • FIND+1
Routine Call
  • DIR
  • Line Location:
    • ASK+3
Routine Call
  • DIC
  • Line Location:
    • GS+4

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PSD(58.8 - [#58.8] GS+7, GS+10
^PSD(58.81 - [#58.81] GS+8, FIND+10
^PSD(58.82 - [#58.82] GS+5, FIND+10
^PSD(58.87 - [#58.87] COM+3, FIND*, FIND+2
^XUSEC("PSDMGR" START+2

Label References

Name Line Occurrences
END ASKN+3, GS+4, GS+10, ASK+3, FIND+8
FIND FIND
GS GS+9, GS+11
START EN1+1, EN2+1

Naked Globals

Name Field # of Occurrence
^(0 FIND+10

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% COM+1, END!
%DT END!
%H END!
%I END!
AOU ASKN+3*, GS+9, END!
AOUN ASKN+3*, END!
D GS+2*, END!
DA ASKN+1!, GS+2!, ASK+1!, FIND+1!, FIND+3!*, FIND+4!, FIND+7!*, FIND+9!*, END!
DA(1 FIND+9*
DA(2 FIND+9*
DIC ASKN+1!*, ASKN+3!, GS+2!*, GS+4!, FIND+1!*, END!
DIC("A" ASKN+1*, GS+2*
DIC("S" ASKN+2*, GS+3*
DIC(0 ASKN+1*, GS+2*, FIND+1*
DIE FIND+3!*, FIND+4!, FIND+7!*, FIND+9!*, END!
>> DILOCKTM COM+3
DIR ASK+1!, ASK+3!, END!
DIR("?" ASK+2*
DIR("A" ASK+1*
DIR("B" ASK+1*
DIR(0 ASK+1*
DIROUT END!
DIRUT ASK+1!, END!
DLAYGO FIND+1!*
DR FIND+3!*, FIND+4!, FIND+7!*, FIND+9!*, END!
DTOUT FIND+8, END!
DUOUT END!
DUZ START+2, START+3
NAOU GS+7*, GS+9, GS+10, FIND+3, FIND+9, END+1!
NAOUN GS+7*, GS+9, GS+10, END+1!
NURS GS+8*, FIND+3, END+1!
OK END+1!
ORD GS+7*, GS+10, FIND+3, FIND+9, END+1!
PSDA GS+4*, GS+8, FIND+7, FIND+10, END+1!
PSDCOR FIND*, FIND+1, FIND+3, END+1!
PSDPN GS+5*, GS+9, GS+10, ASK, COM+2, FIND+3, FIND+10, END+1!
PSDR GS+7*, GS+10, FIND+3, FIND+9, END+1!
PSDS GS+6*, FIND+3, END+1!
>> PSDSITE START+1
PSDUZ START+3*, FIND+3, END+1!
RECDT COM+1*, FIND+3, END+1!
STAT GS+5*, GS+11, FIND+10*, END+1!
STATN GS+5*, GS+11, FIND+8, END+1!
TYPE EN1+1*, EN2+1*, EN3+1*, START+2!, START+4, FIND+3, END+1!
X FIND+1*, END+1!
Y ASKN+3, GS+4, ASK+3, FIND+8, END+1!
Y(0 GS+5, GS+6, GS+7
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All