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 |  Local Variables |  All
Print Page as PDF
Routine: PSDOPTI

Package: Controlled Substances

Routine: PSDOPTI


Information

PSDOPTI ;BIR/LTL - Review OP Transactions by Inventory Type ; 29 Aug 94

Source Information

Source file <PSDOPTI.m>

Call Graph

Call Graph Total: 9

Package Total Call Graph
Kernel 3 (,HOME)^%ZIS  ^%ZISC  (,$$S)^%ZTLOAD  
VA Fileman 3 ^DIC  Y^DIQ  ^DIR  
Registration 2 KVAR^VADPT  PID^VADPT6  
Controlled Substances 1 ^PSDOPTX  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Controlled Substances 1 PSDOPTR  

Entry Points

Name Comments DBIA/ICR reference
END
HEADER ;prints header info
INV
DEV ;asks device and queuing info
START ;compiles and prints output
CHKD
SAVE ;save queued variables
LOOP

External References

Name Field # of Occurrence
^%ZIS DEV+1
HOME^%ZIS DEV+2
^%ZISC END+2
^%ZTLOAD DEV+2
$$S^%ZTLOAD HEADER+2
^DIC INV, CHKD
Y^DIQ CHKD+23, LOOP+8
^DIR CHKD+17, CHKD+18, CHKD+21, END+1, HEADER+1
^PSDOPTX CHKD+17
KVAR^VADPT END+3
PID^VADPT6 LOOP+10

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"You may select one, several, or ^ALL Inventory Types."
  • Line Location: PSDOPTI+8
Function Call: WRITE
  • Prompt: !
  • Line Location: INV+0
Function Call: WRITE
  • Prompt: !!,"Now, you may select one, several, or ^ALL drugs."
  • Line Location: INV+2
Function Call: WRITE
  • Prompt: !
  • Line Location: CHKD+0
Function Call: WRITE
  • Prompt: !!,"There have been no transactions for this drug.",!!
  • Line Location: CHKD+1
Function Call: WRITE
  • Prompt: !!,"Not in selected Inventory Type(s)",!!
  • Line Location: CHKD+3
Function Call: WRITE
  • Prompt: !
  • Line Location: CHKD+18
Function Call: WRITE
  • Prompt: !
  • Line Location: CHKD+21
Function Call: WRITE
  • Prompt: !
  • Line Location: DEV+1
Function Call: WRITE
  • Prompt: !,"NO DEVICE SELECTED OR OUTPUT PRINTED!"
  • Line Location: DEV+1
Function Call: WRITE
  • Prompt: !,Y,?19
  • Line Location: LOOP+6
Function Call: WRITE
  • Prompt: " ("_VA("BID")_")",?60
  • Line Location: LOOP+10
Function Call: WRITE
  • Prompt: Y
  • Line Location: LOOP+11
Function Call: WRITE
  • Prompt: Y
  • Line Location: LOOP+12
Function Call: WRITE
  • Prompt: Y
  • Line Location: LOOP+13
Function Call: WRITE
  • Prompt: !!,"Task #",$G(ZTSK),", ",$G(ZTDESC)," was stopped by ",$P($G(^VA(200,+$G(DUZ),0)),U),"."
  • Line Location: HEADER+2
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $Y
  • Line Location: HEADER+3
Function Call: WRITE
  • Prompt: !,"Outpatient Activity from ",PSDTB(2)," to ",PSDTB(3),?70,"PAGE: ",PG,!,LN,!,"Date Posted",?19,"Rx#",?28,"Patient",?60,"Date Released",!,LN
  • Line Location: HEADER+3
Function Call: WRITE
  • Prompt: !,PSDU," (continued)",!
  • Condition for execution: $G(PSDT(1))
  • Line Location: HEADER+3
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2
Routine Call
  • DIC
  • Line Location:
    • INV
    • CHKD
Routine Call
  • DIR
  • Line Location:
    • CHKD+17
    • CHKD+18
    • CHKD+21
    • END+1
    • HEADER+1
