IBDEI38P ; ; 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,51722,1,3,0)
 ;;=3^Cocaine Depend w/ Cocaine-Induc Psychotic Disorder w/ Hallucin
 ;;^UTILITY(U,$J,358.3,51722,1,4,0)
 ;;=4^F14.251
 ;;^UTILITY(U,$J,358.3,51722,2)
 ;;=^5003262
 ;;^UTILITY(U,$J,358.3,51723,0)
 ;;=F14.250^^193^2511^12
 ;;^UTILITY(U,$J,358.3,51723,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51723,1,3,0)
 ;;=3^Cocaine Depend w/ Cocaine-Induc Psych Disorder w/ Delusions
 ;;^UTILITY(U,$J,358.3,51723,1,4,0)
 ;;=4^F14.250
 ;;^UTILITY(U,$J,358.3,51723,2)
 ;;=^5003261
 ;;^UTILITY(U,$J,358.3,51724,0)
 ;;=F14.24^^193^2511^16
 ;;^UTILITY(U,$J,358.3,51724,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51724,1,3,0)
 ;;=3^Cocaine Dependence w/ Cocaine-Induced Mood Disorder
 ;;^UTILITY(U,$J,358.3,51724,1,4,0)
 ;;=4^F14.24
 ;;^UTILITY(U,$J,358.3,51724,2)
 ;;=^5003260
 ;;^UTILITY(U,$J,358.3,51725,0)
 ;;=F14.23^^193^2511^25
 ;;^UTILITY(U,$J,358.3,51725,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51725,1,3,0)
 ;;=3^Cocaine Dependence w/ Withdrawal
 ;;^UTILITY(U,$J,358.3,51725,1,4,0)
 ;;=4^F14.23
 ;;^UTILITY(U,$J,358.3,51725,2)
 ;;=^5003259
 ;;^UTILITY(U,$J,358.3,51726,0)
 ;;=F14.229^^193^2511^22
 ;;^UTILITY(U,$J,358.3,51726,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51726,1,3,0)
 ;;=3^Cocaine Dependence w/ Intoxication,Unspec
 ;;^UTILITY(U,$J,358.3,51726,1,4,0)
 ;;=4^F14.229
 ;;^UTILITY(U,$J,358.3,51726,2)
 ;;=^5003258
 ;;^UTILITY(U,$J,358.3,51727,0)
 ;;=F14.222^^193^2511^20
 ;;^UTILITY(U,$J,358.3,51727,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51727,1,3,0)
 ;;=3^Cocaine Dependence w/ Intoxication w/ Perceptual Disturbance
 ;;^UTILITY(U,$J,358.3,51727,1,4,0)
 ;;=4^F14.222
 ;;^UTILITY(U,$J,358.3,51727,2)
 ;;=^5003257
 ;;^UTILITY(U,$J,358.3,51728,0)
 ;;=F14.221^^193^2511^19
 ;;^UTILITY(U,$J,358.3,51728,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51728,1,3,0)
 ;;=3^Cocaine Dependence w/ Intoxication Delirium
 ;;^UTILITY(U,$J,358.3,51728,1,4,0)
 ;;=4^F14.221
 ;;^UTILITY(U,$J,358.3,51728,2)
 ;;=^5003256
 ;;^UTILITY(U,$J,358.3,51729,0)
 ;;=F14.220^^193^2511^21
 ;;^UTILITY(U,$J,358.3,51729,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51729,1,3,0)
 ;;=3^Cocaine Dependence w/ Intoxication,Uncomplicated
 ;;^UTILITY(U,$J,358.3,51729,1,4,0)
 ;;=4^F14.220
 ;;^UTILITY(U,$J,358.3,51729,2)
 ;;=^5003255
 ;;^UTILITY(U,$J,358.3,51730,0)
 ;;=F14.20^^193^2511^26
 ;;^UTILITY(U,$J,358.3,51730,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51730,1,3,0)
 ;;=3^Cocaine Dependence,Uncompicated
 ;;^UTILITY(U,$J,358.3,51730,1,4,0)
 ;;=4^F14.20
 ;;^UTILITY(U,$J,358.3,51730,2)
 ;;=^5003253
 ;;^UTILITY(U,$J,358.3,51731,0)
 ;;=F10.120^^193^2511^1
 ;;^UTILITY(U,$J,358.3,51731,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51731,1,3,0)
 ;;=3^Alcohol Abuse w/ Intoxication,Uncomplicated
 ;;^UTILITY(U,$J,358.3,51731,1,4,0)
 ;;=4^F10.120
 ;;^UTILITY(U,$J,358.3,51731,2)
 ;;=^5003069
 ;;^UTILITY(U,$J,358.3,51732,0)
 ;;=F10.10^^193^2511^3
 ;;^UTILITY(U,$J,358.3,51732,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51732,1,3,0)
 ;;=3^Alcohol Abuse,Uncomplicated
 ;;^UTILITY(U,$J,358.3,51732,1,4,0)
 ;;=4^F10.10
 ;;^UTILITY(U,$J,358.3,51732,2)
 ;;=^5003068
 ;;^UTILITY(U,$J,358.3,51733,0)
 ;;=F17.201^^193^2511^31
 ;;^UTILITY(U,$J,358.3,51733,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51733,1,3,0)
 ;;=3^Nicotine Dependence In Remission,Unspec
 ;;^UTILITY(U,$J,358.3,51733,1,4,0)
 ;;=4^F17.201
 ;;^UTILITY(U,$J,358.3,51733,2)
 ;;=^5003361
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI38P   3753     printed  Sep 23, 2025@20:20                                                                                                                                                                                                       Page 2
IBDEI38P  ; ; 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,51722,1,3,0)
 +2       ;;=3^Cocaine Depend w/ Cocaine-Induc Psychotic Disorder w/ Hallucin
 +3       ;;^UTILITY(U,$J,358.3,51722,1,4,0)
 +4       ;;=4^F14.251
 +5       ;;^UTILITY(U,$J,358.3,51722,2)
 +6       ;;=^5003262
 +7       ;;^UTILITY(U,$J,358.3,51723,0)
 +8       ;;=F14.250^^193^2511^12
 +9       ;;^UTILITY(U,$J,358.3,51723,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,51723,1,3,0)
 +12      ;;=3^Cocaine Depend w/ Cocaine-Induc Psych Disorder w/ Delusions
 +13      ;;^UTILITY(U,$J,358.3,51723,1,4,0)
 +14      ;;=4^F14.250
 +15      ;;^UTILITY(U,$J,358.3,51723,2)
 +16      ;;=^5003261
 +17      ;;^UTILITY(U,$J,358.3,51724,0)
 +18      ;;=F14.24^^193^2511^16
 +19      ;;^UTILITY(U,$J,358.3,51724,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,51724,1,3,0)
 +22      ;;=3^Cocaine Dependence w/ Cocaine-Induced Mood Disorder
 +23      ;;^UTILITY(U,$J,358.3,51724,1,4,0)
 +24      ;;=4^F14.24
 +25      ;;^UTILITY(U,$J,358.3,51724,2)
 +26      ;;=^5003260
 +27      ;;^UTILITY(U,$J,358.3,51725,0)
 +28      ;;=F14.23^^193^2511^25
 +29      ;;^UTILITY(U,$J,358.3,51725,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,51725,1,3,0)
 +32      ;;=3^Cocaine Dependence w/ Withdrawal
 +33      ;;^UTILITY(U,$J,358.3,51725,1,4,0)
 +34      ;;=4^F14.23
 +35      ;;^UTILITY(U,$J,358.3,51725,2)
 +36      ;;=^5003259
 +37      ;;^UTILITY(U,$J,358.3,51726,0)
 +38      ;;=F14.229^^193^2511^22
 +39      ;;^UTILITY(U,$J,358.3,51726,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,51726,1,3,0)
 +42      ;;=3^Cocaine Dependence w/ Intoxication,Unspec
 +43      ;;^UTILITY(U,$J,358.3,51726,1,4,0)
 +44      ;;=4^F14.229
 +45      ;;^UTILITY(U,$J,358.3,51726,2)
 +46      ;;=^5003258
 +47      ;;^UTILITY(U,$J,358.3,51727,0)
 +48      ;;=F14.222^^193^2511^20
 +49      ;;^UTILITY(U,$J,358.3,51727,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,51727,1,3,0)
 +52      ;;=3^Cocaine Dependence w/ Intoxication w/ Perceptual Disturbance
 +53      ;;^UTILITY(U,$J,358.3,51727,1,4,0)
 +54      ;;=4^F14.222
 +55      ;;^UTILITY(U,$J,358.3,51727,2)
 +56      ;;=^5003257
 +57      ;;^UTILITY(U,$J,358.3,51728,0)
 +58      ;;=F14.221^^193^2511^19
 +59      ;;^UTILITY(U,$J,358.3,51728,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,51728,1,3,0)
 +62      ;;=3^Cocaine Dependence w/ Intoxication Delirium
 +63      ;;^UTILITY(U,$J,358.3,51728,1,4,0)
 +64      ;;=4^F14.221
 +65      ;;^UTILITY(U,$J,358.3,51728,2)
 +66      ;;=^5003256
 +67      ;;^UTILITY(U,$J,358.3,51729,0)
 +68      ;;=F14.220^^193^2511^21
 +69      ;;^UTILITY(U,$J,358.3,51729,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,51729,1,3,0)
 +72      ;;=3^Cocaine Dependence w/ Intoxication,Uncomplicated
 +73      ;;^UTILITY(U,$J,358.3,51729,1,4,0)
 +74      ;;=4^F14.220
 +75      ;;^UTILITY(U,$J,358.3,51729,2)
 +76      ;;=^5003255
 +77      ;;^UTILITY(U,$J,358.3,51730,0)
 +78      ;;=F14.20^^193^2511^26
 +79      ;;^UTILITY(U,$J,358.3,51730,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,51730,1,3,0)
 +82      ;;=3^Cocaine Dependence,Uncompicated
 +83      ;;^UTILITY(U,$J,358.3,51730,1,4,0)
 +84      ;;=4^F14.20
 +85      ;;^UTILITY(U,$J,358.3,51730,2)
 +86      ;;=^5003253
 +87      ;;^UTILITY(U,$J,358.3,51731,0)
 +88      ;;=F10.120^^193^2511^1
 +89      ;;^UTILITY(U,$J,358.3,51731,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,51731,1,3,0)
 +92      ;;=3^Alcohol Abuse w/ Intoxication,Uncomplicated
 +93      ;;^UTILITY(U,$J,358.3,51731,1,4,0)
 +94      ;;=4^F10.120
 +95      ;;^UTILITY(U,$J,358.3,51731,2)
 +96      ;;=^5003069
 +97      ;;^UTILITY(U,$J,358.3,51732,0)
 +98      ;;=F10.10^^193^2511^3
 +99      ;;^UTILITY(U,$J,358.3,51732,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,51732,1,3,0)
 +102     ;;=3^Alcohol Abuse,Uncomplicated
 +103     ;;^UTILITY(U,$J,358.3,51732,1,4,0)
 +104     ;;=4^F10.10
 +105     ;;^UTILITY(U,$J,358.3,51732,2)
 +106     ;;=^5003068
 +107     ;;^UTILITY(U,$J,358.3,51733,0)
 +108     ;;=F17.201^^193^2511^31
 +109     ;;^UTILITY(U,$J,358.3,51733,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,51733,1,3,0)
 +112     ;;=3^Nicotine Dependence In Remission,Unspec
 +113     ;;^UTILITY(U,$J,358.3,51733,1,4,0)
 +114     ;;=4^F17.201
 +115     ;;^UTILITY(U,$J,358.3,51733,2)
 +116     ;;=^5003361