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 |  Marked Items |  All
Print Page as PDF
Routine: APCDDVL5

Package: Patient Care Component

Routine: APCDDVL5


Information

APCDDVL5 ; IHS/CMI/LAB - report on T/C VISITS WITH ANCILLARY ;

Source Information

Source file <APCDDVL5.m>

Call Graph

Call Graph Total: 9

Package Total Call Graph
IHS VA Utilities 3 ^XBDBQUE  $$VAL^XBDIQ1  EN^XBVK  
Kernel 2 ($$FMADD,$$FMTE)^XLFDT  $$ADD^XPDMENU  
VA Fileman 2 DD^%DT  ^DIR  
IHS Patient 1 $$HRN^AUPNPAT  
Patient Care Component Reports 1 $$CLINIC^APCLV  

Entry Points

Name Comments DBIA/ICR reference
BD ;get beginning date
SORT ;
ZIS ;call to XBDBQUE
LOC() ;EP - Return location name from file 4 based on DUZ(2).
HDR1 ;
PROCESS ;EP - called from XBDBQUE
ED ;get ending date
ADDMENU ;EP
USR() ;EP - Return name of current user from ^VA(200.
INTRO ;;
HDR ;header for report
START ;
CTR(X,Y) ;EP - Center X in a field Y wide.
GETDATES ;
DONE ;
RTS(V) ;
EOJ ;
PRINT ;EP - called from XBDBQUE
INFORM ;let user know what is gong on
DATE(D) ;
GETSORT ;get sort value

External References

Name Field # of Occurrence
DD^%DT ED+1
$$CLINIC^APCLV PROCESS+11, PROCESS+12, PRINT+7
$$HRN^AUPNPAT GETSORT+4, PRINT+7
^DIR BD+1, ED+1, SORT+2, DONE+2, HDR+2
^XBDBQUE ZIS+2
$$VAL^XBDIQ1 PRINT+12
EN^XBVK EOJ+1
$$FMADD^XLFDT PROCESS+1
$$FMTE^XLFDT HDR1+2
$$ADD^XPDMENU ADDMENU+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: BD+1
Function Call: WRITE
  • Prompt: !
  • Line Location: ED+1
Function Call: WRITE
  • Prompt: !!,"NO DATA TO REPORT",!
  • Line Location: PRINT+2
Function Call: WRITE
  • Prompt: !,$E($P(^DPT($P(APCDVR,U,5),0),U),1,15),?16,$$HRN^AUPNPAT($P(APCDVR,U,5),DUZ(2)),?24,$$DATE($P($P(APCDVR,U),".")),?36,$P(APCDVR,U,7),?39,$$CLINIC^APCLV(APCDV,"C")
  • Line Location: PRINT+7
Function Call: WRITE
  • Prompt: ?45,$E($$VAL^XBDIQ1(9000010.14,APCDM,.01),1,28)
  • Line Location: PRINT+12
Function Call: WRITE
  • Prompt: ?75,"Yes"
  • Line Location: PRINT+13
Function Call: WRITE
  • Prompt: ?75,"No"
  • Line Location: PRINT+14
Function Call: WRITE
  • Prompt: !
  • Line Location: HDR+2
Function Call: WRITE
  • Prompt: $P(^VA(200,DUZ,0),U,2),$$CTR($$FMTE^XLFDT(DT)),?71,"Page ",APCDPG,!
  • Line Location: HDR1+2
Function Call: WRITE
  • Prompt: $$CTR($$LOC),!
  • Line Location: HDR1+3
Function Call: WRITE
  • Prompt: $$CTR("Visits with a RETURNED TO STOCK Medication"),!
  • Line Location: HDR1+4
Function Call: WRITE
  • Prompt: !?3,"PATIENT NAME",?17,"HRN",?24,"VISIT DATE",?36,"SC",?39,"CL",?45,"DRUG",?75,"RTS?",!
  • Line Location: HDR1+5
Function Call: WRITE
  • Prompt: $TR($J(" ",80)," ","-"),!
  • Line Location: HDR1+6
Function Call: WRITE
  • Prompt: !!,$$CTR($$LOC,80)
  • Line Location: INFORM+2
Function Call: WRITE
  • Prompt: !,$$CTR($$USR,80),!!
  • Line Location: INFORM+3
Function Call: WRITE
  • Prompt: !,X
  • Line Location: INFORM+4
Function Call: WRITE
  • Prompt: "Attempt to add update option failed."
  • Line Location: ADDMENU+2
Routine Call
  • DIR
  • Line Location:
    • BD+1
    • ED+1
    • SORT+2
    • DONE+2
    • HDR+2

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNVMED - [#9000010.14] RTS+6, PRINT+13
^AUPNVMED("AD" RTS+4, PRINT+8
^AUPNVSIT - [#9000010] PROCESS+9, PROCESS+10, GETSORT+1, GETSORT+4, PRINT+6
^AUPNVSIT("B" PROCESS+4, PROCESS+6
^DIC(4 - [#4] LOC+1
^DPT - [#2] PRINT+7
^VA(200 - [#200] HDR1+2, USR+1
^XTMP("APCDDVL5" PROCESS+1*, PROCESS+14*, PRINT+2, PRINT+3, PRINT+4, DONE+1!

Label References

Name Line Occurrences
$$CTR HDR1+2, HDR1+3, HDR1+4, INFORM+2, INFORM+3
$$DATE PRINT+7
$$LOC HDR1+3, INFORM+2
$$RTS PROCESS+8
$$USR INFORM+3
BD ED+2
DONE PRINT+2
ED SORT+3
EOJ START+1, BD+2, ZIS+3
GETSORT PROCESS+13
HDR PRINT+1, PRINT+2, PRINT+5, PRINT+10
HDR1 HDR+1
INFORM START+2

Naked Globals

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

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> APCDBD BD+3*, ED+1, PROCESS+3
APCDBT PROCESS+2*, PROCESS+14, PRINT+2, PRINT+3, PRINT+4, DONE+1!
>> APCDC PRINT+8*, PRINT+9*, PRINT+11
>> APCDCSRT SORT+1*, SORT+4*, GETSORT+1, GETSORT+5
>> APCDED ED+3*, PROCESS+3
>> APCDEND PROCESS+3*, PROCESS+4
APCDJ PROCESS+2*, PROCESS+14, PRINT+2, PRINT+3, PRINT+4, DONE+1!
>> APCDM PRINT+8*, PRINT+12, PRINT+13
>> APCDPG PRINT+1*, HDR+1, HDR1+1*, HDR1+2
>> APCDQUIT PRINT+1*, PRINT+3, PRINT+4, PRINT+5, PRINT+8, PRINT+10, HDR+2*
>> APCDSORT PROCESS+13*, PROCESS+14, GETSORT+1*, GETSORT+4*, GETSORT+6*, PRINT+3*, PRINT+4
>> APCDT PROCESS+3*, PROCESS+4*, PROCESS+6
>> APCDV PROCESS+5*, PROCESS+6*, PROCESS+8, PROCESS+9, PROCESS+10, PROCESS+11, PROCESS+12, PROCESS+14, GETSORT+1, GETSORT+4
, PRINT+4*, PRINT+6, PRINT+7, PRINT+8
>> APCDVR PRINT+6*, PRINT+7
C RTS+1~, RTS+3*, RTS+5*
D DATE~, DATE+1, DATE+2
DIR BD+1!, ED+1!, SORT+2!, DONE+2!, HDR+2!
DIR("A" BD+1*, ED+1*, SORT+2*, DONE+2*
DIR("B" SORT+2*
DIR(0 BD+1*, ED+1*, SORT+2*, DONE+2*, HDR+2*
>> DIRUT BD+1*, BD+2, ED+1*, ED+2, SORT+2*, SORT+3, DONE+2*
DT PROCESS+1, HDR1+2
>> DTOUT HDR+2
>> DUOUT BD+1, ED+1, SORT+2, DONE+2
DUZ HDR1+2, USR+1
DUZ(2 GETSORT+4, PRINT+7, LOC+1
G PROCESS+7*, RTS+1~, RTS+3*, RTS+6*, RTS+8
I INFORM+4*, INFORM+5!
IO DONE+2, HDR+2
IO(0 DONE+2, HDR+2
IOF DONE+3, HDR1+1, INFORM+1
IOM CTR+1
IOSL PRINT+5, PRINT+10
IOST DONE+2, HDR+2
U PROCESS+9, PROCESS+10, RTS+6, GETSORT+1, GETSORT+4, PRINT+7, PRINT+13, HDR1+2, USR+1, LOC+1
V RTS~, RTS+4
X RTS+1~, RTS+3*, RTS+4*, RTS+6, CTR~, CTR+1, INFORM+4*, INFORM+5!, ADDMENU+1*, ADDMENU+2
>> XBNS ZIS+1*
>> XBRC ZIS+1*
>> XBRP ZIS+1*
>> XBRX ZIS+1*
Y BD+3, ED+1*, ED+3, SORT+4, HDR+2, CTR~, CTR+1

Marked Items

Name Field # of Occurrence
$T(INTRO+I INFORM+4
Info |  Source |  Call Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All