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

Package: Controlled Substances

Routine: PSDOPTS


Information

PSDOPTS ;BIR/LT L- Review OP Transactions for a Drug (cont.) ; 29 Aug 94

Source Information

Source file <PSDOPTS.m>

Call Graph

Call Graph Total: 10

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

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Controlled Substances 1 PSDOPTR  

Entry Points

Name Comments DBIA/ICR reference
END
HEADER
DEV ;device
START ;compiles
CHKD
SAVE ;
LOOP

External References

Name Field # of Occurrence
^%ZIS DEV+1
HOME^%ZIS DEV+2
^%ZISC END+2
^%ZTLOAD DEV+2
$$S^%ZTLOAD HEADER+1
^DIC CHKD
Y^DIQ CHKD+22, LOOP+9
^DIR CHKD+13, CHKD+15, CHKD+20, END+1, HEADER
^PSDOPTN CHKD+13
^PSDOPTX CHKD+13
KVAR^VADPT END+3
PID^VADPT6 LOOP+11

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"You may select one, several, or ^ALL drugs."
  • Line Location: PSDOPTS+7
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: !
  • Line Location: CHKD+15
Function Call: WRITE
  • Prompt: !
  • Line Location: CHKD+20
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+7
Function Call: WRITE
  • Prompt: " ("_VA("BID")_")",?60
  • 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: Y
  • Line Location: LOOP+14
Function Call: WRITE
  • Prompt: !!,"Task #",$G(ZTSK),", ",$G(ZTDESC)," was stopped by ",$P($G(^VA(200,+$G(DUZ),0)),U),"."
  • Line Location: HEADER+1
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $Y
  • Line Location: HEADER+2
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+2
Function Call: WRITE
  • Prompt: !,PSDU," (continued)",!
  • Condition for execution: $G(PSDT(1))
  • Line Location: HEADER+2
Routine Call
  • %ZIS
  • Line Location:
    • DEV+2
Routine Call
  • DIC
  • Line Location:
    • CHKD
Routine Call
  • DIR
  • Line Location:
    • CHKD+13
    • CHKD+15
    • CHKD+20
    • END+1
    • HEADER
Routine Call
  • %ZIS
  • Line Location:
    • DEV+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" LOOP+7, LOOP+12, LOOP+13, LOOP+14
^DD(58.8 CHKD+22
^DD(58.81 LOOP+9
^PSD(58.8 - [#58.8] CHKD+5, CHKD+22
^PSD(58.81 - [#58.81] CHKD+1, CHKD+6, LOOP, LOOP+1, LOOP+2, LOOP+3
^PSDRUG - [#50] CHKD+2, CHKD+7
^PSRX - [#52] LOOP+8, LOOP+12, LOOP+13, LOOP+14
^TMP("PSD" CHKD+4*, CHKD+9*, START+2, END+3!
^VA(200 - [#200] LOOP+6, LOOP+15, HEADER+1

Label References

Name Line Occurrences
END CHKD, CHKD+13, CHKD+15, CHKD+20, 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+22*, LOOP+9~*
>> CNT PSDOPTS+7*, CHKD, CHKD+2*
>> DFN LOOP+8*, LOOP+9
DIC CHKD*!
DIC("A" CHKD*
DIC("S" CHKD*
DIC(0 CHKD*
DIR CHKD+13!, CHKD+20!, HEADER!
DIR("?" CHKD+12*, CHKD+15*, CHKD+19*
DIR("A" CHKD+11*, CHKD+15*, CHKD+18*, END+1*
DIR("B" CHKD+11*
DIR(0 CHKD+10*, CHKD+14*, CHKD+17*, END+1*, HEADER*
>> DIRUT CHKD+13
DUZ HEADER+1
IO START+1
IO("Q" DEV+1!, DEV+2, END+3!
IOF END, HEADER+2
IOP DEV+1~
IOSL LOOP+4
IOST LOOP, END, END+1, HEADER
>> L LOOP*
LN START+1!, LOOP+17, HEADER+2*
PG START+1~*, HEADER, HEADER+2*
POP DEV+1~
PSD CHKD+2*, CHKD+3*, CHKD+4!, CHKD+7*, CHKD+8*, CHKD+9!
>> PSDEV CHKD+22*, DEV+1
>> PSDLOC CHKD+5, CHKD+22, LOOP, LOOP+1
>> PSDLOCN CHKD
>> PSDOUT DEV+2*, START+1*, START+2, LOOP, LOOP+4, END+1, HEADER*, HEADER+1*
PSDR START+1~
PSDR(2 LOOP+2*, LOOP+6, LOOP+7, LOOP+15
PSDR(3 LOOP+1*, LOOP+2, LOOP+3
PSDR(4 LOOP+3*, LOOP+6, LOOP+8, LOOP+10, LOOP+12, LOOP+13, LOOP+14, LOOP+16
>> PSDT CHKD+16*, CHKD+17, START+2*, LOOP*, LOOP+1
>> PSDT(1 START+2*, LOOP+5*, HEADER+2
>> PSDTB CHKD+16*, START+2
>> PSDTB(1 CHKD+20*, CHKD+21*, LOOP
>> PSDTB(2 CHKD+16*, CHKD+19, HEADER+2
>> PSDTB(3 CHKD+20*, HEADER+2
>> PSDU CHKD+5*, CHKD+6, CHKD+7, CHKD+8, CHKD+9, START+1*, START+2*, LOOP+5, HEADER+2
>> PSDU(1 START+2*, LOOP, LOOP+1
U CHKD+2, CHKD+7, LOOP+6, LOOP+7, LOOP+8, LOOP+9, LOOP+10, LOOP+12, LOOP+13, LOOP+14
, LOOP+15, LOOP+16, HEADER+1
>> VA("BID" LOOP+11, END+3!
>> VA("PID" END+3!
>> X CHKD, CHKD+5
>> Y CHKD, CHKD+1, CHKD+2, CHKD+3, CHKD+4, CHKD+13, CHKD+15, CHKD+16, CHKD+20, CHKD+22*
, LOOP+7*, LOOP+9*, LOOP+10, LOOP+12*, LOOP+13*, LOOP+14*, HEADER
>> Y(0 CHKD+16, CHKD+20
ZTDESC DEV+2~*, HEADER+1
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+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 |  Local Variables |  All