ACMRESD ; GENERATED FROM 'ACM RESOURCE DIRECTORY' PRINT TEMPLATE (#1420) ; 05/13/96 ; (FILE 9002250, MARGIN=80)
G BEGIN
N W !
T 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)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
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
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(1420,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
D T Q:'DN D N D N D N:$X>6 Q:'DN W ?6 W "NAME:"
S X=$G(^ACM(50,D0,0)) W ?13,$E($P(X,U,1),1,30)
D N:$X>4 Q:'DN W ?4 W "STREET:"
S X=$G(^ACM(50,D0,3)) W ?13,$E($P(X,U,1),1,30)
D N:$X>6 Q:'DN W ?6 W "CITY:"
W ?13,$E($P(X,U,2),1,20)
D N:$X>36 Q:'DN W ?36 W "STATE:"
W ?44 S Y=$P(X,U,3) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,15)
D N:$X>62 Q:'DN W ?62 W "ZIP: "
W ?0,$E($P(X,U,4),1,10)
D N:$X>5 Q:'DN W ?5 W "PHONE:"
W ?13,$E($P(X,U,5),1,20)
D N:$X>3 Q:'DN W ?3 W "CONTACT:"
W ?13,$E($P(X,U,6),1,30)
D N:$X>5 Q:'DN W ?5 W "HOURS:"
S X=$G(^ACM(50,D0,5)) W ?13,$E($P(X,U,1),1,50)
D N:$X>4 Q:'DN W ?4 W "REGION:"
W ?13,$E($P(X,U,2),1,50)
D T Q:'DN D N W ?0 W "SERVICES(S):"
D N:$X>13 Q:'DN W ?13 W "SERVICE"
D N:$X>35 Q:'DN W ?35 W "CLINIC DATES"
D N:$X>52 Q:'DN W ?52 W "DESCRIPTIVE DATE"
D N:$X>13 Q:'DN W ?13 W "--------------------"
D N:$X>35 Q:'DN W ?35 W "--------------"
D N:$X>52 Q:'DN W ?52 W "---------------------------"
S I(1)=2,J(1)=9002250.02 F D1=0:0 Q:$O(^ACM(50,D0,2,D1))'>0 X:$D(DSC(9002250.02)) DSC(9002250.02) S D1=$O(^(D1)) Q:D1'>0 D:$X>81 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^ACM(50,D0,2,D1,0)) D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ACM(47.1,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,20)
S I(2)=1,J(2)=9002250.21 F D2=0:0 Q:$O(^ACM(50,D0,2,D1,1,D2))'>0 X:$D(DSC(9002250.21)) DSC(9002250.21) S D2=$O(^(D2)) Q:D2'>0 D:$X>35 T Q:'DN D A2
G A2R
A2 ;
S DICMX="D L^DIWP" D N:$X>35 Q:'DN S DIWL=36,DIWR=53 X DXS(1,9.2):D1>0 S X="" S Y=X K DIP K:DN Y
D A^DIWW
Q
A2R ;
S I(2)=2,J(2)=9002250.22 F D2=0:0 Q:$O(^ACM(50,D0,2,D1,2,D2))'>0 X:$D(DSC(9002250.22)) DSC(9002250.22) S D2=$O(^(D2)) Q:D2'>0 D:$X>55 T Q:'DN D B2
G B2R
B2 ;
S X=$G(^ACM(50,D0,2,D1,2,D2,0)) D N:$X>52 Q:'DN W ?52,$E($P(X,U,1),1,25)
Q
B2R ;
D N:$X>13 Q:'DN W ?13 W "--------------------"
D N:$X>35 Q:'DN W ?35 W "--------------"
D N:$X>52 Q:'DN W ?52 W "---------------------------"
Q
A1R ;
D N:$X>0 Q:'DN W ?0 W "ASSOCIATED REGISTERS:"
S I(1)="""RG""",J(1)=9002250.01 F D1=0:0 Q:$O(^ACM(50,D0,"RG",D1))'>0 X:$D(DSC(9002250.01)) DSC(9002250.01) S D1=$O(^(D1)) Q:D1'>0 D:$X>23 T Q:'DN D B1
G B1R
B1 ;
S X=$G(^ACM(50,D0,"RG",D1,0)) W ?23 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ACM(41.1,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
Q
B1R ;
D T Q:'DN D N W ?0 W "PROGRAM DESCRIPTION"
D T Q:'DN W ?0 W "--------------------------------------------------------------------------------"
S I(1)=4,J(1)=9002250.03 F D1=0:0 Q:$O(^ACM(50,D0,4,D1))'>0 S D1=$O(^(D1)) D:$X>82 T Q:'DN D C1
G C1R
C1 ;
S X=$G(^ACM(50,D0,4,D1,0)) S DIWL=5,DIWR=79 D ^DIWP
Q
C1R ;
D A^DIWW
D T Q:'DN D N W ?0 W "ELIGIBILITY REQUIREMENTS"
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
S I(1)=1,J(1)=9002250.04 F D1=0:0 Q:$O(^ACM(50,D0,1,D1))'>0 S D1=$O(^(D1)) D:$X>82 T Q:'DN D D1
G D1R
D1 ;
S X=$G(^ACM(50,D0,1,D1,0)) S DIWL=5,DIWR=79 D ^DIWP
Q
D1R ;
D A^DIWW
D T Q:'DN D N W ?0 W "COST INFORMATION"
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
S I(1)=6,J(1)=9002250.07 F D1=0:0 Q:$O(^ACM(50,D0,6,D1))'>0 S D1=$O(^(D1)) D:$X>82 T Q:'DN D E1
G E1R
E1 ;
S X=$G(^ACM(50,D0,6,D1,0)) S DIWL=5,DIWR=79 D ^DIWP
Q
E1R ;
D A^DIWW
D T Q:'DN D N W ?0 W "HOW TO APPLY"
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
S I(1)=7,J(1)=9002250.08 F D1=0:0 Q:$O(^ACM(50,D0,7,D1))'>0 S D1=$O(^(D1)) D:$X>82 T Q:'DN D F1
G F1R
F1 ;
S X=$G(^ACM(50,D0,7,D1,0)) S DIWL=5,DIWR=79 D ^DIWP
Q
F1R ;
D A^DIWW
D T Q:'DN D N W ?0 W "OTHER INFORMATION"
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
G ^ACMRESD1
ACMRESD ; GENERATED FROM 'ACM RESOURCE DIRECTORY' PRINT TEMPLATE (#1420) ; 05/13/96 ; (FILE 9002250, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T IF $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 SET DISTP=DISTP+1
SET DILCT=DILCT+1
IF '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
IF Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
IF Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 IF $DATA(DXS)<9
FOR X=0:0
SET X=$ORDER(^DIPT(1420,"DXS",X))
IF 'X
QUIT
SET Y=$ORDER(^(X,""))
FOR X=X:0
IF Y=""
QUIT
SET DXS(X,Y)=^(Y)
SET Y=$ORDER(^(Y))
+3 DO T
IF 'DN
QUIT
DO N
DO N
IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "NAME:"
+4 SET X=$GET(^ACM(50,D0,0))
WRITE ?13,$EXTRACT($PIECE(X,U,1),1,30)
+5 IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "STREET:"
+6 SET X=$GET(^ACM(50,D0,3))
WRITE ?13,$EXTRACT($PIECE(X,U,1),1,30)
+7 IF $X>6
DO N
IF 'DN
QUIT
WRITE ?6
WRITE "CITY:"
+8 WRITE ?13,$EXTRACT($PIECE(X,U,2),1,20)
+9 IF $X>36
DO N
IF 'DN
QUIT
WRITE ?36
WRITE "STATE:"
+10 WRITE ?44
SET Y=$PIECE(X,U,3)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,15)
+11 IF $X>62
DO N
IF 'DN
QUIT
WRITE ?62
WRITE "ZIP: "
+12 WRITE ?0,$EXTRACT($PIECE(X,U,4),1,10)
+13 IF $X>5
DO N
IF 'DN
QUIT
WRITE ?5
WRITE "PHONE:"
+14 WRITE ?13,$EXTRACT($PIECE(X,U,5),1,20)
+15 IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
WRITE "CONTACT:"
+16 WRITE ?13,$EXTRACT($PIECE(X,U,6),1,30)
+17 IF $X>5
DO N
IF 'DN
QUIT
WRITE ?5
WRITE "HOURS:"
+18 SET X=$GET(^ACM(50,D0,5))
WRITE ?13,$EXTRACT($PIECE(X,U,1),1,50)
+19 IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE "REGION:"
+20 WRITE ?13,$EXTRACT($PIECE(X,U,2),1,50)
+21 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "SERVICES(S):"
+22 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
WRITE "SERVICE"
+23 IF $X>35
DO N
IF 'DN
QUIT
WRITE ?35
WRITE "CLINIC DATES"
+24 IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52
WRITE "DESCRIPTIVE DATE"
+25 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
WRITE "--------------------"
+26 IF $X>35
DO N
IF 'DN
QUIT
WRITE ?35
WRITE "--------------"
+27 IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52
WRITE "---------------------------"
+28 SET I(1)=2
SET J(1)=9002250.02
FOR D1=0:0
IF $ORDER(^ACM(50,D0,2,D1))'>0
QUIT
IF $DATA(DSC(9002250.02))
XECUTE DSC(9002250.02)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>81
DO T
IF 'DN
QUIT
DO A1
+29 GOTO A1R
A1 ;
+1 SET X=$GET(^ACM(50,D0,2,D1,0))
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ACM(47.1,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,20)
+2 SET I(2)=1
SET J(2)=9002250.21
FOR D2=0:0
IF $ORDER(^ACM(50,D0,2,D1,1,D2))'>0
QUIT
IF $DATA(DSC(9002250.21))
XECUTE DSC(9002250.21)
SET D2=$ORDER(^(D2))
IF D2'>0
QUIT
IF $X>35
DO T
IF 'DN
QUIT
DO A2
+3 GOTO A2R
A2 ;
+1 SET DICMX="D L^DIWP"
IF $X>35
DO N
IF 'DN
QUIT
SET DIWL=36
SET DIWR=53
IF D1>0
XECUTE DXS(1,9.2)
SET X=""
SET Y=X
KILL DIP
IF DN
KILL Y
+2 DO A^DIWW
+3 QUIT
A2R ;
+1 SET I(2)=2
SET J(2)=9002250.22
FOR D2=0:0
IF $ORDER(^ACM(50,D0,2,D1,2,D2))'>0
QUIT
IF $DATA(DSC(9002250.22))
XECUTE DSC(9002250.22)
SET D2=$ORDER(^(D2))
IF D2'>0
QUIT
IF $X>55
DO T
IF 'DN
QUIT
DO B2
+2 GOTO B2R
B2 ;
+1 SET X=$GET(^ACM(50,D0,2,D1,2,D2,0))
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,1),1,25)
+2 QUIT
B2R ;
+1 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
WRITE "--------------------"
+2 IF $X>35
DO N
IF 'DN
QUIT
WRITE ?35
WRITE "--------------"
+3 IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52
WRITE "---------------------------"
+4 QUIT
A1R ;
+1 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "ASSOCIATED REGISTERS:"
+2 SET I(1)="""RG"""
SET J(1)=9002250.01
FOR D1=0:0
IF $ORDER(^ACM(50,D0,"RG",D1))'>0
QUIT
IF $DATA(DSC(9002250.01))
XECUTE DSC(9002250.01)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>23
DO T
IF 'DN
QUIT
DO B1
+3 GOTO B1R
B1 ;
+1 SET X=$GET(^ACM(50,D0,"RG",D1,0))
WRITE ?23
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ACM(41.1,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,30)
+2 QUIT
B1R ;
+1 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "PROGRAM DESCRIPTION"
+2 DO T
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+3 SET I(1)=4
SET J(1)=9002250.03
FOR D1=0:0
IF $ORDER(^ACM(50,D0,4,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>82
DO T
IF 'DN
QUIT
DO C1
+4 GOTO C1R
C1 ;
+1 SET X=$GET(^ACM(50,D0,4,D1,0))
SET DIWL=5
SET DIWR=79
DO ^DIWP
+2 QUIT
C1R ;
+1 DO A^DIWW
+2 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "ELIGIBILITY REQUIREMENTS"
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+4 SET I(1)=1
SET J(1)=9002250.04
FOR D1=0:0
IF $ORDER(^ACM(50,D0,1,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>82
DO T
IF 'DN
QUIT
DO D1
+5 GOTO D1R
D1 ;
+1 SET X=$GET(^ACM(50,D0,1,D1,0))
SET DIWL=5
SET DIWR=79
DO ^DIWP
+2 QUIT
D1R ;
+1 DO A^DIWW
+2 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "COST INFORMATION"
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+4 SET I(1)=6
SET J(1)=9002250.07
FOR D1=0:0
IF $ORDER(^ACM(50,D0,6,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>82
DO T
IF 'DN
QUIT
DO E1
+5 GOTO E1R
E1 ;
+1 SET X=$GET(^ACM(50,D0,6,D1,0))
SET DIWL=5
SET DIWR=79
DO ^DIWP
+2 QUIT
E1R ;
+1 DO A^DIWW
+2 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "HOW TO APPLY"
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+4 SET I(1)=7
SET J(1)=9002250.08
FOR D1=0:0
IF $ORDER(^ACM(50,D0,7,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
IF $X>82
DO T
IF 'DN
QUIT
DO F1
+5 GOTO F1R
F1 ;
+1 SET X=$GET(^ACM(50,D0,7,D1,0))
SET DIWL=5
SET DIWR=79
DO ^DIWP
+2 QUIT
F1R ;
+1 DO A^DIWW
+2 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "OTHER INFORMATION"
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+4 GOTO ^ACMRESD1