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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All
Print Page as PDF
Routine: BUD4RPT2

Package: IHS Uniform Data System

Routine: BUD4RPT2


Information

BUD4RPT2 ; IHS/CMI/LAB - UDS REPORT DRIVER ;

Source Information

Source file <BUD4RPT2.m>

Call Graph

Call Graph Total: 10

Package Total Call Graph
Kernel 4 ^%ZIS  ^%ZISC  ^%ZTLOAD  $$FMTE^XLFDT  
IHS Uniform Data System 3 PROC^BUD4RPTC  PRINT^BUD4RPTP  TAXCHK^BUDTXCH  
VA Fileman 2 ^DIC  ^DIR  
IHS VA Utilities 1 EN^XBVK  

Entry Points

Name Comments DBIA/ICR reference
TSKMN ;EP ENTRY POINT FROM TASKMAN
T5BI ;
T3AI ;intro for table 3A
USR() ;EP - Return name of current user from ^VA(200.
T5AI ;
T6I ;intro for table 6
TOL ;EP
LOC() ;EP - Return location name from file 4 based on DUZ(2).
CTR(X,Y) ;EP - Center X in a field Y wide.
EN1 ;
TOLI ;
EOJ ;
EN ;EP
ZIS ;call to XBDBQUE
T6 ;EP - entry point for Table 6 only
DRIVER ;
T5 ;EP
M ;EP - called from option
T5I ;
YEAR ;
T5A ;EP - called from option
T5B ;EP
QUARTER ;
ZIS1 ;
T3A ;EP - entry point for Table 3A only
GENI ;general introductions

External References

Name Field # of Occurrence
^%ZIS ZIS+2
^%ZISC DRIVER+4
^%ZTLOAD TSKMN+5
PROC^BUD4RPTC DRIVER+1
PRINT^BUD4RPTP DRIVER+3
TAXCHK^BUDTXCH EN1+6
^DIC EN1+2
^DIR EN1+16, M+11, QUARTER+8, YEAR+7, GENI+7
EN^XBVK EOJ+1
$$FMTE^XLFDT QUARTER+16

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: EN1+2
Function Call: WRITE
  • Prompt: !!,"Warning: There are no locations defined in the site parameter file for this",!,"site. Report will not be accurate!"
  • Line Location: EN1+5
Function Call: WRITE
  • Prompt: !!,"Year not entered.",!
  • Line Location: EN1+8
Function Call: WRITE
  • Prompt: !,"Time period not entered."
  • Line Location: EN1+10
Function Call: WRITE
  • Prompt: !!,"Depending on the size of your database, this report may take 2-4 hours to run"
  • Line Location: EN1+11
Function Call: WRITE
  • Prompt: !,"and produce user reports that are hundreds of pages long. It is recommended"
  • Line Location: EN1+12
Function Call: WRITE
  • Prompt: !,"that these reports be run at night and printed to an electronic file, rather "
  • Line Location: EN1+13
Function Call: WRITE
  • Prompt: !,"than directly to a printer."
  • Line Location: EN1+14
Function Call: WRITE
  • Prompt: !
  • Line Location: EN1+15
Function Call: WRITE
  • Prompt: !!
  • Line Location: ZIS+2
Function Call: WRITE
  • Prompt: "UDS User List Selection"
  • Line Location: M+4
Function Call: WRITE
  • Prompt: !!?5,"1 Users by Age, Gender, Race (Tables 3A & 3B)"
  • Line Location: M+5
Function Call: WRITE
  • Prompt: !?5,"2 All users by Service Category (Table 5 col B&C)"
  • Line Location: M+6
Function Call: WRITE
  • Prompt: !?5,"3 Provider/Staff List (Table 5 col A)"
  • Line Location: M+7
Function Call: WRITE
  • Prompt: !?5,"4 All visits with Uncategorized Providers (Table 5)"
  • Line Location: M+8
Function Call: WRITE
  • Prompt: !?5,"5 All Users by Selected Primary Diagnosis (Table 6)"
  • Line Location: M+9
Function Call: WRITE
  • Prompt: !?5,"6 All Lists"
  • Line Location: M+10
Function Call: WRITE
  • Prompt: !!,"ALL USERS BY AGE, GENDER & RACE (Tables 3A and 3B)"
  • Line Location: T3AI+1
Function Call: WRITE
  • Prompt: !,"This report lists all patients who have at least on visit for the specified"
  • Line Location: T3AI+2
Function Call: WRITE
  • Prompt: !,"time period that meet the above criteria. Sorted by community, age and gender."
  • Line Location: T3AI+3
Function Call: WRITE
  • Prompt: !,"Lists all visits that fit the definition. Age is calculated as of June 30th"
  • Line Location: T3AI+4
Function Call: WRITE
  • Prompt: !,"of the report year."
  • Line Location: T3AI+5
Function Call: WRITE
  • Prompt: !,"ALL USERS BY SERVICE CATEGORY (Table 5, columns b and c)"
  • Line Location: T5I+1
Function Call: WRITE
  • Prompt: !,"This report lists all patients and related visits as defined above, categorized"
  • Line Location: T5I+2
Function Call: WRITE
  • Prompt: !,"by UDS-defined service categories (primary provider code). Sorted by"
  • Line Location: T5I+3
Function Call: WRITE
  • Prompt: !,"community, age and gender. See UDS User Manual for how UDS disciplines are"
  • Line Location: T5I+4
Function Call: WRITE
  • Prompt: !,"mapped to RPMS provider codes."
  • Line Location: T5I+5
Function Call: WRITE
  • Prompt: !,"ALL USERS FOR UNCATEGORIZED PROVIDER VISITS (Table 5, columns b and c)"
  • Line Location: T5BI+1
Function Call: WRITE
  • Prompt: !,"This report lists all patients and related visits as defined above, that"
  • Line Location: T5BI+2
Function Call: WRITE
  • Prompt: !,"are not counted toward Table 5 because the primary provider code could not "
  • Line Location: T5BI+3
Function Call: WRITE
  • Prompt: !,"be categorized by UDS-defined service categories. Sorted by community, age"
  • Line Location: T5BI+4
Function Call: WRITE
  • Prompt: !,"and gender. See UDS User Manual for how UDS disciplines are mapped to RPMS"
  • Line Location: T5BI+5
Function Call: WRITE
  • Prompt: !,"provider codes."
  • Line Location: T5BI+6
Function Call: WRITE
  • Prompt: !,"ALL USERS BY PRIMARY DIAGNOSIS (Table 6)"
  • Line Location: T6I+1
Function Call: WRITE
  • Prompt: !,"This report lists all patients and related visits as defined above, categorized"
  • Line Location: T6I+2
Function Call: WRITE
  • Prompt: !,"by specific UDS-defined primary diagnoses or tests/screenings. Sorted by"
  • Line Location: T6I+3
Function Call: WRITE
  • Prompt: !,"community, age and gender."
  • Line Location: T6I+4
Function Call: WRITE
  • Prompt: !,"PROVIDER/STAFF LIST (Table 5 column a)"
  • Line Location: T5AI+1
Function Call: WRITE
  • Prompt: !,"This report provides a list of all Providers and other facility staff who are"
  • Line Location: T5AI+2
Function Call: WRITE
  • Prompt: !,"documented in RPMS categorized by UDS-defined service categories. Use this"
  • Line Location: T5AI+3
Function Call: WRITE
  • Prompt: !,"list to manually calculate FTEs for each staff category to document in Table"
  • Line Location: T5AI+4
Function Call: WRITE
  • Prompt: !,"5 column a (FTEs)."
  • Line Location: T5AI+5
Function Call: WRITE
  • Prompt: !,"This report will list any visit that is incomplete but has a service",!,"relevant to lines 21 through 26 of Table 6 attached to it."
  • Line Location: TOLI+1
Function Call: WRITE
  • Prompt: !,"Incomplete visits are not looked at when generating this report so ",!,"this list will provide you with a list of visits that potentially should be "
  • Line Location: TOLI+2
Function Call: WRITE
  • Prompt: !,"completed or merged to a complete visit in order to be counted in Table 6"
  • Line Location: TOLI+3
Function Call: WRITE
  • Prompt: !!,"Your report will be run for the time period: ",$$FMTE^XLFDT(BUDBD)," to ",$$FMTE^XLFDT(BUDED)
  • Line Location: QUARTER+16
Function Call: WRITE
  • Prompt: !
  • Line Location: YEAR+2
Function Call: WRITE
  • Prompt: !,"Enter the Calendar Year. Use a 4 digit year, e.g. 2003, 2004"
  • Line Location: YEAR+3
Function Call: WRITE
  • Prompt: !!,"Please enter a year only!",!
  • Line Location: YEAR+11
Function Call: WRITE
  • Prompt: !,$$CTR($$LOC)
  • Line Location: GENI+2
Function Call: WRITE
  • Prompt: !,$$CTR("UDS 2004")
  • Line Location: GENI+3
Function Call: WRITE
  • Prompt: !,"NOTE: User lists may be hundreds of pages long, depending on the size of your"
  • Line Location: GENI+4
Function Call: WRITE
  • Prompt: !,"patient population. It is recommended that you run these reports at night and"
  • Line Location: GENI+5
Function Call: WRITE
  • Prompt: !,"print to an electronic file, not directly to a printer.",!
  • Line Location: GENI+6
Function Call: WRITE
  • Prompt: !!,"The User List option documents the individual users (patients) and encounters"
  • Line Location: GENI+8
Function Call: WRITE
  • Prompt: !,"(visits) that are counted and summarized on each Table report (main menu"
  • Line Location: GENI+9
Function Call: WRITE
  • Prompt: !,"option REP). The summary Table report is included at the beginning of each"
  • Line Location: GENI+10
Function Call: WRITE
  • Prompt: !,"List report."
  • Line Location: GENI+11
Function Call: WRITE
  • Prompt: !,"UDS searches your database to find all visits (encounters) and related users"
  • Line Location: GENI+12
Function Call: WRITE
  • Prompt: !,"during the time period selected. Based on the UDS definition, to be considered"
  • Line Location: GENI+13
Function Call: WRITE
  • Prompt: !,"a user the patient must have had at least one visit meeting the following"
  • Line Location: GENI+14
Function Call: WRITE
  • Prompt: !,"criteria:"
  • Line Location: GENI+15
Function Call: WRITE
  • Prompt: !?4,"- must be to a location specified in your visit location setup"
  • Line Location: GENI+16
Function Call: WRITE
  • Prompt: !?4,"- must be to Service Category Ambulatory (A), Hospitalization (H), Day"
  • Line Location: GENI+17
Function Call: WRITE
  • Prompt: !?6,"Surgery (S), Observation (O), Nursing home visit (R), Historical"
  • Line Location: GENI+18
Function Call: WRITE
  • Prompt: !?6,"Event (E) visit or In-Hospital (I) visit"
  • Line Location: GENI+19
Function Call: WRITE
  • Prompt: !?4,"- must NOT have an excluded clinic code (see User Manual for a list)"
  • Line Location: GENI+20
Function Call: WRITE
  • Prompt: !?4,"- must have a primary provider and a coded purpose of visit"
  • Line Location: GENI+21
Function Call: WRITE
  • Prompt: !
  • Line Location: GENI+22
Routine Call
  • DIC
  • Line Location:
    • EN1+2
Routine Call
  • DIR
  • Line Location:
    • EN1+16
    • M+11
    • QUARTER+8
    • YEAR+7
    • GENI+7
Routine Call
  • %ZIS
  • Line Location:
    • ZIS+2

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^BUDFSITE - [#90346.1] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^BUDFSITE - [#90346.1] EN1+5
^DIC(4 - [#4] LOC+1
^VA(200 - [#200] USR+1

Label References

Name Line Occurrences
$$CTR GENI+2, GENI+3
$$LOC GENI+2
EN EN1+5
EN1 M+19, T3A+5, T5+5, T5B+5, T6+5, T5A+5, TOL+5
EOJ EN+1, EN1+3, EN1+8, EN1+10, EN1+17, EN1+18, ZIS+3, DRIVER+5, TSKMN+5, M+1
, M+12, T3A+1, T5+1, T5B+1, T6+1, T5A+1, TOL+1
GENI M+2, T3A+3, T5+3, T5B+3, T6+3, T5A+3, TOL+3
QUARTER EN1+9
T3AI T3A+4
T5AI T5A+4
T5BI T5B+4
T5I T5+4
T6I T6+4
TOLI TOL+4
TSKMN ZIS1+1
YEAR EN1+7, YEAR+11

Naked Globals

Name Field # of Occurrence
^(0 USR+1, LOC+1

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%ZIS ZIS+1!, ZIS+2*
>> BUDBD QUARTER+11*, QUARTER+12*, QUARTER+13*, QUARTER+14*, QUARTER+15*, QUARTER+16, YEAR+12*
>> BUDCAD YEAR+13*
>> BUDED QUARTER+11*, QUARTER+12*, QUARTER+13*, QUARTER+14*, QUARTER+15*, QUARTER+16, YEAR+12*
>> BUDQTR EN1+10, QUARTER+10*
>> BUDQUIT QUARTER+9*
>> BUDSITE EN1+1*, EN1+4*, EN1+5
BUDT3A M+3!, M+13*, M+14*, T3A+2*
>> BUDT3AL M+13*, M+14*, T3A+2*
BUDT3B M+3!, M+13*, T3A+2*
>> BUDT4 M+13*
BUDT5 M+3!, M+13*, M+15*, M+16*, M+17*, T5+2*, T5B+2*, T5A+2*
BUDT5L M+3!, M+13*, M+15*, T5+2*
BUDT5L1 M+3!, M+13*, M+16*, T5A+2*
BUDT5L2 M+3!, M+13*, M+17*, T5B+2*
BUDT6 M+3!, M+13*, M+18*, T6+2*, TOL+2*
BUDT6L M+3!, M+13*, M+18*, T6+2*
>> BUDTOL TOL+2*
>> BUDYEAR EN1+8, QUARTER+11, QUARTER+12, QUARTER+13, QUARTER+14, QUARTER+15, YEAR+1*, YEAR+12*, YEAR+13
DA EN1+16!, M+11!, QUARTER+8!
DIC EN1+2*, YEAR+8!
DIC("A" EN1+2*
DIC(0 EN1+2*
DIR EN1+16!, M+11!, QUARTER+8!, YEAR+7!, GENI+7!
DIR("?" QUARTER+1*, QUARTER+2*, QUARTER+3*, QUARTER+4*, QUARTER+5*, QUARTER+6*, YEAR+6*
DIR("A" EN1+16*, M+11*, QUARTER+8*, YEAR+5*, GENI+7*
DIR("B" EN1+16*, M+11*, QUARTER+8*
DIR(0 EN1+16*, M+11*, QUARTER+7*, YEAR+4*, GENI+7*
>> DIRUT EN1+17, M+12, QUARTER+9, YEAR+9*, YEAR+10
>> DUOUT YEAR+9
DUZ USR+1
DUZ(2 LOC+1
IO DRIVER+2, TSKMN+1
IO("DOC" TSKMN+2
IO("Q" ZIS1+1
>> IOCPU TSKMN+5
IOF GENI+1
IOM TSKMN+3, CTR+1
ION TSKMN+1
IOP ZIS+1!
IOSL TSKMN+3
IOST TSKMN+1
>> POP ZIS+3
U USR+1, LOC+1
X CTR~, CTR+1
Y EN1+3, EN1+4, EN1+18, M+13, M+14, M+15, M+16, M+17, M+18, QUARTER+9
, QUARTER+10, QUARTER+11, QUARTER+12, QUARTER+13, QUARTER+14, QUARTER+15, YEAR+11, YEAR+12, CTR~, CTR+1
>> ZTCPU TSKMN+5*
>> ZTDESC TSKMN+5*
>> ZTDTH TSKMN+5*
>> ZTIO TSKMN+1*, TSKMN+2*, TSKMN+3*
>> ZTRTN TSKMN+5*
ZTSAVE TSKMN+4!
ZTSAVE("BUD*" TSKMN+4*
Info |  Source |  Call 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