source: FOIAVistA/trunk/r/DIETETICS-FH/FHNU.m@ 711

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

initial load of FOIAVistA 6/30/08 version

File size: 773 bytes
Line 
1FHNU ; HISC/REL - Nutrient Analysis ;3/24/95 13:07
2 ;;5.5;DIETETICS;;Jan 28, 2005
3EN2 ; Edit Nutrients
4 S (DIC,DIE)="^FHNU(",DIC(0)="AEQLM",DIC("DR")=".01",DLAYGO=112 W ! D ^DIC K DIC,DLAYGO G KIL:U[X!$D(DTOUT),EN2:Y<1
5 S DA=+Y,DR=$S($P(^FHNU(DA,0),"^",6)="N":"4:4.9",1:".01;2:5;7:27;29:99") S:$D(^XUSEC("FHMGR",DUZ)) DIDEL=112 D ^DIE K DA,DIE,DIDEL,DR G EN2
6EN5 ; List Nutrient File
7 W !!,"The list requires a 132 column printer.",!
8 W ! S L=0,DIC="^FHNU(",FLDS="[FHNULST]",BY="NAME"
9 S FR="",TO="",DHD="FOOD NUTRIENTS" D EN1^DIP,RSET Q
10EN8 ; List User Menus
11 W !!,"The list requires a 132 column printer.",!
12 W ! S L=0,DIC="^FHUM(",FLDS="[FHUMENU]",BY="USER,DATE ENTERED"
13 S (FR,TO)=",",DHD="USER MENUS" D EN1^DIP,RSET Q
14RSET K %ZIS S IOP="" D ^%ZIS
15KIL G KILL^XUSCLEAN
Note: See TracBrowser for help on using the repository browser.