source: WorldVistAEHR/trunk/r/DIETETICS-FH/FHPRW4.m@ 738

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

initial load of WorldVistAEHR

File size: 1.0 KB
Line 
1FHPRW4 ; HISC/REL - List Supp. Fdg. Sites ;4/25/93 14:23
2 ;;5.5;DIETETICS;;Jan 28, 2005
3 F K1=0:0 S K1=$O(^FH(119.74,K1)) Q:K1'>0 D Q5
4 Q
5Q5 S X=^FH(119.74,K1,0) D BLD,HDR
6 W !!,"Short Name:",?25,$P(X,"^",2)
7 W !,"Separate Labels:",?25,$S($P(X,"^",4)="Y":"YES",1:"NO")
8 W !,"Items on Ward Lists:",?25,$S($P(X,"^",5)="Y":"YES",1:"NO")
9 W !,"Production Facility:",?25 S Z=$P(X,"^",3) W:Z $P($G(^FH(119.71,Z,0)),"^",1)
10 D WRD Q
11WRD W !!,"Associated Dietetic Wards:",!
12 K P S N=0,NM="" F S NM=$O(^TMP($J,NM)) Q:NM="" S N=N+1,P(N)=$P(NM,"~",1)
13 I N S (Z,K)=N+1\2 F LL=1:1:Z W !?5,P(LL) S K=K+1 I $D(P(K)) W ?45,P(K)
14 Q
15BLD ; Build temp files
16 K ^TMP($J)
17 F LL=0:0 S LL=$O(^FH(119.6,LL)) Q:LL<1 S Y=^(LL,0) I $P(Y,"^",9)=K1 D B1
18 Q
19B1 S ^TMP($J,$P(Y,"^",1)_"~"_LL)="" Q
20HDR W:'($E(IOST,1,2)'="C-"&'PG) @IOF S PG=PG+1,DTP=NOW D DTP^FH W !,$E(DTP,1,9),?15,"S U P P L E M E N T A L F E E D I N G S I T E",?73,"Page ",PG
21 S Y=$P(X,"^",1) W !!?(78-$L(Y)\2),Y
22 W !,"-------------------------------------------------------------------------------",! Q
Note: See TracBrowser for help on using the repository browser.