SDMHAD ;MAF/ALB - MENTAL HEALTH AD HOC NO SHOW REPORT ; JULY 14, 2010
Source file <SDMHAD.m>
Package | Total | Caller Graph |
---|---|---|
Scheduling | 3 | SD MH NO SHOW AD HOC REPORT SDMHAD1 SDMHNS |
Name | Comments | DBIA/ICR reference |
---|---|---|
DIV() | ;Division selection for multidivisional facility
|
|
BGJ | ||
STOP | ||
MEN1 | ||
PXRMD | ;Set up Reminder Location List valid Stop Codes for No Show Report
|
|
B | ||
NAMSPC() | ; API returns the name space for this patch
|
|
CLIN | ;select clinics
|
|
RANGE() | ;Select Start and End date for report
|
|
STOP1 | ||
PID(DFN) | ; Return PID
; INPUT - DFN ; OUTPUT - PID or 'UNKNOWN' |
|
ST1 | ||
CL1 | ||
SORT | ||
TOTAL(DIV,CLST) | ;INITIALIZE total(DIV,CLIN/STOP)
|
|
HEAD | ;Heading for the report
|
|
EN | ;entry point for the manual generation of the No Show Report
|
|
END | ;NO RECORDS
|
|
QUIT | ||
CHK | ;Check to see if Division/Clinic/Stop have been selected & if Clinic and Stop code are a valid mental health pair.
|
|
START | ;
|
|
FUTNUM | ||
LINE1(STR) | ; Print display prompts
|
|
HEAD1 | ||
PROCESS | ;find patients in date range that had a no show appt for a MH clinic.
|
|
MEN | ||
LIST | ||
NAMSPC1() | ; API returns the name space for this patch
|
|
LINE(STR) | ; Print display prompts
|
Name | Field # of Occurrence |
---|---|
NOW^%DTC | FUTNUM+5 |
^%ZIS | FUTNUM+6 |
^%ZTLOAD | FUTNUM+6 |
$$GETINF^DGPFAPIH | PROCESS+11 |
$$GETFLAG^DGPFAPIU | PROCESS+4 |
CLOSE^DGUTQ | QUIT+2 |
WAIT^DICD | START+1 |
$$RANGE^SDAMQ | RANGE+2 |
ASK2^SDDIV | DIV+1 |
^SDMHAD1 | BGJ+4 |
HEAD^SDMHNS | BGJ+1 |
^SDMHNS1 | BGJ+2 |
$$SETSTR^SDMHNS1 | START+9, START+10, LIST+3, LIST+4, LIST+5 |
SET1^SDMHNS1 | START+9, START+10, LIST+3, LIST+4, LIST+5 |
PID^VADPT6 | PID+4 |
FIRST^VAUTOMA | CL1+5, ST1+4, STOP1+1 |
$$FMTE^XLFDT | FUTNUM+5, HEAD+3 |
$$GET^XPAR | PROCESS+3 |
Name | Line Occurrences |
---|---|
Function Call: READ |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: READ |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: READ |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: READ |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
FileNo | Call Tags |
---|---|
^DIC(40.7 - [#40.7] | Classic Fileman Calls |
^SC - [#44] | Classic Fileman Calls |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^%ZOSF("TEST" | START+6 |
^DG(40.8 - [#40.8] | START+21, PROCESS+20, CHK+12, CHK+13 |
^DIC(40.7 - [#40.7] | PROCESS+22, CHK+16, CHK+17, PXRMD+6 |
^DPT - [#2] | PROCESS+11, PROCESS+23 |
^PXRMD(810.9 - [#810.9] | START+24, PROCESS+26, LIST, MEN1, MEN1+2, PXRMD+3 |
^SC - [#44] | START+22, START+23, PROCESS+9, PROCESS+10, PROCESS+11, PROCESS+21, CHK+14, CHK+15, PXRMD+5, PXRMD+8 |
^SC("AST" | PXRMD+5, PXRMD+7 |
^TMP( | START+15!, START+26, PROCESS+5, PROCESS+6, PROCESS+24*, PROCESS+25*, PROCESS+26*, BGJ+1, BGJ+3, CHK+18* , HEAD1 |
^TMP("SDNS" | QUIT+1! |
^TMP("SDNSHOW" | QUIT+1! |
Name | Line Occurrences |
---|---|
$$DIV | EN+3 |
$$LINE | HEAD+6, RANGE+1 |
$$LINE1 | END+2 |
$$NAMSPC | START+13 |
$$NAMSPC1 | START+14 |
$$PID | PROCESS+24, PROCESS+25, PROCESS+26 |
$$RANGE | EN+2 |
@( | SORT+9, START+27 |
CHK | START+23, START+25 |
CL1 | CL1 |
END | BGJ+3 |
FUTNUM | FUTNUM+2 |
HEAD | END+1 |
LIST | SORT+8, START+12 |
PXRMD | START+18, START+19 |
QUIT | EN+2, EN+3, SORT, SORT+9, FUTNUM+1, FUTNUM+6, START+28 |
SORT | SORT+1 |
ST1 | ST1 |
TOTAL | PROCESS+27 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
>> % | FUTNUM+5 |
%DT | QUIT! |
%ZIS | EN+1~, FUTNUM+6* |
%ZIS("A" | FUTNUM+6* |
%ZIS("B" | FUTNUM+6* |
ACT | PROCESS+7~ |
CLST | TOTAL~, TOTAL+1, TOTAL+3, TOTAL+4, TOTAL+5, TOTAL+6, TOTAL+7 |
DFN | PROCESS+7~, PROCESS+8*, PROCESS+11*, PROCESS+23, PROCESS+24, PROCESS+25, PROCESS+26, TOTAL+7, PID~ |
DIC | CL1+2~, CL1+3*, STOP~, ST1+2*, STOP1~, STOP1+1* |
DIC("S" | CL1+4*, ST1+3*, STOP1+1* |
DIR | QUIT! |
DIV | TOTAL~, TOTAL+1, TOTAL+3, TOTAL+4, TOTAL+5, TOTAL+6, TOTAL+7 |
DTIME | SORT, FUTNUM+1, CL1, ST1 |
IO("Q" | FUTNUM+6! |
IOF | SORT+1, HEAD+1 |
IOM | FUTNUM+6*, LINE+3, LINE1+3 |
IOST | START+1 |
K | CL1+2~, STOP~, STOP1~ |
NAMSPC | START+5~, START+13*, START+15, START+26, PROCESS+5, PROCESS+6, CHK+18 |
NAMSPC1 | START+5~, START+14*, START+15, PROCESS+24, PROCESS+25, PROCESS+26, BGJ+1, BGJ+3, HEAD1 |
PATNM | PROCESS+12~, PROCESS+23*, PROCESS+24, PROCESS+25, PROCESS+26 |
POP | FUTNUM+6, QUIT! |
SDALL | EN+1~, SORT+8*, START+19, CL1+1*, CL1+4, ST1+1*, ST1+3 |
SDBEG | EN+1~, PROCESS+9, HEAD+3, RANGE+2 |
SDC | PROCESS+1~, PROCESS+2*, PROCESS+5*, PROCESS+6, PROCESS+9, PROCESS+10, PROCESS+11, PROCESS+21, PROCESS+24, PROCESS+25 , PROCESS+26 |
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+12~, PROCESS+21*, PROCESS+24, PROCESS+25, PROCESS+26, PROCESS+27, CHK+1~, CHK+15*, CHK+18 |
SDCNTT | TOTAL+2~* |
SDDAT | EN+1~, FUTNUM+5*, HEAD+3 |
SDDIV | START+5~, START+21*, START+23*, START+25*, CHK+4, CHK+5, CHK+12, CHK+13, CHK+18, QUIT! |
SDDIVNM | PROCESS+12~, PROCESS+20*, PROCESS+24, PROCESS+25, PROCESS+26, PROCESS+27, CHK+1~, CHK+13*, CHK+18 |
SDDT | PROCESS+7~, PROCESS+8*, PROCESS+9*, PROCESS+10, PROCESS+11, PROCESS+24, PROCESS+25, PROCESS+26 |
SDEND | EN+1~, PROCESS+9, HEAD+3, RANGE+2 |
SDFL | CL1+5*, STOP~, STOP1~, MEN1+2* |
SDFLG | CHK+1~, CHK+2*, CHK+3, CHK+4*, CHK+5*, CHK+6, CHK+7*, CHK+8*, CHK+9, CHK+10* , CHK+11* |
SDFUTNUM | FUTNUM~, FUTNUM+1* |
SDHEAD2 | HEAD1+1~, B*, B+2*, B+5 |
SDHFL | PROCESS+1~ |
SDI | PXRMD+1~, PXRMD+5~*, PXRMD+7~*, PXRMD+8 |
SDIV | PROCESS+1~, PROCESS+2*, PROCESS+5*, PROCESS+6, PROCESS+20 |
SDLINE | START+5~, START+26*, START+27 |
SDMHFLG | PROCESS+1~, PROCESS+3*, PROCESS+4*, PROCESS+11 |
SDNUM | PROCESS+7~, PROCESS+8*, PROCESS+9*, PROCESS+10, PROCESS+11 |
SDNUM1 | PROCESS+7~, PROCESS+8*, PROCESS+9*, PROCESS+10, PROCESS+11 |
SDPAG | START+5~, START+16*, HEAD+2* |
SDPAT | START+5~ |
SDPAT( | TOTAL+7* |
SDR | PROCESS+1~, PROCESS+2*, PROCESS+6*, PROCESS+26 |
SDRLL | START+5~, START+16*, START+24*, CHK+18 |
SDRR | PROCESS+7~, PROCESS+26* |
SDS | PROCESS+1~, PROCESS+2*, PROCESS+5*, PROCESS+6, PROCESS+22, PROCESS+24, PROCESS+25, PROCESS+26 |
SDSC | START+5~, START+16*, START+23*, START+25*, CHK+10, CHK+11, CHK+16, CHK+17, CHK+18 |
SDSCNM | PROCESS+12~, PROCESS+22*, PROCESS+25, CHK+1~, CHK+17*, CHK+18 |
SDSFL | PXRMD+1~, PXRMD+6*, PXRMD+9 |
SDSTAT | PROCESS+7~, PROCESS+8*, PROCESS+11*, PROCESS+17*, PROCESS+19, PROCESS+24, PROCESS+25, PROCESS+26, TOTAL+6 |
SDSTOP | START+5~ |
SDSTOP( | PXRMD+4* |
SDTBEG | QUIT! |
SDTEND | QUIT! |
SDTL | EN+1~, SORT+7*, SORT+8, SORT+9, START+22, START+24, PROCESS+6, PROCESS+24, PROCESS+25, PROCESS+26 , HEAD+3, B, B+2, MEN1+1, PXRMD+5 |
>> SDTOTPG | HEAD+4, HEAD+5, HEAD1 |
SDUP | EN+1~, PROCESS+1~, PROCESS+2*, PROCESS+5, PROCESS+9, PROCESS+11 |
SDX | START+8~*, START+9*, START+10*, START+11*, LIST+2~*, LIST+3*, LIST+4*, LIST+5*, LIST+6*, PXRMD+1~ , PXRMD+3* |
>> SDXCLIN | B, B+2 |
>> SDXDIV | B, B+2 |
SDXFLG | EN+1~, START+1, START+7, START+17, START+18, BGJ, LIST+1 |
>> SDXSTOP | B |
>> SDXSTOPN | B+2 |
SDY | PXRMD+1~, PXRMD+2*, PXRMD+3*, PXRMD+4, PXRMD+5, PXRMD+6, PXRMD+7 |
SDZERO | PROCESS+12~ |
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 | CL1+2~, CL1+5*, STOP~, ST1+4*, STOP1~, STOP1+1* |
VAUTR | MEN*, QUIT! |
VAUTR( | MEN1* |
VAUTRR | START+5~ |
VAUTRR( | START+25, PXRMD+5* |
VAUTSC | CHK+9, CHK+11, PXRMD+6, PXRMD+9*, QUIT! |
VAUTSC( | CHK+11, PXRMD+6* |
VAUTSTR | CL1+2~, CL1+5*, STOP~, ST1+4*, STOP1~, STOP1+1* |
VAUTVB | CL1+2~, CL1+3*, STOP~, ST1+2*, STOP1~, STOP1+1* |
X | EN+1~, SORT*, SORT+1, SORT+7, FUTNUM+1*, FUTNUM+2, 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~*, CL1*, CL1+1, ST1*, ST1+1, MEN1~*, MEN1+2, QUIT! |
Y | EN+1~, SORT+8*, SORT+9, FUTNUM+5*, START+5~, START+12*, DIV+1, LIST+1*, LIST+7*, CL1* , CL1+5, ST1*, MEN1+2, QUIT! |
ZTRTN | EN+1~, FUTNUM+6* |
ZTSAVE | EN+1~ |
ZTSAVE("SD*" | FUTNUM+6* |
ZTSAVE("VA*" | FUTNUM+6* |
ZTSK | FUTNUM+6! |