FHINI0KN ; ; 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.02,15,21,2,0)
;;=(Reviews are based upon the coded Production Diet). Further reviews are
;;^DD(115.02,15,21,3,0)
;;=based upon this last review date/time.
;;^DD(115.02,15,"DT")
;;=2910430
;;^DD(115.02,16,0)
;;=REVIEW CLERK^P200'^VA(200,^0;17^Q
;;^DD(115.02,16,21,0)
;;=^^1^1^2941110^^
;;^DD(115.02,16,21,1,0)
;;=This is a pointer to File 200 of the person entering the review.
;;^DD(115.02,16,"DT")
;;=2910430
;;^DD(115.02,17,0)
;;=CANCELLED DATE/TIME^D^^0;18^S %DT="ET" D ^%DT S X=Y K:Y<1 X
;;^DD(115.02,17,21,0)
;;=^^1^1^2941110^^^
;;^DD(115.02,17,21,1,0)
;;=This field contains the Date/Time when the NPO was cancelled.
;;^DD(115.02,17,"DT")
;;=2920318
;;^DD(115.02,18,0)
;;=CANCELLING CLERK^P200'^VA(200,^0;19^Q
;;^DD(115.02,18,21,0)
;;=^^2^2^2920318^^
;;^DD(115.02,18,21,1,0)
;;=This field contains the user who cancelled the NPO and is
;;^DD(115.02,18,21,2,0)
;;=captured automatically at the time of cancellation.
;;^DD(115.02,18,"DT")
;;=2920318
;;^DD(115.02,19,0)
;;=INDIVIDUAL PATTERN^FI^^2;1^K:$L(X)>200!($L(X)<2) X
;;^DD(115.02,19,3)
;;=Answer must be 2-200 characters in length.
;;^DD(115.02,19,21,0)
;;=^^6^6^2940526^^^
;;^DD(115.02,19,21,1,0)
;;=This field is the individual meal pattern for the patient which
;;^DD(115.02,19,21,2,0)
;;=contains three strings of codes, each code separated by a space contains
;;^DD(115.02,19,21,3,0)
;;=the internal number of the recipe category and the quantity separated
;;^DD(115.02,19,21,4,0)
;;=by a comma for the three meals, breakfast, noon, and evening, each
;;^DD(115.02,19,21,5,0)
;;=separated by a semicolon. The meal pattern will take precedence over
;;^DD(115.02,19,21,6,0)
;;=the diet pattern entered in the Diet Pattern file (111.1).
;;^DD(115.02,19,"DT")
;;=2941110
;;^DD(115.02,20,0)
;;=PATTERN CLERK^P200'^VA(200,^3;1^Q
;;^DD(115.02,20,21,0)
;;=^^2^2^2941110^
;;^DD(115.02,20,21,1,0)
;;=This is a pointer to File 200 of the person entering the patient's
;;^DD(115.02,20,21,2,0)
;;=individual Diet Pattern.
;;^DD(115.02,20,"DT")
;;=2941110
;;^DD(115.02,21,0)
;;=DATE/TIME PATTERN ENTERED^D^^3;2^S %DT="ET" D ^%DT S X=Y K:Y<1 X
;;^DD(115.02,21,21,0)
;;=^^2^2^2941110^
;;^DD(115.02,21,21,1,0)
;;=This field contains the Date/Time when the Diet Pattern was
;;^DD(115.02,21,21,2,0)
;;=entered.
;;^DD(115.02,21,"DT")
;;=2941110
;;^DD(115.021,0)
;;=LAB DATA SUB-FIELD^^6^7
;;^DD(115.021,0,"IX","B",115.021,.01)
;;=
;;^DD(115.021,0,"NM","LAB DATA")
;;=
;;^DD(115.021,0,"UP")
;;=115.011
;;^DD(115.021,.01,0)
;;=TEST NAME^MF^^0;1^K:$L(X)>30!($L(X)<1) X
;;^DD(115.021,.01,1,0)
;;=^.1
;;^DD(115.021,.01,1,1,0)
;;=115.021^B
;;^DD(115.021,.01,1,1,1)
;;=S ^FHPT(DA(2),"N",DA(1),"L","B",$E(X,1,30),DA)=""
;;^DD(115.021,.01,1,1,2)
;;=K ^FHPT(DA(2),"N",DA(1),"L","B",$E(X,1,30),DA)
;;^DD(115.021,.01,1,1,"%D",0)
;;=^^1^1^2911118^
;;^DD(115.021,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the TEST NAME field.
;;^DD(115.021,.01,3)
;;=Answer must be 1-30 characters in length.
;;^DD(115.021,.01,21,0)
;;=^^1^1^2891121^
;;^DD(115.021,.01,21,1,0)
;;=This field contains the name of the lab test.
;;^DD(115.021,.01,"DT")
;;=2890705
;;^DD(115.021,1,0)
;;=LAB TEST^P60'^LAB(60,^0;2^Q
;;^DD(115.021,1,21,0)
;;=^^2^2^2910813^^^^
;;^DD(115.021,1,21,1,0)
;;=This field contains a pointer to the Lab Test file (60)
;;^DD(115.021,1,21,2,0)
;;=corresponding to this lab test.
;;^DD(115.021,1,"DT")
;;=2890705
;;^DD(115.021,2,0)
;;=SPECIMEN^NJ4,0^^0;3^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.021,2,3)
;;=Type a Number between 1 and 9999, 0 Decimal Digits
;;^DD(115.021,2,21,0)
;;=2
;;^DD(115.021,2,21,1,0)
;;=This field contains a pointer to the specimen type used
;;^DD(115.021,2,21,2,0)
;;=for the lab test.
;;^DD(115.021,2,"DT")
;;=2890705
;;^DD(115.021,3,0)
;;=UNITS^F^^0;4^K:$L(X)>10!($L(X)<1) X
;;^DD(115.021,3,3)
;;=Answer must be 1-10 characters in length.
;;^DD(115.021,3,21,0)
;;=1^^1^1^2901217^
;;^DD(115.021,3,21,1,0)
;;=This field indicates the units in which the result is expressed.
;;^DD(115.021,3,"DT")
;;=2890705
;;^DD(115.021,4,0)
;;=REF. RANGE^F^^0;5^K:$L(X)>11!($L(X)<4) X
;;^DD(115.021,4,3)
;;=Answer must be 4-11 characters in length.
;;^DD(115.021,4,21,0)
;;=^^2^2^2940616^
;;^DD(115.021,4,21,1,0)
;;=This field provides the low-high reference (or normal) range
;;^DD(115.021,4,21,2,0)
;;=for the lab test.
;;^DD(115.021,4,"DT")
;;=2890705
;;^DD(115.021,5,0)
;;=RESULT^F^^0;6^K:$L(X)>10!($L(X)<1) X
;;^DD(115.021,5,3)
;;=Answer must be 1-10 characters in length.
FHINI0KN ; ; 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.02,15,21,2,0)
+2 ;;=(Reviews are based upon the coded Production Diet). Further reviews are
+3 ;;^DD(115.02,15,21,3,0)
+4 ;;=based upon this last review date/time.
+5 ;;^DD(115.02,15,"DT")
+6 ;;=2910430
+7 ;;^DD(115.02,16,0)
+8 ;;=REVIEW CLERK^P200'^VA(200,^0;17^Q
+9 ;;^DD(115.02,16,21,0)
+10 ;;=^^1^1^2941110^^
+11 ;;^DD(115.02,16,21,1,0)
+12 ;;=This is a pointer to File 200 of the person entering the review.
+13 ;;^DD(115.02,16,"DT")
+14 ;;=2910430
+15 ;;^DD(115.02,17,0)
+16 ;;=CANCELLED DATE/TIME^D^^0;18^S %DT="ET" D ^%DT S X=Y K:Y<1 X
+17 ;;^DD(115.02,17,21,0)
+18 ;;=^^1^1^2941110^^^
+19 ;;^DD(115.02,17,21,1,0)
+20 ;;=This field contains the Date/Time when the NPO was cancelled.
+21 ;;^DD(115.02,17,"DT")
+22 ;;=2920318
+23 ;;^DD(115.02,18,0)
+24 ;;=CANCELLING CLERK^P200'^VA(200,^0;19^Q
+25 ;;^DD(115.02,18,21,0)
+26 ;;=^^2^2^2920318^^
+27 ;;^DD(115.02,18,21,1,0)
+28 ;;=This field contains the user who cancelled the NPO and is
+29 ;;^DD(115.02,18,21,2,0)
+30 ;;=captured automatically at the time of cancellation.
+31 ;;^DD(115.02,18,"DT")
+32 ;;=2920318
+33 ;;^DD(115.02,19,0)
+34 ;;=INDIVIDUAL PATTERN^FI^^2;1^K:$L(X)>200!($L(X)<2) X
+35 ;;^DD(115.02,19,3)
+36 ;;=Answer must be 2-200 characters in length.
+37 ;;^DD(115.02,19,21,0)
+38 ;;=^^6^6^2940526^^^
+39 ;;^DD(115.02,19,21,1,0)
+40 ;;=This field is the individual meal pattern for the patient which
+41 ;;^DD(115.02,19,21,2,0)
+42 ;;=contains three strings of codes, each code separated by a space contains
+43 ;;^DD(115.02,19,21,3,0)
+44 ;;=the internal number of the recipe category and the quantity separated
+45 ;;^DD(115.02,19,21,4,0)
+46 ;;=by a comma for the three meals, breakfast, noon, and evening, each
+47 ;;^DD(115.02,19,21,5,0)
+48 ;;=separated by a semicolon. The meal pattern will take precedence over
+49 ;;^DD(115.02,19,21,6,0)
+50 ;;=the diet pattern entered in the Diet Pattern file (111.1).
+51 ;;^DD(115.02,19,"DT")
+52 ;;=2941110
+53 ;;^DD(115.02,20,0)
+54 ;;=PATTERN CLERK^P200'^VA(200,^3;1^Q
+55 ;;^DD(115.02,20,21,0)
+56 ;;=^^2^2^2941110^
+57 ;;^DD(115.02,20,21,1,0)
+58 ;;=This is a pointer to File 200 of the person entering the patient's
+59 ;;^DD(115.02,20,21,2,0)
+60 ;;=individual Diet Pattern.
+61 ;;^DD(115.02,20,"DT")
+62 ;;=2941110
+63 ;;^DD(115.02,21,0)
+64 ;;=DATE/TIME PATTERN ENTERED^D^^3;2^S %DT="ET" D ^%DT S X=Y K:Y<1 X
+65 ;;^DD(115.02,21,21,0)
+66 ;;=^^2^2^2941110^
+67 ;;^DD(115.02,21,21,1,0)
+68 ;;=This field contains the Date/Time when the Diet Pattern was
+69 ;;^DD(115.02,21,21,2,0)
+70 ;;=entered.
+71 ;;^DD(115.02,21,"DT")
+72 ;;=2941110
+73 ;;^DD(115.021,0)
+74 ;;=LAB DATA SUB-FIELD^^6^7
+75 ;;^DD(115.021,0,"IX","B",115.021,.01)
+76 ;;=
+77 ;;^DD(115.021,0,"NM","LAB DATA")
+78 ;;=
+79 ;;^DD(115.021,0,"UP")
+80 ;;=115.011
+81 ;;^DD(115.021,.01,0)
+82 ;;=TEST NAME^MF^^0;1^K:$L(X)>30!($L(X)<1) X
+83 ;;^DD(115.021,.01,1,0)
+84 ;;=^.1
+85 ;;^DD(115.021,.01,1,1,0)
+86 ;;=115.021^B
+87 ;;^DD(115.021,.01,1,1,1)
+88 ;;=S ^FHPT(DA(2),"N",DA(1),"L","B",$E(X,1,30),DA)=""
+89 ;;^DD(115.021,.01,1,1,2)
+90 ;;=K ^FHPT(DA(2),"N",DA(1),"L","B",$E(X,1,30),DA)
+91 ;;^DD(115.021,.01,1,1,"%D",0)
+92 ;;=^^1^1^2911118^
+93 ;;^DD(115.021,.01,1,1,"%D",1,0)
+94 ;;=This is the normal B cross-reference of the TEST NAME field.
+95 ;;^DD(115.021,.01,3)
+96 ;;=Answer must be 1-30 characters in length.
+97 ;;^DD(115.021,.01,21,0)
+98 ;;=^^1^1^2891121^
+99 ;;^DD(115.021,.01,21,1,0)
+100 ;;=This field contains the name of the lab test.
+101 ;;^DD(115.021,.01,"DT")
+102 ;;=2890705
+103 ;;^DD(115.021,1,0)
+104 ;;=LAB TEST^P60'^LAB(60,^0;2^Q
+105 ;;^DD(115.021,1,21,0)
+106 ;;=^^2^2^2910813^^^^
+107 ;;^DD(115.021,1,21,1,0)
+108 ;;=This field contains a pointer to the Lab Test file (60)
+109 ;;^DD(115.021,1,21,2,0)
+110 ;;=corresponding to this lab test.
+111 ;;^DD(115.021,1,"DT")
+112 ;;=2890705
+113 ;;^DD(115.021,2,0)
+114 ;;=SPECIMEN^NJ4,0^^0;3^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
+115 ;;^DD(115.021,2,3)
+116 ;;=Type a Number between 1 and 9999, 0 Decimal Digits
+117 ;;^DD(115.021,2,21,0)
+118 ;;=2
+119 ;;^DD(115.021,2,21,1,0)
+120 ;;=This field contains a pointer to the specimen type used
+121 ;;^DD(115.021,2,21,2,0)
+122 ;;=for the lab test.
+123 ;;^DD(115.021,2,"DT")
+124 ;;=2890705
+125 ;;^DD(115.021,3,0)
+126 ;;=UNITS^F^^0;4^K:$L(X)>10!($L(X)<1) X
+127 ;;^DD(115.021,3,3)
+128 ;;=Answer must be 1-10 characters in length.
+129 ;;^DD(115.021,3,21,0)
+130 ;;=1^^1^1^2901217^
+131 ;;^DD(115.021,3,21,1,0)
+132 ;;=This field indicates the units in which the result is expressed.
+133 ;;^DD(115.021,3,"DT")
+134 ;;=2890705
+135 ;;^DD(115.021,4,0)
+136 ;;=REF. RANGE^F^^0;5^K:$L(X)>11!($L(X)<4) X
+137 ;;^DD(115.021,4,3)
+138 ;;=Answer must be 4-11 characters in length.
+139 ;;^DD(115.021,4,21,0)
+140 ;;=^^2^2^2940616^
+141 ;;^DD(115.021,4,21,1,0)
+142 ;;=This field provides the low-high reference (or normal) range
+143 ;;^DD(115.021,4,21,2,0)
+144 ;;=for the lab test.
+145 ;;^DD(115.021,4,"DT")
+146 ;;=2890705
+147 ;;^DD(115.021,5,0)
+148 ;;=RESULT^F^^0;6^K:$L(X)>10!($L(X)<1) X
+149 ;;^DD(115.021,5,3)
+150 ;;=Answer must be 1-10 characters in length.