AUM6I001 ; DSD/GTH - HEALTH FACTORS INIT ; 23-SEP-1993
;;93.1;TABLE MAINTENANCE;**6**;MARCH 23, 1993
Q:'DIFQ(9999999.64) 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(9999999.64,0,"GL")
;;=^AUTTHF(
;;^DIC("B","HEALTH FACTORS",9999999.64)
;;=
;;^DD(9999999.64,0)
;;=FIELD^^1101^11
;;^DD(9999999.64,0,"DDA")
;;=N
;;^DD(9999999.64,0,"DT")
;;=2911015
;;^DD(9999999.64,0,"ID",.1)
;;=W ""
;;^DD(9999999.64,0,"IX","AC",9999999.64,.03)
;;=
;;^DD(9999999.64,0,"IX","AD",9999999.64,.1)
;;=
;;^DD(9999999.64,0,"IX","B",9999999.64,.01)
;;=
;;^DD(9999999.64,0,"IX","C",9999999.64,.02)
;;=
;;^DD(9999999.64,0,"IX","D",9999999.64,.09)
;;=
;;^DD(9999999.64,0,"NM","HEALTH FACTORS")
;;=
;;^DD(9999999.64,0,"PT",9000019,.01)
;;=
;;^DD(9999999.64,0,"PT",9999999.64,.03)
;;=
;;^DD(9999999.64,0,"PT",9999999.641101,.01)
;;=
;;^DD(9999999.64,.01,0)
;;=FACTOR^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
;;^DD(9999999.64,.01,1,0)
;;=^.1
;;^DD(9999999.64,.01,1,1,0)
;;=9999999.64^B
;;^DD(9999999.64,.01,1,1,1)
;;=S ^AUTTHF("B",$E(X,1,30),DA)=""
;;^DD(9999999.64,.01,1,1,2)
;;=K ^AUTTHF("B",$E(X,1,30),DA)
;;^DD(9999999.64,.01,3)
;;=Answer must be 3-30 characters in length.
;;^DD(9999999.64,.01,"DEL",.01,0)
;;=I 1
;;^DD(9999999.64,.01,"DT")
;;=2910701
;;^DD(9999999.64,.02,0)
;;=CODE^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>4!($L(X)<4)!'(X?4N) X
;;^DD(9999999.64,.02,1,0)
;;=^.1
;;^DD(9999999.64,.02,1,1,0)
;;=9999999.64^C
;;^DD(9999999.64,.02,1,1,1)
;;=S ^AUTTHF("C",$E(X,1,30),DA)=""
;;^DD(9999999.64,.02,1,1,2)
;;=K ^AUTTHF("C",$E(X,1,30),DA)
;;^DD(9999999.64,.02,1,1,"DT")
;;=2910701
;;^DD(9999999.64,.02,3)
;;=Answer must be 4 characters in length.
;;^DD(9999999.64,.02,"DT")
;;=2910701
;;^DD(9999999.64,.03,0)
;;=CATEGORY^R*P9999999.64'^AUTTHF(^0;3^S DIC("S")="I $P(^(0),U,10)'=""F""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(9999999.64,.03,1,0)
;;=^.1
;;^DD(9999999.64,.03,1,1,0)
;;=9999999.64^AC
;;^DD(9999999.64,.03,1,1,1)
;;=S ^AUTTHF("AC",$E(X,1,30),DA)=""
;;^DD(9999999.64,.03,1,1,2)
;;=K ^AUTTHF("AC",$E(X,1,30),DA)
;;^DD(9999999.64,.03,1,1,"DT")
;;=2911011
;;^DD(9999999.64,.03,3)
;;=Select the category to which this factor belongs.
;;^DD(9999999.64,.03,12)
;;=Prevents pointing CATEGORY field to non-category entries.
;;^DD(9999999.64,.03,12.1)
;;=S DIC("S")="I $P(^(0),U,10)'=""F"""
;;^DD(9999999.64,.03,"DT")
;;=2911015
;;^DD(9999999.64,.04,0)
;;=SHORT NAME^F^^0;4^K:$L(X)>10!($L(X)<2) X
;;^DD(9999999.64,.04,3)
;;=Answer must be 2-10 characters in length.
;;^DD(9999999.64,.04,"DT")
;;=2910701
;;^DD(9999999.64,.05,0)
;;=USE ONLY WITH SEX^S^F:FEMALE;M:MALE;^0;5^Q
;;^DD(9999999.64,.05,"DT")
;;=2910701
;;^DD(9999999.64,.06,0)
;;=LOWER AGE^NJ5,0^^0;6^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."1N.N) X
;;^DD(9999999.64,.06,3)
;;=Type a Number between 0 and 99999, 0 Decimal Digits
;;^DD(9999999.64,.06,"DT")
;;=2910701
;;^DD(9999999.64,.07,0)
;;=UPPER AGE^NJ5,0^^0;7^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."1N.N) X
;;^DD(9999999.64,.07,3)
;;=Type a Number between 0 and 99999, 0 Decimal Digits
;;^DD(9999999.64,.07,"DT")
;;=2910701
;;^DD(9999999.64,.08,0)
;;=DISPLAY ON HEALTH SUMMARY^S^Y:YES;N:NO;^0;8^Q
;;^DD(9999999.64,.08,"DT")
;;=2910701
;;^DD(9999999.64,.09,0)
;;=SYNONYM^F^^0;9^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<2) X
;;^DD(9999999.64,.09,1,0)
;;=^.1
;;^DD(9999999.64,.09,1,1,0)
;;=9999999.64^D
;;^DD(9999999.64,.09,1,1,1)
;;=S ^AUTTHF("D",$E(X,1,30),DA)=""
;;^DD(9999999.64,.09,1,1,2)
;;=K ^AUTTHF("D",$E(X,1,30),DA)
;;^DD(9999999.64,.09,1,1,"DT")
;;=2910701
;;^DD(9999999.64,.09,3)
;;=Answer must be 2-30 characters in length.
;;^DD(9999999.64,.09,"DT")
;;=2910701
;;^DD(9999999.64,.1,0)
;;=ENTRY TYPE^RS^C:CATEGORY;F:FACTOR;^0;10^Q
;;^DD(9999999.64,.1,1,0)
;;=^.1
;;^DD(9999999.64,.1,1,1,0)
;;=9999999.64^AD
;;^DD(9999999.64,.1,1,1,1)
;;=S ^AUTTHF("AD",$E(X,1,30),DA)=""
;;^DD(9999999.64,.1,1,1,2)
;;=K ^AUTTHF("AD",$E(X,1,30),DA)
;;^DD(9999999.64,.1,1,1,"DT")
;;=2911015
;;^DD(9999999.64,.1,3)
;;=Enter C if this entry represents a category to which other entries will refer, otherwise enter F.
;;^DD(9999999.64,.1,"DT")
;;=2911015
;;^DD(9999999.64,1101,0)
;;=NOT USED WITH^9999999.641101P^^11;0
;;^DD(9999999.641101,0)
;;=NOT USED WITH SUB-FIELD^^.01^1
;;^DD(9999999.641101,0,"DT")
;;=2910701
;;^DD(9999999.641101,0,"IX","B",9999999.641101,.01)
;;=
;;^DD(9999999.641101,0,"NM","NOT USED WITH")
;;=
;;^DD(9999999.641101,0,"UP")
;;=9999999.64
;;^DD(9999999.641101,.01,0)
;;=NOT USED WITH^MP9999999.64'^AUTTHF(^0;1^Q
;;^DD(9999999.641101,.01,1,0)
;;=^.1
;;^DD(9999999.641101,.01,1,1,0)
;;=9999999.641101^B
;;^DD(9999999.641101,.01,1,1,1)
;;=S ^AUTTHF(DA(1),11,"B",$E(X,1,30),DA)=""
;;^DD(9999999.641101,.01,1,1,2)
;;=K ^AUTTHF(DA(1),11,"B",$E(X,1,30),DA)
AUM6I001 ; DSD/GTH - HEALTH FACTORS INIT ; 23-SEP-1993
+1 ;;93.1;TABLE MAINTENANCE;**6**;MARCH 23, 1993
+2 IF 'DIFQ(9999999.64)
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(9999999.64,0,"GL")
+2 ;;=^AUTTHF(
+3 ;;^DIC("B","HEALTH FACTORS",9999999.64)
+4 ;;=
+5 ;;^DD(9999999.64,0)
+6 ;;=FIELD^^1101^11
+7 ;;^DD(9999999.64,0,"DDA")
+8 ;;=N
+9 ;;^DD(9999999.64,0,"DT")
+10 ;;=2911015
+11 ;;^DD(9999999.64,0,"ID",.1)
+12 ;;=W ""
+13 ;;^DD(9999999.64,0,"IX","AC",9999999.64,.03)
+14 ;;=
+15 ;;^DD(9999999.64,0,"IX","AD",9999999.64,.1)
+16 ;;=
+17 ;;^DD(9999999.64,0,"IX","B",9999999.64,.01)
+18 ;;=
+19 ;;^DD(9999999.64,0,"IX","C",9999999.64,.02)
+20 ;;=
+21 ;;^DD(9999999.64,0,"IX","D",9999999.64,.09)
+22 ;;=
+23 ;;^DD(9999999.64,0,"NM","HEALTH FACTORS")
+24 ;;=
+25 ;;^DD(9999999.64,0,"PT",9000019,.01)
+26 ;;=
+27 ;;^DD(9999999.64,0,"PT",9999999.64,.03)
+28 ;;=
+29 ;;^DD(9999999.64,0,"PT",9999999.641101,.01)
+30 ;;=
+31 ;;^DD(9999999.64,.01,0)
+32 ;;=FACTOR^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
+33 ;;^DD(9999999.64,.01,1,0)
+34 ;;=^.1
+35 ;;^DD(9999999.64,.01,1,1,0)
+36 ;;=9999999.64^B
+37 ;;^DD(9999999.64,.01,1,1,1)
+38 ;;=S ^AUTTHF("B",$E(X,1,30),DA)=""
+39 ;;^DD(9999999.64,.01,1,1,2)
+40 ;;=K ^AUTTHF("B",$E(X,1,30),DA)
+41 ;;^DD(9999999.64,.01,3)
+42 ;;=Answer must be 3-30 characters in length.
+43 ;;^DD(9999999.64,.01,"DEL",.01,0)
+44 ;;=I 1
+45 ;;^DD(9999999.64,.01,"DT")
+46 ;;=2910701
+47 ;;^DD(9999999.64,.02,0)
+48 ;;=CODE^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>4!($L(X)<4)!'(X?4N) X
+49 ;;^DD(9999999.64,.02,1,0)
+50 ;;=^.1
+51 ;;^DD(9999999.64,.02,1,1,0)
+52 ;;=9999999.64^C
+53 ;;^DD(9999999.64,.02,1,1,1)
+54 ;;=S ^AUTTHF("C",$E(X,1,30),DA)=""
+55 ;;^DD(9999999.64,.02,1,1,2)
+56 ;;=K ^AUTTHF("C",$E(X,1,30),DA)
+57 ;;^DD(9999999.64,.02,1,1,"DT")
+58 ;;=2910701
+59 ;;^DD(9999999.64,.02,3)
+60 ;;=Answer must be 4 characters in length.
+61 ;;^DD(9999999.64,.02,"DT")
+62 ;;=2910701
+63 ;;^DD(9999999.64,.03,0)
+64 ;;=CATEGORY^R*P9999999.64'^AUTTHF(^0;3^S DIC("S")="I $P(^(0),U,10)'=""F""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+65 ;;^DD(9999999.64,.03,1,0)
+66 ;;=^.1
+67 ;;^DD(9999999.64,.03,1,1,0)
+68 ;;=9999999.64^AC
+69 ;;^DD(9999999.64,.03,1,1,1)
+70 ;;=S ^AUTTHF("AC",$E(X,1,30),DA)=""
+71 ;;^DD(9999999.64,.03,1,1,2)
+72 ;;=K ^AUTTHF("AC",$E(X,1,30),DA)
+73 ;;^DD(9999999.64,.03,1,1,"DT")
+74 ;;=2911011
+75 ;;^DD(9999999.64,.03,3)
+76 ;;=Select the category to which this factor belongs.
+77 ;;^DD(9999999.64,.03,12)
+78 ;;=Prevents pointing CATEGORY field to non-category entries.
+79 ;;^DD(9999999.64,.03,12.1)
+80 ;;=S DIC("S")="I $P(^(0),U,10)'=""F"""
+81 ;;^DD(9999999.64,.03,"DT")
+82 ;;=2911015
+83 ;;^DD(9999999.64,.04,0)
+84 ;;=SHORT NAME^F^^0;4^K:$L(X)>10!($L(X)<2) X
+85 ;;^DD(9999999.64,.04,3)
+86 ;;=Answer must be 2-10 characters in length.
+87 ;;^DD(9999999.64,.04,"DT")
+88 ;;=2910701
+89 ;;^DD(9999999.64,.05,0)
+90 ;;=USE ONLY WITH SEX^S^F:FEMALE;M:MALE;^0;5^Q
+91 ;;^DD(9999999.64,.05,"DT")
+92 ;;=2910701
+93 ;;^DD(9999999.64,.06,0)
+94 ;;=LOWER AGE^NJ5,0^^0;6^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."1N.N) X
+95 ;;^DD(9999999.64,.06,3)
+96 ;;=Type a Number between 0 and 99999, 0 Decimal Digits
+97 ;;^DD(9999999.64,.06,"DT")
+98 ;;=2910701
+99 ;;^DD(9999999.64,.07,0)
+100 ;;=UPPER AGE^NJ5,0^^0;7^K:+X'=X!(X>99999)!(X<0)!(X?.E1"."1N.N) X
+101 ;;^DD(9999999.64,.07,3)
+102 ;;=Type a Number between 0 and 99999, 0 Decimal Digits
+103 ;;^DD(9999999.64,.07,"DT")
+104 ;;=2910701
+105 ;;^DD(9999999.64,.08,0)
+106 ;;=DISPLAY ON HEALTH SUMMARY^S^Y:YES;N:NO;^0;8^Q
+107 ;;^DD(9999999.64,.08,"DT")
+108 ;;=2910701
+109 ;;^DD(9999999.64,.09,0)
+110 ;;=SYNONYM^F^^0;9^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<2) X
+111 ;;^DD(9999999.64,.09,1,0)
+112 ;;=^.1
+113 ;;^DD(9999999.64,.09,1,1,0)
+114 ;;=9999999.64^D
+115 ;;^DD(9999999.64,.09,1,1,1)
+116 ;;=S ^AUTTHF("D",$E(X,1,30),DA)=""
+117 ;;^DD(9999999.64,.09,1,1,2)
+118 ;;=K ^AUTTHF("D",$E(X,1,30),DA)
+119 ;;^DD(9999999.64,.09,1,1,"DT")
+120 ;;=2910701
+121 ;;^DD(9999999.64,.09,3)
+122 ;;=Answer must be 2-30 characters in length.
+123 ;;^DD(9999999.64,.09,"DT")
+124 ;;=2910701
+125 ;;^DD(9999999.64,.1,0)
+126 ;;=ENTRY TYPE^RS^C:CATEGORY;F:FACTOR;^0;10^Q
+127 ;;^DD(9999999.64,.1,1,0)
+128 ;;=^.1
+129 ;;^DD(9999999.64,.1,1,1,0)
+130 ;;=9999999.64^AD
+131 ;;^DD(9999999.64,.1,1,1,1)
+132 ;;=S ^AUTTHF("AD",$E(X,1,30),DA)=""
+133 ;;^DD(9999999.64,.1,1,1,2)
+134 ;;=K ^AUTTHF("AD",$E(X,1,30),DA)
+135 ;;^DD(9999999.64,.1,1,1,"DT")
+136 ;;=2911015
+137 ;;^DD(9999999.64,.1,3)
+138 ;;=Enter C if this entry represents a category to which other entries will refer, otherwise enter F.
+139 ;;^DD(9999999.64,.1,"DT")
+140 ;;=2911015
+141 ;;^DD(9999999.64,1101,0)
+142 ;;=NOT USED WITH^9999999.641101P^^11;0
+143 ;;^DD(9999999.641101,0)
+144 ;;=NOT USED WITH SUB-FIELD^^.01^1
+145 ;;^DD(9999999.641101,0,"DT")
+146 ;;=2910701
+147 ;;^DD(9999999.641101,0,"IX","B",9999999.641101,.01)
+148 ;;=
+149 ;;^DD(9999999.641101,0,"NM","NOT USED WITH")
+150 ;;=
+151 ;;^DD(9999999.641101,0,"UP")
+152 ;;=9999999.64
+153 ;;^DD(9999999.641101,.01,0)
+154 ;;=NOT USED WITH^MP9999999.64'^AUTTHF(^0;1^Q
+155 ;;^DD(9999999.641101,.01,1,0)
+156 ;;=^.1
+157 ;;^DD(9999999.641101,.01,1,1,0)
+158 ;;=9999999.641101^B
+159 ;;^DD(9999999.641101,.01,1,1,1)
+160 ;;=S ^AUTTHF(DA(1),11,"B",$E(X,1,30),DA)=""
+161 ;;^DD(9999999.641101,.01,1,1,2)
+162 ;;=K ^AUTTHF(DA(1),11,"B",$E(X,1,30),DA)