DGOTHRP2 ;SLC/RM - OTH PATIENT PERIOD STATUS REPORT CONT. ;MAY 8, 2018@5:15
Source file <DGOTHRP2.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
START | ; compile and print report
|
|
LOOP(DGSORT,DGLIST) | ;
|
|
ISOTH90(DGDFN) | ;determine if patient is EMERGENT OTH
|
|
CLOCK(DGIEN33) | ;
|
|
ALL90(DGSORT,DGLIST,DGRET,DFN,DGIEN33,DGARR,DG90A) | ;
|
|
SSN(DFN) | ;extract patient's SSN4
|
|
SORT(DGTMP,DGPTNM,DGCLCK,DGDYSLFT,I,DGENCTR) | ;
|
|
CHKDATE(DGSDT,DGEDT) | ;check if dates fall within the Begin and End dates
|
|
PRINT(DGSORT,DGLIST) | ;output report
|
|
PRINT1(DGSUB1) | ;Print or display report by division
|
|
PRINT2 | ;
|
|
PTNAME | ;diplay patient and PID
|
|
PRNTFC | ;Print or display report by facility
|
|
PRNTFC1 | ;
|
|
RPTSUM | ;Display report summary
|
|
DVISION(DGFAC) | ;
|
|
HEAD | ;Print/Display Page Header
|
|
PAUSE(DGQ) | ; pause screen display
; Input: ; DGQ - var used to quit report processing to user CRT ; Output: ; DGQ - passed by reference - 0 = Continue, 1 = Quit |
|
EXIT | ;
|
Name | Field # of Occurrence |
---|---|
HOME^%ZIS | EXIT+5 |
^%ZISC | EXIT+5 |
$$S^%ZTLOAD | HEAD+1 |
$$MSNGPRD^DGOTHBTN | LOOP+17 |
$$GETEXPR^DGOTHD | ISOTH90+2 |
$$ISOTH^DGOTHD | ISOTH90+6 |
$$ISOTHD^DGOTHD | LOOP+8 |
ASKCONT^DGOTHMG2 | PRINT+8, RPTSUM+7 |
PAUSE^DGOTHRP2 | PRINT+17, PRINT+29, PRINT1+16 |
RESULT^DGOTHRP3 | LOOP+18 |
CHKTREAT^DGPPRP1 | ALL90+17 |
WAIT^DICD | START+1 |
GETS^DIQ | LOOP+12, SSN+1 |
^DIR | PAUSE+6 |
$$SITE^VASITE | START+2 |
$$FMTE^XLFDT | ALL90+22, RPTSUM+4, RPTSUM+5, HEAD+8, HEAD+11 |
$$NOW^XLFDT | HEAD+11 |
Name | Line Occurrences |
---|---|
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: 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: 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 |
|
Routine Call |
|
Routine Call |
|
FileNo | Call Tags |
---|---|
^DPT - [#2] | GETS^DIQ |
^DGOTH(33 - [#33] | GETS^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DG(40.8 - [#40.8] | SORT+7 |
^DGOTH(33 - [#33] | LOOP+4, LOOP+11, CLOCK+2, CLOCK+3, CLOCK+5, CLOCK+6 |
^TMP("DGOTHR2" | START+5 |
Name | Line Occurrences |
---|---|
$$CHKDATE | ALL90+14 |
$$ISOTH90 | LOOP+10 |
$$SSN | ALL90+19 |
ALL90 | LOOP+21 |
CLOCK | LOOP+15 |
DVISION | PRINT+14, PRINT2+2 |
EXIT | START+10 |
HEAD | PRINT+6, PRINT+14, PRINT+25, PRINT+31, PRINT2+2, PRNTFC1+2 |
LOOP | START+7 |
PAUSE | PRINT2+2, PRNTFC1+2 |
START+8 | |
PRINT1 | PRINT+19, PRINT+27 |
PRINT2 | PRINT1+8, PRINT1+12 |
PRNTFC | PRINT1+3 |
PRNTFC1 | PRNTFC+5, PRNTFC+7 |
PTNAME | PRINT2+2, PRINT2+3 |
RPTSUM | PRINT+31 |
SORT | ALL90+23 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
%ZIS | EXIT+4! |
DDASH | PRINT+1~, PRINT+3*, HEAD+12, HEAD+15 |
DFN | LOOP+5~, LOOP+20*, LOOP+21, ALL90~, ALL90+17, ALL90+19, SSN~, SSN+1, SSN+2 |
DG90 | ALL90+1~, ALL90+3*, ALL90+5, ALL90+6, ALL90+7, ALL90+20, ALL90+22, ALL90+23 |
DG90A | LOOP+1~, LOOP+6!, LOOP+18, LOOP+21, ALL90~ |
DG90A( | CLOCK+6* |
DGARR | LOOP+1~, LOOP+6!, LOOP+18, LOOP+21, ALL90~ |
DGARR( | ALL90+21 |
DGARR(33 | LOOP+14, LOOP+20, ALL90+18 |
DGAUTH | ALL90+1~, ALL90+4!, ALL90+21*, ALL90+22 |
DGCLCK | LOOP+1~, LOOP+6!, LOOP+16, LOOP+17, SORT~, SORT+12, SORT+13, SORT+16, SORT+17, SORT+20 , SORT+21 |
DGCLCK( | CLOCK+7*, ALL90+20 |
DGDFN | LOOP+1~, LOOP+3*, LOOP+4*, LOOP+8, LOOP+10, LOOP+11, ISOTH90~, ISOTH90+2 |
DGDIEN | LOOP+1~ |
DGDIV | SORT+1~, SORT+2*, SORT+3*, SORT+4, SORT+6, SORT+7, SORT+8, SORT+10, PRINT+2~, PRINT+10* , PRINT+20*, PRINT1+16 |
DGDIVNUM | SORT+1~, SORT+5!, SORT+6*, SORT+7*, SORT+8, SORT+10, SORT+12, SORT+16, SORT+20 |
DGDYSLFT | ALL90+1~, ALL90+4!, ALL90+7*, ALL90+8, ALL90+22, ALL90+23, SORT~, SORT+20, SORT+21 |
DGEDT | ALL90+1~, ALL90+4!, ALL90+6*, ALL90+14, ALL90+22, CHKDATE~, CHKDATE+1 |
DGENCTR | ALL90+1~, ALL90+15!, ALL90+17, ALL90+23, SORT~ |
DGENCTR( | SORT+3, SORT+4, SORT+6, SORT+8, SORT+10 |
DGERR | LOOP+1~, LOOP+6!, LOOP+13 |
DGEXP | ISOTH90+1~, ISOTH90+2*, ISOTH90+3, ISOTH90+4, ISOTH90+5, ISOTH90+6 |
DGFAC | PRINT+2~, PRINT+13*, PRINT+14, PRINT+15, PRINT+19, PRINT+20, DVISION~, DVISION+1 |
DGFACLTY | HEAD+2~, HEAD+5*, HEAD+7 |
DGIEN | LOOP+1~, LOOP+3* |
DGIEN33 | LOOP+5~, LOOP+11*, LOOP+12, LOOP+14, LOOP+15, LOOP+18, LOOP+20, LOOP+21, CLOCK~, CLOCK+2 , CLOCK+3, CLOCK+5, CLOCK+6, ALL90~, ALL90+18, ALL90+20 |
DGIENS | ALL90+1~, ALL90+4!, ALL90+20*, ALL90+21 |
DGLIST | START+4~, START+5*, START+6, START+7, START+8, START+9, LOOP~, LOOP+21, ALL90~, SORT+10 , SORT+12, SORT+13, SORT+16, SORT+17, SORT+20, SORT+21, SORT+24, PRINT~, PRINT+4, PRINT+5 , PRINT+15, PRINT+26, PRINT1+1, PRINT1+2, PRINT1+4, PRINT1+7, PRINT1+8, PRINT1+11, PRNTFC+3, PRNTFC+4 , PRNTFC+6 |
DGLS365D | LOOP+5~, LOOP+17, CLOCK+2*, CLOCK+3, CLOCK+4, ALL90+2 |
DGLS365I | LOOP+5~, CLOCK+3* |
DGN | CLOCK+1~, CLOCK+5*, CLOCK+6, CLOCK+7 |
DGNEWDIV | PRINT+2~, PRINT+14*, PRINT1+12*, PRINT2+3, PRINT2+4, PRINT2+5 |
DGOEIEN | PRINT+2~, PRINT+12*, PRINT+13, DVISION+1 |
DGOLD | LOOP+1~, LOOP+3*, SORT+23*, PRINT+2~, PRINT+10*, PRINT2+2, PRINT2+3*, PRINT2+4*, PRNTFC1+3*, PRNTFC1+4* |
DGOLD365 | PRINT+2~, PRINT+10*, PRINT2+3*, PRINT2+4*, PRINT2+5*, PRNTFC1+3*, PRNTFC1+4*, PRNTFC1+5* |
DGPAGE | PRINT+1~, PRINT+3*, HEAD+3, HEAD+4*, HEAD+6, PAUSE+6 |
DGPTNM | ALL90+1~, ALL90+4!, ALL90+18*, ALL90+23, SORT~, SORT+12, SORT+13, SORT+16, SORT+17, SORT+20 , SORT+21, SORT+23 |
DGPTSTAT | LOOP+5~ |
DGQ | LOOP+1~, LOOP+3*, PRINT+1~, PRINT+3*, PRINT+12, PRINT+13, PRINT+17, PRINT+26, PRINT+28, PRINT+29 , PRINT+30, PRINT1+1, PRINT1+2, PRINT1+3, PRINT1+4, PRINT1+6, PRINT1+7, PRINT1+15, PRINT1+16, PRINT2+2 , PRNTFC+2, PRNTFC+3, PRNTFC1+2, PRNTFC1+7, HEAD+1*, PAUSE~, PAUSE+6* |
DGRES | LOOP+1~ |
DGRET | LOOP+1~, LOOP+6!, LOOP+19, LOOP+21, ALL90~ |
DGRET( | ALL90+3, ALL90+5, ALL90+6, ALL90+7, ALL90+12, ALL90+13 |
DGSDT | ALL90+1~, ALL90+4!, ALL90+5*, ALL90+14, ALL90+22, SORT+1~, SORT+2*, SORT+4*, SORT+6, SORT+8 , SORT+10, CHKDATE~ |
DGSORT | START+7, START+8, LOOP~, LOOP+21, ALL90~, PRINT~ |
DGSORT("DGBEG" | ALL90+17, CHKDATE+1, RPTSUM+4, HEAD+8 |
DGSORT("DGEND" | ALL90+17, CHKDATE+1, RPTSUM+5, HEAD+8 |
DGSORT("DGSRTBY" | SORT+11, SORT+15, SORT+19, PRINT1+6, PRINT2+3, PRINT2+4, PRNTFC+2, PRNTFC1+3, PRNTFC1+4, HEAD+9 |
DGSORT("DGSTATUS" | LOOP+21, ALL90+8, ALL90+12, ALL90+13, RPTSUM+3, HEAD+10 |
DGSORT("DIVISION" | SORT+8*, PRINT+12, PRINT+13, DVISION+1 |
DGSORT("REPORT" | SORT+12, SORT+16, SORT+20, PRINT+11, PRINT+24, PRINT1+3, PRINT1+6, PRINT1+16, HEAD+9 |
DGSSN | ALL90+1~, ALL90+4!, ALL90+19*, ALL90+22 |
DGSSN(2 | SSN+2 |
DGSTR | PRINT+2~, PRINT+10*, PRINT1+5!, PRINT1+8*, PRINT1+11*, PRINT2+4, PRINT2+6, PTNAME+1, PRNTFC+1!, PRNTFC+4* , PRNTFC+6*, PRNTFC1+3, PRNTFC1+4, PRNTFC1+6 |
DGSUB1 | PRINT+1~, PRINT+10*, PRINT+26*, PRINT+27, PRINT1~, PRINT1+1, PRINT1+2, PRINT1+4, PRINT1+7, PRINT1+8 , PRINT1+11, PRINT1+16, PRINT2+2, PRNTFC+3, PRNTFC+4, PRNTFC+6, PRNTFC1+3 |
DGSUB2 | PRINT+1~, PRINT+10*, PRINT1+1*, PRINT1+2, PRINT1+4, PRINT1+7, PRINT1+8, PRINT1+11, PRINT2+2, PRINT2+3 , PTNAME+1, PRNTFC+3, PRNTFC+4, PRNTFC+6, PRNTFC1+5 |
DGSUB3 | PRINT+1~, PRINT+10*, PRINT1+2*, PRINT1+4, PRINT1+7, PRINT1+8, PRINT1+11, PRINT2+5, PRNTFC+3, PRNTFC+4 , PRNTFC+6, PRNTFC1+4 |
DGSUB4 | PRINT+1~, PRINT+10*, PRINT1+4*, PRINT1+7, PRINT1+8, PRINT1+11, PRINT2+4, PRNTFC+3*, PRNTFC+4 |
DGSUB5 | PRINT+1~, PRINT+10*, PRINT1+7*, PRINT1+8 |
DGTMP | ALL90+1~, ALL90+22*, ALL90+23, SORT~, SORT+12, SORT+13, SORT+16, SORT+17, SORT+20, SORT+21 |
DGTOTAL | LOOP+1~, LOOP+3*, SORT+23*, SORT+24, PRINT+2~, PRINT+3*, PRINT+4*, RPTSUM+5 |
DIR | PAUSE+6! |
DIR(0 | PAUSE+6* |
HERE | START+2~*, HEAD+5 |
I | CLOCK+4*, CLOCK+5, CLOCK+6, CLOCK+7, ALL90+1~, ALL90+2*, ALL90+3, ALL90+5, ALL90+6, ALL90+7 , ALL90+12, ALL90+13, ALL90+20, ALL90+22, ALL90+23, SORT~, SORT+12, SORT+13, SORT+16, SORT+17 , SORT+20, SORT+21 |
II | ALL90+1~ |
IOF | HEAD+3, EXIT+3 |
IOSL | PRINT2+2, PRNTFC1+2 |
IOST | START+1, START+3 |
POP | EXIT+4! |
RET | LOOP+1~, LOOP+6! |
TRM | START+3~*, HEAD+3, PAUSE+6, EXIT+3 |
U | ALL90+5, ALL90+6, ALL90+7, ALL90+8, ALL90+12, ALL90+13, ALL90+22, SORT+6, SORT+7, SORT+8 , SORT+10, SORT+11, SORT+12, SORT+15, SORT+16, SORT+19, SORT+20, PRINT+11, PRINT+24, PRINT1+3 , PRINT1+6, PRINT1+16, PRINT2+3, PRINT2+4, PRINT2+6, PTNAME+1, PRNTFC+2, PRNTFC1+3, PRNTFC1+4, PRNTFC1+6 , RPTSUM+3, HEAD+5, HEAD+9, HEAD+10 |
>> VAUTD | ALL90+17 |
>> Y | PAUSE+6 |
>> ZTDESC | HEAD+6 |
>> ZTQUEUED | HEAD+1, EXIT+1, EXIT+2 |
>> ZTREQ | EXIT+1* |
>> ZTSTOP | HEAD+1* |