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

Package: Mental Health Social Services

Routine: AMHRPT


Information

AMHRPT ; IHS/CMI/LAB - APC visit counts by selected vars ;

Source Information

Source file <AMHRPT.m>

Call Graph

Call Graph Total: 15

Package Total Call Graph
Mental Health Social Services 7 DEL^AMHRL  ^AMHRL4  PMENU^AMHRPT0  PSELECT^AMHRPT1  PAUSE^AMHRPTU  KILL^AMHRPTX  DEMOCHK^AMHUTIL1  
VA Fileman 5 DD^%DT  (C,YX)^%DTC  ^DIC  ^DIK  ^DIR  
IHS VA Utilities 1 ^XBDBQUE  
Kernel 1 HOME^%ZIS  
Registration 1 TERM^VALM0  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Mental Health Social Services 1 AMHRPTP  

Entry Points

Name Comments DBIA/ICR reference
BD ;get beginning date
SORT ;
ZIS ;call to XBDBQUE
SHOW ;
BROWSE ;
ED ;get ending date
SCREEN ;
START ;
ADD ;EP
GETDATES ;
DEL ;EP - delete entry in temp file
DEMO ;
PRINT ;print portion of report
XIT ;
KILLVARS ;
SHOWP ;
PAGE ;
SHOWR ;

External References

Name Field # of Occurrence
DD^%DT ED+1, ED+4
C^%DTC ED+4
YX^%DTC ADD+1
HOME^%ZIS START+1
DEL^AMHRL SCREEN+1
^AMHRL4 SCREEN+1, SORT+5
PMENU^AMHRPT0 PRINT+2
PSELECT^AMHRPT1 PRINT+7
PAUSE^AMHRPTU SHOW+7, SHOWP+6
KILL^AMHRPTX XIT+1
DEMOCHK^AMHUTIL1 DEMO+1
^DIC ADD+1
^DIK DEL+1
^DIR BD+1, ED+1, PRINT+3, PRINT+9, PAGE+3, ZIS+8
TERM^VALM0 ZIS+1
^XBDBQUE ZIS+12, BROWSE+2

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),$C(7),!!,"SITE NOT SET IN DUZ(2) - NOTIFY SITE MANAGER!!",!!
  • Line Location: START+3
Function Call: WRITE
  • Prompt: !
  • Line Location: BD+1
Function Call: WRITE
  • Prompt: !
  • Line Location: ED+1
Function Call: WRITE
  • Prompt: !!,"Unable to create report temporary file entry!!,"
  • Line Location: ED+6
Function Call: WRITE
  • Prompt: !!?15,"Total Report width (including column margins - 2 spaces): ",AMHTCW
  • Line Location: PRINT+6
Function Call: WRITE
  • Prompt: !!
  • Line Location: PRINT+9
Function Call: WRITE
  • Prompt: !!,"NO PRINT FIELDS SELECTED!!",$C(7),$C(7)
  • Line Location: SORT+1
Function Call: WRITE
  • Prompt: !?15,$P(^DIC(4,X,0),U)
  • Line Location: ZIS+6
Function Call: WRITE
  • Prompt: ?((80-$L(AMHLHDR))/2),AMHLHDR,!
  • Line Location: SHOW+2
Function Call: WRITE
  • Prompt: !?6,"Record selection criteria:"
  • Line Location: SHOW+3
Function Call: WRITE
  • Prompt: !,"Encounter Date range: ",AMHBDD," to ",AMHEDD,"."
  • Line Location: SHOW+4
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: SHOW+7
Function Call: WRITE
  • Prompt: !!?6,"PRINT Field(s) Selected:"
  • Line Location: SHOWP+2
Function Call: WRITE
  • Prompt: !!?12,"Total Report width (including column margins - 2 spaces): ",AMHTCW
  • Line Location: SHOWP+7
Function Call: WRITE
  • Prompt: !!?6,"Record SORTING Criteria"
  • Line Location: SHOWR+2
Function Call: WRITE
  • Prompt: !!?12,"Records will be sorted by: ",$P(^AMHSORT(AMHTRPT,0),U),!
  • Line Location: SHOWR+4
Function Call: WRITE
  • Prompt: !!,"UNABLE TO CREATE REPORT FILE ENTRY - NOTIFY SITE MANAGER!"
  • Line Location: ADD+1
Routine Call
  • %ZIS
  • Line Location:
    • START+1
Routine Call
  • DIC
  • Line Location:
    • ADD+1
