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 |  Label References |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: AMHRPTI

Package: Mental Health Social Services

Routine: AMHRPTI


Information

AMHRPTI ; IHS/CMI/LAB - REPORT INFORMATION FOR USERS ; 14 Nov 2013 2:53 PM

Source Information

Source file <AMHRPTI.m>

Call Graph

Call Graph Total: 4

Package Total Call Graph
Mental Health Social Services 3 PAUSE^AMHLEA  (BDRL,GENR)^AMHRPTI1  DBHUSR^AMHUTIL  
VA Fileman 1 ^DIR  

Entry Points

Name Comments DBIA/ICR reference
DI ;;AMHDISC;;Discipline of Provider;;DISC;;DISCIPLINE OF PROVIDER;;DISCIPLINE;;DISCPLINE CODE
AGE ;;AMHAGE;;Age;;AGE;;AGE;;AGE;;---
C ;;AMHCOMM;;Community of Service;;COMM;;COMMUNITY OF SERVICE;;COMMUNITY OF SERVICE;;STCTYCOM CODE
CLN ;;AMHCLN;;Clinic Type;;CLN;;CLINIC;;CLINIC;;CLINIC;;CLINIC CODE
PRB ;;AMHPROB;;POV/Problem (Problem Code);;PROB;;PRIMARY PROBLEM (CODE);;PROB CODE NARRATIVE;;PROBLEM (POV) CODE
PRBC ;;AMHPROB;;Problem/POV (Problem Category);;PROBCAT;;PROBLEM CATEGORY;;CATEGORY NARRATIVE;;CATEGORY CODE
PRBD ;;AMHPROB;;Problem/POV;;PROBD;;PROBLEM/DIAGNOSIS CODE;;PROB DX/CODE NARRATIVE;;CODE
INFORM ; EP ; information for activity record counts
BDRL ;EP - detailed or brief record listing
LSS ;;AMHLSS;;Local Service Site;;LSS;;LOCAL SERVICE SITE;;LOCAL SERVICE SITE;;---
GEN ;;AMHSEX;;Gender;;GENDER;;GENDER;;GENDER;;GENDER
A ;;AMHACT;;Activity Code;;ACT;;ACTIVITY CODE;;ACTIVITY TYPE;;ACTIVITY CODE
AC ;;AMHACTC;;Activity Category;;ACTC;;ACTIVITY CATEGORY;;ACTIVITY CATEGORY;;CATEGORY CODE
D ;;AMHDATE;;Date of Visit;;DATE;;DATE OF VISIT;;DATE OF VISIT;;DAY OF WEEK
G ;;AMHPROG;;Program Type;;PROG;;PROGRAM TYPE;;TYPE OF PROGRAM;;PROGRAM CODE
APWI ;;AMHAPWI;;Appointment/Walk-In;;APWI;;APPT/WALK-IN;;APPT/WALK-IN;;CODE
L ;;AMHVLOC;;Location of Service;;LOS;;LOCATION OF SERVICE;;LOCATION OF SERVICE;;LOCATION CODE
INFORM2 ;EP ; inform user on age/sex record reports
P ;;AMHPROV;;Provider of Service;;PROV;;PROVIDER OF SERVICE;;PROVIDER;;PROVIDER DISCIPLINE
INFORM1 ;EP ; user information for program activity reports
T ;;AMHCAT;;Type of Contact of Visit;;TOC;;TYPE OF CONTACT;;TYPE OF CONTACT;;CODE
INFORM3 ;EP; inform user for top ten reports
INT ;;AMHINTR;;Interpretor Utilized;;INT;;INTERPRETOR UTILIZED;;INTERPRETOR;;CODE
MENU ;display menu to choose item
GETINFO ;ENTRY POINT
GENR ;
SU ;;AMHSU;;Service Unit of Service;;SU;;SERVICE UNIT;;SERVICE UNIT;;SU CODE

External References

Name Field # of Occurrence
PAUSE^AMHLEA INFORM2+6, INFORM1+6, INFORM+5
BDRL^AMHRPTI1 BDRL+1
GENR^AMHRPTI1 GENR+1
DBHUSR^AMHUTIL INFORM3+7, INFORM2+6, INFORM1+6, INFORM+5
^DIR INFORM2+9, INFORM1+8, INFORM+7

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,$C(7),$C(7),"REPORT TYPE MISSING!! NOTIFY PROGRAMMER",!
  • Line Location: INFORM3+1
Function Call: WRITE
  • Prompt: !,"Frequency of ",AMHINF," Report.",!
  • Line Location: INFORM3+4
Function Call: WRITE
  • Prompt: !,"This report will generate a ",$S($D(AMHCHRT):"Bar Chart",1:"list")," of the top N "
  • Line Location: INFORM3+5
