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

Package: Scheduling

Routine: SDMHAP


Information

SDMHAP ;MAF/ALB - MENTAL HEALTH AD HOC PROACTIVE HIGH RISK REPORT;JULY 14, 2010

Source Information

Source file <SDMHAP.m>

Call Graph

Call Graph

Call Graph Total: 18

Package Total Call Graph
Registration 5 $$GETINF^DGPFAPIH  $$GETFLAG^DGPFAPIU  CLOSE^DGUTQ  PID^VADPT6  FIRST^VAUTOMA  
Scheduling 5 $$SWITCH^SDAMU  ASK2^SDDIV  ^SDMHAP1  HEAD^SDMHPRO  (,$$SETSTR,SET1)^SDMHPRO1  
Kernel 3 ^%ZIS  ^%ZTLOAD  $$FMTE^XLFDT  
VA FileMan 3 (C,NOW)^%DTC  WAIT^DICD  ^DIR  
List Manager 1 $$FDATE^VALM1  
Toolkit 1 $$GET^XPAR  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 3

Package Total Caller Graph
Scheduling 3 SD MH PROACTIVE AD HOC REPORT  SDMHAP1  SDMHPRO  

Entry Points

Name Comments DBIA/ICR reference
EN ;entry point for the manual generation of the Proactive Report
SORT ;sort is by clinic
START ;
PROCESS ;find patients in date range that have scheduled appt for a clinic in the date range.
BGJ
CHK ;Check to see if Division/Clinic/Stop have been selected & if Clinic and Stop code are a valid mental health pair.
ACT ;Make sure patient has active patient record flag
HEAD ;Heading for the report
HEAD1
RANGE() ;Select Start and End date for report
DIV() ;Division selection for multidivisional facility
LIST
LINE(STR) ; Print display prompts
LINE1(STR) ; Print display prompts
TOTAL(DIV) ;INITIALIZE total(DIV,CLIN/STOP)
CLIN ;select clinics
PID(DFN) ; Return PID
; INPUT - DFN
; OUTPUT - PID or 'UNKNOWN'
RANGE1(SDBEG,SDEND,SDAMETH) ; -- select range
RANGEQ
NAMSPC() ; API returns the name space for this patch
NAMSPC1() ; API returns the name space for this patch
PXRMD ;Set up Reminder Location List valid Stop Codes for Proactive Report
END ;NO RECORDS
QUIT

External References

Name Field # of Occurrence
C^%DTC RANGE1+3
NOW^%DTC SORT+4
^%ZIS SORT+5
^%ZTLOAD SORT+5
$$GETINF^DGPFAPIH ACT+3, ACT+4
$$GETFLAG^DGPFAPIU PROCESS+4, PROCESS+6
CLOSE^DGUTQ QUIT+2
WAIT^DICD START+1
^DIR RANGE1+7, RANGE1+11
$$SWITCH^SDAMU RANGE1+4
ASK2^SDDIV DIV+1
^SDMHAP1 BGJ+4
HEAD^SDMHPRO BGJ+1
^SDMHPRO1 BGJ+2
$$SETSTR^SDMHPRO1 START+9, START+10, LIST+3, LIST+4, LIST+5
SET1^SDMHPRO1 START+9, START+10, LIST+3, LIST+4, LIST+5
PID^VADPT6 PID+4
$$FDATE^VALM1 RANGE1+4, RANGE1+5, RANGE1+8, RANGE1+10
FIRST^VAUTOMA CLIN+7
$$FMTE^XLFDT SORT+4, HEAD+3
$$GET^XPAR PROCESS+3

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,*7,"This output requires 80 column output",!
  • Line Location: SORT+3
Function Call: WRITE
  • Prompt: !!,"Patch DG*5.3*836 needs to be installed - ICR 4903.",!,"Routines required to run report. Aborting!",!
  • Line Location: START+7
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: HEAD+1
Function Call: WRITE
  • Prompt: "HIGH RISK MENTAL HEALTH PROACTIVE ADHOC REPORT BY",?70,"PAGE "
  • Line Location: HEAD+2
Function Call: WRITE
  • Prompt: SDPAG,!
  • Line Location: HEAD+2