Routine Call
  • %ZIS
  • Line Location:
    • DEV+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSI(58.16 - [#58.16] Classic Fileman Calls
^PSD(58.8 - [#58.8] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DD("DD" LOOP+6, LOOP+11, LOOP+12, LOOP+13
^DD(58.8 CHKD+23
^DD(58.81 LOOP+8
^PSD(58.8 - [#58.8] CHKD+2, CHKD+7, CHKD+9, CHKD+23
^PSD(58.81 - [#58.81] CHKD+1, CHKD+8, LOOP, LOOP+1, LOOP+2, LOOP+3
^PSDRUG - [#50] CHKD+4, CHKD+11
^PSI(58.16 - [#58.16] INV+1
^PSRX - [#52] LOOP+7, LOOP+11, LOOP+12, LOOP+13
^TMP("PSD" CHKD+6*, CHKD+13*, START+2, END+3!
^VA(200 - [#200] LOOP+14, HEADER+2

Label References

Name Line Occurrences
END INV, CHKD, CHKD+17, CHKD+18, CHKD+21, DEV+2, START+2
HEADER START+1, LOOP+4
SAVE DEV+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%ZIS DEV+1~*
%ZIS("B" DEV+1*
C CHKD+23*, LOOP+8~*
>> CNT PSDOPTI+8*, INV*, INV+2*, CHKD, CHKD+4*
>> DFN LOOP+7*, LOOP+8
DIC INV*!, CHKD*!
DIC("A" INV*, CHKD*
DIC("S" CHKD*
DIC(0 INV*, CHKD*
DIR CHKD+17!, CHKD+21!, HEADER+1!
DIR("?" CHKD+16*, CHKD+18*
DIR("A" CHKD+15*, CHKD+18*, CHKD+20*, END+1*
DIR("B" CHKD+15*
DIR(0 CHKD+14*, CHKD+18*, CHKD+19*, END+1*, HEADER+1*
>> DIRUT CHKD+17
DUZ HEADER+2
IO START+1
IO("Q" DEV+1!, DEV+2, END+3!
IOF END, HEADER+3
IOP DEV+1~
IOSL LOOP+4
IOST LOOP, END, END+1, HEADER+1
LN START+1~, LOOP+16, HEADER+3*
PG START+1~*, HEADER+1, HEADER+3*
POP DEV+1~
PSD CHKD+4*, CHKD+5*, CHKD+6!, CHKD+11*, CHKD+12*, CHKD+13!, START+1*, START+2*, LOOP+5
PSD(1 CHKD+2*, CHKD+9*
PSD(2 CHKD+2*, CHKD+3, CHKD+6, CHKD+9*, CHKD+10, CHKD+13
>> PSDEV CHKD+23*, DEV+1
PSDI PSDOPTI+9~*, INV+1*, CHKD+17*
PSDI( INV*, INV+1*, CHKD+2, CHKD+6, CHKD+9, CHKD+13
>> PSDLOC CHKD+2, CHKD+7, CHKD+9, CHKD+23, LOOP, LOOP+1
>> PSDLOCN CHKD
>> PSDOUT DEV+2*, START+1*, START+2, LOOP, LOOP+4, END+1, HEADER+1*, HEADER+2*
PSDR START+1~
PSDR(2 LOOP+2*, LOOP+6, LOOP+14
PSDR(3 LOOP+1*, LOOP+2, LOOP+3
PSDR(4 LOOP+3*, LOOP+7, LOOP+9, LOOP+11, LOOP+12, LOOP+13, LOOP+15
>> PSDT CHKD+19*, START+2*, LOOP*, LOOP+1
>> PSDT(1 START+2*, LOOP+5*, HEADER+3
>> PSDTB CHKD+19*, START+2
>> PSDTB(1 CHKD+21*, CHKD+22*, LOOP
>> PSDTB(2 CHKD+19*, HEADER+3
>> PSDTB(3 CHKD+21*, HEADER+3
>> PSDU CHKD+7*, CHKD+8, CHKD+9, CHKD+11, CHKD+12, CHKD+13, START+1*, START+2*, LOOP+5, HEADER+3
>> PSDU(1 START+2*, LOOP, LOOP+1
U INV, INV+1, CHKD+4, CHKD+11, LOOP+6, LOOP+7, LOOP+8, LOOP+9, LOOP+11, LOOP+12
, LOOP+13, LOOP+14, LOOP+15, HEADER+2
>> VA("BID" LOOP+10, END+3!
>> VA("PID" END+3!
>> X INV, INV+1, CHKD, CHKD+7
>> Y INV, CHKD, CHKD+1, CHKD+2, CHKD+4, CHKD+5, CHKD+6, CHKD+17, CHKD+18, CHKD+19
, CHKD+21, CHKD+23*, LOOP+6*, LOOP+8*, LOOP+9, LOOP+11*, LOOP+12*, LOOP+13*, HEADER+1
>> Y(0 CHKD+19, CHKD+21
ZTDESC DEV+2~*, HEADER+2
ZTDTH DEV+2~
ZTIO DEV+2~
>> ZTQUEUED END+2
>> ZTREQ END+2*
ZTRTN DEV+2~*
ZTSAVE DEV+2~
ZTSAVE("PSDLOC" SAVE+2*
ZTSAVE("PSDT" SAVE+2*
ZTSAVE("PSDTB" SAVE+2*
ZTSAVE("PSDTB(" SAVE+2*
ZTSAVE("^TMP(""PSD"",$J," SAVE+1*
ZTSK DEV+2~, HEADER+2
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 |  Local Variables |  All