IBDEI0NY ; ; 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,10778,1,4,0)
 ;;=4^Z64.1
 ;;^UTILITY(U,$J,358.3,10778,2)
 ;;=^5063177
 ;;^UTILITY(U,$J,358.3,10779,0)
 ;;=Z64.4^^42^486^1
 ;;^UTILITY(U,$J,358.3,10779,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10779,1,3,0)
 ;;=3^Discord w/ Social Service Provider,Including Probation Officer,Case Manager,Social Worker
 ;;^UTILITY(U,$J,358.3,10779,1,4,0)
 ;;=4^Z64.4
 ;;^UTILITY(U,$J,358.3,10779,2)
 ;;=^5063178
 ;;^UTILITY(U,$J,358.3,10780,0)
 ;;=Z65.5^^42^486^2
 ;;^UTILITY(U,$J,358.3,10780,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10780,1,3,0)
 ;;=3^Exposure to Disaster,War or Other Hostilities
 ;;^UTILITY(U,$J,358.3,10780,1,4,0)
 ;;=4^Z65.5
 ;;^UTILITY(U,$J,358.3,10780,2)
 ;;=^5063184
 ;;^UTILITY(U,$J,358.3,10781,0)
 ;;=Z65.8^^42^486^5
 ;;^UTILITY(U,$J,358.3,10781,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10781,1,3,0)
 ;;=3^Problems Related to Psychosocial Circumstances,Other
 ;;^UTILITY(U,$J,358.3,10781,1,4,0)
 ;;=4^Z65.8
 ;;^UTILITY(U,$J,358.3,10781,2)
 ;;=^5063185
 ;;^UTILITY(U,$J,358.3,10782,0)
 ;;=Z65.9^^42^486^3
 ;;^UTILITY(U,$J,358.3,10782,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10782,1,3,0)
 ;;=3^Problem Related to Psychosocial Circumstances,Unspec
 ;;^UTILITY(U,$J,358.3,10782,1,4,0)
 ;;=4^Z65.9
 ;;^UTILITY(U,$J,358.3,10782,2)
 ;;=^5063186
 ;;^UTILITY(U,$J,358.3,10783,0)
 ;;=Z65.4^^42^486^8
 ;;^UTILITY(U,$J,358.3,10783,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10783,1,3,0)
 ;;=3^Victim of Terrorism or Torture
 ;;^UTILITY(U,$J,358.3,10783,1,4,0)
 ;;=4^Z65.4
 ;;^UTILITY(U,$J,358.3,10783,2)
 ;;=^5063183
 ;;^UTILITY(U,$J,358.3,10784,0)
 ;;=Z62.820^^42^487^4
 ;;^UTILITY(U,$J,358.3,10784,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10784,1,3,0)
 ;;=3^Parent-Child Relational Problem
 ;;^UTILITY(U,$J,358.3,10784,1,4,0)
 ;;=4^Z62.820
 ;;^UTILITY(U,$J,358.3,10784,2)
 ;;=^5063157
 ;;^UTILITY(U,$J,358.3,10785,0)
 ;;=Z62.891^^42^487^6
 ;;^UTILITY(U,$J,358.3,10785,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10785,1,3,0)
 ;;=3^Sibling Relational Problem
 ;;^UTILITY(U,$J,358.3,10785,1,4,0)
 ;;=4^Z62.891
 ;;^UTILITY(U,$J,358.3,10785,2)
 ;;=^5063161
 ;;^UTILITY(U,$J,358.3,10786,0)
 ;;=Z62.898^^42^487^1
 ;;^UTILITY(U,$J,358.3,10786,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10786,1,3,0)
 ;;=3^Child Affected by Parental Relationship Distress
 ;;^UTILITY(U,$J,358.3,10786,1,4,0)
 ;;=4^Z62.898
 ;;^UTILITY(U,$J,358.3,10786,2)
 ;;=^5063162
 ;;^UTILITY(U,$J,358.3,10787,0)
 ;;=Z63.0^^42^487^5
 ;;^UTILITY(U,$J,358.3,10787,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10787,1,3,0)
 ;;=3^Relationship Distress w/ Spouse/Partner
 ;;^UTILITY(U,$J,358.3,10787,1,4,0)
 ;;=4^Z63.0
 ;;^UTILITY(U,$J,358.3,10787,2)
 ;;=^5063164
 ;;^UTILITY(U,$J,358.3,10788,0)
 ;;=Z63.5^^42^487^2
 ;;^UTILITY(U,$J,358.3,10788,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10788,1,3,0)
 ;;=3^Disruption of Family by Separation or Divorce
 ;;^UTILITY(U,$J,358.3,10788,1,4,0)
 ;;=4^Z63.5
 ;;^UTILITY(U,$J,358.3,10788,2)
 ;;=^5063169
 ;;^UTILITY(U,$J,358.3,10789,0)
 ;;=Z63.8^^42^487^3
 ;;^UTILITY(U,$J,358.3,10789,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10789,1,3,0)
 ;;=3^High Expressed Emotion Level w/in Family
 ;;^UTILITY(U,$J,358.3,10789,1,4,0)
 ;;=4^Z63.8
 ;;^UTILITY(U,$J,358.3,10789,2)
 ;;=^5063174
 ;;^UTILITY(U,$J,358.3,10790,0)
 ;;=Z63.4^^42^487^7
 ;;^UTILITY(U,$J,358.3,10790,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,10790,1,3,0)
 ;;=3^Uncomplicated Bereavement
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0NY   3790     printed  Sep 23, 2025@19:28:22                                                                                                                                                                                                    Page 2
IBDEI0NY  ; ; 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,10778,1,4,0)
 +2       ;;=4^Z64.1
 +3       ;;^UTILITY(U,$J,358.3,10778,2)
 +4       ;;=^5063177
 +5       ;;^UTILITY(U,$J,358.3,10779,0)
 +6       ;;=Z64.4^^42^486^1
 +7       ;;^UTILITY(U,$J,358.3,10779,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,10779,1,3,0)
 +10      ;;=3^Discord w/ Social Service Provider,Including Probation Officer,Case Manager,Social Worker
 +11      ;;^UTILITY(U,$J,358.3,10779,1,4,0)
 +12      ;;=4^Z64.4
 +13      ;;^UTILITY(U,$J,358.3,10779,2)
 +14      ;;=^5063178
 +15      ;;^UTILITY(U,$J,358.3,10780,0)
 +16      ;;=Z65.5^^42^486^2
 +17      ;;^UTILITY(U,$J,358.3,10780,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,10780,1,3,0)
 +20      ;;=3^Exposure to Disaster,War or Other Hostilities
 +21      ;;^UTILITY(U,$J,358.3,10780,1,4,0)
 +22      ;;=4^Z65.5
 +23      ;;^UTILITY(U,$J,358.3,10780,2)
 +24      ;;=^5063184
 +25      ;;^UTILITY(U,$J,358.3,10781,0)
 +26      ;;=Z65.8^^42^486^5
 +27      ;;^UTILITY(U,$J,358.3,10781,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,10781,1,3,0)
 +30      ;;=3^Problems Related to Psychosocial Circumstances,Other
 +31      ;;^UTILITY(U,$J,358.3,10781,1,4,0)
 +32      ;;=4^Z65.8
 +33      ;;^UTILITY(U,$J,358.3,10781,2)
 +34      ;;=^5063185
 +35      ;;^UTILITY(U,$J,358.3,10782,0)
 +36      ;;=Z65.9^^42^486^3
 +37      ;;^UTILITY(U,$J,358.3,10782,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,10782,1,3,0)
 +40      ;;=3^Problem Related to Psychosocial Circumstances,Unspec
 +41      ;;^UTILITY(U,$J,358.3,10782,1,4,0)
 +42      ;;=4^Z65.9
 +43      ;;^UTILITY(U,$J,358.3,10782,2)
 +44      ;;=^5063186
 +45      ;;^UTILITY(U,$J,358.3,10783,0)
 +46      ;;=Z65.4^^42^486^8
 +47      ;;^UTILITY(U,$J,358.3,10783,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,10783,1,3,0)
 +50      ;;=3^Victim of Terrorism or Torture
 +51      ;;^UTILITY(U,$J,358.3,10783,1,4,0)
 +52      ;;=4^Z65.4
 +53      ;;^UTILITY(U,$J,358.3,10783,2)
 +54      ;;=^5063183
 +55      ;;^UTILITY(U,$J,358.3,10784,0)
 +56      ;;=Z62.820^^42^487^4
 +57      ;;^UTILITY(U,$J,358.3,10784,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,10784,1,3,0)
 +60      ;;=3^Parent-Child Relational Problem
 +61      ;;^UTILITY(U,$J,358.3,10784,1,4,0)
 +62      ;;=4^Z62.820
 +63      ;;^UTILITY(U,$J,358.3,10784,2)
 +64      ;;=^5063157
 +65      ;;^UTILITY(U,$J,358.3,10785,0)
 +66      ;;=Z62.891^^42^487^6
 +67      ;;^UTILITY(U,$J,358.3,10785,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,10785,1,3,0)
 +70      ;;=3^Sibling Relational Problem
 +71      ;;^UTILITY(U,$J,358.3,10785,1,4,0)
 +72      ;;=4^Z62.891
 +73      ;;^UTILITY(U,$J,358.3,10785,2)
 +74      ;;=^5063161
 +75      ;;^UTILITY(U,$J,358.3,10786,0)
 +76      ;;=Z62.898^^42^487^1
 +77      ;;^UTILITY(U,$J,358.3,10786,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,10786,1,3,0)
 +80      ;;=3^Child Affected by Parental Relationship Distress
 +81      ;;^UTILITY(U,$J,358.3,10786,1,4,0)
 +82      ;;=4^Z62.898
 +83      ;;^UTILITY(U,$J,358.3,10786,2)
 +84      ;;=^5063162
 +85      ;;^UTILITY(U,$J,358.3,10787,0)
 +86      ;;=Z63.0^^42^487^5
 +87      ;;^UTILITY(U,$J,358.3,10787,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,10787,1,3,0)
 +90      ;;=3^Relationship Distress w/ Spouse/Partner
 +91      ;;^UTILITY(U,$J,358.3,10787,1,4,0)
 +92      ;;=4^Z63.0
 +93      ;;^UTILITY(U,$J,358.3,10787,2)
 +94      ;;=^5063164
 +95      ;;^UTILITY(U,$J,358.3,10788,0)
 +96      ;;=Z63.5^^42^487^2
 +97      ;;^UTILITY(U,$J,358.3,10788,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,10788,1,3,0)
 +100     ;;=3^Disruption of Family by Separation or Divorce
 +101     ;;^UTILITY(U,$J,358.3,10788,1,4,0)
 +102     ;;=4^Z63.5
 +103     ;;^UTILITY(U,$J,358.3,10788,2)
 +104     ;;=^5063169
 +105     ;;^UTILITY(U,$J,358.3,10789,0)
 +106     ;;=Z63.8^^42^487^3
 +107     ;;^UTILITY(U,$J,358.3,10789,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,10789,1,3,0)
 +110     ;;=3^High Expressed Emotion Level w/in Family
 +111     ;;^UTILITY(U,$J,358.3,10789,1,4,0)
 +112     ;;=4^Z63.8
 +113     ;;^UTILITY(U,$J,358.3,10789,2)
 +114     ;;=^5063174
 +115     ;;^UTILITY(U,$J,358.3,10790,0)
 +116     ;;=Z63.4^^42^487^7
 +117     ;;^UTILITY(U,$J,358.3,10790,1,0)
 +118     ;;=^358.31IA^4^2
 +119     ;;^UTILITY(U,$J,358.3,10790,1,3,0)
 +120     ;;=3^Uncomplicated Bereavement