source: FOIAVistA/trunk/r/NURSING_SERVICE-NUR/NURA6C1.m@ 1203

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

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1NURA6C1 ;HIRMFO/MD,FT-CATEGORY CERTIFICATION REPORT BY SVC. ;7/8/96
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 S (NURQUEUE,NUROUT,NURQUIT)=0
5 D EN1^NURSAUTL G QUIT:NUROUT
6 I NURMDSW S DIC(0)="AEQMZ",NURPLSCR=0 D EN5^NURSAGSP G QUIT:$G(NUROUT)
7 I NURMDSW=0,NURPLSW=1 S NURPLSCR=0 D PRD^NURSAGSP K NURPLSCR I $G(NUROUT) G QUIT
8 S ^TMP("NURSCAT",$J,"R")=""
9 D EN4^NURSAGP0 G QUIT:NUROUT
10 W ! S ZTDESC="Category Certification Report by Service",ZTRTN="START^NURA6C1",ZTSAVE("^TMP(""NURSCAT"",$J,")="" D EN7^NURSUT0 G:POP!($D(ZTSK)) QUIT
11START ;
12 K ^TMP($J) U IO S (NURPAGE,NCT,NURSW1)=0
13 D SORT G:NUROUT QUIT
14 D PRINT
15QUIT K ^TMP($J) D CLOSE^NURSUT1,^NURAKILL
16 Q
17 ; DETAIL LINE PRINT ROUTINE
18PRINT ;
19 S NURFAC="" F S NURFAC=$O(^TMP($J,"L",NURFAC)) Q:NURFAC=""!(NURQUIT) D P0 Q:NURQUIT
20 Q
21P0 S NURPROG="" F S NURPROG=$O(^TMP($J,"L",NURFAC,NURPROG)) Q:NURPROG="" D:NURSW1 HEADER Q:NURQUIT D P1 Q:NURQUIT
22 Q
23P1 S NURCAT="" F S NURCAT=$O(^TMP($J,"L",NURFAC,NURPROG,NURCAT)) Q:NURCAT="" D BRK1:NURSW1,P2 Q:NURQUIT
24 Q
25P2 S NCRT="" F S NCRT=$O(^TMP($J,"L",NURFAC,NURPROG,NURCAT,NCRT)) Q:NCRT="" D P3 W ! Q:NURQUIT
26 Q
27P3 S NCDT="" F S NCDT=$O(^TMP($J,"L",NURFAC,NURPROG,NURCAT,NCRT,NCDT)) Q:NCDT="" S NURSORT=$G(^TMP($J,"L",NURFAC,NURPROG,NURCAT,NCRT,NCDT)) I NURSORT D P4 Q:NURQUIT
28 Q
29P4 S N1="" F S N1=$O(^TMP($J,"L1",NURSORT,N1)) Q:N1="" D:NCRT'=" BLANK" PRINT1 Q:NURQUIT
30 Q
31PRINT1 I ($Y>(IOSL-10)!'NURSW1) D HEADER,BRK1 Q:NURQUIT
32 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))
33 W:N1'=" BLANK" !,$E(N1,1,20)
34 W ?24,$E(NCRT,1,30)
35 W:NURCTA'=" BLANK" ?60,NURCTA
36 S Y=NCDT D:+Y D^DIQ W:Y'=" BLANK" ?68,Y
37 Q
38BRK1 Q:NURQUIT W !!?31,"SERVICE CATEGORY: ",$$CAT^NURSUT2(NURCAT),!
39 Q
40HEADER I 'NURQUEUE,$E(IOST)="C",NURSW1 D ENDPG^NURSUT1 S:NUROUT NURQUIT=+NUROUT Q:NURQUIT
41 S NURPAGE=NURPAGE+1 W:$E(IOST)="C"!(NURPAGE>1) @IOF
42 I NURMDSW W ?$$CNTR^NURSUT2(NURFAC),$$FACL^NURSUT2(NURFAC)
43 W !,"CERTIFICATION PROFILE BY SERVICE CATEGORY" S X="T" D ^%DT D:+Y D^DIQ W ?58,Y,?72,"PAGE: ",NURPAGE
44 W !!?60,"CERT.",?68,"DATE CERT." W !,"NAME",?24,"CERTIFICATION",?60,"AGENCY",?68,"EXPIRES" W !,$$REPEAT^XLFSTR("-",80)
45 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)
46 Q
47SORT W ! S NRPT=2 D EN1^NURAAGS0
48 D NODATA^NURA9C1
49 Q
Note: See TracBrowser for help on using the repository browser.