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

Package: Mental Health Social Services

Routine: AMHRLP1


Information

AMHRLP1 ; IHS/CMI/LAB - CONT OF AMHRLP ;

Source Information

Source file <AMHRLP1.m>

Call Graph

Call Graph Total: 2

Package Total Call Graph
Mental Health Social Services 1 PAUSE^AMHRL01  
VA Fileman 1 ^DIWP  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Mental Health Social Services 1 AMHRLP  

Entry Points

Name Comments DBIA/ICR reference
COUNT ;if COUNTING entries only
PAUSE
SHOW ;
COVPAGE ;EP
WPS ;EP
WP ;EP - Entry point to print wp fields pass node in AMHNODE
SHOWP ;

External References

Name Field # of Occurrence
PAUSE^AMHRL01 SHOW+7, SHOWP+4, SHOWP+6, SHOWP+8, SHOWP+9, SHOWP+13, SHOWP+15, SHOWP+18, SHOWP+20, PAUSE
, COUNT+1
^DIWP WP+6

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !?5,"Listing of Suicide Forms by Selected Variables"
  • Line Location: COVPAGE+2
Function Call: WRITE
  • Prompt: !?5,"BEHAVIORAL HEALTH ",AMHPTTX," ",$S(AMHCTYP="D":"LISTING",1:"COUNT")
  • Line Location: COVPAGE+3
Function Call: WRITE
  • Prompt: !!,"REPORT REQUESTED BY: ",$P(^VA(200,DUZ,0),U)
  • Line Location: COVPAGE+4
Function Call: WRITE
  • Prompt: !!,"The following report contains a ",AMHPTTX," report based on the",!,"following item:",!
  • Line Location: COVPAGE+5
Function Call: WRITE
  • Prompt: !,AMHPTTX," Selection Criteria"
  • Line Location: SHOW+1
Function Call: WRITE
  • Prompt: !!?6,"Encounter Date range: ",AMHBDD," to ",AMHEDD,!
  • Line Location: SHOW+2
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: SHOW+7
Function Call: WRITE
  • Prompt: " ; "
  • Condition for execution: C'=1&(AMHY'="")
  • Line Location: SHOW+9
Function Call: WRITE
  • Prompt: X
  • Line Location: SHOW+9
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: SHOWP+4
Function Call: WRITE
  • Prompt: !!,$S(AMHPTVS="S":"NO SUICIDE FORMS",AMHPTVS="V":"NO VISITS",1:"NO PATIENTS")_" TO REPORT.",!
  • Line Location: SHOWP+6
Function Call: WRITE
  • Prompt: @IOF
  • Condition for execution: $D(IOF)
  • Line Location: SHOWP+6
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: SHOWP+9
Function Call: WRITE
  • Prompt: !!,"PRINT Field Selection"
  • Line Location: SHOWP+10
Function Call: WRITE
  • Prompt: $P(^AMHTRPT(AMHRPT,12,X,0),U,2),")"
  • Line Location: SHOWP+14
Function Call: WRITE
  • Prompt: !?10," TOTAL column width: ",AMHTCW
  • Line Location: SHOWP+16
Function Call: WRITE
  • Prompt: !!?6,AMHPTTS," will be sorted by: ",$P(^AMHSORT(AMHSORT,0),U),!
  • Line Location: SHOWP+19
Function Call: WRITE
  • Prompt: !?6,"Each ",$P(^AMHSORT(AMHSORT,0),U)," will be on a separate page.",!
  • Line Location: SHOWP+21
Function Call: WRITE
  • Prompt: !!,$S(AMHPTVS="S":"NO SUICIDE FORMS",AMHPTVS="V":"NO VISITS",1:"NO PATIENTS")_" TO REPORT.",!
  • Line Location: SHOWP+22
Function Call: WRITE
  • Prompt: !!!,$S(AMHPTVS="S":"NO SUICIDE FORMS",AMHPTVS="V":"NO VISITS",1:"NO PATIENTS")_" TO REPORT.",!
  • Line Location: COUNT+2
Function Call: WRITE
  • Prompt: !!!,"Total COUNT of ",AMHPTTS,": ",AMHRCNT
  • Line Location: COUNT+3
