FHINI0LB ; ; 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
;;^DD(116.2,8,1,2,2)
;;=D SET^FHORDR
;;^DD(116.2,8,1,2,"%D",0)
;;=^^2^2^2940824^
;;^DD(116.2,8,1,2,"%D",1,0)
;;=This cross-reference rebuilds the 'AR' decoding string whenever
;;^DD(116.2,8,1,2,"%D",2,0)
;;=the tally order is changed.
;;^DD(116.2,8,3)
;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99
;;^DD(116.2,8,21,0)
;;=^^5^5^2880717^
;;^DD(116.2,8,21,1,0)
;;=In recoding diets, this is the order in which the clinical
;;^DD(116.2,8,21,2,0)
;;='default production diets' will be matched against this
;;^DD(116.2,8,21,3,0)
;;=production diet. Recoding will occur as soon as a match
;;^DD(116.2,8,21,4,0)
;;=occurs. Therefore, this field can be conceptualized as
;;^DD(116.2,8,21,5,0)
;;=representing the relative importance of the production diet.
;;^DD(116.2,8,"DT")
;;=2870714
;;^DD(116.2,10,0)
;;=IS THIS A COMBO DIET?^RS^Y:YES;N:NO;^0;4^Q
;;^DD(116.2,10,21,0)
;;=^^7^7^2891006^^
;;^DD(116.2,10,21,1,0)
;;=This field, when answered YES, indicates that this production
;;^DD(116.2,10,21,2,0)
;;=diet is a combination of other production diets (e.g., both
;;^DD(116.2,10,21,3,0)
;;=low sodium and calorie restricted). Since ALL production diets
;;^DD(116.2,10,21,4,0)
;;=in a combo must match the 'default production diets' of a
;;^DD(116.2,10,21,5,0)
;;=clinical order, such combo production diets should have a tally
;;^DD(116.2,10,21,6,0)
;;=order less than any of the individual production diets
;;^DD(116.2,10,21,7,0)
;;=contained in the combo.
;;^DD(116.2,10,"DT")
;;=2891006
;;^DD(116.2,11,0)
;;=SINGULAR PRODUCTION DIETS^116.211P^^R;0
;;^DD(116.2,11,21,0)
;;=^^2^2^2880717^
;;^DD(116.2,11,21,1,0)
;;=This multiple contains a list of the production diets which
;;^DD(116.2,11,21,2,0)
;;=constitute the combo production diet.
;;^DD(116.2,99,0)
;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
;;^DD(116.2,99,1,0)
;;=^.1
;;^DD(116.2,99,1,1,0)
;;=116.2^AC^MUMPS
;;^DD(116.2,99,1,1,1)
;;=K:X'="Y" ^FH(116.2,DA,"I")
;;^DD(116.2,99,1,1,2)
;;=K ^FH(116.2,DA,"I")
;;^DD(116.2,99,1,1,"%D",0)
;;=^^2^2^2940818^
;;^DD(116.2,99,1,1,"%D",1,0)
;;=This cross-reference is used to create an 'I' node for
;;^DD(116.2,99,1,1,"%D",2,0)
;;=inactive entries.
;;^DD(116.2,99,1,1,"DT")
;;=2920703
;;^DD(116.2,99,1,2,0)
;;=116.2^AD^MUMPS
;;^DD(116.2,99,1,2,1)
;;=D SET^FHORDR
;;^DD(116.2,99,1,2,2)
;;=D SET^FHORDR
;;^DD(116.2,99,1,2,"%D",0)
;;=^^3^3^2940818^
;;^DD(116.2,99,1,2,"%D",1,0)
;;=This cross-reference does not alter the global contents but
;;^DD(116.2,99,1,2,"%D",2,0)
;;=rather invokes a routine which removes inactive production
;;^DD(116.2,99,1,2,"%D",3,0)
;;=diets from the recording scheme.
;;^DD(116.2,99,1,2,"DT")
;;=2931105
;;^DD(116.2,99,21,0)
;;=^^2^2^2940701^^^
;;^DD(116.2,99,21,1,0)
;;=This field, when answered YES, will prohibit further selection
;;^DD(116.2,99,21,2,0)
;;=of this Production Diet.
;;^DD(116.2,99,"DT")
;;=2931105
;;^DD(116.211,0)
;;=SINGULAR PRODUCTION DIETS SUB-FIELD^^.01^1
;;^DD(116.211,0,"IX","B",116.211,.01)
;;=
;;^DD(116.211,0,"NM","SINGULAR PRODUCTION DIETS")
;;=
;;^DD(116.211,0,"UP")
;;=116.2
;;^DD(116.211,.01,0)
;;=SINGULAR PRODUCTION DIETS^M*P116.2'^FH(116.2,^0;1^S DIC("S")="I $P(^(0),""^"",4)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(116.211,.01,1,0)
;;=^.1
;;^DD(116.211,.01,1,1,0)
;;=116.211^B
;;^DD(116.211,.01,1,1,1)
;;=S ^FH(116.2,DA(1),"R","B",$E(X,1,30),DA)=""
;;^DD(116.211,.01,1,1,2)
;;=K ^FH(116.2,DA(1),"R","B",$E(X,1,30),DA)
;;^DD(116.211,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(116.211,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the SINGULAR PRODUCTION DIETS field.
;;^DD(116.211,.01,1,2,0)
;;=116.2^AR1^MUMPS
;;^DD(116.211,.01,1,2,1)
;;=D SET^FHORDR
;;^DD(116.211,.01,1,2,2)
;;=D SET^FHORDR
;;^DD(116.211,.01,1,2,"%D",0)
;;=^^2^2^2940824^
;;^DD(116.211,.01,1,2,"%D",1,0)
;;=This cross-reference will rebuild the 'AR' decoding string whenever
;;^DD(116.211,.01,1,2,"%D",2,0)
;;=a change is made to a combination production diet.
;;^DD(116.211,.01,12)
;;=Can only select singular production diets.
;;^DD(116.211,.01,12.1)
;;=S DIC("S")="I $P(^(0),""^"",4)'=""Y"""
;;^DD(116.211,.01,21,0)
;;=^^2^2^2880717^
;;^DD(116.211,.01,21,1,0)
;;=This is a production diet that is to be contained in the combo
;;^DD(116.211,.01,21,2,0)
;;=production diet. It itself must not also be a combo production diet.
;;^DD(116.211,.01,"DT")
;;=2870714
FHINI0LB ; ; 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 ;;^DD(116.2,8,1,2,2)
+2 ;;=D SET^FHORDR
+3 ;;^DD(116.2,8,1,2,"%D",0)
+4 ;;=^^2^2^2940824^
+5 ;;^DD(116.2,8,1,2,"%D",1,0)
+6 ;;=This cross-reference rebuilds the 'AR' decoding string whenever
+7 ;;^DD(116.2,8,1,2,"%D",2,0)
+8 ;;=the tally order is changed.
+9 ;;^DD(116.2,8,3)
+10 ;;=TYPE A WHOLE NUMBER BETWEEN 1 AND 99
+11 ;;^DD(116.2,8,21,0)
+12 ;;=^^5^5^2880717^
+13 ;;^DD(116.2,8,21,1,0)
+14 ;;=In recoding diets, this is the order in which the clinical
+15 ;;^DD(116.2,8,21,2,0)
+16 ;;='default production diets' will be matched against this
+17 ;;^DD(116.2,8,21,3,0)
+18 ;;=production diet. Recoding will occur as soon as a match
+19 ;;^DD(116.2,8,21,4,0)
+20 ;;=occurs. Therefore, this field can be conceptualized as
+21 ;;^DD(116.2,8,21,5,0)
+22 ;;=representing the relative importance of the production diet.
+23 ;;^DD(116.2,8,"DT")
+24 ;;=2870714
+25 ;;^DD(116.2,10,0)
+26 ;;=IS THIS A COMBO DIET?^RS^Y:YES;N:NO;^0;4^Q
+27 ;;^DD(116.2,10,21,0)
+28 ;;=^^7^7^2891006^^
+29 ;;^DD(116.2,10,21,1,0)
+30 ;;=This field, when answered YES, indicates that this production
+31 ;;^DD(116.2,10,21,2,0)
+32 ;;=diet is a combination of other production diets (e.g., both
+33 ;;^DD(116.2,10,21,3,0)
+34 ;;=low sodium and calorie restricted). Since ALL production diets
+35 ;;^DD(116.2,10,21,4,0)
+36 ;;=in a combo must match the 'default production diets' of a
+37 ;;^DD(116.2,10,21,5,0)
+38 ;;=clinical order, such combo production diets should have a tally
+39 ;;^DD(116.2,10,21,6,0)
+40 ;;=order less than any of the individual production diets
+41 ;;^DD(116.2,10,21,7,0)
+42 ;;=contained in the combo.
+43 ;;^DD(116.2,10,"DT")
+44 ;;=2891006
+45 ;;^DD(116.2,11,0)
+46 ;;=SINGULAR PRODUCTION DIETS^116.211P^^R;0
+47 ;;^DD(116.2,11,21,0)
+48 ;;=^^2^2^2880717^
+49 ;;^DD(116.2,11,21,1,0)
+50 ;;=This multiple contains a list of the production diets which
+51 ;;^DD(116.2,11,21,2,0)
+52 ;;=constitute the combo production diet.
+53 ;;^DD(116.2,99,0)
+54 ;;=INACTIVE?^S^Y:YES;N:NO;^I;1^Q
+55 ;;^DD(116.2,99,1,0)
+56 ;;=^.1
+57 ;;^DD(116.2,99,1,1,0)
+58 ;;=116.2^AC^MUMPS
+59 ;;^DD(116.2,99,1,1,1)
+60 ;;=K:X'="Y" ^FH(116.2,DA,"I")
+61 ;;^DD(116.2,99,1,1,2)
+62 ;;=K ^FH(116.2,DA,"I")
+63 ;;^DD(116.2,99,1,1,"%D",0)
+64 ;;=^^2^2^2940818^
+65 ;;^DD(116.2,99,1,1,"%D",1,0)
+66 ;;=This cross-reference is used to create an 'I' node for
+67 ;;^DD(116.2,99,1,1,"%D",2,0)
+68 ;;=inactive entries.
+69 ;;^DD(116.2,99,1,1,"DT")
+70 ;;=2920703
+71 ;;^DD(116.2,99,1,2,0)
+72 ;;=116.2^AD^MUMPS
+73 ;;^DD(116.2,99,1,2,1)
+74 ;;=D SET^FHORDR
+75 ;;^DD(116.2,99,1,2,2)
+76 ;;=D SET^FHORDR
+77 ;;^DD(116.2,99,1,2,"%D",0)
+78 ;;=^^3^3^2940818^
+79 ;;^DD(116.2,99,1,2,"%D",1,0)
+80 ;;=This cross-reference does not alter the global contents but
+81 ;;^DD(116.2,99,1,2,"%D",2,0)
+82 ;;=rather invokes a routine which removes inactive production
+83 ;;^DD(116.2,99,1,2,"%D",3,0)
+84 ;;=diets from the recording scheme.
+85 ;;^DD(116.2,99,1,2,"DT")
+86 ;;=2931105
+87 ;;^DD(116.2,99,21,0)
+88 ;;=^^2^2^2940701^^^
+89 ;;^DD(116.2,99,21,1,0)
+90 ;;=This field, when answered YES, will prohibit further selection
+91 ;;^DD(116.2,99,21,2,0)
+92 ;;=of this Production Diet.
+93 ;;^DD(116.2,99,"DT")
+94 ;;=2931105
+95 ;;^DD(116.211,0)
+96 ;;=SINGULAR PRODUCTION DIETS SUB-FIELD^^.01^1
+97 ;;^DD(116.211,0,"IX","B",116.211,.01)
+98 ;;=
+99 ;;^DD(116.211,0,"NM","SINGULAR PRODUCTION DIETS")
+100 ;;=
+101 ;;^DD(116.211,0,"UP")
+102 ;;=116.2
+103 ;;^DD(116.211,.01,0)
+104 ;;=SINGULAR PRODUCTION DIETS^M*P116.2'^FH(116.2,^0;1^S DIC("S")="I $P(^(0),""^"",4)'=""Y""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+105 ;;^DD(116.211,.01,1,0)
+106 ;;=^.1
+107 ;;^DD(116.211,.01,1,1,0)
+108 ;;=116.211^B
+109 ;;^DD(116.211,.01,1,1,1)
+110 ;;=S ^FH(116.2,DA(1),"R","B",$E(X,1,30),DA)=""
+111 ;;^DD(116.211,.01,1,1,2)
+112 ;;=K ^FH(116.2,DA(1),"R","B",$E(X,1,30),DA)
+113 ;;^DD(116.211,.01,1,1,"%D",0)
+114 ;;=^^1^1^2911118^
+115 ;;^DD(116.211,.01,1,1,"%D",1,0)
+116 ;;=This is the normal B cross-reference of the SINGULAR PRODUCTION DIETS field.
+117 ;;^DD(116.211,.01,1,2,0)
+118 ;;=116.2^AR1^MUMPS
+119 ;;^DD(116.211,.01,1,2,1)
+120 ;;=D SET^FHORDR
+121 ;;^DD(116.211,.01,1,2,2)
+122 ;;=D SET^FHORDR
+123 ;;^DD(116.211,.01,1,2,"%D",0)
+124 ;;=^^2^2^2940824^
+125 ;;^DD(116.211,.01,1,2,"%D",1,0)
+126 ;;=This cross-reference will rebuild the 'AR' decoding string whenever
+127 ;;^DD(116.211,.01,1,2,"%D",2,0)
+128 ;;=a change is made to a combination production diet.
+129 ;;^DD(116.211,.01,12)
+130 ;;=Can only select singular production diets.
+131 ;;^DD(116.211,.01,12.1)
+132 ;;=S DIC("S")="I $P(^(0),""^"",4)'=""Y"""
+133 ;;^DD(116.211,.01,21,0)
+134 ;;=^^2^2^2880717^
+135 ;;^DD(116.211,.01,21,1,0)
+136 ;;=This is a production diet that is to be contained in the combo
+137 ;;^DD(116.211,.01,21,2,0)
+138 ;;=production diet. It itself must not also be a combo production diet.
+139 ;;^DD(116.211,.01,"DT")
+140 ;;=2870714