NURSPA2 ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 04/03/98 ; (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)
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),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),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),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),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),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),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^NURSPA3
I1 ;
D T Q:'DN D N D N:$X>24 Q:'DN W ?24 W "LOCATION: "
G ^NURSPA3
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HNURSPA2 4396 printed Dec 13, 2024@02:22:19 Page 2
NURSPA2 ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 04/03/98 ; (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 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
+3 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),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),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),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),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),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),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^NURSPA3
I1 ;
+1 DO T
if 'DN
QUIT
DO N
if $X>24
DO N
if 'DN
QUIT
WRITE ?24
WRITE "LOCATION: "
+2 GOTO ^NURSPA3