- FHINI0KH ; ; 11-OCT-1995
- ;;5.0;Dietetics;;Oct 11, 1995
- Q:'DIFQ(115) 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(115.01,2.1,21,1,0)
- ;;=This field contains the most recent type of service (tray,
- ;;^DD(115.01,2.1,21,2,0)
- ;;=cafeteria or dining room) selected for the patient. It is
- ;;^DD(115.01,2.1,21,3,0)
- ;;=used as a default for future orders.
- ;;^DD(115.01,2.1,"DT")
- ;;=2880515
- ;;^DD(115.01,3,0)
- ;;=DIET^115.02A^^DI;0
- ;;^DD(115.01,3,21,0)
- ;;=^^2^2^2911223^^^^
- ;;^DD(115.01,3,21,1,0)
- ;;=This multiple contains the individual diet orders which have
- ;;^DD(115.01,3,21,2,0)
- ;;=been entered during this admission.
- ;;^DD(115.01,4,0)
- ;;=DIET SEQUENCE^115.14DA^^AC;0
- ;;^DD(115.01,4,21,0)
- ;;=^^5^5^2911223^^^
- ;;^DD(115.01,4,21,1,0)
- ;;=This multiple indicates the sequence in which the diet orders
- ;;^DD(115.01,4,21,2,0)
- ;;=actually become effective. Since orders entered later supercede
- ;;^DD(115.01,4,21,3,0)
- ;;=earlier orders, the sequence times may not be the same as those
- ;;^DD(115.01,4,21,4,0)
- ;;=of the original order. This multiple is the outcome of a
- ;;^DD(115.01,4,21,5,0)
- ;;=recursive templating schemata.
- ;;^DD(115.01,6,0)
- ;;=CURRENT SF ORDER^NJ4,0I^^0;7^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
- ;;^DD(115.01,6,3)
- ;;=Type a Number between 0 and 9999, 0 Decimal Digits
- ;;^DD(115.01,6,21,0)
- ;;=^^4^4^2880710^
- ;;^DD(115.01,6,21,1,0)
- ;;=This field is actually a pointer to the Supplemental Feeding
- ;;^DD(115.01,6,21,2,0)
- ;;=multiple (Field 20) and, if present, indicates which order
- ;;^DD(115.01,6,21,3,0)
- ;;=is presently in effect. It is updated any time any diet
- ;;^DD(115.01,6,21,4,0)
- ;;=activity involving supplemental feedings takes place.
- ;;^DD(115.01,6,"DT")
- ;;=2880515
- ;;^DD(115.01,9,0)
- ;;=ISOLATION/PRECAUTION^P119.4'^FH(119.4,^0;10^Q
- ;;^DD(115.01,9,1,0)
- ;;=^.1
- ;;^DD(115.01,9,1,1,0)
- ;;=115^AIS^MUMPS
- ;;^DD(115.01,9,1,1,1)
- ;;=S ^FHPT("AIS",DA(1),DA)=""
- ;;^DD(115.01,9,1,1,2)
- ;;=K ^FHPT("AIS",DA(1),DA)
- ;;^DD(115.01,9,1,1,"%D",0)
- ;;=^^1^1^2940824^
- ;;^DD(115.01,9,1,1,"%D",1,0)
- ;;=This cross-reference is a list of patients on isolation/precautions.
- ;;^DD(115.01,9,3)
- ;;=
- ;;^DD(115.01,9,21,0)
- ;;=^^2^2^2880710^
- ;;^DD(115.01,9,21,1,0)
- ;;=This field, if present, indicates that the patient is presently
- ;;^DD(115.01,9,21,2,0)
- ;;=on isolation or special precautions.
- ;;^DD(115.01,9,"DT")
- ;;=2871010
- ;;^DD(115.01,10,0)
- ;;=OE/RR ISOLATION ORDER^P100^OR(100,^0;13^Q
- ;;^DD(115.01,10,21,0)
- ;;=^^2^2^2890919^
- ;;^DD(115.01,10,21,1,0)
- ;;=This field contains the OE/RR file order pointer corresponding
- ;;^DD(115.01,10,21,2,0)
- ;;=to the current Isolation/Precautions.
- ;;^DD(115.01,10,"DT")
- ;;=2890919
- ;;^DD(115.01,11,0)
- ;;=LAST LABEL WARD^P119.6'I^FH(119.6,^0;11^Q
- ;;^DD(115.01,11,3)
- ;;=
- ;;^DD(115.01,11,21,0)
- ;;=^^4^4^2930121^^
- ;;^DD(115.01,11,21,1,0)
- ;;=This field contains the internal number of the ward (from File 42)
- ;;^DD(115.01,11,21,2,0)
- ;;=for which the last diet card label was prepared. Whenever a
- ;;^DD(115.01,11,21,3,0)
- ;;=label run is made, this field is compared with the current ward
- ;;^DD(115.01,11,21,4,0)
- ;;=and, if different, a new label is prepared.
- ;;^DD(115.01,11,"DT")
- ;;=2860702
- ;;^DD(115.01,12,0)
- ;;=LAST LABEL ROOM^FI^^0;12^K:$L(X)>10!($L(X)<1) X
- ;;^DD(115.01,12,3)
- ;;=ANSWER MUST BE 1-10 CHARACTERS IN LENGTH
- ;;^DD(115.01,12,21,0)
- ;;=^^4^4^2880710^
- ;;^DD(115.01,12,21,1,0)
- ;;=This field contains the room-bed for which the last diet card
- ;;^DD(115.01,12,21,2,0)
- ;;=label was prepared. Whenever a label run is made, this field
- ;;^DD(115.01,12,21,3,0)
- ;;=is compared with the current room-bed and, if different, a new
- ;;^DD(115.01,12,21,4,0)
- ;;=label is prepared.
- ;;^DD(115.01,12,"DT")
- ;;=2850826
- ;;^DD(115.01,13,0)
- ;;=DIETETIC WARD^P119.6'^FH(119.6,^0;8^Q
- ;;^DD(115.01,13,1,0)
- ;;=^.1
- ;;^DD(115.01,13,1,1,0)
- ;;=115^AW^MUMPS
- ;;^DD(115.01,13,1,1,1)
- ;;=S ^FHPT("AW",X,DA(1))=DA
- ;;^DD(115.01,13,1,1,2)
- ;;=K ^FHPT("AW",X,DA(1))
- ;;^DD(115.01,13,1,1,"%D",0)
- ;;=^^2^2^2940824^
- ;;^DD(115.01,13,1,1,"%D",1,0)
- ;;=This is a cross-reference of Dietetic Ward by Patient. The
- ;;^DD(115.01,13,1,1,"%D",2,0)
- ;;=cross-reference is set to the admission number.
- ;;^DD(115.01,13,1,1,"DT")
- ;;=2930408
- ;;^DD(115.01,13,21,0)
- ;;=^^2^2^2911204^
- ;;^DD(115.01,13,21,1,0)
- ;;=This field indicates the Dietetic Ward on which the patient is currently
- ;;^DD(115.01,13,21,2,0)
- ;;=residing.
- ;;^DD(115.01,13,"DT")
- ;;=2930408
- ;;^DD(115.01,14,0)
- ;;=ROOM-BED^P405.4'^DG(405.4,^0;9^Q
- ;;^DD(115.01,14,21,0)
- ;;=^^2^2^2911204^
- ;;^DD(115.01,14,21,1,0)
- ;;=This field contains the free-text room-bed in which the patient is
- ;;^DD(115.01,14,21,2,0)
- ;;=currently residing.
- ;;^DD(115.01,14,"DT")
- ;;=2911023
- FHINI0KH ; ; 11-OCT-1995
- +1 ;;5.0;Dietetics;;Oct 11, 1995
- +2 IF 'DIFQ(115)
- 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(115.01,2.1,21,1,0)
- +2 ;;=This field contains the most recent type of service (tray,
- +3 ;;^DD(115.01,2.1,21,2,0)
- +4 ;;=cafeteria or dining room) selected for the patient. It is
- +5 ;;^DD(115.01,2.1,21,3,0)
- +6 ;;=used as a default for future orders.
- +7 ;;^DD(115.01,2.1,"DT")
- +8 ;;=2880515
- +9 ;;^DD(115.01,3,0)
- +10 ;;=DIET^115.02A^^DI;0
- +11 ;;^DD(115.01,3,21,0)
- +12 ;;=^^2^2^2911223^^^^
- +13 ;;^DD(115.01,3,21,1,0)
- +14 ;;=This multiple contains the individual diet orders which have
- +15 ;;^DD(115.01,3,21,2,0)
- +16 ;;=been entered during this admission.
- +17 ;;^DD(115.01,4,0)
- +18 ;;=DIET SEQUENCE^115.14DA^^AC;0
- +19 ;;^DD(115.01,4,21,0)
- +20 ;;=^^5^5^2911223^^^
- +21 ;;^DD(115.01,4,21,1,0)
- +22 ;;=This multiple indicates the sequence in which the diet orders
- +23 ;;^DD(115.01,4,21,2,0)
- +24 ;;=actually become effective. Since orders entered later supercede
- +25 ;;^DD(115.01,4,21,3,0)
- +26 ;;=earlier orders, the sequence times may not be the same as those
- +27 ;;^DD(115.01,4,21,4,0)
- +28 ;;=of the original order. This multiple is the outcome of a
- +29 ;;^DD(115.01,4,21,5,0)
- +30 ;;=recursive templating schemata.
- +31 ;;^DD(115.01,6,0)
- +32 ;;=CURRENT SF ORDER^NJ4,0I^^0;7^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
- +33 ;;^DD(115.01,6,3)
- +34 ;;=Type a Number between 0 and 9999, 0 Decimal Digits
- +35 ;;^DD(115.01,6,21,0)
- +36 ;;=^^4^4^2880710^
- +37 ;;^DD(115.01,6,21,1,0)
- +38 ;;=This field is actually a pointer to the Supplemental Feeding
- +39 ;;^DD(115.01,6,21,2,0)
- +40 ;;=multiple (Field 20) and, if present, indicates which order
- +41 ;;^DD(115.01,6,21,3,0)
- +42 ;;=is presently in effect. It is updated any time any diet
- +43 ;;^DD(115.01,6,21,4,0)
- +44 ;;=activity involving supplemental feedings takes place.
- +45 ;;^DD(115.01,6,"DT")
- +46 ;;=2880515
- +47 ;;^DD(115.01,9,0)
- +48 ;;=ISOLATION/PRECAUTION^P119.4'^FH(119.4,^0;10^Q
- +49 ;;^DD(115.01,9,1,0)
- +50 ;;=^.1
- +51 ;;^DD(115.01,9,1,1,0)
- +52 ;;=115^AIS^MUMPS
- +53 ;;^DD(115.01,9,1,1,1)
- +54 ;;=S ^FHPT("AIS",DA(1),DA)=""
- +55 ;;^DD(115.01,9,1,1,2)
- +56 ;;=K ^FHPT("AIS",DA(1),DA)
- +57 ;;^DD(115.01,9,1,1,"%D",0)
- +58 ;;=^^1^1^2940824^
- +59 ;;^DD(115.01,9,1,1,"%D",1,0)
- +60 ;;=This cross-reference is a list of patients on isolation/precautions.
- +61 ;;^DD(115.01,9,3)
- +62 ;;=
- +63 ;;^DD(115.01,9,21,0)
- +64 ;;=^^2^2^2880710^
- +65 ;;^DD(115.01,9,21,1,0)
- +66 ;;=This field, if present, indicates that the patient is presently
- +67 ;;^DD(115.01,9,21,2,0)
- +68 ;;=on isolation or special precautions.
- +69 ;;^DD(115.01,9,"DT")
- +70 ;;=2871010
- +71 ;;^DD(115.01,10,0)
- +72 ;;=OE/RR ISOLATION ORDER^P100^OR(100,^0;13^Q
- +73 ;;^DD(115.01,10,21,0)
- +74 ;;=^^2^2^2890919^
- +75 ;;^DD(115.01,10,21,1,0)
- +76 ;;=This field contains the OE/RR file order pointer corresponding
- +77 ;;^DD(115.01,10,21,2,0)
- +78 ;;=to the current Isolation/Precautions.
- +79 ;;^DD(115.01,10,"DT")
- +80 ;;=2890919
- +81 ;;^DD(115.01,11,0)
- +82 ;;=LAST LABEL WARD^P119.6'I^FH(119.6,^0;11^Q
- +83 ;;^DD(115.01,11,3)
- +84 ;;=
- +85 ;;^DD(115.01,11,21,0)
- +86 ;;=^^4^4^2930121^^
- +87 ;;^DD(115.01,11,21,1,0)
- +88 ;;=This field contains the internal number of the ward (from File 42)
- +89 ;;^DD(115.01,11,21,2,0)
- +90 ;;=for which the last diet card label was prepared. Whenever a
- +91 ;;^DD(115.01,11,21,3,0)
- +92 ;;=label run is made, this field is compared with the current ward
- +93 ;;^DD(115.01,11,21,4,0)
- +94 ;;=and, if different, a new label is prepared.
- +95 ;;^DD(115.01,11,"DT")
- +96 ;;=2860702
- +97 ;;^DD(115.01,12,0)
- +98 ;;=LAST LABEL ROOM^FI^^0;12^K:$L(X)>10!($L(X)<1) X
- +99 ;;^DD(115.01,12,3)
- +100 ;;=ANSWER MUST BE 1-10 CHARACTERS IN LENGTH
- +101 ;;^DD(115.01,12,21,0)
- +102 ;;=^^4^4^2880710^
- +103 ;;^DD(115.01,12,21,1,0)
- +104 ;;=This field contains the room-bed for which the last diet card
- +105 ;;^DD(115.01,12,21,2,0)
- +106 ;;=label was prepared. Whenever a label run is made, this field
- +107 ;;^DD(115.01,12,21,3,0)
- +108 ;;=is compared with the current room-bed and, if different, a new
- +109 ;;^DD(115.01,12,21,4,0)
- +110 ;;=label is prepared.
- +111 ;;^DD(115.01,12,"DT")
- +112 ;;=2850826
- +113 ;;^DD(115.01,13,0)
- +114 ;;=DIETETIC WARD^P119.6'^FH(119.6,^0;8^Q
- +115 ;;^DD(115.01,13,1,0)
- +116 ;;=^.1
- +117 ;;^DD(115.01,13,1,1,0)
- +118 ;;=115^AW^MUMPS
- +119 ;;^DD(115.01,13,1,1,1)
- +120 ;;=S ^FHPT("AW",X,DA(1))=DA
- +121 ;;^DD(115.01,13,1,1,2)
- +122 ;;=K ^FHPT("AW",X,DA(1))
- +123 ;;^DD(115.01,13,1,1,"%D",0)
- +124 ;;=^^2^2^2940824^
- +125 ;;^DD(115.01,13,1,1,"%D",1,0)
- +126 ;;=This is a cross-reference of Dietetic Ward by Patient. The
- +127 ;;^DD(115.01,13,1,1,"%D",2,0)
- +128 ;;=cross-reference is set to the admission number.
- +129 ;;^DD(115.01,13,1,1,"DT")
- +130 ;;=2930408
- +131 ;;^DD(115.01,13,21,0)
- +132 ;;=^^2^2^2911204^
- +133 ;;^DD(115.01,13,21,1,0)
- +134 ;;=This field indicates the Dietetic Ward on which the patient is currently
- +135 ;;^DD(115.01,13,21,2,0)
- +136 ;;=residing.
- +137 ;;^DD(115.01,13,"DT")
- +138 ;;=2930408
- +139 ;;^DD(115.01,14,0)
- +140 ;;=ROOM-BED^P405.4'^DG(405.4,^0;9^Q
- +141 ;;^DD(115.01,14,21,0)
- +142 ;;=^^2^2^2911204^
- +143 ;;^DD(115.01,14,21,1,0)
- +144 ;;=This field contains the free-text room-bed in which the patient is
- +145 ;;^DD(115.01,14,21,2,0)
- +146 ;;=currently residing.
- +147 ;;^DD(115.01,14,"DT")
- +148 ;;=2911023