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 |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: AMHRAT2P

Package: Mental Health Social Services

Routine: AMHRAT2P


Information

AMHRAT2P ; IHS/CMI/LAB - print all visit report ;

Source Information

Source file <AMHRAT2P.m>

Call Graph

Call Graph Total: 6

Package Total Call Graph
Mental Health Social Services 3 ^AMHEKL  DONE^AMHLEIN  COVPAGE^AMHRPTCP  
VA Fileman 3 DD^%DT  NOW^%DTC  ^DIR  

Entry Points

Name Comments DBIA/ICR reference
SORT ;
HEAD
HEAD1 ;
TOTALS ;
START ;
DONE ;

External References

Name Field # of Occurrence
DD^%DT START+2
NOW^%DTC START+2
^AMHEKL DONE+1
DONE^AMHLEIN DONE+1
COVPAGE^AMHRPTCP START+3
^DIR HEAD+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !?5,"TOTALS:"
  • Line Location: START+9
Function Call: WRITE
  • Prompt: ?AMHRTAB,$S($D(AMHRTOT(A,B)):$J(AMHRTOT(A,B),7),1:$J(".",7))
  • Line Location: START+11
Function Call: WRITE
  • Prompt: !!,"**** Patient Count TOTAL is not an unduplicated count.",!
  • Line Location: START+17
Function Call: WRITE
  • Prompt: !,$E(AMHSORT,1,20)
  • Line Location: SORT+2
Function Call: WRITE
  • Prompt: ?AMHRTAB,$S($D(^XTMP("AMHRAT2",AMHJOB,AMHBTH,AMHSORT,A,B)):$J(^(B),7),1:$J(".",7))
  • Line Location: SORT+4
Function Call: WRITE
  • Prompt: !
  • Line Location: HEAD+1
Function Call: WRITE
  • Prompt: ?50,"MENTAL HEALTH AND SOCIAL SERVICE",?100,AMHRDT,?123,"Page ",AMHRPG,!
  • Line Location: HEAD1+2
Function Call: WRITE
  • Prompt: ?((132-AMHRLENG)/2),"ACTIVITY TIME, PATIENT AND RECORD COUNT REPORT BY PROGRAM AND ",AMHTITL,!
  • Line Location: HEAD1+3
Function Call: WRITE
  • Prompt: ?45,"RECORD DATES: ",AMHBDD," TO ",AMHEDD,!
  • Line Location: HEAD1+4
Function Call: WRITE
  • Prompt: !?20,"SOCIAL SERVICES AND MENTAL HEALTH COMB",?69,"SOCIAL SERVICE",?104,"MENTAL HEALTH",!
  • Line Location: HEAD1+5
Function Call: WRITE
  • Prompt: ?23,"NO. OF",?34,"NO. OF",?46,"TOTAL",?62,"NO. OF",?73,"NO. OF",?85,"TOTAL",?99,"NO. OF",?109,"NO. OF",?121,"TOTAL",!
  • Line Location: HEAD1+6
Function Call: WRITE
  • Prompt: $E(AMHHD1,1,20),?23,"RECORDS",?34,"PATIENTS",?44,"ACTIV TIME",?62,"RECORDS",?73,"PATIENTS",?83,"ACTIV TIME",?99,"RECORDS",?109,"PATIENTS",?119,"ACTIV TIME",!
  • Line Location: HEAD1+7
Function Call: WRITE
  • Prompt: AMHR132S,!
  • Line Location: HEAD1+8
Routine Call
  • DIR
  • Line Location:
    • HEAD+1

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^XTMP("AMHRAT2" START+6, DONE+2!, SORT+4, SORT+5, SORT+6, TOTALS+1, TOTALS+2

Label References

Name Line Occurrences
DONE START+7, START+8, START+16
HEAD START+4, START+8, START+16, SORT+1
HEAD1 HEAD
SORT START+6
TOTALS SORT+4

Naked Globals

Name Field # of Occurrence
^( SORT+4, SORT+6*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> A START+10*, START+11, START+12, START+13, SORT+3*, SORT+4, SORT+5, SORT+6, TOTALS+1, TOTALS+2
>> AMHBDD HEAD1+4
>> AMHBTH START+6, DONE+2, SORT+4, SORT+5, SORT+6, TOTALS+1, TOTALS+2
>> AMHEDD HEAD1+4
>> AMHHD1 HEAD1+7
>> AMHJOB START+6, DONE+2, SORT+4, SORT+5, SORT+6, TOTALS+1, TOTALS+2
>> AMHR132S START+1*, HEAD1+8
>> AMHRDT START+2*, HEAD1+2
>> AMHRLENG HEAD1+3*
>> AMHRPG START+4*, HEAD, HEAD1+1*, HEAD1+2
AMHRQUIT START+5!, START+6, START+7, START+8, START+16, SORT+1, HEAD+1*
>> AMHRTAB START+9*, START+10*, START+11*, SORT+2*, SORT+3*, SORT+4*
>> AMHRTOT( START+11, START+12, START+13*, TOTALS+2*
>> AMHSORT START+4*, START+6*, SORT+2, SORT+4, SORT+5, SORT+6, TOTALS+1, TOTALS+2
>> AMHTITL HEAD1+3
>> B START+11*, START+12, START+13, SORT+4*, SORT+5, SORT+6, TOTALS+1, TOTALS+2
DIR HEAD+1!
DIR(0 HEAD+1*
>> DTOUT HEAD+1
IO HEAD+1
IO(0 HEAD+1
IOF HEAD1+1
IOSL START+8, START+16, SORT+1
IOST HEAD+1
>> X START+2, START+13*, SORT+6*
>> Y START+2*, HEAD+1
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All