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

Package: Inpatient Medications

Routine: PSGTCTD0


Information

PSGTCTD0 ;BIR/CML3-PRINT TOTAL COST TO DATE REPORT ;31 OCT 95 / 2:10 PM

Source Information

Source file <PSGTCTD0.m>

Call Graph

Call Graph Total: 2

Package Total Call Graph
Inpatient Medications 1 $$ENDTC^PSGMI  
VA Fileman 1 NOW^%DTC  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Inpatient Medications 1 PSGTCTD  

Entry Points

Name Comments DBIA/ICR reference
RUN ;
HDR ;
DW ;
START ;
DONE ;
W
TOTLS ;
NP ;
PTOT ;
PW ;

External References

Name Field # of Occurrence
NOW^%DTC START+1
$$ENDTC^PSGMI START+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: S
  • Line Location: START+3
Function Call: WRITE
  • Prompt: !!?18,"*** NO TOTAL COST PER PATIENT FOUND ***"
  • Line Location: RUN+1
Function Call: WRITE
  • Prompt: !!,LN2,!!?5,"TOTALS => ",?17,"AVG. COST/UNIT: ",$J(TCPU,0,2),?52,$J(TCNT,9,0),?67,$J(TCST,12,2)
  • Line Location: TOTLS+1
Function Call: WRITE
  • Prompt: !
  • Line Location: TOTLS+2
Function Call: WRITE
  • Prompt: !?54,"(** = NON-FORMULARY ITEM)"
  • Line Location: TOTLS+3
Function Call: WRITE
  • Prompt: ?52,"---------",?67,"------------",!?1,"----- AVG. COST/UNIT: ",$J(PCPU,0,2),?52,$J(PCNT,9,0),?67,$J(PCST,12,2),!!
  • Line Location: PTOT+1
Function Call: WRITE
  • Prompt: !?4,$S('$P(DRG,"^",2):" ",1:"**")," ",$P(DRG,"^"),$S($P(DRG,"^")'=+$P(DRG,"^"):"",1:" (DRUG NOT FOUND)"),?52,$J(CNT,9,0),?67,$J(CST,12,2),!
  • Line Location: DW+2
Function Call: READ
  • Timeout: DTIME
  • Variable: NP
  • Line Location: NP+1
Function Call: WRITE
  • Prompt: $C(7),!,"'^' TO STOP "
  • Line Location: NP+1
Function Call: WRITE
  • Prompt: NP="^"
  • Condition for execution: '$T $C(7) S:'$T
  • Line Location: NP+1
Function Call: WRITE
  • Prompt: !
  • Line Location: NP+2
Function Call: WRITE
  • Prompt: !?54,"(** = NON-FORMULARY ITEM)"
  • Line Location: NP+3
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $Y
  • Line Location: HDR+1
Function Call: WRITE
  • Prompt: !!?27,"TOTAL COST TO DATE REPORT",?64,PSGPDT,!?HDRL,HDR,!!?7,"Patient",?45,"Admitting Date",!?60,"Admitting Diagnosis",!?10,"Drug",?53,"Dispensed",?72,"Cost",!,LINE
  • Line Location: HDR+1

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DIC(42 - [#42] W
^PS(57.5 - [#57.5] START+4
^TMP("PSG" RUN+1, RUN+2, PW+1

Label References

Name Line Occurrences
DONE RUN+1, RUN+2
DW RUN+2
HDR RUN+1
NP RUN+2, TOTLS+1, PW+1
PTOT RUN+2
PW RUN+2
RUN START+3, START+4, START+5
W START+3

Naked Globals

Name Field # of Occurrence
^( RUN+2
^(0 START+4, W

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> % START+1
AD DONE+1!, PW+1*, PW+2
CML START+1*, TOTLS+2, DONE+1!, NP+1, NP+2
>> CNT DW+1*, DW+2
CST RUN+2*, DONE+1!, DW+1*, DW+2
DIAG DONE+1!, PW+1*, PW+2
>> DRG RUN+2*, DW+2
DTIME NP+1
HDR START+3*, START+4*, START+5*, W*, W+1*, RUN+1, DONE+1!, HDR+1
HDRL RUN+1*, DONE+1!, HDR+1
IO START+1, RUN+1
IO(0 START+1
IOF DONE+1, HDR+1
IOSL RUN+2, TOTLS+1, TOTLS+2, NP+2, PW+1
IOST START+1
LINE START+1*, DONE+1!, HDR+1
>> LN2 START+1*, TOTLS+1
NP START+1*, RUN+2, TOTLS+1, TOTLS+2, DONE+1!, NP+1*
P DONE+1!
PCNT RUN+2*, DONE+1!, PTOT+1, DW+1*
PCPU DONE+1!, PTOT+1*
PCST RUN+2*, DONE+1!, PTOT+1, DW+1*
PN RUN+1*, RUN+2*, DONE+1!, HDR+1, PW+1, PW+2
>> PSGDT START+1*
PSGPDT START+1*, DONE+1!, HDR+1
>> PSGWD START+3, W
>> PSGWG START+3, START+4
>> PSN PW+1*, PW+2
TCNT START+1*, TOTLS+1, DONE+1!, PTOT+1*
TCPU TOTLS+1*, DONE+1!
TCST START+1*, TOTLS+1, DONE+1!, PTOT+1*
>> X TOTLS+2*, NP+2*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All