Function Call: WRITE
  • Prompt: $S(SDTL="MEN":"MENTAL HEALTH",SDTL="STOP":"STOP CODE",1:"CLINIC")_" for Appointments "_$$FMTE^XLFDT(SDBEG,"2")_"-"_$$FMTE^XLFDT($P(SDEND,".",1),"2"),?56,"Run: "_SDDAT
  • Line Location: HEAD+3
Function Call: WRITE
  • Prompt: !!,"Totals Page"
  • Line Location: HEAD+4
Function Call: WRITE
  • Prompt: !!,"#",?4,"PATIENT",?25,"PT ID",?32,"APPT D/T",?49,"CLINIC"
  • Line Location: HEAD+5
Function Call: WRITE
  • Prompt: !,$$LINE(""),!
  • Line Location: HEAD+6
Function Call: WRITE
  • Prompt: !!,$$LINE(" High Risk Mental Health Proactive Adhoc Report")
  • Line Location: RANGE+1
Function Call: WRITE
  • Prompt: !!!,"Reminder location List file is not current.",!,"Missing reminder location list 'VA-MH NO SHOW APPT CLINICS LL' in file 810.9.",!,"Report Aborting!",!
  • Line Location: LIST+1
Function Call: WRITE
  • Prompt: !!,"Sort the report by:",!,?20,"A All clinics",!,?20,"M Mental Health clinics only",!
  • Line Location: CLIN+1
Function Call: READ
  • Formatting: !
  • Prompt: "Sort by: (A)ll clinics A//"
  • Variable: X
  • Timeout: DTIME
  • Line Location: CLIN+2
Function Call: WRITE
  • Prompt: !,"Enter a 'A' for All clinics or 'M' for Mental Health clinics only"
  • Line Location: CLIN+2
Function Call: WRITE
  • Prompt: !!,$$LINE1(">>>>>> NO RECORDS FOUND <<<<<<")
  • Line Location: END+2
Routine Call
  • DIR
  • Line Location:
    • RANGE1+7
    • RANGE1+11
