FHINI0LA ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(116.2) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^DIC(116.2,0,"GL")
;;=^FH(116.2,
;;^DIC("B","PRODUCTION DIET",116.2)
;;=
;;^DIC(116.2,"%D",0)
;;=^^3^3^2871124^
;;^DIC(116.2,"%D",1,0)
;;=This file contains a list of the production diets which are the
;;^DIC(116.2,"%D",2,0)
;;=basic diets actually prepared and from which the wide variety
;;^DIC(116.2,"%D",3,0)
;;=of clinical diet modifications are derived.
;;^DD(116.2,0)
;;=FIELD^^99^9
;;^DD(116.2,0,"DT")
;;=2950629
;;^DD(116.2,0,"ID",99)
;;=W:$D(^("I")) " (** INACTIVE **)"
;;^DD(116.2,0,"IX","AC",116.2,99)
;;=
;;^DD(116.2,0,"IX","AD",116.2,99)
;;=
;;^DD(116.2,0,"IX","AO",116.2,8)
;;=
;;^DD(116.2,0,"IX","AP",116.2,7)
;;=
;;^DD(116.2,0,"IX","AR",116.2,8)
;;=
;;^DD(116.2,0,"IX","AR1",116.211,.01)
;;=
;;^DD(116.2,0,"IX","B",116.2,.01)
;;=
;;^DD(116.2,0,"IX","C",116.2,1)
;;=
;;^DD(116.2,0,"NM","PRODUCTION DIET")
;;=
;;^DD(116.2,0,"PT",111,4)
;;=
;;^DD(116.2,0,"PT",111.1,10)
;;=
;;^DD(116.2,0,"PT",112.62,3)
;;=
;;^DD(116.2,0,"PT",115.02,12)
;;=
;;^DD(116.2,0,"PT",116.211,.01)
;;=
;;^DD(116.2,0,"PT",119.721,.01)
;;=
;;^DD(116.2,0,"PT",119.7211,.01)
;;=
;;^DD(116.2,0,"SCR")
;;=I '$D(^FH(116.2,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
;;^DD(116.2,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
;;^DD(116.2,.01,1,0)
;;=^.1
;;^DD(116.2,.01,1,1,0)
;;=116.2^B
;;^DD(116.2,.01,1,1,1)
;;=S ^FH(116.2,"B",$E(X,1,30),DA)=""
;;^DD(116.2,.01,1,1,2)
;;=K ^FH(116.2,"B",$E(X,1,30),DA)
;;^DD(116.2,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.2,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(116.2,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(116.2,.01,21,0)
;;=^^3^3^2950629^^
;;^DD(116.2,.01,21,1,0)
;;=This field contains the name of a production diet. This is a
;;^DD(116.2,.01,21,2,0)
;;=diet that is prepared in the kitchen (as compared to a clinical
;;^DD(116.2,.01,21,3,0)
;;=diet modification which is ordered).
;;^DD(116.2,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(116.2,.01,"DT")
;;=2950629
;;^DD(116.2,1,0)
;;=CODE^RF^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>2!($L(X)<2)!'(X?1U1UN) X I $D(X) S Y=$O(^FH(116.2,"C",X,0)) I Y>0,Y-DA W *7," Code used by ",$P(^FH(116.2,Y,0),"^",1) K X
;;^DD(116.2,1,1,0)
;;=^.1
;;^DD(116.2,1,1,1,0)
;;=116.2^C
;;^DD(116.2,1,1,1,1)
;;=S ^FH(116.2,"C",$E(X,1,30),DA)=""
;;^DD(116.2,1,1,1,2)
;;=K ^FH(116.2,"C",$E(X,1,30),DA)
;;^DD(116.2,1,3)
;;=ANSWER MUST BE 2 CHARACTERS (2 LETTERS OR LETTER-NUMBER) AND UNIQUE
;;^DD(116.2,1,21,0)
;;=^^2^2^2931116^^^^
;;^DD(116.2,1,21,1,0)
;;=This is a simple two-character code for the diet and is used
;;^DD(116.2,1,21,2,0)
;;=extensively in the production summary listings.
;;^DD(116.2,1,"DT")
;;=2851217
;;^DD(116.2,3,0)
;;=# DAYS TO REVIEW^NJ3,0^^0;8^K:+X'=X!(X>120)!(X<1)!(X?.E1"."1N.N) X
;;^DD(116.2,3,3)
;;=Type a Number between 1 and 120, 0 Decimal Digits
;;^DD(116.2,3,21,0)
;;=^^2^2^2920106^^
;;^DD(116.2,3,21,1,0)
;;=This field represents the number of days after which a patient on
;;^DD(116.2,3,21,2,0)
;;=this Production Diet should be reviewed.
;;^DD(116.2,3,"DT")
;;=2920106
;;^DD(116.2,7,0)
;;=PRINT ORDER^RNJ2,0X^^0;6^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X I $D(X) S Y=$O(^FH(116.2,"AP",X,0)) I Y>0,Y-DA W *7," Order used by ",$P(^FH(116.2,Y,0),"^",1) K X
;;^DD(116.2,7,1,0)
;;=^.1
;;^DD(116.2,7,1,1,0)
;;=116.2^AP
;;^DD(116.2,7,1,1,1)
;;=S ^FH(116.2,"AP",$E(X,1,30),DA)=""
;;^DD(116.2,7,1,1,2)
;;=K ^FH(116.2,"AP",$E(X,1,30),DA)
;;^DD(116.2,7,3)
;;=Type a Number between 1 and 99, 0 Decimal Digits
;;^DD(116.2,7,21,0)
;;=^^2^2^2880717^
;;^DD(116.2,7,21,1,0)
;;=This is the order in which this production diet will appear in lists,
;;^DD(116.2,7,21,2,0)
;;=from low print orders to high.
;;^DD(116.2,7,"DT")
;;=2871115
;;^DD(116.2,7.5,0)
;;=PRINT ON DAILY MENU?^RS^Y:YES;N:NO;^0;7^Q
;;^DD(116.2,7.5,21,0)
;;=^^2^2^2891006^^
;;^DD(116.2,7.5,21,1,0)
;;=This field, when answered YES, will result in the Production Diet
;;^DD(116.2,7.5,21,2,0)
;;=being listed on the Daily Menu sheets.
;;^DD(116.2,7.5,"DT")
;;=2891006
;;^DD(116.2,8,0)
;;=TALLY ORDER^RNJ2,0X^^0;5^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X I $D(X) S Y=$O(^FH(116.2,"AO",X,0)) I Y>0,Y-DA W *7," Order used by ",$P(^FH(116.2,Y,0),"^",1) K X
;;^DD(116.2,8,1,0)
;;=^.1
;;^DD(116.2,8,1,1,0)
;;=116.2^AO
;;^DD(116.2,8,1,1,1)
;;=S ^FH(116.2,"AO",$E(X,1,30),DA)=""
;;^DD(116.2,8,1,1,2)
;;=K ^FH(116.2,"AO",$E(X,1,30),DA)
;;^DD(116.2,8,1,2,0)
;;=116.2^AR^MUMPS
;;^DD(116.2,8,1,2,1)
;;=D SET^FHORDR
FHINI0LA ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(116.2)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DIC(116.2,0,"GL")
+2 ;;=^FH(116.2,
+3 ;;^DIC("B","PRODUCTION DIET",116.2)
+4 ;;=
+5 ;;^DIC(116.2,"%D",0)
+6 ;;=^^3^3^2871124^
+7 ;;^DIC(116.2,"%D",1,0)
+8 ;;=This file contains a list of the production diets which are the
+9 ;;^DIC(116.2,"%D",2,0)
+10 ;;=basic diets actually prepared and from which the wide variety
+11 ;;^DIC(116.2,"%D",3,0)
+12 ;;=of clinical diet modifications are derived.
+13 ;;^DD(116.2,0)
+14 ;;=FIELD^^99^9
+15 ;;^DD(116.2,0,"DT")
+16 ;;=2950629
+17 ;;^DD(116.2,0,"ID",99)
+18 ;;=W:$D(^("I")) " (** INACTIVE **)"
+19 ;;^DD(116.2,0,"IX","AC",116.2,99)
+20 ;;=
+21 ;;^DD(116.2,0,"IX","AD",116.2,99)
+22 ;;=
+23 ;;^DD(116.2,0,"IX","AO",116.2,8)
+24 ;;=
+25 ;;^DD(116.2,0,"IX","AP",116.2,7)
+26 ;;=
+27 ;;^DD(116.2,0,"IX","AR",116.2,8)
+28 ;;=
+29 ;;^DD(116.2,0,"IX","AR1",116.211,.01)
+30 ;;=
+31 ;;^DD(116.2,0,"IX","B",116.2,.01)
+32 ;;=
+33 ;;^DD(116.2,0,"IX","C",116.2,1)
+34 ;;=
+35 ;;^DD(116.2,0,"NM","PRODUCTION DIET")
+36 ;;=
+37 ;;^DD(116.2,0,"PT",111,4)
+38 ;;=
+39 ;;^DD(116.2,0,"PT",111.1,10)
+40 ;;=
+41 ;;^DD(116.2,0,"PT",112.62,3)
+42 ;;=
+43 ;;^DD(116.2,0,"PT",115.02,12)
+44 ;;=
+45 ;;^DD(116.2,0,"PT",116.211,.01)
+46 ;;=
+47 ;;^DD(116.2,0,"PT",119.721,.01)
+48 ;;=
+49 ;;^DD(116.2,0,"PT",119.7211,.01)
+50 ;;=
+51 ;;^DD(116.2,0,"SCR")
+52 ;;=I '$D(^FH(116.2,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
+53 ;;^DD(116.2,.01,0)
+54 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
+55 ;;^DD(116.2,.01,1,0)
+56 ;;=^.1
+57 ;;^DD(116.2,.01,1,1,0)
+58 ;;=116.2^B
+59 ;;^DD(116.2,.01,1,1,1)
+60 ;;=S ^FH(116.2,"B",$E(X,1,30),DA)=""
+61 ;;^DD(116.2,.01,1,1,2)
+62 ;;=K ^FH(116.2,"B",$E(X,1,30),DA)
+63 ;;^DD(116.2,.01,1,1,"%D",0)
+64 ;;=^^1^1^2911118^
+65 ;;^DD(116.2,.01,1,1,"%D",1,0)
+66 ;;=This is the normal B cross-reference of the NAME field.
+67 ;;^DD(116.2,.01,3)
+68 ;;=Answer must be 3-30 characters in length.
+69 ;;^DD(116.2,.01,21,0)
+70 ;;=^^3^3^2950629^^
+71 ;;^DD(116.2,.01,21,1,0)
+72 ;;=This field contains the name of a production diet. This is a
+73 ;;^DD(116.2,.01,21,2,0)
+74 ;;=diet that is prepared in the kitchen (as compared to a clinical
+75 ;;^DD(116.2,.01,21,3,0)
+76 ;;=diet modification which is ordered).
+77 ;;^DD(116.2,.01,"DEL",1,0)
+78 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+79 ;;^DD(116.2,.01,"DT")
+80 ;;=2950629
+81 ;;^DD(116.2,1,0)
+82 ;;=CODE^RF^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>2!($L(X)<2)!'(X?1U1UN) X I $D(X) S Y=$O(^FH(116.2,"C",X,0)) I Y>0,Y-DA W *7," Code used by ",$P(^FH(116.2,Y,0),"^",1) K X
+83 ;;^DD(116.2,1,1,0)
+84 ;;=^.1
+85 ;;^DD(116.2,1,1,1,0)
+86 ;;=116.2^C
+87 ;;^DD(116.2,1,1,1,1)
+88 ;;=S ^FH(116.2,"C",$E(X,1,30),DA)=""
+89 ;;^DD(116.2,1,1,1,2)
+90 ;;=K ^FH(116.2,"C",$E(X,1,30),DA)
+91 ;;^DD(116.2,1,3)
+92 ;;=ANSWER MUST BE 2 CHARACTERS (2 LETTERS OR LETTER-NUMBER) AND UNIQUE
+93 ;;^DD(116.2,1,21,0)
+94 ;;=^^2^2^2931116^^^^
+95 ;;^DD(116.2,1,21,1,0)
+96 ;;=This is a simple two-character code for the diet and is used
+97 ;;^DD(116.2,1,21,2,0)
+98 ;;=extensively in the production summary listings.
+99 ;;^DD(116.2,1,"DT")
+100 ;;=2851217
+101 ;;^DD(116.2,3,0)
+102 ;;=# DAYS TO REVIEW^NJ3,0^^0;8^K:+X'=X!(X>120)!(X<1)!(X?.E1"."1N.N) X
+103 ;;^DD(116.2,3,3)
+104 ;;=Type a Number between 1 and 120, 0 Decimal Digits
+105 ;;^DD(116.2,3,21,0)
+106 ;;=^^2^2^2920106^^
+107 ;;^DD(116.2,3,21,1,0)
+108 ;;=This field represents the number of days after which a patient on
+109 ;;^DD(116.2,3,21,2,0)
+110 ;;=this Production Diet should be reviewed.
+111 ;;^DD(116.2,3,"DT")
+112 ;;=2920106
+113 ;;^DD(116.2,7,0)
+114 ;;=PRINT ORDER^RNJ2,0X^^0;6^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X I $D(X) S Y=$O(^FH(116.2,"AP",X,0)) I Y>0,Y-DA W *7," Order used by ",$P(^FH(116.2,Y,0),"^",1) K X
+115 ;;^DD(116.2,7,1,0)
+116 ;;=^.1
+117 ;;^DD(116.2,7,1,1,0)
+118 ;;=116.2^AP
+119 ;;^DD(116.2,7,1,1,1)
+120 ;;=S ^FH(116.2,"AP",$E(X,1,30),DA)=""
+121 ;;^DD(116.2,7,1,1,2)
+122 ;;=K ^FH(116.2,"AP",$E(X,1,30),DA)
+123 ;;^DD(116.2,7,3)
+124 ;;=Type a Number between 1 and 99, 0 Decimal Digits
+125 ;;^DD(116.2,7,21,0)
+126 ;;=^^2^2^2880717^
+127 ;;^DD(116.2,7,21,1,0)
+128 ;;=This is the order in which this production diet will appear in lists,
+129 ;;^DD(116.2,7,21,2,0)
+130 ;;=from low print orders to high.
+131 ;;^DD(116.2,7,"DT")
+132 ;;=2871115
+133 ;;^DD(116.2,7.5,0)
+134 ;;=PRINT ON DAILY MENU?^RS^Y:YES;N:NO;^0;7^Q
+135 ;;^DD(116.2,7.5,21,0)
+136 ;;=^^2^2^2891006^^
+137 ;;^DD(116.2,7.5,21,1,0)
+138 ;;=This field, when answered YES, will result in the Production Diet
+139 ;;^DD(116.2,7.5,21,2,0)
+140 ;;=being listed on the Daily Menu sheets.
+141 ;;^DD(116.2,7.5,"DT")
+142 ;;=2891006
+143 ;;^DD(116.2,8,0)
+144 ;;=TALLY ORDER^RNJ2,0X^^0;5^K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X I $D(X) S Y=$O(^FH(116.2,"AO",X,0)) I Y>0,Y-DA W *7," Order used by ",$P(^FH(116.2,Y,0),"^",1) K X
+145 ;;^DD(116.2,8,1,0)
+146 ;;=^.1
+147 ;;^DD(116.2,8,1,1,0)
+148 ;;=116.2^AO
+149 ;;^DD(116.2,8,1,1,1)
+150 ;;=S ^FH(116.2,"AO",$E(X,1,30),DA)=""
+151 ;;^DD(116.2,8,1,1,2)
+152 ;;=K ^FH(116.2,"AO",$E(X,1,30),DA)
+153 ;;^DD(116.2,8,1,2,0)
+154 ;;=116.2^AR^MUMPS
+155 ;;^DD(116.2,8,1,2,1)
+156 ;;=D SET^FHORDR