IBDEI0LG ; ; 01-FEB-2022
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 01, 2022
Q:'DIFQR(358.3) 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,999) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.3,9651,1,3,0)
;;=3^Nicotine Dependence,Unspec,Uncomplicated
;;^UTILITY(U,$J,358.3,9651,1,4,0)
;;=4^F17.200
;;^UTILITY(U,$J,358.3,9651,2)
;;=^5003360
;;^UTILITY(U,$J,358.3,9652,0)
;;=F11.120^^39^415^45
;;^UTILITY(U,$J,358.3,9652,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9652,1,3,0)
;;=3^Opioid Abuse w/ Intoxication,Uncomplicated
;;^UTILITY(U,$J,358.3,9652,1,4,0)
;;=4^F11.120
;;^UTILITY(U,$J,358.3,9652,2)
;;=^5003115
;;^UTILITY(U,$J,358.3,9653,0)
;;=F11.10^^39^415^49
;;^UTILITY(U,$J,358.3,9653,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9653,1,3,0)
;;=3^Opioid Abuse,Uncomplicated
;;^UTILITY(U,$J,358.3,9653,1,4,0)
;;=4^F11.10
;;^UTILITY(U,$J,358.3,9653,2)
;;=^5003114
;;^UTILITY(U,$J,358.3,9654,0)
;;=F11.129^^39^415^46
;;^UTILITY(U,$J,358.3,9654,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9654,1,3,0)
;;=3^Opioid Abuse w/ Intoxication,Unspec
;;^UTILITY(U,$J,358.3,9654,1,4,0)
;;=4^F11.129
;;^UTILITY(U,$J,358.3,9654,2)
;;=^5003118
;;^UTILITY(U,$J,358.3,9655,0)
;;=F10.21^^39^415^8
;;^UTILITY(U,$J,358.3,9655,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9655,1,3,0)
;;=3^Alcohol Dependence,In Remission
;;^UTILITY(U,$J,358.3,9655,1,4,0)
;;=4^F10.21
;;^UTILITY(U,$J,358.3,9655,2)
;;=^5003082
;;^UTILITY(U,$J,358.3,9656,0)
;;=F12.10^^39^415^16
;;^UTILITY(U,$J,358.3,9656,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9656,1,3,0)
;;=3^Cannabis Abuse,Uncomplicated
;;^UTILITY(U,$J,358.3,9656,1,4,0)
;;=4^F12.10
;;^UTILITY(U,$J,358.3,9656,2)
;;=^5003155
;;^UTILITY(U,$J,358.3,9657,0)
;;=F12.20^^39^415^18
;;^UTILITY(U,$J,358.3,9657,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9657,1,3,0)
;;=3^Cannabis Dependence,Uncomplicated
;;^UTILITY(U,$J,358.3,9657,1,4,0)
;;=4^F12.20
;;^UTILITY(U,$J,358.3,9657,2)
;;=^5003166
;;^UTILITY(U,$J,358.3,9658,0)
;;=F12.21^^39^415^17
;;^UTILITY(U,$J,358.3,9658,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9658,1,3,0)
;;=3^Cannabis Dependence,In Remission
;;^UTILITY(U,$J,358.3,9658,1,4,0)
;;=4^F12.21
;;^UTILITY(U,$J,358.3,9658,2)
;;=^5003167
;;^UTILITY(U,$J,358.3,9659,0)
;;=F12.90^^39^415^20
;;^UTILITY(U,$J,358.3,9659,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9659,1,3,0)
;;=3^Cannabis Use,Unspec,Uncomplicated
;;^UTILITY(U,$J,358.3,9659,1,4,0)
;;=4^F12.90
;;^UTILITY(U,$J,358.3,9659,2)
;;=^5003178
;;^UTILITY(U,$J,358.3,9660,0)
;;=F10.11^^39^415^6
;;^UTILITY(U,$J,358.3,9660,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9660,1,3,0)
;;=3^Alcohol Abuse,In Remission
;;^UTILITY(U,$J,358.3,9660,1,4,0)
;;=4^F10.11
;;^UTILITY(U,$J,358.3,9660,2)
;;=^268230
;;^UTILITY(U,$J,358.3,9661,0)
;;=F12.11^^39^415^15
;;^UTILITY(U,$J,358.3,9661,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9661,1,3,0)
;;=3^Cannabis Abuse,In Remission
;;^UTILITY(U,$J,358.3,9661,1,4,0)
;;=4^F12.11
;;^UTILITY(U,$J,358.3,9661,2)
;;=^268236
;;^UTILITY(U,$J,358.3,9662,0)
;;=F14.11^^39^415^21
;;^UTILITY(U,$J,358.3,9662,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9662,1,3,0)
;;=3^Cocaine Abuse,In Remission
;;^UTILITY(U,$J,358.3,9662,1,4,0)
;;=4^F14.11
;;^UTILITY(U,$J,358.3,9662,2)
;;=^268249
;;^UTILITY(U,$J,358.3,9663,0)
;;=F11.11^^39^415^48
;;^UTILITY(U,$J,358.3,9663,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,9663,1,3,0)
;;=3^Opioid Abuse,In Remission
;;^UTILITY(U,$J,358.3,9663,1,4,0)
;;=4^F11.11
;;^UTILITY(U,$J,358.3,9663,2)
;;=^268246
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0LG 3775 printed Dec 13, 2024@01:50:59 Page 2
IBDEI0LG ; ; 01-FEB-2022
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 01, 2022
+2 if 'DIFQR(358.3)
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,999)
if $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,358.3,9651,1,3,0)
+2 ;;=3^Nicotine Dependence,Unspec,Uncomplicated
+3 ;;^UTILITY(U,$J,358.3,9651,1,4,0)
+4 ;;=4^F17.200
+5 ;;^UTILITY(U,$J,358.3,9651,2)
+6 ;;=^5003360
+7 ;;^UTILITY(U,$J,358.3,9652,0)
+8 ;;=F11.120^^39^415^45
+9 ;;^UTILITY(U,$J,358.3,9652,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,9652,1,3,0)
+12 ;;=3^Opioid Abuse w/ Intoxication,Uncomplicated
+13 ;;^UTILITY(U,$J,358.3,9652,1,4,0)
+14 ;;=4^F11.120
+15 ;;^UTILITY(U,$J,358.3,9652,2)
+16 ;;=^5003115
+17 ;;^UTILITY(U,$J,358.3,9653,0)
+18 ;;=F11.10^^39^415^49
+19 ;;^UTILITY(U,$J,358.3,9653,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,9653,1,3,0)
+22 ;;=3^Opioid Abuse,Uncomplicated
+23 ;;^UTILITY(U,$J,358.3,9653,1,4,0)
+24 ;;=4^F11.10
+25 ;;^UTILITY(U,$J,358.3,9653,2)
+26 ;;=^5003114
+27 ;;^UTILITY(U,$J,358.3,9654,0)
+28 ;;=F11.129^^39^415^46
+29 ;;^UTILITY(U,$J,358.3,9654,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,9654,1,3,0)
+32 ;;=3^Opioid Abuse w/ Intoxication,Unspec
+33 ;;^UTILITY(U,$J,358.3,9654,1,4,0)
+34 ;;=4^F11.129
+35 ;;^UTILITY(U,$J,358.3,9654,2)
+36 ;;=^5003118
+37 ;;^UTILITY(U,$J,358.3,9655,0)
+38 ;;=F10.21^^39^415^8
+39 ;;^UTILITY(U,$J,358.3,9655,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,9655,1,3,0)
+42 ;;=3^Alcohol Dependence,In Remission
+43 ;;^UTILITY(U,$J,358.3,9655,1,4,0)
+44 ;;=4^F10.21
+45 ;;^UTILITY(U,$J,358.3,9655,2)
+46 ;;=^5003082
+47 ;;^UTILITY(U,$J,358.3,9656,0)
+48 ;;=F12.10^^39^415^16
+49 ;;^UTILITY(U,$J,358.3,9656,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,9656,1,3,0)
+52 ;;=3^Cannabis Abuse,Uncomplicated
+53 ;;^UTILITY(U,$J,358.3,9656,1,4,0)
+54 ;;=4^F12.10
+55 ;;^UTILITY(U,$J,358.3,9656,2)
+56 ;;=^5003155
+57 ;;^UTILITY(U,$J,358.3,9657,0)
+58 ;;=F12.20^^39^415^18
+59 ;;^UTILITY(U,$J,358.3,9657,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,9657,1,3,0)
+62 ;;=3^Cannabis Dependence,Uncomplicated
+63 ;;^UTILITY(U,$J,358.3,9657,1,4,0)
+64 ;;=4^F12.20
+65 ;;^UTILITY(U,$J,358.3,9657,2)
+66 ;;=^5003166
+67 ;;^UTILITY(U,$J,358.3,9658,0)
+68 ;;=F12.21^^39^415^17
+69 ;;^UTILITY(U,$J,358.3,9658,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,9658,1,3,0)
+72 ;;=3^Cannabis Dependence,In Remission
+73 ;;^UTILITY(U,$J,358.3,9658,1,4,0)
+74 ;;=4^F12.21
+75 ;;^UTILITY(U,$J,358.3,9658,2)
+76 ;;=^5003167
+77 ;;^UTILITY(U,$J,358.3,9659,0)
+78 ;;=F12.90^^39^415^20
+79 ;;^UTILITY(U,$J,358.3,9659,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,9659,1,3,0)
+82 ;;=3^Cannabis Use,Unspec,Uncomplicated
+83 ;;^UTILITY(U,$J,358.3,9659,1,4,0)
+84 ;;=4^F12.90
+85 ;;^UTILITY(U,$J,358.3,9659,2)
+86 ;;=^5003178
+87 ;;^UTILITY(U,$J,358.3,9660,0)
+88 ;;=F10.11^^39^415^6
+89 ;;^UTILITY(U,$J,358.3,9660,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,9660,1,3,0)
+92 ;;=3^Alcohol Abuse,In Remission
+93 ;;^UTILITY(U,$J,358.3,9660,1,4,0)
+94 ;;=4^F10.11
+95 ;;^UTILITY(U,$J,358.3,9660,2)
+96 ;;=^268230
+97 ;;^UTILITY(U,$J,358.3,9661,0)
+98 ;;=F12.11^^39^415^15
+99 ;;^UTILITY(U,$J,358.3,9661,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,9661,1,3,0)
+102 ;;=3^Cannabis Abuse,In Remission
+103 ;;^UTILITY(U,$J,358.3,9661,1,4,0)
+104 ;;=4^F12.11
+105 ;;^UTILITY(U,$J,358.3,9661,2)
+106 ;;=^268236
+107 ;;^UTILITY(U,$J,358.3,9662,0)
+108 ;;=F14.11^^39^415^21
+109 ;;^UTILITY(U,$J,358.3,9662,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,9662,1,3,0)
+112 ;;=3^Cocaine Abuse,In Remission
+113 ;;^UTILITY(U,$J,358.3,9662,1,4,0)
+114 ;;=4^F14.11
+115 ;;^UTILITY(U,$J,358.3,9662,2)
+116 ;;=^268249
+117 ;;^UTILITY(U,$J,358.3,9663,0)
+118 ;;=F11.11^^39^415^48
+119 ;;^UTILITY(U,$J,358.3,9663,1,0)
+120 ;;=^358.31IA^4^2
+121 ;;^UTILITY(U,$J,358.3,9663,1,3,0)
+122 ;;=3^Opioid Abuse,In Remission
+123 ;;^UTILITY(U,$J,358.3,9663,1,4,0)
+124 ;;=4^F11.11
+125 ;;^UTILITY(U,$J,358.3,9663,2)
+126 ;;=^268246