Routine Call
  • DIR
  • Line Location:
    • BD+1
    • ED+1
    • PRINT+3
    • PRINT+9
    • PAGE+3
    • ZIS+8

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^AMHTRPT - [#9002013.8] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AMHBHUSR - [#9002013.11] ZIS+3, ZIS+6
^AMHRCNT - [#9002013.4] START+5, START+6, SORT+2
^AMHSORT - [#9002013.3] SHOW+8, SHOW+9, SHOWP+5, SHOWR+4
^AMHTRPT - [#9002013.8] SCREEN+1!, SORT+1, SHOW+5, SHOW+6, SHOW+9, SHOWP+4, SHOWP+5, ADD+5!
^DIC(4 - [#4] ZIS+6
^VA(200 - [#200] ADD+1

Label References

Name Line Occurrences
@( START+7, PRINT+1
ADD ED+5
BD ED+2
BROWSE ZIS+10
DEL PRINT+5, SORT+1
DEMO SORT+2
GETDATES SCREEN+1
KILLVARS ZIS+2
PAGE DEMO+2
PRINT PRINT+13
SHOW ED+8
SHOWP PRINT+8
SHOWR SORT+4
SORT PRINT+1, PRINT+4, PRINT+12, PAGE+4
START PRINT+1, PRINT+5, PRINT+11, SORT+1
XIT START+8, BD+2, ED+6, ZIS+9, ZIS+10, ZIS+13

Naked Globals

Name Field # of Occurrence
^(0 START+5, SHOWP+5
^(2 SHOW+9

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> %H ADD+1*
>> AMHBD BD+3*, ED+1, ED+4
>> AMHBDD ED+4*, SHOW+4
AMHCNTL SCREEN+1*!, SORT+5*!
>> AMHCRIT SHOWP+4*, SHOWP+5
>> AMHCTYP SORT+3*
>> AMHDEMO DEMO+1, DEMO+2
AMHDISP KILLVARS+1!
>> AMHDONE SHOW+2, SHOWP+1, SHOWR+1
>> AMHED ED+3*, ED+4
>> AMHEDD ED+4*, SHOW+4
>> AMHHIGH PRINT+3
>> AMHI SHOW+6*, SHOW+8, SHOW+9, SHOWP+4*, SHOWP+5
>> AMHLHDR SHOW+2*
>> AMHPCNT START+9*
>> AMHPTTS SCREEN+1*
>> AMHPTTX SCREEN+1*
>> AMHPTVS START+10*
AMHQUIT START+2!, START+8, ED+6, SCREEN+1, PRINT+1, ADD+1*
>> AMHRPRCR START+6*, ZIS+11, BROWSE+2
>> AMHRPT SCREEN+1, SORT+1, SHOW+5, SHOW+6, SHOW+9, SHOWP+4, SHOWP+5, DEL+1, ADD+2*, ADD+5
>> AMHRPTC START+4, START+5, START+6, SORT+2, ZIS+3
>> AMHRPTI START+5*, START+7*
>> AMHRPTP START+5*, PRINT+1*, SORT+1, ZIS+11, BROWSE+1
>> AMHRPTPA START+5*, PRINT+1*
>> AMHRPTST START+5*
>> AMHSD ED+4*
AMHSEL KILLVARS+1!
>> AMHSORT SORT+3*
>> AMHSORV PAGE+1, PAGE+3
AMHSPAG PAGE+2!, PAGE+5*
>> AMHTCW START+9*, PRINT+6, SHOWP+4*, SHOWP+5*, SHOWP+7
>> AMHTRPT SHOWR+3, SHOWR+4
>> AMHTYPE SCREEN+1*
>> AMHXREF START+10*
C SHOW+9*, SHOW+11!
DA ZIS+8!, DEL+1*!, ADD+1!, ADD+3!
DD ADD+3!
DIADD ADD+1*!, ADD+3!
DIC DEL+1!, ADD+1*!, ADD+3!
DIC(0 ADD+1*
DIK DEL+1*!
DINUM ADD+3!
DIR BD+1!, ED+1!, PRINT+3!, PRINT+9!, PAGE+3!, ZIS+8!
DIR("A" BD+1*, ED+1*, PRINT+3*, PRINT+9*, PAGE+3*, ZIS+8*
DIR("B" PRINT+9*, PAGE+3*, ZIS+8*
DIR(0 BD+1*, ED+1*, PRINT+3*, PRINT+9*, PAGE+3*, ZIS+8*
>> DIRUT BD+1*, BD+2, ED+1*, ED+2, PRINT+3*, PRINT+5, PRINT+10*, PRINT+11, PAGE+3*, PAGE+4
, ZIS+9
DLAYGO ADD+1*!, ADD+3!
DR ADD+1!, ADD+3!
>> DUOUT BD+1, ED+1, PRINT+3, PRINT+10, PAGE+3
DUZ ZIS+3, ZIS+6, ADD+1
DUZ(2 START+3
IOF SHOW+1, SHOW+7, SHOWP+1, SHOWP+6, SHOWR+1
>> IORVOFF ZIS+4
>> IORVON ZIS+4
IOSL SHOW+7, SHOWP+6
>> P BROWSE+1*
U START+5, START+6, SORT+2, ZIS+6, SHOW+8, SHOWP+4, SHOWP+5, SHOWR+4, ADD+1
X ED+4, ZIS+6*, SHOW+9*, SHOW+10, ADD+1*, ADD+3!
>> X1 ED+4*
>> X2 ED+4*
>> XBIOP BROWSE+2*
>> XBNS ZIS+11*, BROWSE+2*
>> XBRC ZIS+11*, BROWSE+2*
>> XBRP ZIS+11*, BROWSE+1*
>> XBRX ZIS+11*, BROWSE+2*
Y BD+3, ED+1*, ED+3, ED+4*, PRINT+4, PRINT+12, PAGE+5, ZIS+10, SHOW+9*, ADD+1
, ADD+2, ADD+3!
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 |  Naked Globals |  Local Variables |  All