source: FOIAVistA/trunk/r/ACCOUNTS_RECEIVABLE-PRCA-PRY-RC/PRCATO9.m@ 1671

Last change on this file since 1671 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1PRCATO9 ; GENERATED FROM 'PRCAP DEBTOR LOCATE' PRINT TEMPLATE (#401) ; 06/27/96 ; (FILE 430, MARGIN=80)
2 G BEGIN
3N W !
4T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(401,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
15 D N:$X>0 Q:'DN W ?0 W "BILL NO.: "
16 S X=$G(^PRCA(430,D0,0)) D N:$X>11 Q:'DN W ?11,$E($P(X,U,1),1,15)
17 D N:$X>39 Q:'DN W ?39 W "DEBTOR: "
18 D N:$X>49 Q:'DN W ?49 S Y=$P(X,U,9) S C=$P(^DD(430,9,0),U,2) D Y^DIQ:Y S C="," W $E(Y,1,25)
19 D N:$X>0 Q:'DN W ?0 S X="=",DIP(1)=X S X=79,X1=DIP(1) S %=X,X="" Q:X1="" S $P(X,X1,%\$L(X1)+1)=X1,X=$E(X,1,%) K DIP K:DN Y W X
20 D N:$X>0 Q:'DN W ?0 W "ABLE TO PAY:"
21 S X=$G(^PRCA(430,D0,8)) D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(1,Y)):DXS(1,Y),1:Y)
22 D N:$X>24 Q:'DN W ?24 W "ABLE TO LOCATE:"
23 D N:$X>41 Q:'DN W ?41 S Y=$P(X,U,7) W:Y]"" $S($D(DXS(2,Y)):DXS(2,Y),1:Y)
24 D N:$X>49 Q:'DN W ?49 W "DMV LOCA. CHECK:"
25 D N:$X>67 Q:'DN W ?67 S Y=$P(X,U,18) W:Y]"" $S($D(DXS(3,Y)):DXS(3,Y),1:Y)
26 D N:$X>0 Q:'DN W ?0 W "POSTAL LOC. DATE SENT:"
27 D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,8) D DT
28 D N:$X>39 Q:'DN W ?39 W "POSTAL LOC. DATE REC'D:"
29 D N:$X>64 Q:'DN W ?64 S Y=$P(X,U,9) D DT
30 D N:$X>0 Q:'DN W ?0 W "IRS ABLE TO LOCATE:"
31 D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,10) W:Y]"" $S($D(DXS(4,Y)):DXS(4,Y),1:Y)
32 D N:$X>39 Q:'DN W ?39 W "IRS LOC. DATE SENT:"
33 D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,11) D DT
34 D N:$X>0 Q:'DN W ?0 W "IRS LOC. DATE REC'D:"
35 W ?22 S Y=$P(X,U,12) D DT
36 D N:$X>39 Q:'DN W ?39 W "CREDIT REP. ABLE TO PAY:"
37 D N:$X>65 Q:'DN W ?65 S Y=$P(X,U,13) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
38 D N:$X>0 Q:'DN W ?0 W "CREDIT REPT. DATE SENT:"
39 D N:$X>24 Q:'DN W ?24 S Y=$P(X,U,14) D DT
40 D N:$X>39 Q:'DN W ?39 W "CREDIT REP. DATE REC'D:"
41 D N:$X>64 Q:'DN W ?64 S Y=$P(X,U,15) D DT
42 D N:$X>0 Q:'DN W ?0 W "PATIENT FOLDER REVIEWED:"
43 D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,16) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
44 D N:$X>39 Q:'DN W ?39 W "DATE FOLDER REVIEWED:"
45 D N:$X>62 Q:'DN W ?62 S Y=$P(X,U,17) D DT
46 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "LETTER1:"
47 S X=$G(^PRCA(430,D0,6)) D N:$X>9 Q:'DN W ?9 S Y=$P(X,U,1) D DT
48 D N:$X>25 Q:'DN W ?25 W "LETTER2:"
49 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,2) D DT
50 D N:$X>52 Q:'DN W ?52 W "LETTER3:"
51 D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,3) D DT
52 D N:$X>0 Q:'DN W ?0 S X="=",DIP(1)=X S X=79,X1=DIP(1) S %=X,X="" Q:X1="" S $P(X,X1,%\$L(X1)+1)=X1,X=$E(X,1,%) K DIP K:DN Y W X
53 K Y
54 Q
55HEAD ;
56 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.