FHINI0ML ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(119.6) 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.6,0,"GL")
;;=^FH(119.6,
;;^DIC("B","DIETETICS WARD",119.6)
;;=
;;^DIC(119.6,"%D",0)
;;=^^5^5^2911204^^^
;;^DIC(119.6,"%D",1,0)
;;=This file is a list of wards in the hospital and associated room-beds
;;^DIC(119.6,"%D",2,0)
;;=and contains various dietetic specific information such
;;^DIC(119.6,"%D",3,0)
;;=as the assigned clinician, bulk nourishments for the ward, and
;;^DIC(119.6,"%D",4,0)
;;=which Service Point, Communication Office, and Supplemental Feeding
;;^DIC(119.6,"%D",5,0)
;;=Site is assigned responsibility for the ward.
;;^DD(119.6,0)
;;=FIELD^^101^26
;;^DD(119.6,0,"DT")
;;=2940413
;;^DD(119.6,0,"IX","AP",119.6,11)
;;=
;;^DD(119.6,0,"IX","AR",119.62,.01)
;;=
;;^DD(119.6,0,"IX","AS1",119.6,3)
;;=
;;^DD(119.6,0,"IX","AS2",119.6,4)
;;=
;;^DD(119.6,0,"IX","AS3",119.6,5)
;;=
;;^DD(119.6,0,"IX","AW",119.63,.01)
;;=
;;^DD(119.6,0,"IX","B",119.6,.01)
;;=
;;^DD(119.6,0,"NM","DIETETICS WARD")
;;=
;;^DD(119.6,0,"PT",115.01,11)
;;=
;;^DD(119.6,0,"PT",115.01,13)
;;=
;;^DD(119.6,0,"PT",115.012,5)
;;=
;;^DD(119.6,.01,0)
;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<1) X
;;^DD(119.6,.01,1,0)
;;=^.1
;;^DD(119.6,.01,1,1,0)
;;=119.6^B
;;^DD(119.6,.01,1,1,1)
;;=S ^FH(119.6,"B",$E(X,1,30),DA)=""
;;^DD(119.6,.01,1,1,2)
;;=K ^FH(119.6,"B",$E(X,1,30),DA)
;;^DD(119.6,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(119.6,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NAME field.
;;^DD(119.6,.01,3)
;;=Answer must be 1-30 characters in length.
;;^DD(119.6,.01,21,0)
;;=^^1^1^2920507^^^^
;;^DD(119.6,.01,21,1,0)
;;=This is the name of a ward on which dietetic activity occurs.
;;^DD(119.6,.01,"DT")
;;=2911015
;;^DD(119.6,1,0)
;;=CLINICIAN^RP200'^VA(200,^0;2^Q
;;^DD(119.6,1,21,0)
;;=^^3^3^2880717^
;;^DD(119.6,1,21,1,0)
;;=This field contains the clinician assigned to the ward and the
;;^DD(119.6,1,21,2,0)
;;=one to whom dietetic consults will be routed and notification
;;^DD(119.6,1,21,3,0)
;;=made of special diet orders and tubefeedings.
;;^DD(119.6,2,0)
;;=ROOM-BED^119.62P^^R;0
;;^DD(119.6,2,21,0)
;;=^^2^2^2911211^^^
;;^DD(119.6,2,21,1,0)
;;=This is a pointer to File 405.4 and indicates that that room-bed
;;^DD(119.6,2,21,2,0)
;;=is to be considered part of this Dietetic Ward.
;;^DD(119.6,2.5,0)
;;=ASSOCIATED MAS WARD^119.63P^^W;0
;;^DD(119.6,2.5,21,0)
;;=^^3^3^2911211^^
;;^DD(119.6,2.5,21,1,0)
;;=This is a list of MAS wards which are to be used as defaults to this
;;^DD(119.6,2.5,21,2,0)
;;=Dietetic ward for purposes of patient location when the room-bed is
;;^DD(119.6,2.5,21,3,0)
;;=unknown and for purposes of forecasting.
;;^DD(119.6,3,0)
;;=TRAY SERVICE POINT^*P119.72'^FH(119.72,^0;5^S DIC("S")="I $P(^(0),U,2)=""T""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(119.6,3,1,0)
;;=^.1
;;^DD(119.6,3,1,1,0)
;;=119.6^AS1^MUMPS
;;^DD(119.6,3,1,1,1)
;;=S Y="" S:$P(^FH(119.6,DA,0),"^",5) Y=Y_"T" S:$P(^(0),"^",6) Y=Y_"C" S:$P(^(0),"^",7) Y=Y_"D" S $P(^(0),"^",10)=Y
;;^DD(119.6,3,1,1,2)
;;=S $P(^FH(119.6,DA,0),"^",10)=""
;;^DD(119.6,3,1,1,"%D",0)
;;=^^3^3^2940823^^
;;^DD(119.6,3,1,1,"%D",1,0)
;;=This cross-reference, along with that on Fields 4 and 5, is used to
;;^DD(119.6,3,1,1,"%D",2,0)
;;=set the Services Field. It is a string containing C, T, and/or D
;;^DD(119.6,3,1,1,"%D",3,0)
;;=indicating which services are available for this ward.
;;^DD(119.6,3,1,1,"DT")
;;=2911031
;;^DD(119.6,3,12)
;;=Allows selection only of tray lines
;;^DD(119.6,3,12.1)
;;=S DIC("S")="I $P(^(0),U,2)=""T"""
;;^DD(119.6,3,21,0)
;;=^^4^4^2920505^^^^
;;^DD(119.6,3,21,1,0)
;;=This field, if used, indicates that tray service is available to this
;;^DD(119.6,3,21,2,0)
;;=ward and is provided by the indicated Service Point. Note: if a Dining
;;^DD(119.6,3,21,3,0)
;;=Room is also available, then a Tray Service Point must be specified
;;^DD(119.6,3,21,4,0)
;;=as Dining Room trays are prepared there.
;;^DD(119.6,3,"DT")
;;=2911204
;;^DD(119.6,3.5,0)
;;=TRAY FORECAST %^NJ3,0^^0;17^K:+X'=X!(X>120)!(X<0)!(X?.E1"."1N.N) X
;;^DD(119.6,3.5,3)
;;=Type a Number between 0 and 120, 0 Decimal Digits
;;^DD(119.6,3.5,21,0)
;;=^^1^1^2911204^
;;^DD(119.6,3.5,21,1,0)
;;=This is the % of patients on the ward typically receiving tray service.
;;^DD(119.6,3.5,"DT")
;;=2911120
;;^DD(119.6,4,0)
;;=CAFETERIA SERVICE POINT^*P119.72'^FH(119.72,^0;6^S DIC("S")="I $P(^(0),U,2)=""C""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(119.6,4,1,0)
;;=^.1
;;^DD(119.6,4,1,1,0)
;;=119.6^AS2^MUMPS
;;^DD(119.6,4,1,1,1)
;;=S Y="" S:$P(^FH(119.6,DA,0),"^",5) Y=Y_"T" S:$P(^(0),"^",6) Y=Y_"C" S:$P(^(0),"^",7) Y=Y_"D" S $P(^(0),"^",10)=Y
FHINI0ML ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(119.6)
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.6,0,"GL")
+2 ;;=^FH(119.6,
+3 ;;^DIC("B","DIETETICS WARD",119.6)
+4 ;;=
+5 ;;^DIC(119.6,"%D",0)
+6 ;;=^^5^5^2911204^^^
+7 ;;^DIC(119.6,"%D",1,0)
+8 ;;=This file is a list of wards in the hospital and associated room-beds
+9 ;;^DIC(119.6,"%D",2,0)
+10 ;;=and contains various dietetic specific information such
+11 ;;^DIC(119.6,"%D",3,0)
+12 ;;=as the assigned clinician, bulk nourishments for the ward, and
+13 ;;^DIC(119.6,"%D",4,0)
+14 ;;=which Service Point, Communication Office, and Supplemental Feeding
+15 ;;^DIC(119.6,"%D",5,0)
+16 ;;=Site is assigned responsibility for the ward.
+17 ;;^DD(119.6,0)
+18 ;;=FIELD^^101^26
+19 ;;^DD(119.6,0,"DT")
+20 ;;=2940413
+21 ;;^DD(119.6,0,"IX","AP",119.6,11)
+22 ;;=
+23 ;;^DD(119.6,0,"IX","AR",119.62,.01)
+24 ;;=
+25 ;;^DD(119.6,0,"IX","AS1",119.6,3)
+26 ;;=
+27 ;;^DD(119.6,0,"IX","AS2",119.6,4)
+28 ;;=
+29 ;;^DD(119.6,0,"IX","AS3",119.6,5)
+30 ;;=
+31 ;;^DD(119.6,0,"IX","AW",119.63,.01)
+32 ;;=
+33 ;;^DD(119.6,0,"IX","B",119.6,.01)
+34 ;;=
+35 ;;^DD(119.6,0,"NM","DIETETICS WARD")
+36 ;;=
+37 ;;^DD(119.6,0,"PT",115.01,11)
+38 ;;=
+39 ;;^DD(119.6,0,"PT",115.01,13)
+40 ;;=
+41 ;;^DD(119.6,0,"PT",115.012,5)
+42 ;;=
+43 ;;^DD(119.6,.01,0)
+44 ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<1) X
+45 ;;^DD(119.6,.01,1,0)
+46 ;;=^.1
+47 ;;^DD(119.6,.01,1,1,0)
+48 ;;=119.6^B
+49 ;;^DD(119.6,.01,1,1,1)
+50 ;;=S ^FH(119.6,"B",$E(X,1,30),DA)=""
+51 ;;^DD(119.6,.01,1,1,2)
+52 ;;=K ^FH(119.6,"B",$E(X,1,30),DA)
+53 ;;^DD(119.6,.01,1,1,"%D",0)
+54 ;;=^^1^1^2911118^
+55 ;;^DD(119.6,.01,1,1,"%D",1,0)
+56 ;;=This is the normal B cross-reference of the NAME field.
+57 ;;^DD(119.6,.01,3)
+58 ;;=Answer must be 1-30 characters in length.
+59 ;;^DD(119.6,.01,21,0)
+60 ;;=^^1^1^2920507^^^^
+61 ;;^DD(119.6,.01,21,1,0)
+62 ;;=This is the name of a ward on which dietetic activity occurs.
+63 ;;^DD(119.6,.01,"DT")
+64 ;;=2911015
+65 ;;^DD(119.6,1,0)
+66 ;;=CLINICIAN^RP200'^VA(200,^0;2^Q
+67 ;;^DD(119.6,1,21,0)
+68 ;;=^^3^3^2880717^
+69 ;;^DD(119.6,1,21,1,0)
+70 ;;=This field contains the clinician assigned to the ward and the
+71 ;;^DD(119.6,1,21,2,0)
+72 ;;=one to whom dietetic consults will be routed and notification
+73 ;;^DD(119.6,1,21,3,0)
+74 ;;=made of special diet orders and tubefeedings.
+75 ;;^DD(119.6,2,0)
+76 ;;=ROOM-BED^119.62P^^R;0
+77 ;;^DD(119.6,2,21,0)
+78 ;;=^^2^2^2911211^^^
+79 ;;^DD(119.6,2,21,1,0)
+80 ;;=This is a pointer to File 405.4 and indicates that that room-bed
+81 ;;^DD(119.6,2,21,2,0)
+82 ;;=is to be considered part of this Dietetic Ward.
+83 ;;^DD(119.6,2.5,0)
+84 ;;=ASSOCIATED MAS WARD^119.63P^^W;0
+85 ;;^DD(119.6,2.5,21,0)
+86 ;;=^^3^3^2911211^^
+87 ;;^DD(119.6,2.5,21,1,0)
+88 ;;=This is a list of MAS wards which are to be used as defaults to this
+89 ;;^DD(119.6,2.5,21,2,0)
+90 ;;=Dietetic ward for purposes of patient location when the room-bed is
+91 ;;^DD(119.6,2.5,21,3,0)
+92 ;;=unknown and for purposes of forecasting.
+93 ;;^DD(119.6,3,0)
+94 ;;=TRAY SERVICE POINT^*P119.72'^FH(119.72,^0;5^S DIC("S")="I $P(^(0),U,2)=""T""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+95 ;;^DD(119.6,3,1,0)
+96 ;;=^.1
+97 ;;^DD(119.6,3,1,1,0)
+98 ;;=119.6^AS1^MUMPS
+99 ;;^DD(119.6,3,1,1,1)
+100 ;;=S Y="" S:$P(^FH(119.6,DA,0),"^",5) Y=Y_"T" S:$P(^(0),"^",6) Y=Y_"C" S:$P(^(0),"^",7) Y=Y_"D" S $P(^(0),"^",10)=Y
+101 ;;^DD(119.6,3,1,1,2)
+102 ;;=S $P(^FH(119.6,DA,0),"^",10)=""
+103 ;;^DD(119.6,3,1,1,"%D",0)
+104 ;;=^^3^3^2940823^^
+105 ;;^DD(119.6,3,1,1,"%D",1,0)
+106 ;;=This cross-reference, along with that on Fields 4 and 5, is used to
+107 ;;^DD(119.6,3,1,1,"%D",2,0)
+108 ;;=set the Services Field. It is a string containing C, T, and/or D
+109 ;;^DD(119.6,3,1,1,"%D",3,0)
+110 ;;=indicating which services are available for this ward.
+111 ;;^DD(119.6,3,1,1,"DT")
+112 ;;=2911031
+113 ;;^DD(119.6,3,12)
+114 ;;=Allows selection only of tray lines
+115 ;;^DD(119.6,3,12.1)
+116 ;;=S DIC("S")="I $P(^(0),U,2)=""T"""
+117 ;;^DD(119.6,3,21,0)
+118 ;;=^^4^4^2920505^^^^
+119 ;;^DD(119.6,3,21,1,0)
+120 ;;=This field, if used, indicates that tray service is available to this
+121 ;;^DD(119.6,3,21,2,0)
+122 ;;=ward and is provided by the indicated Service Point. Note: if a Dining
+123 ;;^DD(119.6,3,21,3,0)
+124 ;;=Room is also available, then a Tray Service Point must be specified
+125 ;;^DD(119.6,3,21,4,0)
+126 ;;=as Dining Room trays are prepared there.
+127 ;;^DD(119.6,3,"DT")
+128 ;;=2911204
+129 ;;^DD(119.6,3.5,0)
+130 ;;=TRAY FORECAST %^NJ3,0^^0;17^K:+X'=X!(X>120)!(X<0)!(X?.E1"."1N.N) X
+131 ;;^DD(119.6,3.5,3)
+132 ;;=Type a Number between 0 and 120, 0 Decimal Digits
+133 ;;^DD(119.6,3.5,21,0)
+134 ;;=^^1^1^2911204^
+135 ;;^DD(119.6,3.5,21,1,0)
+136 ;;=This is the % of patients on the ward typically receiving tray service.
+137 ;;^DD(119.6,3.5,"DT")
+138 ;;=2911120
+139 ;;^DD(119.6,4,0)
+140 ;;=CAFETERIA SERVICE POINT^*P119.72'^FH(119.72,^0;6^S DIC("S")="I $P(^(0),U,2)=""C""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+141 ;;^DD(119.6,4,1,0)
+142 ;;=^.1
+143 ;;^DD(119.6,4,1,1,0)
+144 ;;=119.6^AS2^MUMPS
+145 ;;^DD(119.6,4,1,1,1)
+146 ;;=S Y="" S:$P(^FH(119.6,DA,0),"^",5) Y=Y_"T" S:$P(^(0),"^",6) Y=Y_"C" S:$P(^(0),"^",7) Y=Y_"D" S $P(^(0),"^",10)=Y