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