NURSPA1 ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 06/28/03 ; (continued)
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)
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,35)
D N:$X>10 Q:'DN W ?10 W "DATE WORK COPY SENT OUT: "
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,4) D DT
D N:$X>4 Q:'DN W ?4 W "DATE PROF RETURNED FOR TYPING: "
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,5) D DT
D N:$X>2 Q:'DN W ?2 W "TENTATIVE DATE FOR BOARD ACTION: "
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,6) D DT
D N:$X>6 Q:'DN W ?6 W "ACTUAL DATE OF BOARD ACTION: "
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,3) D DT
D N:$X>6 Q:'DN W ?6 W "DATE OF NEXT BOARD ACTION: "
D N:$X>35 Q:'DN W ?35 S Y=$P(X,U,7) D DT
Q
D1R ;
W ?48 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "PROFESSIONAL LICENSE INFORMATION"
D N:$X>27 Q:'DN W ?27 W "-------------------------------"
S I(1)=4,J(1)=210.03 F D1=0:0 Q:$O(^NURSF(210,D0,4,D1))'>0 X:$D(DSC(210.03)) DSC(210.03) S D1=$O(^(D1)) Q:D1'>0 D:$X>60 T Q:'DN D E1
G E1R
E1 ;
D T Q:'DN D N D N:$X>18 Q:'DN W ?18 W "STATE: "
S X=$G(^NURSF(210,D0,4,D1,0)) D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>9 Q:'DN W ?9 W "LICENSE NUMBER: "
D N:$X>25 Q:'DN W ?25,$E($P(X,U,2),1,40)
D N:$X>8 Q:'DN W ?8 W "EXPIRATION DATE: "
D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,3) D DT
D N:$X>12 Q:'DN W ?12 W "VERIFIED BY: "
D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,5) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,35)
Q
E1R ;
W ?62 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "PROFESSIONAL EDUCATION"
D N:$X>27 Q:'DN W ?27 W "----------------------"
D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "HIGHEST NURSING DEGREE: "
S X=$G(^NURSF(210,D0,17)) D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^NURSF(212.1,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>0 Q:'DN W ?0 W "HIGHEST ACADEMIC DEGREE: "
D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^NURSF(212.1,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
S I(1)=6,J(1)=210.04 F D1=0:0 Q:$O(^NURSF(210,D0,6,D1))'>0 X:$D(DSC(210.04)) DSC(210.04) S D1=$O(^(D1)) Q:D1'>0 D:$X>57 T Q:'DN D F1
G F1R
F1 ;
D T Q:'DN D N D N:$X>17 Q:'DN W ?17 W "DEGREE: "
S X=$G(^NURSF(210,D0,6,D1,0)) D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^NURSF(212.1,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>18 Q:'DN W ?18 W "MAJOR: "
D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^NURSF(212.3,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,50)
D N:$X>5 Q:'DN W ?5 W "COLLEGE/UNIVERSITY: "
D N:$X>25 Q:'DN W ?25,$E($P(X,U,3),1,50)
D N:$X>9 Q:'DN W ?9 W "YEAR COMPLETED: "
D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,4) D DT
Q
F1R ;
D N:$X>16 Q:'DN W ?16 W "FACULTY: "
S X=$G(^NURSF(210,D0,15)) D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,9) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
S I(1)=1,J(1)=210.08 F D1=0:0 Q:$O(^NURSF(210,D0,1,D1))'>0 X:$D(DSC(210.08)) DSC(210.08) S D1=$O(^(D1)) Q:D1'>0 D:$X>30 T Q:'DN D G1
G G1R
G1 ;
D N:$X>4 Q:'DN W ?4 W "TYPE OF APPOINTMENT: "
S X=$G(^NURSF(210,D0,1,D1,0)) D N:$X>25 Q:'DN W ?25,$E($P(X,U,1),1,45)
D N:$X>12 Q:'DN W ?12 W "INSTITUTION: "
D N:$X>25 Q:'DN W ?25,$E($P(X,U,2),1,45)
Q
G1R ;
D T Q:'DN W ?2 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "NATIONAL CERTIFICATION"
D N:$X>27 Q:'DN W ?27 W "----------------------"
S I(1)=12,J(1)=210.024 F D1=0:0 Q:$O(^NURSF(210,D0,12,D1))'>0 X:$D(DSC(210.024)) DSC(210.024) S D1=$O(^(D1)) Q:D1'>0 D:$X>51 T Q:'DN D H1
G H1R
H1 ;
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "NAME OF CERTIFICATION: "
D N:$X>23 Q:'DN W ?23 X ^DD(210.024,.05,9.3) S X=$P(Y(210.024,.05,101),U,2) S D0=Y(210.024,.05,80) S D1=Y(210.024,.05,81) W $E(X,1,50) K Y(210.024,.05)
D N:$X>4 Q:'DN W ?4 W "CERTIFYING AGENCY: "
D N:$X>23 Q:'DN W ?23
X ^DD(210.024,1,9.2) S D0=$P(Y(210.024,1,1),U,1) S:'$D(^NURSF(212.2,+D0,0)) D0=-1 S Y(210.024,1,101)=$S($D(^NURSF(212.2,D0,0)):^(0),1:"") S X=$P(Y(210.024,1,101),U,3) S D0=Y(210.024,1,80) S D1=Y(210.024,1,81) W $E(X,1,50) K Y(210.024,1)
D N:$X>0 Q:'DN W ?0 W "DATE OF CERTIFICATION: "
S X=$G(^NURSF(210,D0,12,D1,0)) D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,3) D DT
D N:$X>3 Q:'DN W ?3 W "DATE OF EXPIRATION: "
D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,4) D DT
Q
H1R ;
W ?36 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "PROFESSIONAL EXPERIENCE"
D N:$X>27 Q:'DN W ?27 W "-----------------------"
S I(1)=20,J(1)=210.13 F D1=0:0 Q:$O(^NURSF(210,D0,20,D1))'>0 X:$D(DSC(210.13)) DSC(210.13) S D1=$O(^(D1)) Q:D1'>0 D:$X>52 T Q:'DN D I1
G I1R
I1 ;
D T Q:'DN D N D N:$X>24 Q:'DN W ?24 W "LOCATION: "
S X=$G(^NURSF(210,D0,20,D1,0)) D N:$X>34 Q:'DN W ?34,$E($P(X,U,4),1,30)
D N:$X>14 Q:'DN W ?14 W "TYPE OF EXPERIENCE: "
D N:$X>34 Q:'DN W ?34,$E($P(X,U,1),1,30)
D N:$X>18 Q:'DN W ?18 W "TITLE/POSITION: "
D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^NURSF(211.3,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,10)
D N:$X>0 Q:'DN W ?0 W "DATE PREVIOUS ASSIGNMENT STARTED: "
D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,5) D DT
D N:$X>2 Q:'DN W ?2 W "DATE PREVIOUS ASSIGNMENT ENDED: "
D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,6) D DT
Q
I1R ;
W ?47 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "MILITARY EXPERIENCE"
D N:$X>27 Q:'DN W ?27 W "-------------------"
W ?48 D EN5^NURSAUTL K DIP K:DN Y
W ?59 W !,NURSX K DIP K:DN Y
D N:$X>27 Q:'DN W ?27 W "PRIVILEGES"
D N:$X>27 Q:'DN W ?27 W "----------"
S I(1)=16,J(1)=210.19 F D1=0:0 Q:$O(^NURSF(210,D0,16,D1))'>0 X:$D(DSC(210.19)) DSC(210.19) S D1=$O(^(D1)) Q:D1'>0 D:$X>39 T Q:'DN D J1
G J1R
J1 ;
D T Q:'DN D N D N:$X>3 Q:'DN W ?3 W "PRIVILEGE: "
S X=$G(^NURSF(210,D0,16,D1,0)) D N:$X>14 Q:'DN W ?14 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^NURSF(212.6,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,50)
D N:$X>0 Q:'DN W ?0 W "DATE GRANTED: "
D N:$X>14 Q:'DN W ?14 S Y=$P(X,U,2) D DT
D N:$X>4 Q:'DN W ?4 W "COMMENTS: "
S I(2)=1,J(2)=210.192 F D2=0:0 Q:$O(^NURSF(210,D0,16,D1,1,D2))'>0 S D2=$O(^(D2)) D:$X>16 T Q:'DN D A2
G A2R
A2 ;
S X=$G(^NURSF(210,D0,16,D1,1,D2,0)) S DIWL=15,DIWR=78 D ^DIWP
Q
A2R ;
D 0^DIWW
D ^DIWW
Q
J1R ;
K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HNURSPA1 6767 printed Dec 13, 2024@02:22:18 Page 2
NURSPA1 ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 06/28/03 ; (continued)
+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 $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^VA(200,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,35)
+3 if $X>10
DO N
if 'DN
QUIT
WRITE ?10
WRITE "DATE WORK COPY SENT OUT: "
+4 if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,4)
DO DT
+5 if $X>4
DO N
if 'DN
QUIT
WRITE ?4
WRITE "DATE PROF RETURNED FOR TYPING: "
+6 if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,5)
DO DT
+7 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "TENTATIVE DATE FOR BOARD ACTION: "
+8 if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,6)
DO DT
+9 if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "ACTUAL DATE OF BOARD ACTION: "
+10 if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,3)
DO DT
+11 if $X>6
DO N
if 'DN
QUIT
WRITE ?6
WRITE "DATE OF NEXT BOARD ACTION: "
+12 if $X>35
DO N
if 'DN
QUIT
WRITE ?35
SET Y=$PIECE(X,U,7)
DO DT
+13 QUIT
D1R ;
+1 WRITE ?48
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "PROFESSIONAL LICENSE INFORMATION"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-------------------------------"
+4 SET I(1)=4
SET J(1)=210.03
FOR D1=0:0
if $ORDER(^NURSF(210,D0,4,D1))'>0
QUIT
if $DATA(DSC(210.03))
XECUTE DSC(210.03)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>60
DO T
if 'DN
QUIT
DO E1
+5 GOTO E1R
E1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>18
DO N
if 'DN
QUIT
WRITE ?18
WRITE "STATE: "
+2 SET X=$GET(^NURSF(210,D0,4,D1,0))
if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+3 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "LICENSE NUMBER: "
+4 if $X>25
DO N
if 'DN
QUIT
WRITE ?25,$EXTRACT($PIECE(X,U,2),1,40)
+5 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
WRITE "EXPIRATION DATE: "
+6 if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,3)
DO DT
+7 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "VERIFIED BY: "
+8 if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,5)
SET Y=$SELECT(Y="":Y,$DATA(^VA(200,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,35)
+9 QUIT
E1R ;
+1 WRITE ?62
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "PROFESSIONAL EDUCATION"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "----------------------"
+4 DO T
if 'DN
QUIT
DO N
if $X>1
DO N
if 'DN
QUIT
WRITE ?1
WRITE "HIGHEST NURSING DEGREE: "
+5 SET X=$GET(^NURSF(210,D0,17))
if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(212.1,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+6 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "HIGHEST ACADEMIC DEGREE: "
+7 if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(212.1,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+8 SET I(1)=6
SET J(1)=210.04
FOR D1=0:0
if $ORDER(^NURSF(210,D0,6,D1))'>0
QUIT
if $DATA(DSC(210.04))
XECUTE DSC(210.04)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>57
DO T
if 'DN
QUIT
DO F1
+9 GOTO F1R
F1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>17
DO N
if 'DN
QUIT
WRITE ?17
WRITE "DEGREE: "
+2 SET X=$GET(^NURSF(210,D0,6,D1,0))
if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(212.1,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+3 if $X>18
DO N
if 'DN
QUIT
WRITE ?18
WRITE "MAJOR: "
+4 if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(212.3,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,50)
+5 if $X>5
DO N
if 'DN
QUIT
WRITE ?5
WRITE "COLLEGE/UNIVERSITY: "
+6 if $X>25
DO N
if 'DN
QUIT
WRITE ?25,$EXTRACT($PIECE(X,U,3),1,50)
+7 if $X>9
DO N
if 'DN
QUIT
WRITE ?9
WRITE "YEAR COMPLETED: "
+8 if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,4)
DO DT
+9 QUIT
F1R ;
+1 if $X>16
DO N
if 'DN
QUIT
WRITE ?16
WRITE "FACULTY: "
+2 SET X=$GET(^NURSF(210,D0,15))
if $X>25
DO N
if 'DN
QUIT
WRITE ?25
SET Y=$PIECE(X,U,9)
if Y]""
WRITE $SELECT($DATA(DXS(10,Y)):DXS(10,Y),1:Y)
+3 SET I(1)=1
SET J(1)=210.08
FOR D1=0:0
if $ORDER(^NURSF(210,D0,1,D1))'>0
QUIT
if $DATA(DSC(210.08))
XECUTE DSC(210.08)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>30
DO T
if 'DN
QUIT
DO G1
+4 GOTO G1R
G1 ;
+1 if $X>4
DO N
if 'DN
QUIT
WRITE ?4
WRITE "TYPE OF APPOINTMENT: "
+2 SET X=$GET(^NURSF(210,D0,1,D1,0))
if $X>25
DO N
if 'DN
QUIT
WRITE ?25,$EXTRACT($PIECE(X,U,1),1,45)
+3 if $X>12
DO N
if 'DN
QUIT
WRITE ?12
WRITE "INSTITUTION: "
+4 if $X>25
DO N
if 'DN
QUIT
WRITE ?25,$EXTRACT($PIECE(X,U,2),1,45)
+5 QUIT
G1R ;
+1 DO T
if 'DN
QUIT
WRITE ?2
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "NATIONAL CERTIFICATION"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "----------------------"
+4 SET I(1)=12
SET J(1)=210.024
FOR D1=0:0
if $ORDER(^NURSF(210,D0,12,D1))'>0
QUIT
if $DATA(DSC(210.024))
XECUTE DSC(210.024)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>51
DO T
if 'DN
QUIT
DO H1
+5 GOTO H1R
H1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "NAME OF CERTIFICATION: "
+2 if $X>23
DO N
if 'DN
QUIT
WRITE ?23
XECUTE ^DD(210.024,.05,9.3)
SET X=$PIECE(Y(210.024,.05,101),U,2)
SET D0=Y(210.024,.05,80)
SET D1=Y(210.024,.05,81)
WRITE $EXTRACT(X,1,50)
KILL Y(210.024,.05)
+3 if $X>4
DO N
if 'DN
QUIT
WRITE ?4
WRITE "CERTIFYING AGENCY: "
+4 if $X>23
DO N
if 'DN
QUIT
WRITE ?23
+5 XECUTE ^DD(210.024,1,9.2)
SET D0=$PIECE(Y(210.024,1,1),U,1)
if '$DATA(^NURSF(212.2,+D0,0))
SET D0=-1
SET Y(210.024,1,101)=$SELECT($DATA(^NURSF(212.2,D0,0)):^(0),1:"")
SET X=$PIECE(Y(210.024,1,101),U,3)
SET D0=Y(210.024,1,80)
SET D1=Y(210.024,1,81)
WRITE $EXTRACT(X,1,50)
KILL Y(210.024,1)
+6 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DATE OF CERTIFICATION: "
+7 SET X=$GET(^NURSF(210,D0,12,D1,0))
if $X>23
DO N
if 'DN
QUIT
WRITE ?23
SET Y=$PIECE(X,U,3)
DO DT
+8 if $X>3
DO N
if 'DN
QUIT
WRITE ?3
WRITE "DATE OF EXPIRATION: "
+9 if $X>23
DO N
if 'DN
QUIT
WRITE ?23
SET Y=$PIECE(X,U,4)
DO DT
+10 QUIT
H1R ;
+1 WRITE ?36
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "PROFESSIONAL EXPERIENCE"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-----------------------"
+4 SET I(1)=20
SET J(1)=210.13
FOR D1=0:0
if $ORDER(^NURSF(210,D0,20,D1))'>0
QUIT
if $DATA(DSC(210.13))
XECUTE DSC(210.13)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>52
DO T
if 'DN
QUIT
DO I1
+5 GOTO I1R
I1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>24
DO N
if 'DN
QUIT
WRITE ?24
WRITE "LOCATION: "
+2 SET X=$GET(^NURSF(210,D0,20,D1,0))
if $X>34
DO N
if 'DN
QUIT
WRITE ?34,$EXTRACT($PIECE(X,U,4),1,30)
+3 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
WRITE "TYPE OF EXPERIENCE: "
+4 if $X>34
DO N
if 'DN
QUIT
WRITE ?34,$EXTRACT($PIECE(X,U,1),1,30)
+5 if $X>18
DO N
if 'DN
QUIT
WRITE ?18
WRITE "TITLE/POSITION: "
+6 if $X>34
DO N
if 'DN
QUIT
WRITE ?34
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(211.3,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,10)
+7 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DATE PREVIOUS ASSIGNMENT STARTED: "
+8 if $X>34
DO N
if 'DN
QUIT
WRITE ?34
SET Y=$PIECE(X,U,5)
DO DT
+9 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "DATE PREVIOUS ASSIGNMENT ENDED: "
+10 if $X>34
DO N
if 'DN
QUIT
WRITE ?34
SET Y=$PIECE(X,U,6)
DO DT
+11 QUIT
I1R ;
+1 WRITE ?47
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+2 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "MILITARY EXPERIENCE"
+3 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "-------------------"
+4 WRITE ?48
DO EN5^NURSAUTL
KILL DIP
if DN
KILL Y
+5 WRITE ?59
WRITE !,NURSX
KILL DIP
if DN
KILL Y
+6 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "PRIVILEGES"
+7 if $X>27
DO N
if 'DN
QUIT
WRITE ?27
WRITE "----------"
+8 SET I(1)=16
SET J(1)=210.19
FOR D1=0:0
if $ORDER(^NURSF(210,D0,16,D1))'>0
QUIT
if $DATA(DSC(210.19))
XECUTE DSC(210.19)
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>39
DO T
if 'DN
QUIT
DO J1
+9 GOTO J1R
J1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>3
DO N
if 'DN
QUIT
WRITE ?3
WRITE "PRIVILEGE: "
+2 SET X=$GET(^NURSF(210,D0,16,D1,0))
if $X>14
DO N
if 'DN
QUIT
WRITE ?14
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^NURSF(212.6,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,50)
+3 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DATE GRANTED: "
+4 if $X>14
DO N
if 'DN
QUIT
WRITE ?14
SET Y=$PIECE(X,U,2)
DO DT
+5 if $X>4
DO N
if 'DN
QUIT
WRITE ?4
WRITE "COMMENTS: "
+6 SET I(2)=1
SET J(2)=210.192
FOR D2=0:0
if $ORDER(^NURSF(210,D0,16,D1,1,D2))'>0
QUIT
SET D2=$ORDER(^(D2))
if $X>16
DO T
if 'DN
QUIT
DO A2
+7 GOTO A2R
A2 ;
+1 SET X=$GET(^NURSF(210,D0,16,D1,1,D2,0))
SET DIWL=15
SET DIWR=78
DO ^DIWP
+2 QUIT
A2R ;
+1 DO 0^DIWW
+2 DO ^DIWW
+3 QUIT
J1R ;
+1 KILL Y
KILL DIWF
+2 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!