source: WorldVistAEHR/trunk/r/NURSING_SERVICE-NUR/NURSPA2.m@ 623

Last change on this file since 623 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 4.2 KB
Line 
1NURSPA2 ; GENERATED FROM 'NURS-P-STF' PRINT TEMPLATE (#574) ; 04/03/98 ; (continued)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 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
15 G E1R
16E1 ;
17 D T Q:'DN D N D N:$X>18 Q:'DN W ?18 W "STATE: "
18 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)
19 D N:$X>9 Q:'DN W ?9 W "LICENSE NUMBER: "
20 D N:$X>25 Q:'DN W ?25,$E($P(X,U,2),1,40)
21 D N:$X>8 Q:'DN W ?8 W "EXPIRATION DATE: "
22 D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,3) D DT
23 D N:$X>12 Q:'DN W ?12 W "VERIFIED BY: "
24 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)
25 Q
26E1R ;
27 W ?62 W !,NURSX K DIP K:DN Y
28 D N:$X>27 Q:'DN W ?27 W "PROFESSIONAL EDUCATION"
29 D N:$X>27 Q:'DN W ?27 W "----------------------"
30 D T Q:'DN D N D N:$X>1 Q:'DN W ?1 W "HIGHEST NURSING DEGREE: "
31 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)
32 D N:$X>0 Q:'DN W ?0 W "HIGHEST ACADEMIC DEGREE: "
33 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)
34 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
35 G F1R
36F1 ;
37 D T Q:'DN D N D N:$X>17 Q:'DN W ?17 W "DEGREE: "
38 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)
39 D N:$X>18 Q:'DN W ?18 W "MAJOR: "
40 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)
41 D N:$X>5 Q:'DN W ?5 W "COLLEGE/UNIVERSITY: "
42 D N:$X>25 Q:'DN W ?25,$E($P(X,U,3),1,50)
43 D N:$X>9 Q:'DN W ?9 W "YEAR COMPLETED: "
44 D N:$X>25 Q:'DN W ?25 S Y=$P(X,U,4) D DT
45 Q
46F1R ;
47 D N:$X>16 Q:'DN W ?16 W "FACULTY: "
48 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)
49 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
50 G G1R
51G1 ;
52 D N:$X>4 Q:'DN W ?4 W "TYPE OF APPOINTMENT: "
53 S X=$G(^NURSF(210,D0,1,D1,0)) D N:$X>25 Q:'DN W ?25,$E($P(X,U,1),1,45)
54 D N:$X>12 Q:'DN W ?12 W "INSTITUTION: "
55 D N:$X>25 Q:'DN W ?25,$E($P(X,U,2),1,45)
56 Q
57G1R ;
58 D T Q:'DN W ?2 W !,NURSX K DIP K:DN Y
59 D N:$X>27 Q:'DN W ?27 W "NATIONAL CERTIFICATION"
60 D N:$X>27 Q:'DN W ?27 W "----------------------"
61 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
62 G H1R
63H1 ;
64 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "NAME OF CERTIFICATION: "
65 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)
66 D N:$X>4 Q:'DN W ?4 W "CERTIFYING AGENCY: "
67 D N:$X>23 Q:'DN W ?23
68 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)
69 D N:$X>0 Q:'DN W ?0 W "DATE OF CERTIFICATION: "
70 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
71 D N:$X>3 Q:'DN W ?3 W "DATE OF EXPIRATION: "
72 D N:$X>23 Q:'DN W ?23 S Y=$P(X,U,4) D DT
73 Q
74H1R ;
75 W ?36 W !,NURSX K DIP K:DN Y
76 D N:$X>27 Q:'DN W ?27 W "PROFESSIONAL EXPERIENCE"
77 D N:$X>27 Q:'DN W ?27 W "-----------------------"
78 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
79 G I1R^NURSPA3
80I1 ;
81 D T Q:'DN D N D N:$X>24 Q:'DN W ?24 W "LOCATION: "
82 G ^NURSPA3
Note: See TracBrowser for help on using the repository browser.