FHINI0L5 ; ; 11-OCT-1995
;;5.0;Dietetics;;Oct 11, 1995
Q:'DIFQ(115.7) 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(115.7,0,"GL")
;;=^FHEN(
;;^DIC("B","DIETETIC ENCOUNTERS",115.7)
;;=
;;^DIC(115.7,"%D",0)
;;=^^4^4^2920623^^^
;;^DIC(115.7,"%D",1,0)
;;=This file contains the various dietetic encounters entered
;;^DIC(115.7,"%D",2,0)
;;=by dietetics personnel. It includes patient-related events,
;;^DIC(115.7,"%D",3,0)
;;=such as diet instructions, as well as non-patient-related
;;^DIC(115.7,"%D",4,0)
;;=events such as talks to the community.
;;^DD(115.7,0)
;;=FIELD^^102^13
;;^DD(115.7,0,"DDA")
;;=N
;;^DD(115.7,0,"DT")
;;=2920716
;;^DD(115.7,0,"IX","AP",115.701,.01)
;;=
;;^DD(115.7,0,"IX","AT",115.7,1)
;;=
;;^DD(115.7,0,"IX","B",115.7,.01)
;;=
;;^DD(115.7,0,"NM","DIETETIC ENCOUNTERS")
;;=
;;^DD(115.7,.01,0)
;;=NUMBER^RNJ9,0X^^0;1^K:+X'=X!(X>999999999)!(X<1)!(X?.E1"."1N.N) X I $D(X) S DINUM=X
;;^DD(115.7,.01,1,0)
;;=^.1
;;^DD(115.7,.01,1,1,0)
;;=115.7^B
;;^DD(115.7,.01,1,1,1)
;;=S ^FHEN("B",$E(X,1,30),DA)=""
;;^DD(115.7,.01,1,1,2)
;;=K ^FHEN("B",$E(X,1,30),DA)
;;^DD(115.7,.01,1,1,"%D",0)
;;=^^1^1^2931221^^
;;^DD(115.7,.01,1,1,"%D",1,0)
;;=This is the normal B cross-reference of the NUMBER field.
;;^DD(115.7,.01,3)
;;=Type a Number between 1 and 999999999, 0 Decimal Digits
;;^DD(115.7,.01,21,0)
;;=^^2^2^2891121^
;;^DD(115.7,.01,21,1,0)
;;=This field contains a sequential number assigned to the encounter
;;^DD(115.7,.01,21,2,0)
;;=and has no meaning.
;;^DD(115.7,.01,"DEL",1,0)
;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
;;^DD(115.7,.01,"DT")
;;=2890719
;;^DD(115.7,1,0)
;;=DATE/TIME OF ENCOUNTER^RD^^0;2^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
;;^DD(115.7,1,1,0)
;;=^.1
;;^DD(115.7,1,1,1,0)
;;=115.7^AT
;;^DD(115.7,1,1,1,1)
;;=S ^FHEN("AT",$E(X,1,30),DA)=""
;;^DD(115.7,1,1,1,2)
;;=K ^FHEN("AT",$E(X,1,30),DA)
;;^DD(115.7,1,3)
;;=
;;^DD(115.7,1,21,0)
;;=^^2^2^2911016^^
;;^DD(115.7,1,21,1,0)
;;=This field contains the date and time at which the dietetic encounter
;;^DD(115.7,1,21,2,0)
;;=took place.
;;^DD(115.7,1,"DT")
;;=2911016
;;^DD(115.7,2,0)
;;=CLINICIAN^RP200'^VA(200,^0;3^Q
;;^DD(115.7,2,21,0)
;;=^^2^2^2891120^
;;^DD(115.7,2,21,1,0)
;;=This field contains a pointer to the clinician who provided the
;;^DD(115.7,2,21,2,0)
;;=service during the encounter.
;;^DD(115.7,2,"DT")
;;=2890719
;;^DD(115.7,3,0)
;;=ENCOUNTER TYPE^RP115.6'^FH(115.6,^0;4^Q
;;^DD(115.7,3,21,0)
;;=^^2^2^2920716^^
;;^DD(115.7,3,21,1,0)
;;=This field contains a pointer to the Encounter Type file (115.6)
;;^DD(115.7,3,21,2,0)
;;=indicating the type of encounter.
;;^DD(115.7,3,"DT")
;;=2920716
;;^DD(115.7,4,0)
;;=EVENT LOCATION^P44'^SC(^0;5^Q
;;^DD(115.7,4,21,0)
;;=^^2^2^2891120^
;;^DD(115.7,4,21,1,0)
;;=This optional field contains a pointer to the Hospital Location
;;^DD(115.7,4,21,2,0)
;;=file (44) indicating where the encounter took place.
;;^DD(115.7,4,"DT")
;;=2891107
;;^DD(115.7,5,0)
;;=INITIAL/FOLLOWUP^S^I:INITIAL;F:FOLLOWUP;^0;7^Q
;;^DD(115.7,5,21,0)
;;=^^2^2^2920421^^
;;^DD(115.7,5,21,1,0)
;;=This field indicates whether the encounter was an initial one
;;^DD(115.7,5,21,2,0)
;;=of this type or a follow-up.
;;^DD(115.7,5,"DT")
;;=2890719
;;^DD(115.7,6,0)
;;=TIME UNITS^NJ3,0^^0;8^K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.7,6,3)
;;=Type a Number between 1 and 999, 0 Decimal Digits
;;^DD(115.7,6,21,0)
;;=^^2^2^2891120^
;;^DD(115.7,6,21,1,0)
;;=This field contains the number of time units earned by this
;;^DD(115.7,6,21,2,0)
;;=encounter.
;;^DD(115.7,6,"DT")
;;=2890719
;;^DD(115.7,7,0)
;;=GROUP/INDIVIDUAL^S^G:GROUP;I:INDIVIDUAL;^0;9^Q
;;^DD(115.7,7,21,0)
;;=^^2^2^2891120^
;;^DD(115.7,7,21,1,0)
;;=This field indicates whether the encounter was a group one or
;;^DD(115.7,7,21,2,0)
;;=an encounter with a single individual.
;;^DD(115.7,7,"DT")
;;=2890719
;;^DD(115.7,8,0)
;;=GROUP SIZE^NJ4,0^^0;10^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(115.7,8,3)
;;=Type a Number between 1 and 9999, 0 Decimal Digits
;;^DD(115.7,8,21,0)
;;=^^2^2^2891120^
;;^DD(115.7,8,21,1,0)
;;=This field contains the total number of persons involved,
;;^DD(115.7,8,21,2,0)
;;=including any collaterals.
;;^DD(115.7,8,"DT")
;;=2890719
;;^DD(115.7,10,0)
;;=EVENT COMMENT^F^^0;11^K:$L(X)>60!($L(X)<3) X
;;^DD(115.7,10,3)
;;=Answer must be 3-60 characters in length.
;;^DD(115.7,10,21,0)
;;=^^1^1^2891120^
;;^DD(115.7,10,21,1,0)
;;=This field may contain a short comment concerning the event.
;;^DD(115.7,10,"DT")
;;=2891107
;;^DD(115.7,20,0)
;;=PATIENT^115.701PA^^P;0
;;^DD(115.7,20,21,0)
;;=^^2^2^2910813^^
;;^DD(115.7,20,21,1,0)
;;=This field is a multiple containing data relating to patients
FHINI0L5 ; ; 11-OCT-1995
+1 ;;5.0;Dietetics;;Oct 11, 1995
+2 IF 'DIFQ(115.7)
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(115.7,0,"GL")
+2 ;;=^FHEN(
+3 ;;^DIC("B","DIETETIC ENCOUNTERS",115.7)
+4 ;;=
+5 ;;^DIC(115.7,"%D",0)
+6 ;;=^^4^4^2920623^^^
+7 ;;^DIC(115.7,"%D",1,0)
+8 ;;=This file contains the various dietetic encounters entered
+9 ;;^DIC(115.7,"%D",2,0)
+10 ;;=by dietetics personnel. It includes patient-related events,
+11 ;;^DIC(115.7,"%D",3,0)
+12 ;;=such as diet instructions, as well as non-patient-related
+13 ;;^DIC(115.7,"%D",4,0)
+14 ;;=events such as talks to the community.
+15 ;;^DD(115.7,0)
+16 ;;=FIELD^^102^13
+17 ;;^DD(115.7,0,"DDA")
+18 ;;=N
+19 ;;^DD(115.7,0,"DT")
+20 ;;=2920716
+21 ;;^DD(115.7,0,"IX","AP",115.701,.01)
+22 ;;=
+23 ;;^DD(115.7,0,"IX","AT",115.7,1)
+24 ;;=
+25 ;;^DD(115.7,0,"IX","B",115.7,.01)
+26 ;;=
+27 ;;^DD(115.7,0,"NM","DIETETIC ENCOUNTERS")
+28 ;;=
+29 ;;^DD(115.7,.01,0)
+30 ;;=NUMBER^RNJ9,0X^^0;1^K:+X'=X!(X>999999999)!(X<1)!(X?.E1"."1N.N) X I $D(X) S DINUM=X
+31 ;;^DD(115.7,.01,1,0)
+32 ;;=^.1
+33 ;;^DD(115.7,.01,1,1,0)
+34 ;;=115.7^B
+35 ;;^DD(115.7,.01,1,1,1)
+36 ;;=S ^FHEN("B",$E(X,1,30),DA)=""
+37 ;;^DD(115.7,.01,1,1,2)
+38 ;;=K ^FHEN("B",$E(X,1,30),DA)
+39 ;;^DD(115.7,.01,1,1,"%D",0)
+40 ;;=^^1^1^2931221^^
+41 ;;^DD(115.7,.01,1,1,"%D",1,0)
+42 ;;=This is the normal B cross-reference of the NUMBER field.
+43 ;;^DD(115.7,.01,3)
+44 ;;=Type a Number between 1 and 999999999, 0 Decimal Digits
+45 ;;^DD(115.7,.01,21,0)
+46 ;;=^^2^2^2891121^
+47 ;;^DD(115.7,.01,21,1,0)
+48 ;;=This field contains a sequential number assigned to the encounter
+49 ;;^DD(115.7,.01,21,2,0)
+50 ;;=and has no meaning.
+51 ;;^DD(115.7,.01,"DEL",1,0)
+52 ;;=I DUZ(0)'["@",'$D(^XUSEC("FHMGR",DUZ))
+53 ;;^DD(115.7,.01,"DT")
+54 ;;=2890719
+55 ;;^DD(115.7,1,0)
+56 ;;=DATE/TIME OF ENCOUNTER^RD^^0;2^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
+57 ;;^DD(115.7,1,1,0)
+58 ;;=^.1
+59 ;;^DD(115.7,1,1,1,0)
+60 ;;=115.7^AT
+61 ;;^DD(115.7,1,1,1,1)
+62 ;;=S ^FHEN("AT",$E(X,1,30),DA)=""
+63 ;;^DD(115.7,1,1,1,2)
+64 ;;=K ^FHEN("AT",$E(X,1,30),DA)
+65 ;;^DD(115.7,1,3)
+66 ;;=
+67 ;;^DD(115.7,1,21,0)
+68 ;;=^^2^2^2911016^^
+69 ;;^DD(115.7,1,21,1,0)
+70 ;;=This field contains the date and time at which the dietetic encounter
+71 ;;^DD(115.7,1,21,2,0)
+72 ;;=took place.
+73 ;;^DD(115.7,1,"DT")
+74 ;;=2911016
+75 ;;^DD(115.7,2,0)
+76 ;;=CLINICIAN^RP200'^VA(200,^0;3^Q
+77 ;;^DD(115.7,2,21,0)
+78 ;;=^^2^2^2891120^
+79 ;;^DD(115.7,2,21,1,0)
+80 ;;=This field contains a pointer to the clinician who provided the
+81 ;;^DD(115.7,2,21,2,0)
+82 ;;=service during the encounter.
+83 ;;^DD(115.7,2,"DT")
+84 ;;=2890719
+85 ;;^DD(115.7,3,0)
+86 ;;=ENCOUNTER TYPE^RP115.6'^FH(115.6,^0;4^Q
+87 ;;^DD(115.7,3,21,0)
+88 ;;=^^2^2^2920716^^
+89 ;;^DD(115.7,3,21,1,0)
+90 ;;=This field contains a pointer to the Encounter Type file (115.6)
+91 ;;^DD(115.7,3,21,2,0)
+92 ;;=indicating the type of encounter.
+93 ;;^DD(115.7,3,"DT")
+94 ;;=2920716
+95 ;;^DD(115.7,4,0)
+96 ;;=EVENT LOCATION^P44'^SC(^0;5^Q
+97 ;;^DD(115.7,4,21,0)
+98 ;;=^^2^2^2891120^
+99 ;;^DD(115.7,4,21,1,0)
+100 ;;=This optional field contains a pointer to the Hospital Location
+101 ;;^DD(115.7,4,21,2,0)
+102 ;;=file (44) indicating where the encounter took place.
+103 ;;^DD(115.7,4,"DT")
+104 ;;=2891107
+105 ;;^DD(115.7,5,0)
+106 ;;=INITIAL/FOLLOWUP^S^I:INITIAL;F:FOLLOWUP;^0;7^Q
+107 ;;^DD(115.7,5,21,0)
+108 ;;=^^2^2^2920421^^
+109 ;;^DD(115.7,5,21,1,0)
+110 ;;=This field indicates whether the encounter was an initial one
+111 ;;^DD(115.7,5,21,2,0)
+112 ;;=of this type or a follow-up.
+113 ;;^DD(115.7,5,"DT")
+114 ;;=2890719
+115 ;;^DD(115.7,6,0)
+116 ;;=TIME UNITS^NJ3,0^^0;8^K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
+117 ;;^DD(115.7,6,3)
+118 ;;=Type a Number between 1 and 999, 0 Decimal Digits
+119 ;;^DD(115.7,6,21,0)
+120 ;;=^^2^2^2891120^
+121 ;;^DD(115.7,6,21,1,0)
+122 ;;=This field contains the number of time units earned by this
+123 ;;^DD(115.7,6,21,2,0)
+124 ;;=encounter.
+125 ;;^DD(115.7,6,"DT")
+126 ;;=2890719
+127 ;;^DD(115.7,7,0)
+128 ;;=GROUP/INDIVIDUAL^S^G:GROUP;I:INDIVIDUAL;^0;9^Q
+129 ;;^DD(115.7,7,21,0)
+130 ;;=^^2^2^2891120^
+131 ;;^DD(115.7,7,21,1,0)
+132 ;;=This field indicates whether the encounter was a group one or
+133 ;;^DD(115.7,7,21,2,0)
+134 ;;=an encounter with a single individual.
+135 ;;^DD(115.7,7,"DT")
+136 ;;=2890719
+137 ;;^DD(115.7,8,0)
+138 ;;=GROUP SIZE^NJ4,0^^0;10^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
+139 ;;^DD(115.7,8,3)
+140 ;;=Type a Number between 1 and 9999, 0 Decimal Digits
+141 ;;^DD(115.7,8,21,0)
+142 ;;=^^2^2^2891120^
+143 ;;^DD(115.7,8,21,1,0)
+144 ;;=This field contains the total number of persons involved,
+145 ;;^DD(115.7,8,21,2,0)
+146 ;;=including any collaterals.
+147 ;;^DD(115.7,8,"DT")
+148 ;;=2890719
+149 ;;^DD(115.7,10,0)
+150 ;;=EVENT COMMENT^F^^0;11^K:$L(X)>60!($L(X)<3) X
+151 ;;^DD(115.7,10,3)
+152 ;;=Answer must be 3-60 characters in length.
+153 ;;^DD(115.7,10,21,0)
+154 ;;=^^1^1^2891120^
+155 ;;^DD(115.7,10,21,1,0)
+156 ;;=This field may contain a short comment concerning the event.
+157 ;;^DD(115.7,10,"DT")
+158 ;;=2891107
+159 ;;^DD(115.7,20,0)
+160 ;;=PATIENT^115.701PA^^P;0
+161 ;;^DD(115.7,20,21,0)
+162 ;;=^^2^2^2910813^^
+163 ;;^DD(115.7,20,21,1,0)
+164 ;;=This field is a multiple containing data relating to patients