FHINI0MQ ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(119.72) 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(119.72,0,"GL")
;;=^FH(119.72,
;;^DIC("B","SERVICE POINT",119.72)
;;=
;;^DIC(119.72,"%D",0)
;;=^^3^3^2911204^
;;^DIC(119.72,"%D",1,0)
;;=This file is a list of Service Points and associated parameters.
;;^DIC(119.72,"%D",2,0)
;;=A Service Point is a tray assembly line or cafeteria where bulk
;;^DIC(119.72,"%D",3,0)
;;=food from a Production Facility is served.
;;^DD(119.72,0)
;;=FIELD^^200^7
;;^DD(119.72,0,"DT")
;;=2921016
;;^DD(119.72,0,"IX","B",119.72,.01)
;;=
;;^DD(119.72,0,"IX","C",119.72,.5)
;;=
;;^DD(119.72,0,"NM","SERVICE POINT")
;;=
;;^DD(119.72,0,"PT",116.112,.01)
;;=
;;^DD(119.72,0,"PT",119.6,3)
;;=
;;^DD(119.72,0,"PT",119.6,4)
;;=
;;^DD(119.72,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
;;^DD(119.72,.01,1,0)
;;=^.1
;;^DD(119.72,.01,1,1,0)
;;=119.72^B
;;^DD(119.72,.01,1,1,1)
;;=S ^FH(119.72,"B",$E(X,1,30),DA)=""
;;^DD(119.72,.01,1,1,2)
;;=K ^FH(119.72,"B",$E(X,1,30),DA)
;;^DD(119.72,.01,1,1,"%D",0)
;;=^^1^1^2940721^^
;;^DD(119.72,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(119.72,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(119.72,.01,21,0)
;;=^^2^2^2911204^
;;^DD(119.72,.01,21,1,0)
;;=This is the name of the Service Point. It is either a tray assembly
;;^DD(119.72,.01,21,2,0)
;;=line or a cafeteria. It provides food to a group of wards.
;;^DD(119.72,.01,"DT")
;;=2921016
;;^DD(119.72,.5,0)
;;=SHORT NAME^RF^^0;4^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>6!($L(X)<1) X
;;^DD(119.72,.5,1,0)
;;=^.1
;;^DD(119.72,.5,1,1,0)
;;=119.72^C
;;^DD(119.72,.5,1,1,1)
;;=S ^FH(119.72,"C",$E(X,1,30),DA)=""
;;^DD(119.72,.5,1,1,2)
;;=K ^FH(119.72,"C",$E(X,1,30),DA)
;;^DD(119.72,.5,1,1,"DT")
;;=2930427
;;^DD(119.72,.5,3)
;;=Answer must be 1-6 characters in length.
;;^DD(119.72,.5,21,0)
;;=^^2^2^2911204^
;;^DD(119.72,.5,21,1,0)
;;=This is a 6-character short-name to be used on various production
;;^DD(119.72,.5,21,2,0)
;;=reports.
;;^DD(119.72,.5,"DT")
;;=2930427
;;^DD(119.72,1,0)
;;=TYPE^RS^C:CAFETERIA;T:TRAY LINE;^0;2^Q
;;^DD(119.72,1,21,0)
;;=^^2^2^2920410^^
;;^DD(119.72,1,21,1,0)
;;=This indicates whether the Service Point is a Tray assembly point or
;;^DD(119.72,1,21,2,0)
;;=a Cafeteria.
;;^DD(119.72,1,"DT")
;;=2911203
;;^DD(119.72,2,0)
;;=PRODUCTION FACILITY^RP119.71'^FH(119.71,^0;3^Q
;;^DD(119.72,2,21,0)
;;=^^2^2^2911204^
;;^DD(119.72,2,21,1,0)
;;=This field indicates the Production Facility responsible for preparing
;;^DD(119.72,2,21,2,0)
;;=the food served by this Service Point.
;;^DD(119.72,2,"DT")
;;=2911108
;;^DD(119.72,10,0)
;;=ADDITIONAL MEALS^119.721P^^B;0
;;^DD(119.72,10,21,0)
;;=^^3^3^2911211^^
;;^DD(119.72,10,21,1,0)
;;=This multiple represents the number of additional meals, over
;;^DD(119.72,10,21,2,0)
;;=and above the forecast or inpatient census, which are to be
;;^DD(119.72,10,21,3,0)
;;=produced for each meal for each day of the week.
;;^DD(119.72,11,0)
;;=PRODUCTION DIET PERCENTAGE^119.7211P^^A;0
;;^DD(119.72,11,21,0)
;;=^^3^3^2880717^
;;^DD(119.72,11,21,1,0)
;;=This multiple contains the percentage of the total census
;;^DD(119.72,11,21,2,0)
;;=represented by each production diet for each day of the
;;^DD(119.72,11,21,3,0)
;;=week.
;;^DD(119.72,200,0)
;;=CENSUS DATE^119.722DA^^C;0
;;^DD(119.72,200,21,0)
;;=^^2^2^2920107^
;;^DD(119.72,200,21,1,0)
;;=This field contains the date for which various census forecast data
;;^DD(119.72,200,21,2,0)
;;=is available.
;;^DD(119.721,0)
;;=ADDITIONAL MEALS SUB-FIELD^^30^22
;;^DD(119.721,0,"DT")
;;=2911211
;;^DD(119.721,0,"IX","B",119.721,.01)
;;=
;;^DD(119.721,0,"NM","ADDITIONAL MEALS")
;;=
;;^DD(119.721,0,"UP")
;;=119.72
;;^DD(119.721,.01,0)
;;=ADD. MEALS PRODUCTION DIET^MP116.2'X^FH(116.2,^0;1^I $D(X) S DINUM=X
;;^DD(119.721,.01,1,0)
;;=^.1
;;^DD(119.721,.01,1,1,0)
;;=119.721^B
;;^DD(119.721,.01,1,1,1)
;;=S ^FH(119.72,DA(1),"B","B",$E(X,1,30),DA)=""
;;^DD(119.721,.01,1,1,2)
;;=K ^FH(119.72,DA(1),"B","B",$E(X,1,30),DA)
;;^DD(119.721,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(119.721,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the PRODUCTION DIET field.
;;^DD(119.721,.01,21,0)
;;=^^2^2^2911211^^
;;^DD(119.721,.01,21,1,0)
;;=This is the name of the production diet for which additional meals
;;^DD(119.721,.01,21,2,0)
;;=are to be added.
;;^DD(119.721,.01,"DT")
;;=2911211
;;^DD(119.721,10,0)
;;=ADD. SUNDAY BREAKFAST^NJ4,0^^0;2^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.721,10,3)
;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
;;^DD(119.721,10,21,0)
;;=^^2^2^2880716^^
FHINI0MQ ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(119.72)
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(119.72,0,"GL")
+2 ;;=^FH(119.72,
+3 ;;^DIC("B","SERVICE POINT",119.72)
+4 ;;=
+5 ;;^DIC(119.72,"%D",0)
+6 ;;=^^3^3^2911204^
+7 ;;^DIC(119.72,"%D",1,0)
+8 ;;=This file is a list of Service Points and associated parameters.
+9 ;;^DIC(119.72,"%D",2,0)
+10 ;;=A Service Point is a tray assembly line or cafeteria where bulk
+11 ;;^DIC(119.72,"%D",3,0)
+12 ;;=food from a Production Facility is served.
+13 ;;^DD(119.72,0)
+14 ;;=FIELD^^200^7
+15 ;;^DD(119.72,0,"DT")
+16 ;;=2921016
+17 ;;^DD(119.72,0,"IX","B",119.72,.01)
+18 ;;=
+19 ;;^DD(119.72,0,"IX","C",119.72,.5)
+20 ;;=
+21 ;;^DD(119.72,0,"NM","SERVICE POINT")
+22 ;;=
+23 ;;^DD(119.72,0,"PT",116.112,.01)
+24 ;;=
+25 ;;^DD(119.72,0,"PT",119.6,3)
+26 ;;=
+27 ;;^DD(119.72,0,"PT",119.6,4)
+28 ;;=
+29 ;;^DD(119.72,.01,0)
+30 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
+31 ;;^DD(119.72,.01,1,0)
+32 ;;=^.1
+33 ;;^DD(119.72,.01,1,1,0)
+34 ;;=119.72^B
+35 ;;^DD(119.72,.01,1,1,1)
+36 ;;=S ^FH(119.72,"B",$E(X,1,30),DA)=""
+37 ;;^DD(119.72,.01,1,1,2)
+38 ;;=K ^FH(119.72,"B",$E(X,1,30),DA)
+39 ;;^DD(119.72,.01,1,1,"%D",0)
+40 ;;=^^1^1^2940721^^
+41 ;;^DD(119.72,.01,1,1,"%D",1,0)
+42 ;;=This is the normal B cross-reference of the NAME field.
+43 ;;^DD(119.72,.01,3)
+44 ;;=Answer must be 3-30 characters in length.
+45 ;;^DD(119.72,.01,21,0)
+46 ;;=^^2^2^2911204^
+47 ;;^DD(119.72,.01,21,1,0)
+48 ;;=This is the name of the Service Point. It is either a tray assembly
+49 ;;^DD(119.72,.01,21,2,0)
+50 ;;=line or a cafeteria. It provides food to a group of wards.
+51 ;;^DD(119.72,.01,"DT")
+52 ;;=2921016
+53 ;;^DD(119.72,.5,0)
+54 ;;=SHORT NAME^RF^^0;4^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>6!($L(X)<1) X
+55 ;;^DD(119.72,.5,1,0)
+56 ;;=^.1
+57 ;;^DD(119.72,.5,1,1,0)
+58 ;;=119.72^C
+59 ;;^DD(119.72,.5,1,1,1)
+60 ;;=S ^FH(119.72,"C",$E(X,1,30),DA)=""
+61 ;;^DD(119.72,.5,1,1,2)
+62 ;;=K ^FH(119.72,"C",$E(X,1,30),DA)
+63 ;;^DD(119.72,.5,1,1,"DT")
+64 ;;=2930427
+65 ;;^DD(119.72,.5,3)
+66 ;;=Answer must be 1-6 characters in length.
+67 ;;^DD(119.72,.5,21,0)
+68 ;;=^^2^2^2911204^
+69 ;;^DD(119.72,.5,21,1,0)
+70 ;;=This is a 6-character short-name to be used on various production
+71 ;;^DD(119.72,.5,21,2,0)
+72 ;;=reports.
+73 ;;^DD(119.72,.5,"DT")
+74 ;;=2930427
+75 ;;^DD(119.72,1,0)
+76 ;;=TYPE^RS^C:CAFETERIA;T:TRAY LINE;^0;2^Q
+77 ;;^DD(119.72,1,21,0)
+78 ;;=^^2^2^2920410^^
+79 ;;^DD(119.72,1,21,1,0)
+80 ;;=This indicates whether the Service Point is a Tray assembly point or
+81 ;;^DD(119.72,1,21,2,0)
+82 ;;=a Cafeteria.
+83 ;;^DD(119.72,1,"DT")
+84 ;;=2911203
+85 ;;^DD(119.72,2,0)
+86 ;;=PRODUCTION FACILITY^RP119.71'^FH(119.71,^0;3^Q
+87 ;;^DD(119.72,2,21,0)
+88 ;;=^^2^2^2911204^
+89 ;;^DD(119.72,2,21,1,0)
+90 ;;=This field indicates the Production Facility responsible for preparing
+91 ;;^DD(119.72,2,21,2,0)
+92 ;;=the food served by this Service Point.
+93 ;;^DD(119.72,2,"DT")
+94 ;;=2911108
+95 ;;^DD(119.72,10,0)
+96 ;;=ADDITIONAL MEALS^119.721P^^B;0
+97 ;;^DD(119.72,10,21,0)
+98 ;;=^^3^3^2911211^^
+99 ;;^DD(119.72,10,21,1,0)
+100 ;;=This multiple represents the number of additional meals, over
+101 ;;^DD(119.72,10,21,2,0)
+102 ;;=and above the forecast or inpatient census, which are to be
+103 ;;^DD(119.72,10,21,3,0)
+104 ;;=produced for each meal for each day of the week.
+105 ;;^DD(119.72,11,0)
+106 ;;=PRODUCTION DIET PERCENTAGE^119.7211P^^A;0
+107 ;;^DD(119.72,11,21,0)
+108 ;;=^^3^3^2880717^
+109 ;;^DD(119.72,11,21,1,0)
+110 ;;=This multiple contains the percentage of the total census
+111 ;;^DD(119.72,11,21,2,0)
+112 ;;=represented by each production diet for each day of the
+113 ;;^DD(119.72,11,21,3,0)
+114 ;;=week.
+115 ;;^DD(119.72,200,0)
+116 ;;=CENSUS DATE^119.722DA^^C;0
+117 ;;^DD(119.72,200,21,0)
+118 ;;=^^2^2^2920107^
+119 ;;^DD(119.72,200,21,1,0)
+120 ;;=This field contains the date for which various census forecast data
+121 ;;^DD(119.72,200,21,2,0)
+122 ;;=is available.
+123 ;;^DD(119.721,0)
+124 ;;=ADDITIONAL MEALS SUB-FIELD^^30^22
+125 ;;^DD(119.721,0,"DT")
+126 ;;=2911211
+127 ;;^DD(119.721,0,"IX","B",119.721,.01)
+128 ;;=
+129 ;;^DD(119.721,0,"NM","ADDITIONAL MEALS")
+130 ;;=
+131 ;;^DD(119.721,0,"UP")
+132 ;;=119.72
+133 ;;^DD(119.721,.01,0)
+134 ;;=ADD. MEALS PRODUCTION DIET^MP116.2'X^FH(116.2,^0;1^I $D(X) S DINUM=X
+135 ;;^DD(119.721,.01,1,0)
+136 ;;=^.1
+137 ;;^DD(119.721,.01,1,1,0)
+138 ;;=119.721^B
+139 ;;^DD(119.721,.01,1,1,1)
+140 ;;=S ^FH(119.72,DA(1),"B","B",$E(X,1,30),DA)=""
+141 ;;^DD(119.721,.01,1,1,2)
+142 ;;=K ^FH(119.72,DA(1),"B","B",$E(X,1,30),DA)
+143 ;;^DD(119.721,.01,1,1,"%D",0)
+144 ;;=^^1^1^2911118^
+145 ;;^DD(119.721,.01,1,1,"%D",1,0)
+146 ;;=This is the normal B cross-reference of the PRODUCTION DIET field.
+147 ;;^DD(119.721,.01,21,0)
+148 ;;=^^2^2^2911211^^
+149 ;;^DD(119.721,.01,21,1,0)
+150 ;;=This is the name of the production diet for which additional meals
+151 ;;^DD(119.721,.01,21,2,0)
+152 ;;=are to be added.
+153 ;;^DD(119.721,.01,"DT")
+154 ;;=2911211
+155 ;;^DD(119.721,10,0)
+156 ;;=ADD. SUNDAY BREAKFAST^NJ4,0^^0;2^K:+X'=X!(X>1000)!(X<0)!(X?.E1"."1N.N) X
+157 ;;^DD(119.721,10,3)
+158 ;;=TYPE A WHOLE NUMBER BETWEEN 0 AND 1000
+159 ;;^DD(119.721,10,21,0)
+160 ;;=^^2^2^2880716^^