IBDEI0OQ ; ; 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,11109,1,4,0)
 ;;=4^F19.94
 ;;^UTILITY(U,$J,358.3,11109,2)
 ;;=^5003460
 ;;^UTILITY(U,$J,358.3,11110,0)
 ;;=F19.17^^42^508^4
 ;;^UTILITY(U,$J,358.3,11110,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11110,1,3,0)
 ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,11110,1,4,0)
 ;;=4^F19.17
 ;;^UTILITY(U,$J,358.3,11110,2)
 ;;=^5003426
 ;;^UTILITY(U,$J,358.3,11111,0)
 ;;=F19.27^^42^508^5
 ;;^UTILITY(U,$J,358.3,11111,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11111,1,3,0)
 ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/ Mod-Sev Use D/O
 ;;^UTILITY(U,$J,358.3,11111,1,4,0)
 ;;=4^F19.27
 ;;^UTILITY(U,$J,358.3,11111,2)
 ;;=^5003446
 ;;^UTILITY(U,$J,358.3,11112,0)
 ;;=F19.97^^42^508^6
 ;;^UTILITY(U,$J,358.3,11112,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11112,1,3,0)
 ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/o Use D/O
 ;;^UTILITY(U,$J,358.3,11112,1,4,0)
 ;;=4^F19.97
 ;;^UTILITY(U,$J,358.3,11112,2)
 ;;=^5003465
 ;;^UTILITY(U,$J,358.3,11113,0)
 ;;=F19.188^^42^508^28
 ;;^UTILITY(U,$J,358.3,11113,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11113,1,3,0)
 ;;=3^Psychoactive Substance Abuse w/ Induced Disorder,Other
 ;;^UTILITY(U,$J,358.3,11113,1,4,0)
 ;;=4^F19.188
 ;;^UTILITY(U,$J,358.3,11113,2)
 ;;=^5133361
 ;;^UTILITY(U,$J,358.3,11114,0)
 ;;=F19.288^^42^508^29
 ;;^UTILITY(U,$J,358.3,11114,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11114,1,3,0)
 ;;=3^Psychoactive Substance Dependence w/ Induced Mood Disorder,Other
 ;;^UTILITY(U,$J,358.3,11114,1,4,0)
 ;;=4^F19.288
 ;;^UTILITY(U,$J,358.3,11114,2)
 ;;=^5133362
 ;;^UTILITY(U,$J,358.3,11115,0)
 ;;=F19.988^^42^508^30
 ;;^UTILITY(U,$J,358.3,11115,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11115,1,3,0)
 ;;=3^Psychoactive Substance Use w/ Induced Mood Disorder,Other
 ;;^UTILITY(U,$J,358.3,11115,1,4,0)
 ;;=4^F19.988
 ;;^UTILITY(U,$J,358.3,11115,2)
 ;;=^5133363
 ;;^UTILITY(U,$J,358.3,11116,0)
 ;;=F19.159^^42^508^7
 ;;^UTILITY(U,$J,358.3,11116,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11116,1,3,0)
 ;;=3^Other/Unknown Substance Induced Psychotic D/O w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,11116,1,4,0)
 ;;=4^F19.159
 ;;^UTILITY(U,$J,358.3,11116,2)
 ;;=^5003424
 ;;^UTILITY(U,$J,358.3,11117,0)
 ;;=F19.259^^42^508^8
 ;;^UTILITY(U,$J,358.3,11117,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11117,1,3,0)
 ;;=3^Other/Unknown Substance Induced Psychotic D/O w/ Mod-Sev Use D/O
 ;;^UTILITY(U,$J,358.3,11117,1,4,0)
 ;;=4^F19.259
 ;;^UTILITY(U,$J,358.3,11117,2)
 ;;=^5003444
 ;;^UTILITY(U,$J,358.3,11118,0)
 ;;=F19.959^^42^508^9
 ;;^UTILITY(U,$J,358.3,11118,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11118,1,3,0)
 ;;=3^Other/Unknown Substance Induced Psychotic D/O w/o Use D/O
 ;;^UTILITY(U,$J,358.3,11118,1,4,0)
 ;;=4^F19.959
 ;;^UTILITY(U,$J,358.3,11118,2)
 ;;=^5003463
 ;;^UTILITY(U,$J,358.3,11119,0)
 ;;=F19.181^^42^508^10
 ;;^UTILITY(U,$J,358.3,11119,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11119,1,3,0)
 ;;=3^Other/Unknown Substance Induced Sexual Dysfunction w/ Mild Use D/O
 ;;^UTILITY(U,$J,358.3,11119,1,4,0)
 ;;=4^F19.181
 ;;^UTILITY(U,$J,358.3,11119,2)
 ;;=^5003428
 ;;^UTILITY(U,$J,358.3,11120,0)
 ;;=F19.281^^42^508^11
 ;;^UTILITY(U,$J,358.3,11120,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11120,1,3,0)
 ;;=3^Other/Unknown Substance Induced Sexual Dysfunction w/ Mod-Sev Use D/O
 ;;^UTILITY(U,$J,358.3,11120,1,4,0)
 ;;=4^F19.281
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0OQ   3783     printed  Sep 23, 2025@19:28:48                                                                                                                                                                                                    Page 2
IBDEI0OQ  ; ; 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,11109,1,4,0)
 +2       ;;=4^F19.94
 +3       ;;^UTILITY(U,$J,358.3,11109,2)
 +4       ;;=^5003460
 +5       ;;^UTILITY(U,$J,358.3,11110,0)
 +6       ;;=F19.17^^42^508^4
 +7       ;;^UTILITY(U,$J,358.3,11110,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,11110,1,3,0)
 +10      ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/ Mild Use D/O
 +11      ;;^UTILITY(U,$J,358.3,11110,1,4,0)
 +12      ;;=4^F19.17
 +13      ;;^UTILITY(U,$J,358.3,11110,2)
 +14      ;;=^5003426
 +15      ;;^UTILITY(U,$J,358.3,11111,0)
 +16      ;;=F19.27^^42^508^5
 +17      ;;^UTILITY(U,$J,358.3,11111,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,11111,1,3,0)
 +20      ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/ Mod-Sev Use D/O
 +21      ;;^UTILITY(U,$J,358.3,11111,1,4,0)
 +22      ;;=4^F19.27
 +23      ;;^UTILITY(U,$J,358.3,11111,2)
 +24      ;;=^5003446
 +25      ;;^UTILITY(U,$J,358.3,11112,0)
 +26      ;;=F19.97^^42^508^6
 +27      ;;^UTILITY(U,$J,358.3,11112,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,11112,1,3,0)
 +30      ;;=3^Other/Unknown Substance Induced Maj Neurocog D/O w/o Use D/O
 +31      ;;^UTILITY(U,$J,358.3,11112,1,4,0)
 +32      ;;=4^F19.97
 +33      ;;^UTILITY(U,$J,358.3,11112,2)
 +34      ;;=^5003465
 +35      ;;^UTILITY(U,$J,358.3,11113,0)
 +36      ;;=F19.188^^42^508^28
 +37      ;;^UTILITY(U,$J,358.3,11113,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,11113,1,3,0)
 +40      ;;=3^Psychoactive Substance Abuse w/ Induced Disorder,Other
 +41      ;;^UTILITY(U,$J,358.3,11113,1,4,0)
 +42      ;;=4^F19.188
 +43      ;;^UTILITY(U,$J,358.3,11113,2)
 +44      ;;=^5133361
 +45      ;;^UTILITY(U,$J,358.3,11114,0)
 +46      ;;=F19.288^^42^508^29
 +47      ;;^UTILITY(U,$J,358.3,11114,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,11114,1,3,0)
 +50      ;;=3^Psychoactive Substance Dependence w/ Induced Mood Disorder,Other
 +51      ;;^UTILITY(U,$J,358.3,11114,1,4,0)
 +52      ;;=4^F19.288
 +53      ;;^UTILITY(U,$J,358.3,11114,2)
 +54      ;;=^5133362
 +55      ;;^UTILITY(U,$J,358.3,11115,0)
 +56      ;;=F19.988^^42^508^30
 +57      ;;^UTILITY(U,$J,358.3,11115,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,11115,1,3,0)
 +60      ;;=3^Psychoactive Substance Use w/ Induced Mood Disorder,Other
 +61      ;;^UTILITY(U,$J,358.3,11115,1,4,0)
 +62      ;;=4^F19.988
 +63      ;;^UTILITY(U,$J,358.3,11115,2)
 +64      ;;=^5133363
 +65      ;;^UTILITY(U,$J,358.3,11116,0)
 +66      ;;=F19.159^^42^508^7
 +67      ;;^UTILITY(U,$J,358.3,11116,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,11116,1,3,0)
 +70      ;;=3^Other/Unknown Substance Induced Psychotic D/O w/ Mild Use D/O
 +71      ;;^UTILITY(U,$J,358.3,11116,1,4,0)
 +72      ;;=4^F19.159
 +73      ;;^UTILITY(U,$J,358.3,11116,2)
 +74      ;;=^5003424
 +75      ;;^UTILITY(U,$J,358.3,11117,0)
 +76      ;;=F19.259^^42^508^8
 +77      ;;^UTILITY(U,$J,358.3,11117,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,11117,1,3,0)
 +80      ;;=3^Other/Unknown Substance Induced Psychotic D/O w/ Mod-Sev Use D/O
 +81      ;;^UTILITY(U,$J,358.3,11117,1,4,0)
 +82      ;;=4^F19.259
 +83      ;;^UTILITY(U,$J,358.3,11117,2)
 +84      ;;=^5003444
 +85      ;;^UTILITY(U,$J,358.3,11118,0)
 +86      ;;=F19.959^^42^508^9
 +87      ;;^UTILITY(U,$J,358.3,11118,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,11118,1,3,0)
 +90      ;;=3^Other/Unknown Substance Induced Psychotic D/O w/o Use D/O
 +91      ;;^UTILITY(U,$J,358.3,11118,1,4,0)
 +92      ;;=4^F19.959
 +93      ;;^UTILITY(U,$J,358.3,11118,2)
 +94      ;;=^5003463
 +95      ;;^UTILITY(U,$J,358.3,11119,0)
 +96      ;;=F19.181^^42^508^10
 +97      ;;^UTILITY(U,$J,358.3,11119,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,11119,1,3,0)
 +100     ;;=3^Other/Unknown Substance Induced Sexual Dysfunction w/ Mild Use D/O
 +101     ;;^UTILITY(U,$J,358.3,11119,1,4,0)
 +102     ;;=4^F19.181
 +103     ;;^UTILITY(U,$J,358.3,11119,2)
 +104     ;;=^5003428
 +105     ;;^UTILITY(U,$J,358.3,11120,0)
 +106     ;;=F19.281^^42^508^11
 +107     ;;^UTILITY(U,$J,358.3,11120,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,11120,1,3,0)
 +110     ;;=3^Other/Unknown Substance Induced Sexual Dysfunction w/ Mod-Sev Use D/O
 +111     ;;^UTILITY(U,$J,358.3,11120,1,4,0)
 +112     ;;=4^F19.281