IBDEI0O8 ; ; 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,10897,0)
 ;;=F12.188^^42^492^10
 ;;^UTILITY(U,$J,358.3,10897,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10897,1,3,0)
 ;;=3^Cannabis Induced Sleep Disorder w/ Mild Use Disorder
 ;;^UTILITY(U,$J,358.3,10897,1,4,0)
 ;;=4^F12.188
 ;;^UTILITY(U,$J,358.3,10897,2)
 ;;=^5003164
 ;;^UTILITY(U,$J,358.3,10898,0)
 ;;=F12.288^^42^492^3
 ;;^UTILITY(U,$J,358.3,10898,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10898,1,3,0)
 ;;=3^Cannabis Dependence w/ Induced Mood Disorder,Other
 ;;^UTILITY(U,$J,358.3,10898,1,4,0)
 ;;=4^F12.288
 ;;^UTILITY(U,$J,358.3,10898,2)
 ;;=^5003176
 ;;^UTILITY(U,$J,358.3,10899,0)
 ;;=F12.99^^42^492^20
 ;;^UTILITY(U,$J,358.3,10899,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10899,1,3,0)
 ;;=3^Cannabis Related Disorder,Unspec
 ;;^UTILITY(U,$J,358.3,10899,1,4,0)
 ;;=4^F12.99
 ;;^UTILITY(U,$J,358.3,10899,2)
 ;;=^5003188
 ;;^UTILITY(U,$J,358.3,10900,0)
 ;;=F12.11^^42^492^1
 ;;^UTILITY(U,$J,358.3,10900,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10900,1,3,0)
 ;;=3^Cannabis Abuse,In Remission
 ;;^UTILITY(U,$J,358.3,10900,1,4,0)
 ;;=4^F12.11
 ;;^UTILITY(U,$J,358.3,10900,2)
 ;;=^268236
 ;;^UTILITY(U,$J,358.3,10901,0)
 ;;=F16.10^^42^493^1
 ;;^UTILITY(U,$J,358.3,10901,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10901,1,3,0)
 ;;=3^Hallucinogen Abuse
 ;;^UTILITY(U,$J,358.3,10901,1,4,0)
 ;;=4^F16.10
 ;;^UTILITY(U,$J,358.3,10901,2)
 ;;=^5003323
 ;;^UTILITY(U,$J,358.3,10902,0)
 ;;=F16.20^^42^493^8
 ;;^UTILITY(U,$J,358.3,10902,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10902,1,3,0)
 ;;=3^Hallucinogen Dependence
 ;;^UTILITY(U,$J,358.3,10902,1,4,0)
 ;;=4^F16.20
 ;;^UTILITY(U,$J,358.3,10902,2)
 ;;=^5003336
 ;;^UTILITY(U,$J,358.3,10903,0)
 ;;=F16.121^^42^493^5
 ;;^UTILITY(U,$J,358.3,10903,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10903,1,3,0)
 ;;=3^Hallucinogen Abuse w/ Intoxication w/ Delirium
 ;;^UTILITY(U,$J,358.3,10903,1,4,0)
 ;;=4^F16.121
 ;;^UTILITY(U,$J,358.3,10903,2)
 ;;=^5003325
 ;;^UTILITY(U,$J,358.3,10904,0)
 ;;=F16.221^^42^493^12
 ;;^UTILITY(U,$J,358.3,10904,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10904,1,3,0)
 ;;=3^Hallucinogen Dependence w/ Intoxication w/ Delirium
 ;;^UTILITY(U,$J,358.3,10904,1,4,0)
 ;;=4^F16.221
 ;;^UTILITY(U,$J,358.3,10904,2)
 ;;=^5003339
 ;;^UTILITY(U,$J,358.3,10905,0)
 ;;=F16.921^^42^493^19
 ;;^UTILITY(U,$J,358.3,10905,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10905,1,3,0)
 ;;=3^Hallucinogen Use w/ Intoxication w/ Delirium
 ;;^UTILITY(U,$J,358.3,10905,1,4,0)
 ;;=4^F16.921
 ;;^UTILITY(U,$J,358.3,10905,2)
 ;;=^5003351
 ;;^UTILITY(U,$J,358.3,10906,0)
 ;;=F16.129^^42^493^6
 ;;^UTILITY(U,$J,358.3,10906,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10906,1,3,0)
 ;;=3^Hallucinogen Abuse w/ Intoxication,Unspec
 ;;^UTILITY(U,$J,358.3,10906,1,4,0)
 ;;=4^F16.129
 ;;^UTILITY(U,$J,358.3,10906,2)
 ;;=^5003327
 ;;^UTILITY(U,$J,358.3,10907,0)
 ;;=F16.229^^42^493^13
 ;;^UTILITY(U,$J,358.3,10907,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10907,1,3,0)
 ;;=3^Hallucinogen Dependence w/ Intoxication,Unspec
 ;;^UTILITY(U,$J,358.3,10907,1,4,0)
 ;;=4^F16.229
 ;;^UTILITY(U,$J,358.3,10907,2)
 ;;=^5003340
 ;;^UTILITY(U,$J,358.3,10908,0)
 ;;=F16.929^^42^493^20
 ;;^UTILITY(U,$J,358.3,10908,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10908,1,3,0)
 ;;=3^Hallucinogen Use w/ Intoxication,Unspec
 ;;^UTILITY(U,$J,358.3,10908,1,4,0)
 ;;=4^F16.929
 ;;^UTILITY(U,$J,358.3,10908,2)
 ;;=^5003352
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0O8   3770     printed  Sep 23, 2025@19:28:31                                                                                                                                                                                                    Page 2
IBDEI0O8  ; ; 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,10897,0)
 +2       ;;=F12.188^^42^492^10
 +3       ;;^UTILITY(U,$J,358.3,10897,1,0)
 +4       ;;=^358.31IA^4^2
 +5       ;;^UTILITY(U,$J,358.3,10897,1,3,0)
 +6       ;;=3^Cannabis Induced Sleep Disorder w/ Mild Use Disorder
 +7       ;;^UTILITY(U,$J,358.3,10897,1,4,0)
 +8       ;;=4^F12.188
 +9       ;;^UTILITY(U,$J,358.3,10897,2)
 +10      ;;=^5003164
 +11      ;;^UTILITY(U,$J,358.3,10898,0)
 +12      ;;=F12.288^^42^492^3
 +13      ;;^UTILITY(U,$J,358.3,10898,1,0)
 +14      ;;=^358.31IA^4^2
 +15      ;;^UTILITY(U,$J,358.3,10898,1,3,0)
 +16      ;;=3^Cannabis Dependence w/ Induced Mood Disorder,Other
 +17      ;;^UTILITY(U,$J,358.3,10898,1,4,0)
 +18      ;;=4^F12.288
 +19      ;;^UTILITY(U,$J,358.3,10898,2)
 +20      ;;=^5003176
 +21      ;;^UTILITY(U,$J,358.3,10899,0)
 +22      ;;=F12.99^^42^492^20
 +23      ;;^UTILITY(U,$J,358.3,10899,1,0)
 +24      ;;=^358.31IA^4^2
 +25      ;;^UTILITY(U,$J,358.3,10899,1,3,0)
 +26      ;;=3^Cannabis Related Disorder,Unspec
 +27      ;;^UTILITY(U,$J,358.3,10899,1,4,0)
 +28      ;;=4^F12.99
 +29      ;;^UTILITY(U,$J,358.3,10899,2)
 +30      ;;=^5003188
 +31      ;;^UTILITY(U,$J,358.3,10900,0)
 +32      ;;=F12.11^^42^492^1
 +33      ;;^UTILITY(U,$J,358.3,10900,1,0)
 +34      ;;=^358.31IA^4^2
 +35      ;;^UTILITY(U,$J,358.3,10900,1,3,0)
 +36      ;;=3^Cannabis Abuse,In Remission
 +37      ;;^UTILITY(U,$J,358.3,10900,1,4,0)
 +38      ;;=4^F12.11
 +39      ;;^UTILITY(U,$J,358.3,10900,2)
 +40      ;;=^268236
 +41      ;;^UTILITY(U,$J,358.3,10901,0)
 +42      ;;=F16.10^^42^493^1
 +43      ;;^UTILITY(U,$J,358.3,10901,1,0)
 +44      ;;=^358.31IA^4^2
 +45      ;;^UTILITY(U,$J,358.3,10901,1,3,0)
 +46      ;;=3^Hallucinogen Abuse
 +47      ;;^UTILITY(U,$J,358.3,10901,1,4,0)
 +48      ;;=4^F16.10
 +49      ;;^UTILITY(U,$J,358.3,10901,2)
 +50      ;;=^5003323
 +51      ;;^UTILITY(U,$J,358.3,10902,0)
 +52      ;;=F16.20^^42^493^8
 +53      ;;^UTILITY(U,$J,358.3,10902,1,0)
 +54      ;;=^358.31IA^4^2
 +55      ;;^UTILITY(U,$J,358.3,10902,1,3,0)
 +56      ;;=3^Hallucinogen Dependence
 +57      ;;^UTILITY(U,$J,358.3,10902,1,4,0)
 +58      ;;=4^F16.20
 +59      ;;^UTILITY(U,$J,358.3,10902,2)
 +60      ;;=^5003336
 +61      ;;^UTILITY(U,$J,358.3,10903,0)
 +62      ;;=F16.121^^42^493^5
 +63      ;;^UTILITY(U,$J,358.3,10903,1,0)
 +64      ;;=^358.31IA^4^2
 +65      ;;^UTILITY(U,$J,358.3,10903,1,3,0)
 +66      ;;=3^Hallucinogen Abuse w/ Intoxication w/ Delirium
 +67      ;;^UTILITY(U,$J,358.3,10903,1,4,0)
 +68      ;;=4^F16.121
 +69      ;;^UTILITY(U,$J,358.3,10903,2)
 +70      ;;=^5003325
 +71      ;;^UTILITY(U,$J,358.3,10904,0)
 +72      ;;=F16.221^^42^493^12
 +73      ;;^UTILITY(U,$J,358.3,10904,1,0)
 +74      ;;=^358.31IA^4^2
 +75      ;;^UTILITY(U,$J,358.3,10904,1,3,0)
 +76      ;;=3^Hallucinogen Dependence w/ Intoxication w/ Delirium
 +77      ;;^UTILITY(U,$J,358.3,10904,1,4,0)
 +78      ;;=4^F16.221
 +79      ;;^UTILITY(U,$J,358.3,10904,2)
 +80      ;;=^5003339
 +81      ;;^UTILITY(U,$J,358.3,10905,0)
 +82      ;;=F16.921^^42^493^19
 +83      ;;^UTILITY(U,$J,358.3,10905,1,0)
 +84      ;;=^358.31IA^4^2
 +85      ;;^UTILITY(U,$J,358.3,10905,1,3,0)
 +86      ;;=3^Hallucinogen Use w/ Intoxication w/ Delirium
 +87      ;;^UTILITY(U,$J,358.3,10905,1,4,0)
 +88      ;;=4^F16.921
 +89      ;;^UTILITY(U,$J,358.3,10905,2)
 +90      ;;=^5003351
 +91      ;;^UTILITY(U,$J,358.3,10906,0)
 +92      ;;=F16.129^^42^493^6
 +93      ;;^UTILITY(U,$J,358.3,10906,1,0)
 +94      ;;=^358.31IA^4^2
 +95      ;;^UTILITY(U,$J,358.3,10906,1,3,0)
 +96      ;;=3^Hallucinogen Abuse w/ Intoxication,Unspec
 +97      ;;^UTILITY(U,$J,358.3,10906,1,4,0)
 +98      ;;=4^F16.129
 +99      ;;^UTILITY(U,$J,358.3,10906,2)
 +100     ;;=^5003327
 +101     ;;^UTILITY(U,$J,358.3,10907,0)
 +102     ;;=F16.229^^42^493^13
 +103     ;;^UTILITY(U,$J,358.3,10907,1,0)
 +104     ;;=^358.31IA^4^2
 +105     ;;^UTILITY(U,$J,358.3,10907,1,3,0)
 +106     ;;=3^Hallucinogen Dependence w/ Intoxication,Unspec
 +107     ;;^UTILITY(U,$J,358.3,10907,1,4,0)
 +108     ;;=4^F16.229
 +109     ;;^UTILITY(U,$J,358.3,10907,2)
 +110     ;;=^5003340
 +111     ;;^UTILITY(U,$J,358.3,10908,0)
 +112     ;;=F16.929^^42^493^20
 +113     ;;^UTILITY(U,$J,358.3,10908,1,0)
 +114     ;;=^358.31IA^4^2
 +115     ;;^UTILITY(U,$J,358.3,10908,1,3,0)
 +116     ;;=3^Hallucinogen Use w/ Intoxication,Unspec
 +117     ;;^UTILITY(U,$J,358.3,10908,1,4,0)
 +118     ;;=4^F16.929
 +119     ;;^UTILITY(U,$J,358.3,10908,2)
 +120     ;;=^5003352