source: FOIAVistA/trunk/r/NURSING_SERVICE-NUR/NURA7C.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1NURA7C ;HIRMFO/MD,FT-INDIVIDUAL PHONE NUMBER ;8/8/96 13:50
2 ;;4.0;NURSING SERVICE;;Apr 25, 1997
3 Q:'$D(^DIC(213.9,1,"OFF")) Q:$P(^DIC(213.9,1,"OFF"),"^",1)=1
4 W ! S (NURQUEUE,NUROUT,NURQUIT)=0
5 D EN1^NURSAUTL G QUIT:NUROUT
6 S DIC("S")=" S DA=+Y I 'NURSZAP!(NURSZAP'>7)!(NURSZDA=DA)"
7 D EN3^NURSAGP1 G QUIT:NUROUT
8 W ! S ZTDESC="Nursing Individual Phone Number(s)",ZTRTN="START^NURA7C" D EN7^NURSUT0 G:POP!($D(ZTSK)) QUIT
9START ;
10 K ^TMP($J)
11 U IO S (NURPAGE,NURSW1)=0 D HEADER,WRITE
12QUIT K ^TMP($J) D CLOSE^NURSUT1,^NURAKILL
13 Q
14 ; DETAIL LINE PRINT ROUTINE
15WRITE I ($Y>(IOSL-6)) D HEADER Q:NURQUIT
16 S NURSW1=1
17 W:+N2 !,$E($P(^VA(200,N2,0),"^",1),1,20)
18 D EN2^NURSUT0 W ?36,NPSPOS
19 F NS2=0:0 S NS2=$O(^NURSF(210,N1,2,NS2)) Q:NS2'>0 W:$D(^NURSF(210,N1,2,NS2,0)) ?51,$P(^(0),"^",1) S NO=$P(^(0),"^",2) W ?66,$S(NO="S":"SELF",NO="R":"RELATIVE",NO="N":"NEIGHBOR",NO="O":"OTHER",1:"") W !
20 Q
21HEADER I 'NURQUEUE,$E(IOST)="C",NURSW1 D ENDPG^NURSUT1 S:NUROUT NURQUIT=+NUROUT Q:NURQUIT
22 S NURPAGE=NURPAGE+1 W:$E(IOST)="C"!(NURPAGE>1) @IOF
23 W !!,"TELEPHONE NUMBERS OF NURSING EMPLOYEES" S X="T" D ^%DT D:+Y D^DIQ W ?44,Y,?59,"PAGE: ",NURPAGE
24 W !!,"EMPLOYEE",?36,"SERVICE",?51,"TELEPHONE",?66,"OWNER OF" W !,"NAME",?36,"POSITION",?51,"NUMBER",?66,"PHONE NO."
25 W !,$$REPEAT^XLFSTR("-",80),!
26 Q
Note: See TracBrowser for help on using the repository browser.