IBDEI1VV ; ; 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,30084,1,3,0)
 ;;=3^Personality Change d/t Another Medical Condition
 ;;^UTILITY(U,$J,358.3,30084,1,4,0)
 ;;=4^F07.0
 ;;^UTILITY(U,$J,358.3,30084,2)
 ;;=^5003063
 ;;^UTILITY(U,$J,358.3,30085,0)
 ;;=Z65.4^^120^1532^5
 ;;^UTILITY(U,$J,358.3,30085,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30085,1,3,0)
 ;;=3^Victim of Crime
 ;;^UTILITY(U,$J,358.3,30085,1,4,0)
 ;;=4^Z65.4
 ;;^UTILITY(U,$J,358.3,30085,2)
 ;;=^5063183
 ;;^UTILITY(U,$J,358.3,30086,0)
 ;;=Z65.0^^120^1532^1
 ;;^UTILITY(U,$J,358.3,30086,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30086,1,3,0)
 ;;=3^Conviction in Civil/Criminal Proceedings w/o Imprisonment
 ;;^UTILITY(U,$J,358.3,30086,1,4,0)
 ;;=4^Z65.0
 ;;^UTILITY(U,$J,358.3,30086,2)
 ;;=^5063179
 ;;^UTILITY(U,$J,358.3,30087,0)
 ;;=Z65.2^^120^1532^4
 ;;^UTILITY(U,$J,358.3,30087,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30087,1,3,0)
 ;;=3^Problems Related to Release from Prison
 ;;^UTILITY(U,$J,358.3,30087,1,4,0)
 ;;=4^Z65.2
 ;;^UTILITY(U,$J,358.3,30087,2)
 ;;=^5063181
 ;;^UTILITY(U,$J,358.3,30088,0)
 ;;=Z65.3^^120^1532^3
 ;;^UTILITY(U,$J,358.3,30088,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30088,1,3,0)
 ;;=3^Problems Related to Other Legal Circumstances
 ;;^UTILITY(U,$J,358.3,30088,1,4,0)
 ;;=4^Z65.3
 ;;^UTILITY(U,$J,358.3,30088,2)
 ;;=^5063182
 ;;^UTILITY(U,$J,358.3,30089,0)
 ;;=Z65.1^^120^1532^2
 ;;^UTILITY(U,$J,358.3,30089,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30089,1,3,0)
 ;;=3^Imprisonment or Other Incarceration
 ;;^UTILITY(U,$J,358.3,30089,1,4,0)
 ;;=4^Z65.1
 ;;^UTILITY(U,$J,358.3,30089,2)
 ;;=^5063180
 ;;^UTILITY(U,$J,358.3,30090,0)
 ;;=Z64.0^^120^1533^6
 ;;^UTILITY(U,$J,358.3,30090,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30090,1,3,0)
 ;;=3^Problems Related to Unwanted Pregnancy
 ;;^UTILITY(U,$J,358.3,30090,1,4,0)
 ;;=4^Z64.0
 ;;^UTILITY(U,$J,358.3,30090,2)
 ;;=^5063176
 ;;^UTILITY(U,$J,358.3,30091,0)
 ;;=Z64.1^^120^1533^3
 ;;^UTILITY(U,$J,358.3,30091,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30091,1,3,0)
 ;;=3^Problems Related to Multiparity
 ;;^UTILITY(U,$J,358.3,30091,1,4,0)
 ;;=4^Z64.1
 ;;^UTILITY(U,$J,358.3,30091,2)
 ;;=^5063177
 ;;^UTILITY(U,$J,358.3,30092,0)
 ;;=Z64.4^^120^1533^1
 ;;^UTILITY(U,$J,358.3,30092,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30092,1,3,0)
 ;;=3^Discord w/ Counselors
 ;;^UTILITY(U,$J,358.3,30092,1,4,0)
 ;;=4^Z64.4
 ;;^UTILITY(U,$J,358.3,30092,2)
 ;;=^5063178
 ;;^UTILITY(U,$J,358.3,30093,0)
 ;;=Z65.5^^120^1533^2
 ;;^UTILITY(U,$J,358.3,30093,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30093,1,3,0)
 ;;=3^Exposure to Disaster,War or Other Hostilities
 ;;^UTILITY(U,$J,358.3,30093,1,4,0)
 ;;=4^Z65.5
 ;;^UTILITY(U,$J,358.3,30093,2)
 ;;=^5063184
 ;;^UTILITY(U,$J,358.3,30094,0)
 ;;=Z65.8^^120^1533^4
 ;;^UTILITY(U,$J,358.3,30094,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30094,1,3,0)
 ;;=3^Problems Related to Psychosocial Circumstances,Other
 ;;^UTILITY(U,$J,358.3,30094,1,4,0)
 ;;=4^Z65.8
 ;;^UTILITY(U,$J,358.3,30094,2)
 ;;=^5063185
 ;;^UTILITY(U,$J,358.3,30095,0)
 ;;=Z65.9^^120^1533^5
 ;;^UTILITY(U,$J,358.3,30095,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,30095,1,3,0)
 ;;=3^Problems Related to Psychosocial Circumstances,Unspec
 ;;^UTILITY(U,$J,358.3,30095,1,4,0)
 ;;=4^Z65.9
 ;;^UTILITY(U,$J,358.3,30095,2)
 ;;=^5063186
 ;;^UTILITY(U,$J,358.3,30096,0)
 ;;=Z65.4^^120^1533^7
 ;;^UTILITY(U,$J,358.3,30096,1,0)
 ;;=^358.31IA^4^2
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1VV   3759     printed  Sep 23, 2025@19:52:49                                                                                                                                                                                                    Page 2
IBDEI1VV  ; ; 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,30084,1,3,0)
 +2       ;;=3^Personality Change d/t Another Medical Condition
 +3       ;;^UTILITY(U,$J,358.3,30084,1,4,0)
 +4       ;;=4^F07.0
 +5       ;;^UTILITY(U,$J,358.3,30084,2)
 +6       ;;=^5003063
 +7       ;;^UTILITY(U,$J,358.3,30085,0)
 +8       ;;=Z65.4^^120^1532^5
 +9       ;;^UTILITY(U,$J,358.3,30085,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,30085,1,3,0)
 +12      ;;=3^Victim of Crime
 +13      ;;^UTILITY(U,$J,358.3,30085,1,4,0)
 +14      ;;=4^Z65.4
 +15      ;;^UTILITY(U,$J,358.3,30085,2)
 +16      ;;=^5063183
 +17      ;;^UTILITY(U,$J,358.3,30086,0)
 +18      ;;=Z65.0^^120^1532^1
 +19      ;;^UTILITY(U,$J,358.3,30086,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,30086,1,3,0)
 +22      ;;=3^Conviction in Civil/Criminal Proceedings w/o Imprisonment
 +23      ;;^UTILITY(U,$J,358.3,30086,1,4,0)
 +24      ;;=4^Z65.0
 +25      ;;^UTILITY(U,$J,358.3,30086,2)
 +26      ;;=^5063179
 +27      ;;^UTILITY(U,$J,358.3,30087,0)
 +28      ;;=Z65.2^^120^1532^4
 +29      ;;^UTILITY(U,$J,358.3,30087,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,30087,1,3,0)
 +32      ;;=3^Problems Related to Release from Prison
 +33      ;;^UTILITY(U,$J,358.3,30087,1,4,0)
 +34      ;;=4^Z65.2
 +35      ;;^UTILITY(U,$J,358.3,30087,2)
 +36      ;;=^5063181
 +37      ;;^UTILITY(U,$J,358.3,30088,0)
 +38      ;;=Z65.3^^120^1532^3
 +39      ;;^UTILITY(U,$J,358.3,30088,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,30088,1,3,0)
 +42      ;;=3^Problems Related to Other Legal Circumstances
 +43      ;;^UTILITY(U,$J,358.3,30088,1,4,0)
 +44      ;;=4^Z65.3
 +45      ;;^UTILITY(U,$J,358.3,30088,2)
 +46      ;;=^5063182
 +47      ;;^UTILITY(U,$J,358.3,30089,0)
 +48      ;;=Z65.1^^120^1532^2
 +49      ;;^UTILITY(U,$J,358.3,30089,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,30089,1,3,0)
 +52      ;;=3^Imprisonment or Other Incarceration
 +53      ;;^UTILITY(U,$J,358.3,30089,1,4,0)
 +54      ;;=4^Z65.1
 +55      ;;^UTILITY(U,$J,358.3,30089,2)
 +56      ;;=^5063180
 +57      ;;^UTILITY(U,$J,358.3,30090,0)
 +58      ;;=Z64.0^^120^1533^6
 +59      ;;^UTILITY(U,$J,358.3,30090,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,30090,1,3,0)
 +62      ;;=3^Problems Related to Unwanted Pregnancy
 +63      ;;^UTILITY(U,$J,358.3,30090,1,4,0)
 +64      ;;=4^Z64.0
 +65      ;;^UTILITY(U,$J,358.3,30090,2)
 +66      ;;=^5063176
 +67      ;;^UTILITY(U,$J,358.3,30091,0)
 +68      ;;=Z64.1^^120^1533^3
 +69      ;;^UTILITY(U,$J,358.3,30091,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,30091,1,3,0)
 +72      ;;=3^Problems Related to Multiparity
 +73      ;;^UTILITY(U,$J,358.3,30091,1,4,0)
 +74      ;;=4^Z64.1
 +75      ;;^UTILITY(U,$J,358.3,30091,2)
 +76      ;;=^5063177
 +77      ;;^UTILITY(U,$J,358.3,30092,0)
 +78      ;;=Z64.4^^120^1533^1
 +79      ;;^UTILITY(U,$J,358.3,30092,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,30092,1,3,0)
 +82      ;;=3^Discord w/ Counselors
 +83      ;;^UTILITY(U,$J,358.3,30092,1,4,0)
 +84      ;;=4^Z64.4
 +85      ;;^UTILITY(U,$J,358.3,30092,2)
 +86      ;;=^5063178
 +87      ;;^UTILITY(U,$J,358.3,30093,0)
 +88      ;;=Z65.5^^120^1533^2
 +89      ;;^UTILITY(U,$J,358.3,30093,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,30093,1,3,0)
 +92      ;;=3^Exposure to Disaster,War or Other Hostilities
 +93      ;;^UTILITY(U,$J,358.3,30093,1,4,0)
 +94      ;;=4^Z65.5
 +95      ;;^UTILITY(U,$J,358.3,30093,2)
 +96      ;;=^5063184
 +97      ;;^UTILITY(U,$J,358.3,30094,0)
 +98      ;;=Z65.8^^120^1533^4
 +99      ;;^UTILITY(U,$J,358.3,30094,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,30094,1,3,0)
 +102     ;;=3^Problems Related to Psychosocial Circumstances,Other
 +103     ;;^UTILITY(U,$J,358.3,30094,1,4,0)
 +104     ;;=4^Z65.8
 +105     ;;^UTILITY(U,$J,358.3,30094,2)
 +106     ;;=^5063185
 +107     ;;^UTILITY(U,$J,358.3,30095,0)
 +108     ;;=Z65.9^^120^1533^5
 +109     ;;^UTILITY(U,$J,358.3,30095,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,30095,1,3,0)
 +112     ;;=3^Problems Related to Psychosocial Circumstances,Unspec
 +113     ;;^UTILITY(U,$J,358.3,30095,1,4,0)
 +114     ;;=4^Z65.9
 +115     ;;^UTILITY(U,$J,358.3,30095,2)
 +116     ;;=^5063186
 +117     ;;^UTILITY(U,$J,358.3,30096,0)
 +118     ;;=Z65.4^^120^1533^7
 +119     ;;^UTILITY(U,$J,358.3,30096,1,0)
 +120     ;;=^358.31IA^4^2