NURSPA ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 06/28/03 ; (FILE 210, 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 M DXS=^DIPT(574,"DXS")
S I(0)="^NURSF(210,",J(0)=210
S DIWF="W"
D T Q:'DN D N D N D N:$X>27 Q:'DN W ?27 W "INDIVIDUAL STAFF REPORT"
D N:$X>27 Q:'DN W ?27 W "-----------------------"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "NAME: "
S X=$G(^NURSF(210,D0,0)) D N:$X>6 Q:'DN W ?6 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,35)
D N:$X>36 Q:'DN W ?36 W "SSN: "
D N:$X>41 Q:'DN W ?41 S:$D(^VA(200,$P(^NURSF(210,D0,0),"^"),1)) NSSN=$P(^(1),"^",9),X=$E(NSSN,1,3)_"-"_$E(NSSN,4,5)_"-"_$E(NSSN,6,9) K NSSN W $E(X,1,11) K Y(210,1)
D N:$X>54 Q:'DN W ?54 W "DATE: "
D N:$X>60 Q:'DN W ?60 S X=DT S Y=X K DIP K:DN Y S Y=X D DT
D N:$X>1 Q:'DN W ?1 W "DOB: "
D N:$X>6 Q:'DN W ?6 X ^DD(210,7,9.2) S X=$P(Y(210,7,101),U,3) S D0=Y(210,7,80) S Y=X D DT
D N:$X>36 Q:'DN W ?36 W "AGE: "
D N:$X>41 Q:'DN W ?41 X ^DD(210,7.5,9.6) S X=$S(Y(210,7.5,2):Y(210,7.5,18),Y(210,7.5,19):X) W $E(X,1,8) K Y(210,7.5)
D N:$X>55 Q:'DN W ?55 W "SEX: "
D N:$X>60 Q:'DN W ?60 X ^DD(210,8,9.3) S X=$P($P(Y(210,8,102),$C(59)_$P(Y(210,8,101),U,2)_":",2),$C(59),1) S D0=Y(210,8,80) W $E(X,1,8) K Y(210,8)
D N:$X>0 Q:'DN W ?0 W "----------------------------------------"
D N:$X>40 Q:'DN W ?40 W "----------------------------------------"
D N:$X>27 Q:'DN W ?27 W "CURRENT FTEE INFORMATION"
D N:$X>27 Q:'DN W ?27 W "------------------------"
W ?53 D EN1^NURASPL K DIP K:DN Y
D N:$X>14 Q:'DN W ?14 W "GRADE/STEP:"
S X=$G(^NURSF(210,D0,7)) D N:$X>26 Q:'DN W ?26 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^NURSF(211.1,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,10)
D N:$X>7 Q:'DN W ?7 W "UNIFORM ALLOWANCE:"
S X=$G(^NURSF(210,D0,13)) D N:$X>26 Q:'DN W ?26 S Y=$P(X,U,3) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
W ?31 K NURSX S $P(NURSX,"-",80)="" W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "ADDRESS/TELEPHONE"
D N:$X>27 Q:'DN W ?27 W $E(NURSX,1,17) K DIP K:DN Y
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "HOME ADDRESS INFORMATION"
D N:$X>0 Q:'DN W ?0 W "------------------------"
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "STREET: "
D N:$X>14 Q:'DN W ?14 X DXS(1,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>14 Q:'DN W ?14 X DXS(2,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>14 Q:'DN W ?14 X DXS(3,9.2) S X=$P(DIP(101),U,3) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>8 Q:'DN W ?8 W "CITY: "
D N:$X>14 Q:'DN W ?14 X DXS(4,9.2) S X=$P(DIP(101),U,4) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>7 Q:'DN W ?7 W "STATE: "
D N:$X>14 Q:'DN W ?14 X ^DD(210,12,9.2) S Y(210,12,101)=$S($D(^VA(200,D0,.11)):^(.11),1:"") S X=$S('$D(^DIC(5,+$P(Y(210,12,101),U,5),0)):"",1:$P(^(0),U,1)) S D0=Y(210,12,80) W $E(X,1,8) K Y(210,12)
D N:$X>47 Q:'DN W ?47 W "ZIP"
D N:$X>52 Q:'DN W ?52 X DXS(5,9.2) S X=$P(DIP(101),U,6) S D0=I(0,0) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "MAILING ADDRESS INFORMATION"
D N:$X>0 Q:'DN W ?0 W "---------------------------"
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "STREET: "
S X=$G(^NURSF(210,D0,15)) D N:$X>14 Q:'DN W ?14,$E($P(X,U,1),1,50)
D N:$X>14 Q:'DN W ?14,$E($P(X,U,2),1,50)
D N:$X>14 Q:'DN W ?14,$E($P(X,U,3),1,35)
D N:$X>8 Q:'DN W ?8 W "CITY: "
D N:$X>14 Q:'DN W ?14,$E($P(X,U,4),1,30)
D N:$X>7 Q:'DN W ?7 W "STATE: "
D N:$X>14 Q:'DN W ?14 S Y=$P(X,U,5) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>47 Q:'DN W ?47 W "ZIP: "
D N:$X>52 Q:'DN W ?52,$E($P(X,U,6),1,10)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "TELEPHONE NUMBER INFORMATION"
D N:$X>0 Q:'DN W ?0 W "----------------------------"
S I(1)=2,J(1)=210.01 F D1=0:0 Q:$O(^NURSF(210,D0,2,D1))'>0 X:$D(DSC(210.01)) DSC(210.01) S D1=$O(^(D1)) Q:D1'>0 D:$X>30 T Q:'DN D A1
G A1R
A1 ;
D T Q:'DN D N D N:$X>6 Q:'DN W ?6 W "NUMBER: "
S X=$G(^NURSF(210,D0,2,D1,0)) D N:$X>14 Q:'DN W ?14,$E($P(X,U,1),1,30)
D N:$X>7 Q:'DN W ?7 W "OWNER: "
D N:$X>14 Q:'DN W ?14 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
D N:$X>1 Q:'DN W ?1 W "OTHER OWNER: "
D N:$X>14 Q:'DN W ?14,$E($P(X,U,3),1,30)
Q
A1R ;
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "EMERGENCY CONTACT INFORMATION"
D N:$X>0 Q:'DN W ?0 W "-----------------------------"
S I(1)=3,J(1)=210.02 F D1=0:0 Q:$O(^NURSF(210,D0,3,D1))'>0 X:$D(DSC(210.02)) DSC(210.02) S D1=$O(^(D1)) Q:D1'>0 D:$X>31 T Q:'DN D B1
G B1R
B1 ;
D T Q:'DN D N D N:$X>8 Q:'DN W ?8 W "NAME: "
S X=$G(^NURSF(210,D0,3,D1,0)) D N:$X>14 Q:'DN W ?14,$E($P(X,U,1),1,30)
D N:$X>0 Q:'DN W ?0 W "RELATIONSHIP: "
D N:$X>14 Q:'DN W ?14,$E($P(X,U,2),1,30)
D N:$X>6 Q:'DN W ?6 W "STREET: "
D N:$X>14 Q:'DN W ?14,$E($P(X,U,3),1,50)
D N:$X>8 Q:'DN W ?8 W "CITY: "
D N:$X>14 Q:'DN W ?14,$E($P(X,U,5),1,30)
D N:$X>7 Q:'DN W ?7 W "STATE: "
D N:$X>14 Q:'DN W ?14 S Y=$P(X,U,6) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>47 Q:'DN W ?47 W "ZIP: "
D N:$X>52 Q:'DN W ?52,$E($P(X,U,7),1,10)
D N:$X>0 Q:'DN W ?0 W "PHONE NUMBER: "
S X=$G(^NURSF(210,D0,3,D1,1)) D N:$X>14 Q:'DN W ?14,$E($P(X,U,1),1,30)
Q
B1R ;
D N:$X>0 Q:'DN W ?0 W "----------------------------------------"
D N:$X>40 Q:'DN W ?40 W "----------------------------------------"
D N:$X>27 Q:'DN W ?27 W "VA EMPLOYMENT INFORMATION"
D N:$X>27 Q:'DN W ?27 W "-------------------------"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "STATION ENTRY ON DUTY DATE: "
S X=$G(^NURSF(210,D0,0)) D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,6) D DT
D N:$X>2 Q:'DN W ?2 W "SERVICE COMPUTATION DATE: "
D N:$X>28 Q:'DN W ?28 S X=$$COMPDAT^NURSUT4(D0) S Y=X D DT
D N:$X>10 Q:'DN W ?10 W "VA STARTING DATE:"
S X=$G(^NURSF(210,D0,0)) D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,5) D DT
D N:$X>8 Q:'DN W ?8 W "VETERAN PREFERENCE:"
D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,8) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "END OF PROBATIONARY PERIOD:"
S X=$G(^NURSF(210,D0,13)) D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,2) D DT
S I(1)=9,J(1)=210.17 F D1=0:0 Q:$O(^NURSF(210,D0,9,D1))'>0 X:$D(DSC(210.17)) DSC(210.17) S D1=$O(^(D1)) Q:D1'>0 D:$X>48 T Q:'DN D C1
G C1R
C1 ;
D T Q:'DN D N D N:$X>9 Q:'DN W ?9 W "DATE OF PROMOTION: "
S X=$G(^NURSF(210,D0,9,D1,0)) D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,1) D DT
D N:$X>22 Q:'DN W ?22 W "TYPE: "
D N:$X>28 Q:'DN W ?28 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
Q
C1R ;
W ?65 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "EVALUATIONS/BOARD REVIEWS"
D N:$X>27 Q:'DN W ?27 W "-------------------------"
S I(1)=14,J(1)=210.18 F D1=0:0 Q:$O(^NURSF(210,D0,14,D1))'>0 X:$D(DSC(210.18)) DSC(210.18) S D1=$O(^(D1)) Q:D1'>0 D:$X>54 T Q:'DN D D1
G D1R^NURSPA1
D1 ;
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "DATE PROFICIENCY/NARRATIVE IS DUE: "
S X=$G(^NURSF(210,D0,14,D1,0)) D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,1) D DT
D N:$X>16 Q:'DN W ?16 W "NAME OF EVALUATOR: "
G ^NURSPA1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HNURSPA 7459 printed Dec 13, 2024@02:22:17 Page 2
NURSPA ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 06/28/03 ; (FILE 210, 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
MERGE DXS=^DIPT(574,"DXS")
+3 SET I(0)="^NURSF(210,"
SET J(0)=210
+4 SET DIWF="W"
+5 DO T
if 'DN
QUIT
DO N
DO N
if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "INDIVIDUAL STAFF REPORT"
+6 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-----------------------"
+7 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "NAME: "
+8 SET X=$GET(^NURSF(210,D0,0))
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^VA(200,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,35)
+9 if $X>36
DO N
if 'DN
QUIT
WRITE ?36
WRITE "SSN: "
+10 if $X>41
DO N
if 'DN
QUIT
WRITE ?41
if $DATA(^VA(200,$PIECE(^NURSF(210,D0,0),"^"),1))
SET NSSN=$PIECE(^(1),"^",9)
SET X=$EXTRACT(NSSN,1,3)_"-"_$EXTRACT(NSSN,4,5)_"-"_$EXTRACT(NSSN,6,9)
KILL NSSN
WRITE $EXTRACT(X,1,11)
KILL Y(210,1)
+11 if $X>54
DO N
if 'DN
QUIT
WRITE ?54
WRITE "DATE: "
+12 if $X>60
DO N
if 'DN
QUIT
WRITE ?60
SET X=DT
SET Y=X
KILL DIP
if DN
KILL Y
SET Y=X
DO DT
+13 if $X>1
DO N
if 'DN
QUIT
WRITE ?1
WRITE "DOB: "
+14 if $X>6
DO N
if 'DN
QUIT
WRITE ?6
XECUTE ^DD(210,7,9.2)
SET X=$PIECE(Y(210,7,101),U,3)
SET D0=Y(210,7,80)
SET Y=X
DO DT
+15 if $X>36
DO N
if 'DN
QUIT
WRITE ?36
WRITE "AGE: "
+16 if $X>41
DO N
if 'DN
QUIT
WRITE ?41
XECUTE ^DD(210,7.5,9.6)
SET X=$SELECT(Y(210,7.5,2):Y(210,7.5,18),Y(210,7.5,19):X)
WRITE $EXTRACT(X,1,8)
KILL Y(210,7.5)
+17 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
WRITE "SEX: "
+18 if $X>60
DO N
if 'DN
QUIT
WRITE ?60
XECUTE ^DD(210,8,9.3)
SET X=$PIECE($PIECE(Y(210,8,102),$CHAR(59)_$PIECE(Y(210,8,101),U,2)_":",2),$CHAR(59),1)
SET D0=Y(210,8,80)
WRITE $EXTRACT(X,1,8)
KILL Y(210,8)
+19 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "----------------------------------------"
+20 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE "----------------------------------------"
+21 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "CURRENT FTEE INFORMATION"
+22 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "------------------------"
+23 WRITE ?53
DO EN1^NURASPL
KILL DIP
if DN
KILL Y
+24 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
WRITE "GRADE/STEP:"
+25 SET X=$GET(^NURSF(210,D0,7))
if $X>26
DO N
if 'DN
QUIT
WRITE ?26
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(211.1,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,10)
+26 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "UNIFORM ALLOWANCE:"
+27 SET X=$GET(^NURSF(210,D0,13))
if $X>26
DO N
if 'DN
QUIT
WRITE ?26
SET Y=$PIECE(X,U,3)
if Y]""
WRITE $SELECT($DATA(DXS(6,Y)):DXS(6,Y),1:Y)
+28 WRITE ?31
KILL NURSX
SET $PIECE(NURSX,"-",80)=""
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+29 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "ADDRESS/TELEPHONE"
+30 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE $EXTRACT(NURSX,1,17)
KILL DIP
if DN
KILL Y
+31 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "HOME ADDRESS INFORMATION"
+32 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "------------------------"
+33 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "STREET: "
+34 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
XECUTE DXS(1,9.2)
SET X=$PIECE(DIP(101),U,1)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+35 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
XECUTE DXS(2,9.2)
SET X=$PIECE(DIP(101),U,2)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+36 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
XECUTE DXS(3,9.2)
SET X=$PIECE(DIP(101),U,3)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+37 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "CITY: "
+38 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
XECUTE DXS(4,9.2)
SET X=$PIECE(DIP(101),U,4)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+39 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "STATE: "
+40 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
XECUTE ^DD(210,12,9.2)
SET Y(210,12,101)=$SELECT($DATA(^VA(200,D0,.11)):^(.11),1:"")
SET X=$SELECT('$DATA(^DIC(5,+$PIECE(Y(210,12,101),U,5),0)):"",1:$PIECE(^(0),U,1))
SET D0=Y(210,12,80)
WRITE $EXTRACT(X,1,8)
KILL Y(210,12)
+41 if $X>47
DO N
if 'DN
QUIT
WRITE ?47
WRITE "ZIP"
+42 if $X>52
DO N
if 'DN
QUIT
WRITE ?52
XECUTE DXS(5,9.2)
SET X=$PIECE(DIP(101),U,6)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+43 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "MAILING ADDRESS INFORMATION"
+44 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "---------------------------"
+45 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "STREET: "
+46 SET X=$GET(^NURSF(210,D0,15))
if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,1),1,50)
+47 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,2),1,50)
+48 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,3),1,35)
+49 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "CITY: "
+50 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,4),1,30)
+51 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "STATE: "
+52 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
SET Y=$PIECE(X,U,5)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+53 if $X>47
DO N
if 'DN
QUIT
WRITE ?47
WRITE "ZIP: "
+54 if $X>52
DO N
if 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,6),1,10)
+55 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "TELEPHONE NUMBER INFORMATION"
+56 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "----------------------------"
+57 SET I(1)=2
SET J(1)=210.01
FOR D1=0:0
if $ORDER(^NURSF(210,D0,2,D1))'>0
QUIT
if $DATA(DSC(210.01))
XECUTE DSC(210.01)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>30
DO T
if 'DN
QUIT
DO A1
+58 GOTO A1R
A1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "NUMBER: "
+2 SET X=$GET(^NURSF(210,D0,2,D1,0))
if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,1),1,30)
+3 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "OWNER: "
+4 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
SET Y=$PIECE(X,U,2)
if Y]""
WRITE $SELECT($DATA(DXS(7,Y)):DXS(7,Y),1:Y)
+5 if $X>1
DO N
if 'DN
QUIT
WRITE ?1
WRITE "OTHER OWNER: "
+6 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,3),1,30)
+7 QUIT
A1R ;
+1 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "EMERGENCY CONTACT INFORMATION"
+2 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "-----------------------------"
+3 SET I(1)=3
SET J(1)=210.02
FOR D1=0:0
if $ORDER(^NURSF(210,D0,3,D1))'>0
QUIT
if $DATA(DSC(210.02))
XECUTE DSC(210.02)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>31
DO T
if 'DN
QUIT
DO B1
+4 GOTO B1R
B1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "NAME: "
+2 SET X=$GET(^NURSF(210,D0,3,D1,0))
if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,1),1,30)
+3 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "RELATIONSHIP: "
+4 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,2),1,30)
+5 if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "STREET: "
+6 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,3),1,50)
+7 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "CITY: "
+8 if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,5),1,30)
+9 if $X>7
DO N
if 'DN
QUIT
WRITE ?7
WRITE "STATE: "
+10 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
SET Y=$PIECE(X,U,6)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+11 if $X>47
DO N
if 'DN
QUIT
WRITE ?47
WRITE "ZIP: "
+12 if $X>52
DO N
if 'DN
QUIT
WRITE ?52,$EXTRACT($PIECE(X,U,7),1,10)
+13 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PHONE NUMBER: "
+14 SET X=$GET(^NURSF(210,D0,3,D1,1))
if $X>14
DO N
if 'DN
QUIT
WRITE ?14,$EXTRACT($PIECE(X,U,1),1,30)
+15 QUIT
B1R ;
+1 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "----------------------------------------"
+2 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE "----------------------------------------"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "VA EMPLOYMENT INFORMATION"
+4 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-------------------------"
+5 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "STATION ENTRY ON DUTY DATE: "
+6 SET X=$GET(^NURSF(210,D0,0))
if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,6)
DO DT
+7 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "SERVICE COMPUTATION DATE: "
+8 if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET X=$$COMPDAT^NURSUT4(D0)
SET Y=X
DO DT
+9 if $X>10
DO N
if 'DN
QUIT
WRITE ?10
WRITE "VA STARTING DATE:"
+10 SET X=$GET(^NURSF(210,D0,0))
if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,5)
DO DT
+11 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "VETERAN PREFERENCE:"
+12 if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,8)
if Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+13 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "END OF PROBATIONARY PERIOD:"
+14 SET X=$GET(^NURSF(210,D0,13))
if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,2)
DO DT
+15 SET I(1)=9
SET J(1)=210.17
FOR D1=0:0
if $ORDER(^NURSF(210,D0,9,D1))'>0
QUIT
if $DATA(DSC(210.17))
XECUTE DSC(210.17)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>48
DO T
if 'DN
QUIT
DO C1
+16 GOTO C1R
C1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "DATE OF PROMOTION: "
+2 SET X=$GET(^NURSF(210,D0,9,D1,0))
if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,1)
DO DT
+3 if $X>22
DO N
if 'DN
QUIT
WRITE ?22
WRITE "TYPE: "
+4 if $X>28
DO N
if 'DN
QUIT
WRITE ?28
SET Y=$PIECE(X,U,2)
if Y]""
WRITE $SELECT($DATA(DXS(9,Y)):DXS(9,Y),1:Y)
+5 QUIT
C1R ;
+1 WRITE ?65
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "EVALUATIONS/BOARD REVIEWS"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-------------------------"
+4 SET I(1)=14
SET J(1)=210.18
FOR D1=0:0
if $ORDER(^NURSF(210,D0,14,D1))'>0
QUIT
if $DATA(DSC(210.18))
XECUTE DSC(210.18)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>54
DO T
if 'DN
QUIT
DO D1
+5 GOTO D1R^NURSPA1
D1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DATE PROFICIENCY/NARRATIVE IS DUE: "
+2 SET X=$GET(^NURSF(210,D0,14,D1,0))
if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,1)
DO DT
+3 if $X>16
DO N
if 'DN
QUIT
WRITE ?16
WRITE "NAME OF EVALUATOR: "
+4 GOTO ^NURSPA1