IBDEI1T1 ; ; 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,28815,2)
 ;;=^5003459
 ;;^UTILITY(U,$J,358.3,28816,0)
 ;;=F19.11^^115^1423^26
 ;;^UTILITY(U,$J,358.3,28816,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28816,1,3,0)
 ;;=3^Oth/Unk Substance Use DO,Mild,In Remiss
 ;;^UTILITY(U,$J,358.3,28816,1,4,0)
 ;;=4^F19.11
 ;;^UTILITY(U,$J,358.3,28816,2)
 ;;=^5151306
 ;;^UTILITY(U,$J,358.3,28817,0)
 ;;=F15.99^^115^1424^66
 ;;^UTILITY(U,$J,358.3,28817,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28817,1,3,0)
 ;;=3^Oth Stimulant Related D/O,Unspec
 ;;^UTILITY(U,$J,358.3,28817,1,4,0)
 ;;=4^F15.99
 ;;^UTILITY(U,$J,358.3,28817,2)
 ;;=^5133358
 ;;^UTILITY(U,$J,358.3,28818,0)
 ;;=F14.99^^115^1424^28
 ;;^UTILITY(U,$J,358.3,28818,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28818,1,3,0)
 ;;=3^Cocaine Related D/O,Unspec
 ;;^UTILITY(U,$J,358.3,28818,1,4,0)
 ;;=4^F14.99
 ;;^UTILITY(U,$J,358.3,28818,2)
 ;;=^5133354
 ;;^UTILITY(U,$J,358.3,28819,0)
 ;;=F15.180^^115^1424^35
 ;;^UTILITY(U,$J,358.3,28819,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28819,1,3,0)
 ;;=3^Oth Stimulant Induced Anxiety D/O w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,28819,1,4,0)
 ;;=4^F15.180
 ;;^UTILITY(U,$J,358.3,28819,2)
 ;;=^5003291
 ;;^UTILITY(U,$J,358.3,28820,0)
 ;;=F15.280^^115^1424^36
 ;;^UTILITY(U,$J,358.3,28820,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28820,1,3,0)
 ;;=3^Oth Stimulant Induced Anxiety D/O w/ Mod/Sev Use D/O
 ;;^UTILITY(U,$J,358.3,28820,1,4,0)
 ;;=4^F15.280
 ;;^UTILITY(U,$J,358.3,28820,2)
 ;;=^5003306
 ;;^UTILITY(U,$J,358.3,28821,0)
 ;;=F15.980^^115^1424^37
 ;;^UTILITY(U,$J,358.3,28821,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28821,1,3,0)
 ;;=3^Oth Stimulant Induced Anxiety D/O w/o Use D/O
 ;;^UTILITY(U,$J,358.3,28821,1,4,0)
 ;;=4^F15.980
 ;;^UTILITY(U,$J,358.3,28821,2)
 ;;=^5003320
 ;;^UTILITY(U,$J,358.3,28822,0)
 ;;=F15.14^^115^1424^39
 ;;^UTILITY(U,$J,358.3,28822,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28822,1,3,0)
 ;;=3^Oth Stimulant Induced Mood D/O w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,28822,1,4,0)
 ;;=4^F15.14
 ;;^UTILITY(U,$J,358.3,28822,2)
 ;;=^5003287
 ;;^UTILITY(U,$J,358.3,28823,0)
 ;;=F15.24^^115^1424^40
 ;;^UTILITY(U,$J,358.3,28823,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28823,1,3,0)
 ;;=3^Oth Stimulant Induced Mood D/O w/ Mod/Sev Use D/O
 ;;^UTILITY(U,$J,358.3,28823,1,4,0)
 ;;=4^F15.24
 ;;^UTILITY(U,$J,358.3,28823,2)
 ;;=^5003302
 ;;^UTILITY(U,$J,358.3,28824,0)
 ;;=F15.94^^115^1424^41
 ;;^UTILITY(U,$J,358.3,28824,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28824,1,3,0)
 ;;=3^Oth Stimulant Induced Mood D/O w/o Use D/O
 ;;^UTILITY(U,$J,358.3,28824,1,4,0)
 ;;=4^F15.94
 ;;^UTILITY(U,$J,358.3,28824,2)
 ;;=^5003316
 ;;^UTILITY(U,$J,358.3,28825,0)
 ;;=F15.921^^115^1424^38
 ;;^UTILITY(U,$J,358.3,28825,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28825,1,3,0)
 ;;=3^Oth Stimulant Induced Delirium
 ;;^UTILITY(U,$J,358.3,28825,1,4,0)
 ;;=4^F15.921
 ;;^UTILITY(U,$J,358.3,28825,2)
 ;;=^5003312
 ;;^UTILITY(U,$J,358.3,28826,0)
 ;;=F15.188^^115^1424^42
 ;;^UTILITY(U,$J,358.3,28826,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28826,1,3,0)
 ;;=3^Oth Stimulant Induced Obess-Compul & Rel D/O w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,28826,1,4,0)
 ;;=4^F15.188
 ;;^UTILITY(U,$J,358.3,28826,2)
 ;;=^5133355
 ;;^UTILITY(U,$J,358.3,28827,0)
 ;;=F15.288^^115^1424^44
 ;;^UTILITY(U,$J,358.3,28827,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,28827,1,3,0)
 ;;=3^Oth Stimulant Induced Obess/Compul & Rel D/O w/ Mod/Sev Use D/O
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1T1   3809     printed  Sep 23, 2025@19:51:15                                                                                                                                                                                                    Page 2
IBDEI1T1  ; ; 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,28815,2)
 +2       ;;=^5003459
 +3       ;;^UTILITY(U,$J,358.3,28816,0)
 +4       ;;=F19.11^^115^1423^26
 +5       ;;^UTILITY(U,$J,358.3,28816,1,0)
 +6       ;;=^358.31IA^4^2
 +7       ;;^UTILITY(U,$J,358.3,28816,1,3,0)
 +8       ;;=3^Oth/Unk Substance Use DO,Mild,In Remiss
 +9       ;;^UTILITY(U,$J,358.3,28816,1,4,0)
 +10      ;;=4^F19.11
 +11      ;;^UTILITY(U,$J,358.3,28816,2)
 +12      ;;=^5151306
 +13      ;;^UTILITY(U,$J,358.3,28817,0)
 +14      ;;=F15.99^^115^1424^66
 +15      ;;^UTILITY(U,$J,358.3,28817,1,0)
 +16      ;;=^358.31IA^4^2
 +17      ;;^UTILITY(U,$J,358.3,28817,1,3,0)
 +18      ;;=3^Oth Stimulant Related D/O,Unspec
 +19      ;;^UTILITY(U,$J,358.3,28817,1,4,0)
 +20      ;;=4^F15.99
 +21      ;;^UTILITY(U,$J,358.3,28817,2)
 +22      ;;=^5133358
 +23      ;;^UTILITY(U,$J,358.3,28818,0)
 +24      ;;=F14.99^^115^1424^28
 +25      ;;^UTILITY(U,$J,358.3,28818,1,0)
 +26      ;;=^358.31IA^4^2
 +27      ;;^UTILITY(U,$J,358.3,28818,1,3,0)
 +28      ;;=3^Cocaine Related D/O,Unspec
 +29      ;;^UTILITY(U,$J,358.3,28818,1,4,0)
 +30      ;;=4^F14.99
 +31      ;;^UTILITY(U,$J,358.3,28818,2)
 +32      ;;=^5133354
 +33      ;;^UTILITY(U,$J,358.3,28819,0)
 +34      ;;=F15.180^^115^1424^35
 +35      ;;^UTILITY(U,$J,358.3,28819,1,0)
 +36      ;;=^358.31IA^4^2
 +37      ;;^UTILITY(U,$J,358.3,28819,1,3,0)
 +38      ;;=3^Oth Stimulant Induced Anxiety D/O w/ Mild Use D/O
 +39      ;;^UTILITY(U,$J,358.3,28819,1,4,0)
 +40      ;;=4^F15.180
 +41      ;;^UTILITY(U,$J,358.3,28819,2)
 +42      ;;=^5003291
 +43      ;;^UTILITY(U,$J,358.3,28820,0)
 +44      ;;=F15.280^^115^1424^36
 +45      ;;^UTILITY(U,$J,358.3,28820,1,0)
 +46      ;;=^358.31IA^4^2
 +47      ;;^UTILITY(U,$J,358.3,28820,1,3,0)
 +48      ;;=3^Oth Stimulant Induced Anxiety D/O w/ Mod/Sev Use D/O
 +49      ;;^UTILITY(U,$J,358.3,28820,1,4,0)
 +50      ;;=4^F15.280
 +51      ;;^UTILITY(U,$J,358.3,28820,2)
 +52      ;;=^5003306
 +53      ;;^UTILITY(U,$J,358.3,28821,0)
 +54      ;;=F15.980^^115^1424^37
 +55      ;;^UTILITY(U,$J,358.3,28821,1,0)
 +56      ;;=^358.31IA^4^2
 +57      ;;^UTILITY(U,$J,358.3,28821,1,3,0)
 +58      ;;=3^Oth Stimulant Induced Anxiety D/O w/o Use D/O
 +59      ;;^UTILITY(U,$J,358.3,28821,1,4,0)
 +60      ;;=4^F15.980
 +61      ;;^UTILITY(U,$J,358.3,28821,2)
 +62      ;;=^5003320
 +63      ;;^UTILITY(U,$J,358.3,28822,0)
 +64      ;;=F15.14^^115^1424^39
 +65      ;;^UTILITY(U,$J,358.3,28822,1,0)
 +66      ;;=^358.31IA^4^2
 +67      ;;^UTILITY(U,$J,358.3,28822,1,3,0)
 +68      ;;=3^Oth Stimulant Induced Mood D/O w/ Mild Use D/O
 +69      ;;^UTILITY(U,$J,358.3,28822,1,4,0)
 +70      ;;=4^F15.14
 +71      ;;^UTILITY(U,$J,358.3,28822,2)
 +72      ;;=^5003287
 +73      ;;^UTILITY(U,$J,358.3,28823,0)
 +74      ;;=F15.24^^115^1424^40
 +75      ;;^UTILITY(U,$J,358.3,28823,1,0)
 +76      ;;=^358.31IA^4^2
 +77      ;;^UTILITY(U,$J,358.3,28823,1,3,0)
 +78      ;;=3^Oth Stimulant Induced Mood D/O w/ Mod/Sev Use D/O
 +79      ;;^UTILITY(U,$J,358.3,28823,1,4,0)
 +80      ;;=4^F15.24
 +81      ;;^UTILITY(U,$J,358.3,28823,2)
 +82      ;;=^5003302
 +83      ;;^UTILITY(U,$J,358.3,28824,0)
 +84      ;;=F15.94^^115^1424^41
 +85      ;;^UTILITY(U,$J,358.3,28824,1,0)
 +86      ;;=^358.31IA^4^2
 +87      ;;^UTILITY(U,$J,358.3,28824,1,3,0)
 +88      ;;=3^Oth Stimulant Induced Mood D/O w/o Use D/O
 +89      ;;^UTILITY(U,$J,358.3,28824,1,4,0)
 +90      ;;=4^F15.94
 +91      ;;^UTILITY(U,$J,358.3,28824,2)
 +92      ;;=^5003316
 +93      ;;^UTILITY(U,$J,358.3,28825,0)
 +94      ;;=F15.921^^115^1424^38
 +95      ;;^UTILITY(U,$J,358.3,28825,1,0)
 +96      ;;=^358.31IA^4^2
 +97      ;;^UTILITY(U,$J,358.3,28825,1,3,0)
 +98      ;;=3^Oth Stimulant Induced Delirium
 +99      ;;^UTILITY(U,$J,358.3,28825,1,4,0)
 +100     ;;=4^F15.921
 +101     ;;^UTILITY(U,$J,358.3,28825,2)
 +102     ;;=^5003312
 +103     ;;^UTILITY(U,$J,358.3,28826,0)
 +104     ;;=F15.188^^115^1424^42
 +105     ;;^UTILITY(U,$J,358.3,28826,1,0)
 +106     ;;=^358.31IA^4^2
 +107     ;;^UTILITY(U,$J,358.3,28826,1,3,0)
 +108     ;;=3^Oth Stimulant Induced Obess-Compul & Rel D/O w/ Mild Use D/O
 +109     ;;^UTILITY(U,$J,358.3,28826,1,4,0)
 +110     ;;=4^F15.188
 +111     ;;^UTILITY(U,$J,358.3,28826,2)
 +112     ;;=^5133355
 +113     ;;^UTILITY(U,$J,358.3,28827,0)
 +114     ;;=F15.288^^115^1424^44
 +115     ;;^UTILITY(U,$J,358.3,28827,1,0)
 +116     ;;=^358.31IA^4^2
 +117     ;;^UTILITY(U,$J,358.3,28827,1,3,0)
 +118     ;;=3^Oth Stimulant Induced Obess/Compul & Rel D/O w/ Mod/Sev Use D/O