IBDEI2SH ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
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,44477,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,44477,1,4,0)
;;=4^F19.121
;;^UTILITY(U,$J,358.3,44477,2)
;;=^5003418
;;^UTILITY(U,$J,358.3,44478,0)
;;=F19.221^^164^2206^20
;;^UTILITY(U,$J,358.3,44478,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44478,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,44478,1,4,0)
;;=4^F19.221
;;^UTILITY(U,$J,358.3,44478,2)
;;=^5003434
;;^UTILITY(U,$J,358.3,44479,0)
;;=F19.921^^164^2206^21
;;^UTILITY(U,$J,358.3,44479,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44479,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/o Use D/O
;;^UTILITY(U,$J,358.3,44479,1,4,0)
;;=4^F19.921
;;^UTILITY(U,$J,358.3,44479,2)
;;=^5003453
;;^UTILITY(U,$J,358.3,44480,0)
;;=F19.10^^164^2206^27
;;^UTILITY(U,$J,358.3,44480,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44480,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mild,Uncomp
;;^UTILITY(U,$J,358.3,44480,1,4,0)
;;=4^F19.10
;;^UTILITY(U,$J,358.3,44480,2)
;;=^5003416
;;^UTILITY(U,$J,358.3,44481,0)
;;=F19.20^^164^2206^29
;;^UTILITY(U,$J,358.3,44481,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44481,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mod/Sev,Uncomp
;;^UTILITY(U,$J,358.3,44481,1,4,0)
;;=4^F19.20
;;^UTILITY(U,$J,358.3,44481,2)
;;=^5003431
;;^UTILITY(U,$J,358.3,44482,0)
;;=F19.239^^164^2206^31
;;^UTILITY(U,$J,358.3,44482,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44482,1,3,0)
;;=3^Oth/Unk Substance Withdrawal
;;^UTILITY(U,$J,358.3,44482,1,4,0)
;;=4^F19.239
;;^UTILITY(U,$J,358.3,44482,2)
;;=^5003440
;;^UTILITY(U,$J,358.3,44483,0)
;;=F19.231^^164^2206^32
;;^UTILITY(U,$J,358.3,44483,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44483,1,3,0)
;;=3^Oth/Unk Substance Withdrawal Delirium
;;^UTILITY(U,$J,358.3,44483,1,4,0)
;;=4^F19.231
;;^UTILITY(U,$J,358.3,44483,2)
;;=^5003438
;;^UTILITY(U,$J,358.3,44484,0)
;;=F19.99^^164^2206^25
;;^UTILITY(U,$J,358.3,44484,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44484,1,3,0)
;;=3^Oth/Unk Substance Related D/O,Unspec
;;^UTILITY(U,$J,358.3,44484,1,4,0)
;;=4^F19.99
;;^UTILITY(U,$J,358.3,44484,2)
;;=^5133364
;;^UTILITY(U,$J,358.3,44485,0)
;;=F19.21^^164^2206^28
;;^UTILITY(U,$J,358.3,44485,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44485,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mod/Sev,In Remiss
;;^UTILITY(U,$J,358.3,44485,1,4,0)
;;=4^F19.21
;;^UTILITY(U,$J,358.3,44485,2)
;;=^5003432
;;^UTILITY(U,$J,358.3,44486,0)
;;=F19.939^^164^2206^30
;;^UTILITY(U,$J,358.3,44486,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44486,1,3,0)
;;=3^Oth/Unk Substance WD,Unspec
;;^UTILITY(U,$J,358.3,44486,1,4,0)
;;=4^F19.939
;;^UTILITY(U,$J,358.3,44486,2)
;;=^5003459
;;^UTILITY(U,$J,358.3,44487,0)
;;=F19.11^^164^2206^26
;;^UTILITY(U,$J,358.3,44487,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44487,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mild,In Remiss
;;^UTILITY(U,$J,358.3,44487,1,4,0)
;;=4^F19.11
;;^UTILITY(U,$J,358.3,44487,2)
;;=^5151306
;;^UTILITY(U,$J,358.3,44488,0)
;;=F15.99^^164^2207^66
;;^UTILITY(U,$J,358.3,44488,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44488,1,3,0)
;;=3^Oth Stimulant Related D/O,Unspec
;;^UTILITY(U,$J,358.3,44488,1,4,0)
;;=4^F15.99
;;^UTILITY(U,$J,358.3,44488,2)
;;=^5133358
;;^UTILITY(U,$J,358.3,44489,0)
;;=F14.99^^164^2207^28
;;^UTILITY(U,$J,358.3,44489,1,0)
;;=^358.31IA^4^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2SH 3786 printed Dec 13, 2024@02:34:57 Page 2
IBDEI2SH ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+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,44477,1,3,0)
+2 ;;=3^Oth/Unk Substance Intox Delirium w/ Mild Use D/O
+3 ;;^UTILITY(U,$J,358.3,44477,1,4,0)
+4 ;;=4^F19.121
+5 ;;^UTILITY(U,$J,358.3,44477,2)
+6 ;;=^5003418
+7 ;;^UTILITY(U,$J,358.3,44478,0)
+8 ;;=F19.221^^164^2206^20
+9 ;;^UTILITY(U,$J,358.3,44478,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,44478,1,3,0)
+12 ;;=3^Oth/Unk Substance Intox Delirium w/ Mod/Sev Use D/O
+13 ;;^UTILITY(U,$J,358.3,44478,1,4,0)
+14 ;;=4^F19.221
+15 ;;^UTILITY(U,$J,358.3,44478,2)
+16 ;;=^5003434
+17 ;;^UTILITY(U,$J,358.3,44479,0)
+18 ;;=F19.921^^164^2206^21
+19 ;;^UTILITY(U,$J,358.3,44479,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,44479,1,3,0)
+22 ;;=3^Oth/Unk Substance Intox Delirium w/o Use D/O
+23 ;;^UTILITY(U,$J,358.3,44479,1,4,0)
+24 ;;=4^F19.921
+25 ;;^UTILITY(U,$J,358.3,44479,2)
+26 ;;=^5003453
+27 ;;^UTILITY(U,$J,358.3,44480,0)
+28 ;;=F19.10^^164^2206^27
+29 ;;^UTILITY(U,$J,358.3,44480,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,44480,1,3,0)
+32 ;;=3^Oth/Unk Substance Use DO,Mild,Uncomp
+33 ;;^UTILITY(U,$J,358.3,44480,1,4,0)
+34 ;;=4^F19.10
+35 ;;^UTILITY(U,$J,358.3,44480,2)
+36 ;;=^5003416
+37 ;;^UTILITY(U,$J,358.3,44481,0)
+38 ;;=F19.20^^164^2206^29
+39 ;;^UTILITY(U,$J,358.3,44481,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,44481,1,3,0)
+42 ;;=3^Oth/Unk Substance Use DO,Mod/Sev,Uncomp
+43 ;;^UTILITY(U,$J,358.3,44481,1,4,0)
+44 ;;=4^F19.20
+45 ;;^UTILITY(U,$J,358.3,44481,2)
+46 ;;=^5003431
+47 ;;^UTILITY(U,$J,358.3,44482,0)
+48 ;;=F19.239^^164^2206^31
+49 ;;^UTILITY(U,$J,358.3,44482,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,44482,1,3,0)
+52 ;;=3^Oth/Unk Substance Withdrawal
+53 ;;^UTILITY(U,$J,358.3,44482,1,4,0)
+54 ;;=4^F19.239
+55 ;;^UTILITY(U,$J,358.3,44482,2)
+56 ;;=^5003440
+57 ;;^UTILITY(U,$J,358.3,44483,0)
+58 ;;=F19.231^^164^2206^32
+59 ;;^UTILITY(U,$J,358.3,44483,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,44483,1,3,0)
+62 ;;=3^Oth/Unk Substance Withdrawal Delirium
+63 ;;^UTILITY(U,$J,358.3,44483,1,4,0)
+64 ;;=4^F19.231
+65 ;;^UTILITY(U,$J,358.3,44483,2)
+66 ;;=^5003438
+67 ;;^UTILITY(U,$J,358.3,44484,0)
+68 ;;=F19.99^^164^2206^25
+69 ;;^UTILITY(U,$J,358.3,44484,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,44484,1,3,0)
+72 ;;=3^Oth/Unk Substance Related D/O,Unspec
+73 ;;^UTILITY(U,$J,358.3,44484,1,4,0)
+74 ;;=4^F19.99
+75 ;;^UTILITY(U,$J,358.3,44484,2)
+76 ;;=^5133364
+77 ;;^UTILITY(U,$J,358.3,44485,0)
+78 ;;=F19.21^^164^2206^28
+79 ;;^UTILITY(U,$J,358.3,44485,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,44485,1,3,0)
+82 ;;=3^Oth/Unk Substance Use DO,Mod/Sev,In Remiss
+83 ;;^UTILITY(U,$J,358.3,44485,1,4,0)
+84 ;;=4^F19.21
+85 ;;^UTILITY(U,$J,358.3,44485,2)
+86 ;;=^5003432
+87 ;;^UTILITY(U,$J,358.3,44486,0)
+88 ;;=F19.939^^164^2206^30
+89 ;;^UTILITY(U,$J,358.3,44486,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,44486,1,3,0)
+92 ;;=3^Oth/Unk Substance WD,Unspec
+93 ;;^UTILITY(U,$J,358.3,44486,1,4,0)
+94 ;;=4^F19.939
+95 ;;^UTILITY(U,$J,358.3,44486,2)
+96 ;;=^5003459
+97 ;;^UTILITY(U,$J,358.3,44487,0)
+98 ;;=F19.11^^164^2206^26
+99 ;;^UTILITY(U,$J,358.3,44487,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,44487,1,3,0)
+102 ;;=3^Oth/Unk Substance Use DO,Mild,In Remiss
+103 ;;^UTILITY(U,$J,358.3,44487,1,4,0)
+104 ;;=4^F19.11
+105 ;;^UTILITY(U,$J,358.3,44487,2)
+106 ;;=^5151306
+107 ;;^UTILITY(U,$J,358.3,44488,0)
+108 ;;=F15.99^^164^2207^66
+109 ;;^UTILITY(U,$J,358.3,44488,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,44488,1,3,0)
+112 ;;=3^Oth Stimulant Related D/O,Unspec
+113 ;;^UTILITY(U,$J,358.3,44488,1,4,0)
+114 ;;=4^F15.99
+115 ;;^UTILITY(U,$J,358.3,44488,2)
+116 ;;=^5133358
+117 ;;^UTILITY(U,$J,358.3,44489,0)
+118 ;;=F14.99^^164^2207^28
+119 ;;^UTILITY(U,$J,358.3,44489,1,0)
+120 ;;=^358.31IA^4^2