FHINI0M2 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(118) 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(118,0,"GL")
;;=^FH(118,
;;^DIC("B","SUPPLEMENTAL FEEDINGS",118)
;;=
;;^DIC(118,"%D",0)
;;=^^4^4^2871124^
;;^DIC(118,"%D",1,0)
;;=This file contains all items served as supplemental feedings.
;;^DIC(118,"%D",2,0)
;;=When appropriate, it may include combinations such as ice cream
;;^DIC(118,"%D",3,0)
;;=with spoon. Items designed for bulk delivery to the wards are
;;^DIC(118,"%D",4,0)
;;=also contained in this file.
;;^DD(118,0)
;;=FIELD^^99^8
;;^DD(118,0,"ID",99)
;;=W:$D(^("I")) " (** INACTIVE **)"
;;^DD(118,0,"IX","AD",118,99)
;;=
;;^DD(118,0,"IX","B",118,.01)
;;=
;;^DD(118,0,"IX","B",118.01,.01)
;;=
;;^DD(118,0,"NM","SUPPLEMENTAL FEEDINGS")
;;=
;;^DD(118,0,"PT",115.07,10)
;;=
;;^DD(118,0,"PT",115.07,12)
;;=
;;^DD(118,0,"PT",115.07,14)
;;=
;;^DD(118,0,"PT",115.07,16)
;;=
;;^DD(118,0,"PT",115.07,18)
;;=
;;^DD(118,0,"PT",115.07,20)
;;=
;;^DD(118,0,"PT",115.07,22)
;;=
;;^DD(118,0,"PT",115.07,24)
;;=
;;^DD(118,0,"PT",115.07,26)
;;=
;;^DD(118,0,"PT",115.07,28)
;;=
;;^DD(118,0,"PT",115.07,30)
;;=
;;^DD(118,0,"PT",115.07,32)
;;=
;;^DD(118,0,"PT",118.1,10)
;;=
;;^DD(118,0,"PT",118.1,11)
;;=
;;^DD(118,0,"PT",118.1,12)
;;=
;;^DD(118,0,"PT",118.1,13)
;;=
;;^DD(118,0,"PT",118.1,14)
;;=
;;^DD(118,0,"PT",118.1,15)
;;=
;;^DD(118,0,"PT",118.1,16)
;;=
;;^DD(118,0,"PT",118.1,17)
;;=
;;^DD(118,0,"PT",118.1,18)
;;=
;;^DD(118,0,"PT",118.1,19)
;;=
;;^DD(118,0,"PT",118.1,20)
;;=
;;^DD(118,0,"PT",118.1,21)
;;=
;;^DD(118,0,"PT",119.61,.01)
;;=
;;^DD(118,0,"SCR")
;;=I '$D(^FH(118,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
;;^DD(118,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>20!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
;;^DD(118,.01,1,0)
;;=^.1
;;^DD(118,.01,1,1,0)
;;=118^B
;;^DD(118,.01,1,1,1)
;;=S ^FH(118,"B",$E(X,1,30),DA)=""
;;^DD(118,.01,1,1,2)
;;=K ^FH(118,"B",$E(X,1,30),DA)
;;^DD(118,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(118,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(118,.01,3)
;;=ANSWER MUST BE 3-20 CHARACTERS IN LENGTH
;;^DD(118,.01,21,0)
;;=^^1^1^2880717^
;;^DD(118,.01,21,1,0)
;;=This field contains the name of the Supplemental Feeding.
;;^DD(118,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(118,.01,"DT")
;;=2840812
;;^DD(118,1,0)
;;=SYNONYM^118.01^^S;0
;;^DD(118,1,21,0)
;;=^^2^2^2901217^
;;^DD(118,1,21,1,0)
;;=This field allows for a number of synonyms for the supplemental
;;^DD(118,1,21,2,0)
;;=feeding to be entered.
;;^DD(118,5,0)
;;=LABEL?^S^Y:YES;N:NO;^0;2^Q
;;^DD(118,5,3)
;;=Enter N if you do not want a separate label for this item
;;^DD(118,5,21,0)
;;=^^4^4^2930203^^
;;^DD(118,5,21,1,0)
;;=This field, when answered NO, means that a label will not
;;^DD(118,5,21,2,0)
;;=be produced for this item when separate supplemental feeding
;;^DD(118,5,21,3,0)
;;=labels for each item have been specified in the site
;;^DD(118,5,21,4,0)
;;=parameters.
;;^DD(118,5,"DT")
;;=2850320
;;^DD(118,7,0)
;;=VEHICLE FOR MEDS?^S^Y:YES;N:NO;^0;4^Q
;;^DD(118,7,21,0)
;;=^^2^2^2880717^
;;^DD(118,7,21,1,0)
;;=This field, when answered YES, means that the supplemental
;;^DD(118,7,21,2,0)
;;=feeding is typically used as a vehicle for meds.
;;^DD(118,7,"DT")
;;=2850606
;;^DD(118,10,0)
;;=BULK ONLY?^S^Y:YES;N:NO;^0;3^Q
;;^DD(118,10,21,0)
;;=^^3^3^2880717^
;;^DD(118,10,21,1,0)
;;=This field, when answered YES, means that this supplemental
;;^DD(118,10,21,2,0)
;;=feeding item can ONLY be selected as a bulk feeding for ward
;;^DD(118,10,21,3,0)
;;=delivery and may not be selected as an individual feeding item.
;;^DD(118,10,"DT")
;;=2850604
;;^DD(118,11,0)
;;=CORRESPONDING RECIPE^P114'^FH(114,^0;7^Q
;;^DD(118,11,21,0)
;;=^^3^3^2901217^
;;^DD(118,11,21,1,0)
;;=This field is a pointer to the recipe in file 114 (the Recipe file)
;;^DD(118,11,21,2,0)
;;=which contains the ingredients for this feeding. Cost and other data
;;^DD(118,11,21,3,0)
;;=for this feeding will be retrieved from the recipe file.
;;^DD(118,11,"DT")
;;=2900929
;;^DD(118,20,0)
;;=COST^CJ8,2^^ ; ^X ^DD(118,20,9.2) S X=$P(Y(118,20,101),U,13) S D0=Y(118,20,80) S X=$J(X,0,2)
;;^DD(118,20,9)
;;=^
;;^DD(118,20,9.01)
;;=114^101;118^11
;;^DD(118,20,9.1)
;;=CORRESPONDING RECIPE:COST/PORTION
;;^DD(118,20,9.2)
;;=S Y(118,20,80)=$S($D(D0):D0,1:""),Y(118,20,1)=$S($D(^FH(118,D0,0)):^(0),1:""),D0=$P(Y(118,20,1),U,7) S:'$D(^FH(114,+D0,0)) D0=-1 S Y(118,20,101)=$S($D(^FH(114,D0,0)):^(0),1:"")
;;^DD(118,20,21,0)
;;=^^3^3^2950613^^^^
;;^DD(118,20,21,1,0)
;;=This is the portion cost of the supplemental feeding and is a
FHINI0M2 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(118)
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(118,0,"GL")
+2 ;;=^FH(118,
+3 ;;^DIC("B","SUPPLEMENTAL FEEDINGS",118)
+4 ;;=
+5 ;;^DIC(118,"%D",0)
+6 ;;=^^4^4^2871124^
+7 ;;^DIC(118,"%D",1,0)
+8 ;;=This file contains all items served as supplemental feedings.
+9 ;;^DIC(118,"%D",2,0)
+10 ;;=When appropriate, it may include combinations such as ice cream
+11 ;;^DIC(118,"%D",3,0)
+12 ;;=with spoon. Items designed for bulk delivery to the wards are
+13 ;;^DIC(118,"%D",4,0)
+14 ;;=also contained in this file.
+15 ;;^DD(118,0)
+16 ;;=FIELD^^99^8
+17 ;;^DD(118,0,"ID",99)
+18 ;;=W:$D(^("I")) " (** INACTIVE **)"
+19 ;;^DD(118,0,"IX","AD",118,99)
+20 ;;=
+21 ;;^DD(118,0,"IX","B",118,.01)
+22 ;;=
+23 ;;^DD(118,0,"IX","B",118.01,.01)
+24 ;;=
+25 ;;^DD(118,0,"NM","SUPPLEMENTAL FEEDINGS")
+26 ;;=
+27 ;;^DD(118,0,"PT",115.07,10)
+28 ;;=
+29 ;;^DD(118,0,"PT",115.07,12)
+30 ;;=
+31 ;;^DD(118,0,"PT",115.07,14)
+32 ;;=
+33 ;;^DD(118,0,"PT",115.07,16)
+34 ;;=
+35 ;;^DD(118,0,"PT",115.07,18)
+36 ;;=
+37 ;;^DD(118,0,"PT",115.07,20)
+38 ;;=
+39 ;;^DD(118,0,"PT",115.07,22)
+40 ;;=
+41 ;;^DD(118,0,"PT",115.07,24)
+42 ;;=
+43 ;;^DD(118,0,"PT",115.07,26)
+44 ;;=
+45 ;;^DD(118,0,"PT",115.07,28)
+46 ;;=
+47 ;;^DD(118,0,"PT",115.07,30)
+48 ;;=
+49 ;;^DD(118,0,"PT",115.07,32)
+50 ;;=
+51 ;;^DD(118,0,"PT",118.1,10)
+52 ;;=
+53 ;;^DD(118,0,"PT",118.1,11)
+54 ;;=
+55 ;;^DD(118,0,"PT",118.1,12)
+56 ;;=
+57 ;;^DD(118,0,"PT",118.1,13)
+58 ;;=
+59 ;;^DD(118,0,"PT",118.1,14)
+60 ;;=
+61 ;;^DD(118,0,"PT",118.1,15)
+62 ;;=
+63 ;;^DD(118,0,"PT",118.1,16)
+64 ;;=
+65 ;;^DD(118,0,"PT",118.1,17)
+66 ;;=
+67 ;;^DD(118,0,"PT",118.1,18)
+68 ;;=
+69 ;;^DD(118,0,"PT",118.1,19)
+70 ;;=
+71 ;;^DD(118,0,"PT",118.1,20)
+72 ;;=
+73 ;;^DD(118,0,"PT",118.1,21)
+74 ;;=
+75 ;;^DD(118,0,"PT",119.61,.01)
+76 ;;=
+77 ;;^DD(118,0,"SCR")
+78 ;;=I '$D(^FH(118,+Y,"I"))!$D(^XUSEC("FHMGR",DUZ))!(DUZ(0)["@")
+79 ;;^DD(118,.01,0)
+80 ;;=NAME^RF^^0;1^K:$L(X)>20!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
+81 ;;^DD(118,.01,1,0)
+82 ;;=^.1
+83 ;;^DD(118,.01,1,1,0)
+84 ;;=118^B
+85 ;;^DD(118,.01,1,1,1)
+86 ;;=S ^FH(118,"B",$E(X,1,30),DA)=""
+87 ;;^DD(118,.01,1,1,2)
+88 ;;=K ^FH(118,"B",$E(X,1,30),DA)
+89 ;;^DD(118,.01,1,1,"%D",0)
+90 ;;=^^1^1^2911118^
+91 ;;^DD(118,.01,1,1,"%D",1,0)
+92 ;;=This is the normal B cross-reference of the NAME field.
+93 ;;^DD(118,.01,3)
+94 ;;=ANSWER MUST BE 3-20 CHARACTERS IN LENGTH
+95 ;;^DD(118,.01,21,0)
+96 ;;=^^1^1^2880717^
+97 ;;^DD(118,.01,21,1,0)
+98 ;;=This field contains the name of the Supplemental Feeding.
+99 ;;^DD(118,.01,"DEL",1,0)
+100 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+101 ;;^DD(118,.01,"DT")
+102 ;;=2840812
+103 ;;^DD(118,1,0)
+104 ;;=SYNONYM^118.01^^S;0
+105 ;;^DD(118,1,21,0)
+106 ;;=^^2^2^2901217^
+107 ;;^DD(118,1,21,1,0)
+108 ;;=This field allows for a number of synonyms for the supplemental
+109 ;;^DD(118,1,21,2,0)
+110 ;;=feeding to be entered.
+111 ;;^DD(118,5,0)
+112 ;;=LABEL?^S^Y:YES;N:NO;^0;2^Q
+113 ;;^DD(118,5,3)
+114 ;;=Enter N if you do not want a separate label for this item
+115 ;;^DD(118,5,21,0)
+116 ;;=^^4^4^2930203^^
+117 ;;^DD(118,5,21,1,0)
+118 ;;=This field, when answered NO, means that a label will not
+119 ;;^DD(118,5,21,2,0)
+120 ;;=be produced for this item when separate supplemental feeding
+121 ;;^DD(118,5,21,3,0)
+122 ;;=labels for each item have been specified in the site
+123 ;;^DD(118,5,21,4,0)
+124 ;;=parameters.
+125 ;;^DD(118,5,"DT")
+126 ;;=2850320
+127 ;;^DD(118,7,0)
+128 ;;=VEHICLE FOR MEDS?^S^Y:YES;N:NO;^0;4^Q
+129 ;;^DD(118,7,21,0)
+130 ;;=^^2^2^2880717^
+131 ;;^DD(118,7,21,1,0)
+132 ;;=This field, when answered YES, means that the supplemental
+133 ;;^DD(118,7,21,2,0)
+134 ;;=feeding is typically used as a vehicle for meds.
+135 ;;^DD(118,7,"DT")
+136 ;;=2850606
+137 ;;^DD(118,10,0)
+138 ;;=BULK ONLY?^S^Y:YES;N:NO;^0;3^Q
+139 ;;^DD(118,10,21,0)
+140 ;;=^^3^3^2880717^
+141 ;;^DD(118,10,21,1,0)
+142 ;;=This field, when answered YES, means that this supplemental
+143 ;;^DD(118,10,21,2,0)
+144 ;;=feeding item can ONLY be selected as a bulk feeding for ward
+145 ;;^DD(118,10,21,3,0)
+146 ;;=delivery and may not be selected as an individual feeding item.
+147 ;;^DD(118,10,"DT")
+148 ;;=2850604
+149 ;;^DD(118,11,0)
+150 ;;=CORRESPONDING RECIPE^P114'^FH(114,^0;7^Q
+151 ;;^DD(118,11,21,0)
+152 ;;=^^3^3^2901217^
+153 ;;^DD(118,11,21,1,0)
+154 ;;=This field is a pointer to the recipe in file 114 (the Recipe file)
+155 ;;^DD(118,11,21,2,0)
+156 ;;=which contains the ingredients for this feeding. Cost and other data
+157 ;;^DD(118,11,21,3,0)
+158 ;;=for this feeding will be retrieved from the recipe file.
+159 ;;^DD(118,11,"DT")
+160 ;;=2900929
+161 ;;^DD(118,20,0)
+162 ;;=COST^CJ8,2^^ ; ^X ^DD(118,20,9.2) S X=$P(Y(118,20,101),U,13) S D0=Y(118,20,80) S X=$J(X,0,2)
+163 ;;^DD(118,20,9)
+164 ;;=^
+165 ;;^DD(118,20,9.01)
+166 ;;=114^101;118^11
+167 ;;^DD(118,20,9.1)
+168 ;;=CORRESPONDING RECIPE:COST/PORTION
+169 ;;^DD(118,20,9.2)
+170 ;;=S Y(118,20,80)=$S($D(D0):D0,1:""),Y(118,20,1)=$S($D(^FH(118,D0,0)):^(0),1:""),D0=$P(Y(118,20,1),U,7) S:'$D(^FH(114,+D0,0)) D0=-1 S Y(118,20,101)=$S($D(^FH(114,D0,0)):^(0),1:"")
+171 ;;^DD(118,20,21,0)
+172 ;;=^^3^3^2950613^^^^
+173 ;;^DD(118,20,21,1,0)
+174 ;;=This is the portion cost of the supplemental feeding and is a