Function Call: WRITE
  • Prompt: !,AMHINF," for visits that you select.",!
  • Line Location: INFORM3+6
Function Call: WRITE
  • Prompt: !,"BH Patient Visits by Age and Sex",!
  • Line Location: INFORM2+2
Function Call: WRITE
  • Prompt: !,"This report will tally the number of patients, who have had an encounter, ",!,"by age and sex. You will choose the item you wish to tally. For example, ",!,"you can tally problems treated , or activities by age and sex.",!
  • Line Location: INFORM2+3
Function Call: WRITE
  • Prompt: "NOTE: Any tally by PROBLEM only includes PRIMARY PROBLEM",!
  • Line Location: INFORM2+4
Function Call: WRITE
  • Prompt: "You will also be able to define the age groups to be used.",!
  • Line Location: INFORM2+5
Function Call: WRITE
  • Prompt: !?5,"<The item you pick will display down the left column of the report,",!," Age groups will be across the top.>",!
  • Line Location: INFORM2+8
Function Call: WRITE
  • Prompt: !,"* PROGRAM ACTIVITY TIME, PATIENT AND RECORD COUNTS *"
  • Line Location: INFORM1+2
Function Call: WRITE
  • Prompt: !,"This report will generate a count of activity records, total activity time and",!,"number of patient visits by Program and by an item you select",!,"for a date range that you specify."
  • Line Location: INFORM1+3
Function Call: WRITE
  • Prompt: !,"You will be given the opportunity to select which visits will be included",!,"in the report. For example, you may wish to only report on those records",!,"on which the type of visit was Field."
  • Line Location: INFORM1+4
Function Call: WRITE
  • Prompt: !,"NOTE: If you choose to report on Problems, ONLY THE PRIMARY PROBLEM is included."
  • Line Location: INFORM1+5
Function Call: WRITE
  • Prompt: !,"***** ACTIVITY RECORD COUNTS*****",!
  • Line Location: INFORM+2
Function Call: WRITE
  • Prompt: !,"This report will generate a count of activity records for an item you select",!,"for a date range that you specify.",!
  • Line Location: INFORM+3
Function Call: WRITE
  • Prompt: "You will be given the opportunity to select which visits will be",!,"included in the tabulation. For example, you can choose to tally activity time",!,"by Problem Code for only those with a discipline of Psychiatrist."
  • Line Location: INFORM+4
Function Call: WRITE
  • Prompt: !?5,X,"). ",$P(Z,";;",3)
  • Line Location: MENU+2
Function Call: WRITE
  • Prompt: !!,$C(7),$C(7),"REPORT INFORMATION MISSING!! NOTIFY PROGRAMMER!",!!
  • Line Location: GETINFO+1
Routine Call
  • DIR
  • Line Location:
    • INFORM2+9
    • INFORM1+8
    • INFORM+7

Label References

Name Line Occurrences
GETINFO INFORM3+2, INFORM2+12, INFORM1+11, INFORM+10
MENU INFORM2+7, INFORM1+7, INFORM+6

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> AMHCHRT INFORM3+5
>> AMHHD1 GETINFO+2*
>> AMHHD2 GETINFO+2*
>> AMHINF INFORM3+4, INFORM3+6, GETINFO+2*
>> AMHINFO GETINFO+2*
>> AMHQUIT INFORM3+2, INFORM2+10*, INFORM1+9*, INFORM+8*, GETINFO+1*
>> AMHRPROC GETINFO+2*
>> AMHRRPT INFORM3+1, INFORM2+11*, INFORM1+10*, INFORM+9*
>> AMHSORT GETINFO+2*
>> AMHTITL GETINFO+2*
>> AMHX INFORM2+7*, INFORM2+9, INFORM2+11, INFORM1+7*, INFORM1+8, INFORM1+10, INFORM+6*, INFORM+7, INFORM+9, MENU+1
, MENU+2
DIR INFORM2+9!, INFORM1+8!, INFORM+7!
DIR("A" INFORM2+9*, INFORM1+8*, INFORM+7*
DIR(0 INFORM2+9*, INFORM1+8*, INFORM+7*
>> DIRUT INFORM2+9*, INFORM2+10, INFORM1+8*, INFORM1+9, INFORM+7*, INFORM+8
>> DUOUT INFORM2+9, INFORM1+8, INFORM+7
IOF INFORM3+3, INFORM2+1, INFORM1+1, INFORM+1
>> X MENU+2*
>> Y INFORM2+11, INFORM1+10, INFORM+9, MENU+2*
>> Z MENU+2*

Marked Items

Name Field # of Occurrence
$T(@(1) MENU+2, GETINFO+1, GETINFO+2
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  Label References |  Local Variables |  Marked Items |  All