Routine Call
  • %ZIS
  • Line Location:
    • SORT+5

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^SC - [#44] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^%ZOSF("TEST" START+6
^DG(40.8 - [#40.8] START+21, PROCESS+17, CHK+12, CHK+13
^DIC(40.7 - [#40.7] PROCESS+19, CHK+16, CHK+17, PXRMD+6
^DPT - [#2] PROCESS+15, PROCESS+20
^PXRMD(810.9 - [#810.9] START+24, PROCESS+23, LIST, PXRMD+3
^SC - [#44] START+22, START+23, PROCESS+11, PROCESS+12, PROCESS+13, PROCESS+18, CHK+14, CHK+15, PXRMD+5, PXRMD+8
^SC("AST" PXRMD+5, PXRMD+7
^TMP( START+15!, START+26, PROCESS+7, PROCESS+8, PROCESS+21*, PROCESS+22*, PROCESS+23*, BGJ+1, BGJ+3, CHK+18*
, HEAD1
^TMP("SDPRO" QUIT+1!
^TMP("SDPRO1" QUIT+1!

Label References

Name Line Occurrences
$$DIV EN+3
$$LINE HEAD+6, RANGE+1
$$LINE1 END+2
$$NAMSPC START+13
$$NAMSPC1 START+14
$$PID PROCESS+21, PROCESS+22, PROCESS+23
$$RANGE EN+2
$$RANGE1 RANGE+2
@( SORT+2, START+27
ACT PROCESS+15
CHK START+23, START+25
CLIN CLIN+2
END BGJ+3
HEAD END+1
LIST START+12
PXRMD START+19
QUIT EN+2, EN+3, SORT+2, SORT+5, START+28
RANGEQ RANGE1+7, RANGE1+11
TOTAL PROCESS+24

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% EN+1~, SORT+4
%DT QUIT!
%ZIS EN+1~, SORT+5*
%ZIS("A" SORT+5*
%ZIS("B" SORT+5*
ACT PROCESS+9~
DFN PROCESS+9~, PROCESS+10*, PROCESS+13*, PROCESS+15, PROCESS+20, PROCESS+21, PROCESS+22, PROCESS+23, ACT+3, ACT+4
, TOTAL+7, PID~
DIC CLIN+4~, CLIN+5*
DIC("S" CLIN+6*
DIR RANGE1+7!, RANGE1+11!, QUIT!
DIR("?" RANGE1+5*, RANGE1+10*
DIR("A" RANGE1+6*, RANGE1+9*
DIR("B" RANGE1+4*, RANGE1+8*
DIR(0 RANGE1+6*, RANGE1+9*
DIV TOTAL~, TOTAL+1, TOTAL+3, TOTAL+4, TOTAL+5, TOTAL+6, TOTAL+7
DT RANGE1+2, RANGE1+3
DTIME CLIN+2
IO("Q" SORT+5!
IOF HEAD+1
IOM SORT+5*, LINE+3, LINE1+3
IOST START+1
K CLIN+4~
NAMSPC START+5~, START+13*, START+15, START+26, PROCESS+7, PROCESS+8, CHK+18
NAMSPC1 START+5~, START+14*, START+15, PROCESS+21, PROCESS+22, PROCESS+23, BGJ+1, BGJ+3, HEAD1
PATNM PROCESS+16~, PROCESS+20*, PROCESS+21, PROCESS+22, PROCESS+23
POP SORT+5, QUIT!
SDACT PROCESS+1~, PROCESS+15, ACT+3*, ACT+4*, ACT+5*
SDALL EN+1~, START+19, CLIN+3*, CLIN+6
SDAMETH RANGE1~, RANGE1+3
SDBEG EN+1~, PROCESS+11, HEAD+3, RANGE+2, RANGE1~, RANGE1+2*, RANGE1+7*, RANGE1+10
SDC PROCESS+1~, PROCESS+2*, PROCESS+7*, PROCESS+8, PROCESS+11, PROCESS+12, PROCESS+13, PROCESS+18, PROCESS+21, PROCESS+22
, PROCESS+23
SDCFL PXRMD+1~, PXRMD+8*, PXRMD+10
SDCL START+5~, START+16*, START+22*, START+23, START+25*, CHK+7, CHK+8, CHK+14, CHK+15, CHK+18
SDCLNM PROCESS+16~, PROCESS+18*, PROCESS+21, PROCESS+22, PROCESS+23, CHK+1~, CHK+15*, CHK+18
SDCNTT TOTAL+2~*
SDDAT EN+1~, SORT+4*, HEAD+3
SDDIV START+5~, START+21*, START+23*, START+25*, CHK+4, CHK+5, CHK+12, CHK+13, CHK+18, QUIT!
SDDIVNM PROCESS+16~, PROCESS+17*, PROCESS+21, PROCESS+22, PROCESS+23, PROCESS+24, CHK+1~, CHK+13*, CHK+18
SDDT PROCESS+9~, PROCESS+10*, PROCESS+11*, PROCESS+12, PROCESS+13, PROCESS+15, PROCESS+21, PROCESS+22, PROCESS+23, ACT+2
SDDTNT ACT+1~, ACT+2*, ACT+3, ACT+4
SDEND EN+1~, PROCESS+11, HEAD+3, RANGE+2, RANGE1~, RANGE1+2*, RANGE1+11*, RANGEQ
SDFL CLIN+7*, QUIT!
SDFLG CHK+1~, CHK+2*, CHK+3, CHK+4*, CHK+5*, CHK+6, CHK+7*, CHK+8*, CHK+9, CHK+10*
, CHK+11*
SDHEAD2 HEAD1+1~, HEAD1+2*, HEAD1+3
SDHFL PROCESS+1~
SDI PXRMD+1~, PXRMD+5~*, PXRMD+7~*, PXRMD+8
SDIV PROCESS+1~, PROCESS+2*, PROCESS+7*, PROCESS+8, PROCESS+17
SDLINE START+5~, START+26*, START+27
SDMHFLG PROCESS+1~, PROCESS+3*, PROCESS+4
SDMHFLG("L" PROCESS+4*, ACT+3
SDMHFLG("N" PROCESS+6*, ACT+4
SDMHNFLG PROCESS+1~, PROCESS+5*, PROCESS+6, QUIT!
SDNUM PROCESS+9~, PROCESS+10*, PROCESS+11*, PROCESS+12, PROCESS+13
SDNUM1 PROCESS+9~, PROCESS+10*, PROCESS+11*, PROCESS+12, PROCESS+13
SDPAG START+5~, START+16*, HEAD+2*
SDPAT START+5~
SDPAT( TOTAL+7*
SDR PROCESS+1~, PROCESS+2*, PROCESS+8*, PROCESS+23
SDRLL START+5~, START+16*, START+24*, CHK+18
SDRR PROCESS+9~, PROCESS+23*
SDS PROCESS+1~, PROCESS+2*, PROCESS+7*, PROCESS+8, PROCESS+19, PROCESS+21, PROCESS+22, PROCESS+23
SDSC START+5~, START+16*, START+23*, START+25*, CHK+10, CHK+11, CHK+16, CHK+17, CHK+18
SDSCNM PROCESS+16~, PROCESS+19*, PROCESS+22, CHK+1~, CHK+17*, CHK+18
SDSFL PXRMD+1~, PXRMD+6*, PXRMD+9
SDSTAT PROCESS+9~, PROCESS+10*, PROCESS+15*, PROCESS+21, PROCESS+22, PROCESS+23, TOTAL+6
SDSTOP START+5~
SDSTOP( PXRMD+4*
SDT RANGE1+1~, RANGE1+2*, RANGE1+3*, RANGE1+4, RANGE1+8
SDTBEG QUIT!
SDTEND QUIT!
SDTL EN+1~, SORT+1*, SORT+2, START+22, START+24, PROCESS+8, PROCESS+21, PROCESS+22, PROCESS+23, HEAD+3
, HEAD1+2, PXRMD+5
SDTOTPG HEAD+4, HEAD+5, HEAD1, QUIT!
SDUP EN+1~, PROCESS+1~, PROCESS+2*, PROCESS+7, PROCESS+11, PROCESS+15
SDWITCH RANGE1+1~, RANGE1+4*, RANGE1+5
SDX START+8~*, START+9*, START+10*, START+11*, LIST+2~*, LIST+3*, LIST+4*, LIST+5*, LIST+6*, PXRMD+1~
, PXRMD+3*
SDXDIV HEAD1+2, QUIT!
SDXFLG EN+1~, START+1, START+7, START+17, BGJ, LIST+1
SDY PXRMD+1~, PXRMD+2*, PXRMD+3*, PXRMD+4, PXRMD+5, PXRMD+6, PXRMD+7
SDZERO PROCESS+16~
STR LINE~, LINE+2*, LINE+3, LINE+4, LINE1~, LINE1+2*, LINE1+3, LINE1+4
TOTAL START+5~
TOTAL( TOTAL+1, TOTAL+3*, TOTAL+4, TOTAL+5*, TOTAL+6*, TOTAL+7*
VA PID+3~
VA("BID" PID+5
VADAT EN+1~, QUIT!
VADATE EN+1~, QUIT!
VAUTCL START+17*, CHK+6, CHK+8, PXRMD+7, PXRMD+10*, QUIT!
VAUTCL( CHK+8, PXRMD+8*
VAUTD EN+1~, START+20, CHK+3, CHK+5, DIV+1!, DIV+2, QUIT!
VAUTD( START+21*, CHK+5
VAUTNI CLIN+4~, CLIN+7*
VAUTR QUIT!
VAUTRR START+5~
VAUTRR( START+25, PXRMD+5*
VAUTSC CHK+9, CHK+11, PXRMD+6, PXRMD+9*, QUIT!
VAUTSC( CHK+11, PXRMD+6*
VAUTSTR CLIN+4~, CLIN+7*
VAUTVB CLIN+4~, CLIN+5*
X EN+1~, START+6~*, START+9, START+10, LIST~, LIST+2*, LIST+3, LIST+4*, LIST+5*, LINE+1~
, LINE+3*, LINE+4, LINE1+1~, LINE1+3*, LINE1+4, TOTAL+6~*, CLIN+2*, CLIN+3, RANGE1+1~, RANGE1+3
, QUIT!
X1 RANGE1+1~, RANGE1+3*
X2 RANGE1+1~, RANGE1+3*
Y EN+1~, SORT+2, SORT+4*, START+5~, START+12*, DIV+1, LIST+1*, LIST+7*, CLIN+2*, CLIN+7
, RANGE1+7, RANGE1+11, QUIT!
ZTRTN EN+1~, SORT+5*
ZTSAVE EN+1~
ZTSAVE("SD*" SORT+5*
ZTSAVE("VA*" SORT+5*
ZTSK SORT+5!
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 |  Local Variables  | All