ABPVDIN ;DISPLAY INSURER EDIT SCREEN; [ 06/04/91 1:12 PM ]
;;2.0;FACILITY PVT-INS TRACKING;*0*;IHS-OKC/KJR;AUGUST 7, 1991
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)
Q
DT 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
D T Q:'DN D N W ?0 W "<------------INSURER DATA-------------> <-----------BILLING ADDRESS---------->"
D T Q:'DN D N W ?0 W " 1. NAME:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13,$E($P(X,U,1),1,26)
D N:$X>41 Q:'DN W ?41 W "8. OFFICE:"
S X=$S($D(^AUTNINS(D0,1)):^(1),1:"") D N:$X>52 Q:'DN W ?52,$E($P(X,U,1),1,27)
D N:$X>0 Q:'DN W ?0 W " 2. STREET:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13,$E($P(X,U,2),1,26)
D N:$X>41 Q:'DN W ?41 W "9. STREET:"
S X=$S($D(^AUTNINS(D0,1)):^(1),1:"") D N:$X>52 Q:'DN W ?52,$E($P(X,U,2),1,27)
D N:$X>0 Q:'DN W ?0 W " 3. CITY:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13,$E($P(X,U,3),1,15)
D N:$X>40 Q:'DN W ?40 W "10. CITY:"
S X=$S($D(^AUTNINS(D0,1)):^(1),1:"") D N:$X>52 Q:'DN W ?52,$E($P(X,U,3),1,15)
D N:$X>0 Q:'DN W ?0 W " 4. STATE:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,4) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,26)
D N:$X>40 Q:'DN W ?40 W "11. STATE:"
S X=$S($D(^AUTNINS(D0,1)):^(1),1:"") D N:$X>52 Q:'DN W ?52 S Y=$P(X,U,4) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,27)
D N:$X>0 Q:'DN W ?0 W " 5. ZIP:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13,$E($P(X,U,5),1,10)
D N:$X>40 Q:'DN W ?40 W "12. ZIP:"
S X=$S($D(^AUTNINS(D0,1)):^(1),1:"") D N:$X>52 Q:'DN W ?52,$E($P(X,U,5),1,10)
D N:$X>0 Q:'DN W ?0 W " 6. PHONE:"
S X=$S($D(^AUTNINS(D0,0)):^(0),1:"") D N:$X>13 Q:'DN W ?13,$E($P(X,U,6),1,13)
D N:$X>0 Q:'DN W ?0 W " 7. CONTACT:"
D N:$X>13 Q:'DN W ?13,$E($P(X,U,9),1,26)
D N:$X>0 Q:'DN W ?0 W "------------------------------------------------------------------------------"
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
ABPVDIN ;DISPLAY INSURER EDIT SCREEN; [ 06/04/91 1:12 PM ]
+1 ;;2.0;FACILITY PVT-INS TRACKING;*0*;IHS-OKC/KJR;AUGUST 7, 1991
+2 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 QUIT
DT 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
+1 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
+2 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE "<------------INSURER DATA-------------> <-----------BILLING ADDRESS---------->"
+3 DO T
IF 'DN
QUIT
DO N
WRITE ?0
WRITE " 1. NAME:"
+4 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,1),1,26)
+5 IF $X>41
DO N
IF 'DN
QUIT
WRITE ?41
WRITE "8. OFFICE:"
+6 SET X=$SELECT($DATA(^AUTNINS(D0,1)):^(1),1:"")
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,1),1,27)
+7 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 2. STREET:"
+8 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,2),1,26)
+9 IF $X>41
DO N
IF 'DN
QUIT
WRITE ?41
WRITE "9. STREET:"
+10 SET X=$SELECT($DATA(^AUTNINS(D0,1)):^(1),1:"")
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,2),1,27)
+11 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 3. CITY:"
+12 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,3),1,15)
+13 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "10. CITY:"
+14 SET X=$SELECT($DATA(^AUTNINS(D0,1)):^(1),1:"")
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,3),1,15)
+15 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 4. STATE:"
+16 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
SET Y=$PIECE(X,U,4)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,26)
+17 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "11. STATE:"
+18 SET X=$SELECT($DATA(^AUTNINS(D0,1)):^(1),1:"")
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52
SET Y=$PIECE(X,U,4)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,27)
+19 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 5. ZIP:"
+20 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,5),1,10)
+21 IF $X>40
DO N
IF 'DN
QUIT
WRITE ?40
WRITE "12. ZIP:"
+22 SET X=$SELECT($DATA(^AUTNINS(D0,1)):^(1),1:"")
IF $X>52
DO N
IF 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,5),1,10)
+23 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 6. PHONE:"
+24 SET X=$SELECT($DATA(^AUTNINS(D0,0)):^(0),1:"")
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,6),1,13)
+25 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " 7. CONTACT:"
+26 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13,$EXTRACT($PIECE(X,U,9),1,26)
+27 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "------------------------------------------------------------------------------"
+28 KILL Y
+29 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!