1 | NURA6C2 ;HIRMFO/MD,FT-SERVICE POSITION CERTIFICATION REPORT ;8/8/96 13:09
|
---|
2 | ;;4.0;NURSING SERVICE;**13**;Apr 25, 1997
|
---|
3 | Q:'$D(^DIC(213.9,1,"OFF")) Q:$P(^DIC(213.9,1,"OFF"),"^",1)=1
|
---|
4 | W !
|
---|
5 | S (NURQUEUE,NUROUT,NURQUIT)=0
|
---|
6 | D EN1^NURSAUTL G QUIT:NUROUT
|
---|
7 | I NURMDSW S DIC(0)="AEQZ",NURPLSCR=0 D EN5^NURSAGSP G QUIT:$G(NUROUT)
|
---|
8 | I NURMDSW=0,NURPLSW=1 S NURPLSCR=0 D PRD^NURSAGSP K NURPLSCR I $G(NUROUT) G QUIT
|
---|
9 | W ! S NRNS=1 D EN2^NURSAGSP G QUIT:NUROUT
|
---|
10 | D EN4^NURSAGP0 G QUIT:NUROUT
|
---|
11 | W ! S ZTDESC="Service Position Certification Report",ZTRTN="START^NURA6C2" D EN7^NURSUT0 G:POP!($D(ZTSK)) QUIT
|
---|
12 | START ;
|
---|
13 | K ^TMP($J) U IO S (NURPAGE,NCT,NURSW1)=0
|
---|
14 | D SORT G:NUROUT QUIT
|
---|
15 | D PRINT
|
---|
16 | QUIT K ^TMP($J) D CLOSE^NURSUT1,^NURAKILL
|
---|
17 | Q
|
---|
18 | ; DETAIL LINE PRINT ROUTINE
|
---|
19 | PRINT ;
|
---|
20 | S NURFAC="" F S NURFAC=$O(^TMP($J,"L",NURFAC)) Q:NURFAC=""!(NURQUIT) D P Q:NURQUIT
|
---|
21 | Q
|
---|
22 | P S NURPROG="" F S NURPROG=$O(^TMP($J,"L",NURFAC,NURPROG)) Q:NURPROG=""!(NURQUIT) D:NURSW1 HEADER Q:NURQUIT D P0 Q:NURQUIT
|
---|
23 | Q
|
---|
24 | P0 S NPRI="" F S NPRI=$O(^TMP($J,"L",NURFAC,NURPROG,NPRI)) Q:NPRI=""!(NURQUIT) D P1 Q:NURQUIT
|
---|
25 | Q
|
---|
26 | P1 S NSPN="" F S NSPN=$O(^TMP($J,"L",NURFAC,NURPROG,NPRI,NSPN)) Q:NSPN=""!(NURQUIT) D BRK1:NURSW1,P2 Q:NURQUIT
|
---|
27 | Q
|
---|
28 | P2 S NCRT="" F S NCRT=$O(^TMP($J,"L",NURFAC,NURPROG,NPRI,NSPN,NCRT)) Q:NCRT=""!(NURQUIT) S NURSORT=$G(^TMP($J,"L",NURFAC,NURPROG,NPRI,NSPN,NCRT)) I NURSORT D P4 Q:NURQUIT
|
---|
29 | Q
|
---|
30 | P4 S NCDT="" F S NCDT=$O(^TMP($J,"L1",NURSORT,NCDT)) Q:NCDT=""!(NURQUIT) D P5 W ! Q:NURQUIT
|
---|
31 | Q
|
---|
32 | P5 S N1="" F S N1=$O(^TMP($J,"L1",NURSORT,NCDT,N1)) Q:N1=""!(NURQUIT) D:NCRT'=" BLANK" PRINT1 Q:NURQUIT
|
---|
33 | Q
|
---|
34 | PRINT1 I ($Y>(IOSL-10)!'NURSW1) D HEADER,BRK1 Q:NURQUIT
|
---|
35 | S NURSW1=1 S NURCTA="" S NSUB=$O(^NURSF(212.2,"C",$E(NCRT,1,30),"")),NURCTA=$S('$D(^NURSF(212.2,NSUB,0)):"",1:$P(^(0),"^",4))
|
---|
36 | W:N1'=" BLANK" !,$E(N1,1,20)
|
---|
37 | W ?24,$E(NCRT,1,30)
|
---|
38 | W:NURCTA'=" BLANK" ?60,NURCTA
|
---|
39 | S Y=NCDT D:+Y D^DIQ W:Y'=" BLANK" ?68,Y
|
---|
40 | Q
|
---|
41 | BRK1 Q:NURQUIT W !!?31,"SERVICE POSITION: ",NSPN W !
|
---|
42 | Q
|
---|
43 | HEADER I 'NURQUEUE,$E(IOST)="C",NURSW1 D ENDPG^NURSUT1 S:NUROUT NURQUIT=+NUROUT Q:NURQUIT
|
---|
44 | S NURPAGE=NURPAGE+1 W:$E(IOST)="C"!(NURPAGE>1) @IOF
|
---|
45 | I NURMDSW W ?$$CNTR^NURSUT2(NURFAC),$$FACL^NURSUT2(NURFAC)
|
---|
46 | W !,"CERTIFICATION PROFILE BY SERVICE POSITION" S X="T" D ^%DT D:+Y D^DIQ W ?58,Y,?72,"PAGE: ",NURPAGE
|
---|
47 | W !!?60,"CERT.",?68,"DATE CERT." W !,"NAME",?24,"CERTIFICATION",?60,"AGENCY",?68,"EXPIRES" W !,$$REPEAT^XLFSTR("-",80)
|
---|
48 | I $G(NURPLSW),$L(NURPROG)>1 N Z S Z=$$PROD^NURSUT2(NURPROG) W !,?$$CNTR^NURSUT2(Z),$G(Z),!,?$$CNTR^NURSUT2(Z),$$REPEAT^XLFSTR("-",$L(Z)+1)
|
---|
49 | Q
|
---|
50 | SORT W ! S NRPT=2 D EN2^NURAAGS0
|
---|
51 | D NODATA^NURA9C1
|
---|
52 | Q
|
---|