IBDEI1WP ; ; 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,30443,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30443,1,3,0)
;;=3^Oth/Unk Substance Induced Sleep D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,30443,1,4,0)
;;=4^F19.282
;;^UTILITY(U,$J,358.3,30443,2)
;;=^5003449
;;^UTILITY(U,$J,358.3,30444,0)
;;=F19.982^^120^1555^18
;;^UTILITY(U,$J,358.3,30444,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30444,1,3,0)
;;=3^Oth/Unk Substance Induced Sleep D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,30444,1,4,0)
;;=4^F19.982
;;^UTILITY(U,$J,358.3,30444,2)
;;=^5003468
;;^UTILITY(U,$J,358.3,30445,0)
;;=F19.129^^120^1555^22
;;^UTILITY(U,$J,358.3,30445,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30445,1,3,0)
;;=3^Oth/Unk Substance Intox w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,30445,1,4,0)
;;=4^F19.129
;;^UTILITY(U,$J,358.3,30445,2)
;;=^5003420
;;^UTILITY(U,$J,358.3,30446,0)
;;=F19.229^^120^1555^23
;;^UTILITY(U,$J,358.3,30446,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30446,1,3,0)
;;=3^Oth/Unk Substance Intox w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,30446,1,4,0)
;;=4^F19.229
;;^UTILITY(U,$J,358.3,30446,2)
;;=^5003436
;;^UTILITY(U,$J,358.3,30447,0)
;;=F19.929^^120^1555^24
;;^UTILITY(U,$J,358.3,30447,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30447,1,3,0)
;;=3^Oth/Unk Substance Intox w/o Use D/O
;;^UTILITY(U,$J,358.3,30447,1,4,0)
;;=4^F19.929
;;^UTILITY(U,$J,358.3,30447,2)
;;=^5003455
;;^UTILITY(U,$J,358.3,30448,0)
;;=F19.121^^120^1555^19
;;^UTILITY(U,$J,358.3,30448,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30448,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,30448,1,4,0)
;;=4^F19.121
;;^UTILITY(U,$J,358.3,30448,2)
;;=^5003418
;;^UTILITY(U,$J,358.3,30449,0)
;;=F19.221^^120^1555^20
;;^UTILITY(U,$J,358.3,30449,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30449,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,30449,1,4,0)
;;=4^F19.221
;;^UTILITY(U,$J,358.3,30449,2)
;;=^5003434
;;^UTILITY(U,$J,358.3,30450,0)
;;=F19.921^^120^1555^21
;;^UTILITY(U,$J,358.3,30450,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30450,1,3,0)
;;=3^Oth/Unk Substance Intox Delirium w/o Use D/O
;;^UTILITY(U,$J,358.3,30450,1,4,0)
;;=4^F19.921
;;^UTILITY(U,$J,358.3,30450,2)
;;=^5003453
;;^UTILITY(U,$J,358.3,30451,0)
;;=F19.10^^120^1555^27
;;^UTILITY(U,$J,358.3,30451,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30451,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mild,Uncomp
;;^UTILITY(U,$J,358.3,30451,1,4,0)
;;=4^F19.10
;;^UTILITY(U,$J,358.3,30451,2)
;;=^5003416
;;^UTILITY(U,$J,358.3,30452,0)
;;=F19.20^^120^1555^29
;;^UTILITY(U,$J,358.3,30452,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30452,1,3,0)
;;=3^Oth/Unk Substance Use DO,Mod/Sev,Uncomp
;;^UTILITY(U,$J,358.3,30452,1,4,0)
;;=4^F19.20
;;^UTILITY(U,$J,358.3,30452,2)
;;=^5003431
;;^UTILITY(U,$J,358.3,30453,0)
;;=F19.239^^120^1555^31
;;^UTILITY(U,$J,358.3,30453,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30453,1,3,0)
;;=3^Oth/Unk Substance Withdrawal
;;^UTILITY(U,$J,358.3,30453,1,4,0)
;;=4^F19.239
;;^UTILITY(U,$J,358.3,30453,2)
;;=^5003440
;;^UTILITY(U,$J,358.3,30454,0)
;;=F19.231^^120^1555^32
;;^UTILITY(U,$J,358.3,30454,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30454,1,3,0)
;;=3^Oth/Unk Substance Withdrawal Delirium
;;^UTILITY(U,$J,358.3,30454,1,4,0)
;;=4^F19.231
;;^UTILITY(U,$J,358.3,30454,2)
;;=^5003438
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1WP 3777 printed Nov 22, 2024@17:27:27 Page 2
IBDEI1WP ; ; 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,30443,1,0)
+2 ;;=^358.31IA^4^2
+3 ;;^UTILITY(U,$J,358.3,30443,1,3,0)
+4 ;;=3^Oth/Unk Substance Induced Sleep D/O w/ Mod/Sev Use D/O
+5 ;;^UTILITY(U,$J,358.3,30443,1,4,0)
+6 ;;=4^F19.282
+7 ;;^UTILITY(U,$J,358.3,30443,2)
+8 ;;=^5003449
+9 ;;^UTILITY(U,$J,358.3,30444,0)
+10 ;;=F19.982^^120^1555^18
+11 ;;^UTILITY(U,$J,358.3,30444,1,0)
+12 ;;=^358.31IA^4^2
+13 ;;^UTILITY(U,$J,358.3,30444,1,3,0)
+14 ;;=3^Oth/Unk Substance Induced Sleep D/O w/o Use D/O
+15 ;;^UTILITY(U,$J,358.3,30444,1,4,0)
+16 ;;=4^F19.982
+17 ;;^UTILITY(U,$J,358.3,30444,2)
+18 ;;=^5003468
+19 ;;^UTILITY(U,$J,358.3,30445,0)
+20 ;;=F19.129^^120^1555^22
+21 ;;^UTILITY(U,$J,358.3,30445,1,0)
+22 ;;=^358.31IA^4^2
+23 ;;^UTILITY(U,$J,358.3,30445,1,3,0)
+24 ;;=3^Oth/Unk Substance Intox w/ Mild Use D/O
+25 ;;^UTILITY(U,$J,358.3,30445,1,4,0)
+26 ;;=4^F19.129
+27 ;;^UTILITY(U,$J,358.3,30445,2)
+28 ;;=^5003420
+29 ;;^UTILITY(U,$J,358.3,30446,0)
+30 ;;=F19.229^^120^1555^23
+31 ;;^UTILITY(U,$J,358.3,30446,1,0)
+32 ;;=^358.31IA^4^2
+33 ;;^UTILITY(U,$J,358.3,30446,1,3,0)
+34 ;;=3^Oth/Unk Substance Intox w/ Mod/Sev Use D/O
+35 ;;^UTILITY(U,$J,358.3,30446,1,4,0)
+36 ;;=4^F19.229
+37 ;;^UTILITY(U,$J,358.3,30446,2)
+38 ;;=^5003436
+39 ;;^UTILITY(U,$J,358.3,30447,0)
+40 ;;=F19.929^^120^1555^24
+41 ;;^UTILITY(U,$J,358.3,30447,1,0)
+42 ;;=^358.31IA^4^2
+43 ;;^UTILITY(U,$J,358.3,30447,1,3,0)
+44 ;;=3^Oth/Unk Substance Intox w/o Use D/O
+45 ;;^UTILITY(U,$J,358.3,30447,1,4,0)
+46 ;;=4^F19.929
+47 ;;^UTILITY(U,$J,358.3,30447,2)
+48 ;;=^5003455
+49 ;;^UTILITY(U,$J,358.3,30448,0)
+50 ;;=F19.121^^120^1555^19
+51 ;;^UTILITY(U,$J,358.3,30448,1,0)
+52 ;;=^358.31IA^4^2
+53 ;;^UTILITY(U,$J,358.3,30448,1,3,0)
+54 ;;=3^Oth/Unk Substance Intox Delirium w/ Mild Use D/O
+55 ;;^UTILITY(U,$J,358.3,30448,1,4,0)
+56 ;;=4^F19.121
+57 ;;^UTILITY(U,$J,358.3,30448,2)
+58 ;;=^5003418
+59 ;;^UTILITY(U,$J,358.3,30449,0)
+60 ;;=F19.221^^120^1555^20
+61 ;;^UTILITY(U,$J,358.3,30449,1,0)
+62 ;;=^358.31IA^4^2
+63 ;;^UTILITY(U,$J,358.3,30449,1,3,0)
+64 ;;=3^Oth/Unk Substance Intox Delirium w/ Mod/Sev Use D/O
+65 ;;^UTILITY(U,$J,358.3,30449,1,4,0)
+66 ;;=4^F19.221
+67 ;;^UTILITY(U,$J,358.3,30449,2)
+68 ;;=^5003434
+69 ;;^UTILITY(U,$J,358.3,30450,0)
+70 ;;=F19.921^^120^1555^21
+71 ;;^UTILITY(U,$J,358.3,30450,1,0)
+72 ;;=^358.31IA^4^2
+73 ;;^UTILITY(U,$J,358.3,30450,1,3,0)
+74 ;;=3^Oth/Unk Substance Intox Delirium w/o Use D/O
+75 ;;^UTILITY(U,$J,358.3,30450,1,4,0)
+76 ;;=4^F19.921
+77 ;;^UTILITY(U,$J,358.3,30450,2)
+78 ;;=^5003453
+79 ;;^UTILITY(U,$J,358.3,30451,0)
+80 ;;=F19.10^^120^1555^27
+81 ;;^UTILITY(U,$J,358.3,30451,1,0)
+82 ;;=^358.31IA^4^2
+83 ;;^UTILITY(U,$J,358.3,30451,1,3,0)
+84 ;;=3^Oth/Unk Substance Use DO,Mild,Uncomp
+85 ;;^UTILITY(U,$J,358.3,30451,1,4,0)
+86 ;;=4^F19.10
+87 ;;^UTILITY(U,$J,358.3,30451,2)
+88 ;;=^5003416
+89 ;;^UTILITY(U,$J,358.3,30452,0)
+90 ;;=F19.20^^120^1555^29
+91 ;;^UTILITY(U,$J,358.3,30452,1,0)
+92 ;;=^358.31IA^4^2
+93 ;;^UTILITY(U,$J,358.3,30452,1,3,0)
+94 ;;=3^Oth/Unk Substance Use DO,Mod/Sev,Uncomp
+95 ;;^UTILITY(U,$J,358.3,30452,1,4,0)
+96 ;;=4^F19.20
+97 ;;^UTILITY(U,$J,358.3,30452,2)
+98 ;;=^5003431
+99 ;;^UTILITY(U,$J,358.3,30453,0)
+100 ;;=F19.239^^120^1555^31
+101 ;;^UTILITY(U,$J,358.3,30453,1,0)
+102 ;;=^358.31IA^4^2
+103 ;;^UTILITY(U,$J,358.3,30453,1,3,0)
+104 ;;=3^Oth/Unk Substance Withdrawal
+105 ;;^UTILITY(U,$J,358.3,30453,1,4,0)
+106 ;;=4^F19.239
+107 ;;^UTILITY(U,$J,358.3,30453,2)
+108 ;;=^5003440
+109 ;;^UTILITY(U,$J,358.3,30454,0)
+110 ;;=F19.231^^120^1555^32
+111 ;;^UTILITY(U,$J,358.3,30454,1,0)
+112 ;;=^358.31IA^4^2
+113 ;;^UTILITY(U,$J,358.3,30454,1,3,0)
+114 ;;=3^Oth/Unk Substance Withdrawal Delirium
+115 ;;^UTILITY(U,$J,358.3,30454,1,4,0)
+116 ;;=4^F19.231
+117 ;;^UTILITY(U,$J,358.3,30454,2)
+118 ;;=^5003438