Function Call: WRITE
  • Prompt: !!!,"Total COUNT of ",$S(AMHPTVS="P":"Patients",1:"Visits"),": ",AMHPTCT
  • Line Location: COUNT+4

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AMHSORT - [#9002013.3] SHOW+8, SHOW+9, SHOWP+5, SHOWP+14, SHOWP+19, SHOWP+21
^AMHTRPT - [#9002013.8] SHOW+5, SHOW+6, SHOW+9, SHOWP+11, SHOWP+12, SHOWP+14, WP+5
^DIBT( SHOW+4
^DIC - [#1] WP+4
^UTILITY($J WP+2!, WP+8, WP+11!, WPS+1, WPS+3!
^VA(200 - [#200] COVPAGE+4
^XTMP("AMHRL" SHOWP+6, SHOWP+22, COUNT+2

Label References

Name Line Occurrences
COUNT SHOWP+2
PAUSE SHOWP+11
SHOWP SHOW+5

Naked Globals

Name Field # of Occurrence
^(2 SHOW+9

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> AMHBDD SHOW+2, SHOW+3
>> AMHBTH SHOWP+6, SHOWP+22, COUNT+2
>> AMHCRIT SHOWP+12*, SHOWP+14
>> AMHCTYP COVPAGE+3, SHOWP+1, SHOWP+2, SHOWP+3, SHOWP+8
AMHDA WP+4, WP+11!, WPS+3!
>> AMHEDD SHOW+2, SHOW+3
AMHFILE SHOWP+1, WP+4, WP+11!, WPS+3!
>> AMHG WP+4*, WP+5
AMHG1 WP+4*, WP+11!
AMHGR WP+4*, WP+6, WP+11!
>> AMHI SHOW+6*, SHOW+8, SHOW+9, SHOWP+12*, WP+5
>> AMHJOB SHOWP+6, SHOWP+22, COUNT+2
AMHNODE WP+4, WP+11!, WPS+3!
>> AMHPCNT WP+8*, WP+9*, WPS+1*
>> AMHPRNM( WP+8*, WPS+1*
>> AMHPTCT COUNT+4
>> AMHPTTS SHOWP+19, COUNT+3
>> AMHPTTX COVPAGE+3, COVPAGE+5, SHOW+1
>> AMHPTVS COVPAGE+2, COVPAGE+3, SHOW+3, SHOWP+6, SHOWP+22, COUNT+2, COUNT+3, COUNT+4
AMHQ SHOW+9!, SHOW+10!
>> AMHRCNT COUNT+3
>> AMHRDTR SHOW+2
AMHRLX WP+3*, WP+5*, WP+11!
>> AMHRPT SHOW+5, SHOW+6, SHOW+9, SHOWP+11, SHOWP+12, SHOWP+14, WP+5
>> AMHSEAT SHOW+4
>> AMHSORT SHOWP+5, SHOWP+17, SHOWP+19, SHOWP+21
>> AMHSPAG SHOWP+21
>> AMHTCW SHOWP+16
>> AMHTYPE SHOW+3, SHOW+4
>> AMHY SHOW+9*
>> C SHOW+9*
DIWF WP+10!, WPS+2!
DIWL WP+5*, WP+8, WP+10!, WPS+1, WPS+2!
DIWR WP+5*, WP+10!, WPS+2!
DUZ COVPAGE+4
IOF COVPAGE+1, SHOW+7, SHOWP+4, SHOWP+6, SHOWP+8, SHOWP+9, SHOWP+13, SHOWP+15, SHOWP+18, SHOWP+20
, PAUSE, COUNT+1
IOSL SHOW+7, SHOWP+4, SHOWP+9, SHOWP+13, SHOWP+15, SHOWP+18, SHOWP+20, COUNT+1
U COVPAGE+4, SHOW+4, SHOW+8, SHOWP+5, SHOWP+12, SHOWP+14, SHOWP+19, SHOWP+21, WP+5
>> X SHOW+9*, SHOWP+14*, WP+6*
>> Y WP+6*
Z WP+8*, WP+10!, WPS+1*, WPS+2!
>> ZTQUEUED SHOWP+1
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All