IBDEI2QP ; ; 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,43693,0)
 ;;=Z59.0^^162^2139^4
 ;;^UTILITY(U,$J,358.3,43693,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43693,1,3,0)
 ;;=3^Homelessness
 ;;^UTILITY(U,$J,358.3,43693,1,4,0)
 ;;=4^Z59.0
 ;;^UTILITY(U,$J,358.3,43693,2)
 ;;=^5063129
 ;;^UTILITY(U,$J,358.3,43694,0)
 ;;=Z59.1^^162^2139^6
 ;;^UTILITY(U,$J,358.3,43694,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43694,1,3,0)
 ;;=3^Inadequate Housing
 ;;^UTILITY(U,$J,358.3,43694,1,4,0)
 ;;=4^Z59.1
 ;;^UTILITY(U,$J,358.3,43694,2)
 ;;=^5063130
 ;;^UTILITY(U,$J,358.3,43695,0)
 ;;=Z59.5^^162^2139^2
 ;;^UTILITY(U,$J,358.3,43695,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43695,1,3,0)
 ;;=3^Extreme Poverty
 ;;^UTILITY(U,$J,358.3,43695,1,4,0)
 ;;=4^Z59.5
 ;;^UTILITY(U,$J,358.3,43695,2)
 ;;=^5063134
 ;;^UTILITY(U,$J,358.3,43696,0)
 ;;=Z60.2^^162^2139^8
 ;;^UTILITY(U,$J,358.3,43696,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43696,1,3,0)
 ;;=3^Problems Related to Living Alone
 ;;^UTILITY(U,$J,358.3,43696,1,4,0)
 ;;=4^Z60.2
 ;;^UTILITY(U,$J,358.3,43696,2)
 ;;=^5063140
 ;;^UTILITY(U,$J,358.3,43697,0)
 ;;=Z74.2^^162^2139^1
 ;;^UTILITY(U,$J,358.3,43697,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43697,1,3,0)
 ;;=3^Assistance at Home Needed
 ;;^UTILITY(U,$J,358.3,43697,1,4,0)
 ;;=4^Z74.2
 ;;^UTILITY(U,$J,358.3,43697,2)
 ;;=^5063285
 ;;^UTILITY(U,$J,358.3,43698,0)
 ;;=Z75.5^^162^2139^3
 ;;^UTILITY(U,$J,358.3,43698,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43698,1,3,0)
 ;;=3^Holiday Relief Care
 ;;^UTILITY(U,$J,358.3,43698,1,4,0)
 ;;=4^Z75.5
 ;;^UTILITY(U,$J,358.3,43698,2)
 ;;=^5063294
 ;;^UTILITY(U,$J,358.3,43699,0)
 ;;=Z59.3^^162^2139^9
 ;;^UTILITY(U,$J,358.3,43699,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43699,1,3,0)
 ;;=3^Problems Related to Living in Residential Institution
 ;;^UTILITY(U,$J,358.3,43699,1,4,0)
 ;;=4^Z59.3
 ;;^UTILITY(U,$J,358.3,43699,2)
 ;;=^5063132
 ;;^UTILITY(U,$J,358.3,43700,0)
 ;;=Z63.8^^162^2139^7
 ;;^UTILITY(U,$J,358.3,43700,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43700,1,3,0)
 ;;=3^Primary Support Group Problems
 ;;^UTILITY(U,$J,358.3,43700,1,4,0)
 ;;=4^Z63.8
 ;;^UTILITY(U,$J,358.3,43700,2)
 ;;=^5063174
 ;;^UTILITY(U,$J,358.3,43701,0)
 ;;=Z59.8^^162^2139^5
 ;;^UTILITY(U,$J,358.3,43701,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43701,1,3,0)
 ;;=3^Housing/Economic Circumstance Problems
 ;;^UTILITY(U,$J,358.3,43701,1,4,0)
 ;;=4^Z59.8
 ;;^UTILITY(U,$J,358.3,43701,2)
 ;;=^5063137
 ;;^UTILITY(U,$J,358.3,43702,0)
 ;;=F81.9^^162^2140^2
 ;;^UTILITY(U,$J,358.3,43702,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43702,1,3,0)
 ;;=3^Developmental Disorder of Scholastic Skills,Unspec
 ;;^UTILITY(U,$J,358.3,43702,1,4,0)
 ;;=4^F81.9
 ;;^UTILITY(U,$J,358.3,43702,2)
 ;;=^5003682
 ;;^UTILITY(U,$J,358.3,43703,0)
 ;;=Z86.59^^162^2140^4
 ;;^UTILITY(U,$J,358.3,43703,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43703,1,3,0)
 ;;=3^Personal Hx of Mental/Behavioral Disorders
 ;;^UTILITY(U,$J,358.3,43703,1,4,0)
 ;;=4^Z86.59
 ;;^UTILITY(U,$J,358.3,43703,2)
 ;;=^5063471
 ;;^UTILITY(U,$J,358.3,43704,0)
 ;;=F48.9^^162^2140^3
 ;;^UTILITY(U,$J,358.3,43704,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43704,1,3,0)
 ;;=3^Nonpsychotic Mental Disorder,Unspec
 ;;^UTILITY(U,$J,358.3,43704,1,4,0)
 ;;=4^F48.9
 ;;^UTILITY(U,$J,358.3,43704,2)
 ;;=^5003596
 ;;^UTILITY(U,$J,358.3,43705,0)
 ;;=Z91.83^^162^2140^5
 ;;^UTILITY(U,$J,358.3,43705,1,0)
 ;;=^358.31IA^4^2
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2QP   3762     printed  Sep 23, 2025@20:09:59                                                                                                                                                                                                    Page 2
IBDEI2QP  ; ; 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,43693,0)
 +2       ;;=Z59.0^^162^2139^4
 +3       ;;^UTILITY(U,$J,358.3,43693,1,0)
 +4       ;;=^358.31IA^4^2
 +5       ;;^UTILITY(U,$J,358.3,43693,1,3,0)
 +6       ;;=3^Homelessness
 +7       ;;^UTILITY(U,$J,358.3,43693,1,4,0)
 +8       ;;=4^Z59.0
 +9       ;;^UTILITY(U,$J,358.3,43693,2)
 +10      ;;=^5063129
 +11      ;;^UTILITY(U,$J,358.3,43694,0)
 +12      ;;=Z59.1^^162^2139^6
 +13      ;;^UTILITY(U,$J,358.3,43694,1,0)
 +14      ;;=^358.31IA^4^2
 +15      ;;^UTILITY(U,$J,358.3,43694,1,3,0)
 +16      ;;=3^Inadequate Housing
 +17      ;;^UTILITY(U,$J,358.3,43694,1,4,0)
 +18      ;;=4^Z59.1
 +19      ;;^UTILITY(U,$J,358.3,43694,2)
 +20      ;;=^5063130
 +21      ;;^UTILITY(U,$J,358.3,43695,0)
 +22      ;;=Z59.5^^162^2139^2
 +23      ;;^UTILITY(U,$J,358.3,43695,1,0)
 +24      ;;=^358.31IA^4^2
 +25      ;;^UTILITY(U,$J,358.3,43695,1,3,0)
 +26      ;;=3^Extreme Poverty
 +27      ;;^UTILITY(U,$J,358.3,43695,1,4,0)
 +28      ;;=4^Z59.5
 +29      ;;^UTILITY(U,$J,358.3,43695,2)
 +30      ;;=^5063134
 +31      ;;^UTILITY(U,$J,358.3,43696,0)
 +32      ;;=Z60.2^^162^2139^8
 +33      ;;^UTILITY(U,$J,358.3,43696,1,0)
 +34      ;;=^358.31IA^4^2
 +35      ;;^UTILITY(U,$J,358.3,43696,1,3,0)
 +36      ;;=3^Problems Related to Living Alone
 +37      ;;^UTILITY(U,$J,358.3,43696,1,4,0)
 +38      ;;=4^Z60.2
 +39      ;;^UTILITY(U,$J,358.3,43696,2)
 +40      ;;=^5063140
 +41      ;;^UTILITY(U,$J,358.3,43697,0)
 +42      ;;=Z74.2^^162^2139^1
 +43      ;;^UTILITY(U,$J,358.3,43697,1,0)
 +44      ;;=^358.31IA^4^2
 +45      ;;^UTILITY(U,$J,358.3,43697,1,3,0)
 +46      ;;=3^Assistance at Home Needed
 +47      ;;^UTILITY(U,$J,358.3,43697,1,4,0)
 +48      ;;=4^Z74.2
 +49      ;;^UTILITY(U,$J,358.3,43697,2)
 +50      ;;=^5063285
 +51      ;;^UTILITY(U,$J,358.3,43698,0)
 +52      ;;=Z75.5^^162^2139^3
 +53      ;;^UTILITY(U,$J,358.3,43698,1,0)
 +54      ;;=^358.31IA^4^2
 +55      ;;^UTILITY(U,$J,358.3,43698,1,3,0)
 +56      ;;=3^Holiday Relief Care
 +57      ;;^UTILITY(U,$J,358.3,43698,1,4,0)
 +58      ;;=4^Z75.5
 +59      ;;^UTILITY(U,$J,358.3,43698,2)
 +60      ;;=^5063294
 +61      ;;^UTILITY(U,$J,358.3,43699,0)
 +62      ;;=Z59.3^^162^2139^9
 +63      ;;^UTILITY(U,$J,358.3,43699,1,0)
 +64      ;;=^358.31IA^4^2
 +65      ;;^UTILITY(U,$J,358.3,43699,1,3,0)
 +66      ;;=3^Problems Related to Living in Residential Institution
 +67      ;;^UTILITY(U,$J,358.3,43699,1,4,0)
 +68      ;;=4^Z59.3
 +69      ;;^UTILITY(U,$J,358.3,43699,2)
 +70      ;;=^5063132
 +71      ;;^UTILITY(U,$J,358.3,43700,0)
 +72      ;;=Z63.8^^162^2139^7
 +73      ;;^UTILITY(U,$J,358.3,43700,1,0)
 +74      ;;=^358.31IA^4^2
 +75      ;;^UTILITY(U,$J,358.3,43700,1,3,0)
 +76      ;;=3^Primary Support Group Problems
 +77      ;;^UTILITY(U,$J,358.3,43700,1,4,0)
 +78      ;;=4^Z63.8
 +79      ;;^UTILITY(U,$J,358.3,43700,2)
 +80      ;;=^5063174
 +81      ;;^UTILITY(U,$J,358.3,43701,0)
 +82      ;;=Z59.8^^162^2139^5
 +83      ;;^UTILITY(U,$J,358.3,43701,1,0)
 +84      ;;=^358.31IA^4^2
 +85      ;;^UTILITY(U,$J,358.3,43701,1,3,0)
 +86      ;;=3^Housing/Economic Circumstance Problems
 +87      ;;^UTILITY(U,$J,358.3,43701,1,4,0)
 +88      ;;=4^Z59.8
 +89      ;;^UTILITY(U,$J,358.3,43701,2)
 +90      ;;=^5063137
 +91      ;;^UTILITY(U,$J,358.3,43702,0)
 +92      ;;=F81.9^^162^2140^2
 +93      ;;^UTILITY(U,$J,358.3,43702,1,0)
 +94      ;;=^358.31IA^4^2
 +95      ;;^UTILITY(U,$J,358.3,43702,1,3,0)
 +96      ;;=3^Developmental Disorder of Scholastic Skills,Unspec
 +97      ;;^UTILITY(U,$J,358.3,43702,1,4,0)
 +98      ;;=4^F81.9
 +99      ;;^UTILITY(U,$J,358.3,43702,2)
 +100     ;;=^5003682
 +101     ;;^UTILITY(U,$J,358.3,43703,0)
 +102     ;;=Z86.59^^162^2140^4
 +103     ;;^UTILITY(U,$J,358.3,43703,1,0)
 +104     ;;=^358.31IA^4^2
 +105     ;;^UTILITY(U,$J,358.3,43703,1,3,0)
 +106     ;;=3^Personal Hx of Mental/Behavioral Disorders
 +107     ;;^UTILITY(U,$J,358.3,43703,1,4,0)
 +108     ;;=4^Z86.59
 +109     ;;^UTILITY(U,$J,358.3,43703,2)
 +110     ;;=^5063471
 +111     ;;^UTILITY(U,$J,358.3,43704,0)
 +112     ;;=F48.9^^162^2140^3
 +113     ;;^UTILITY(U,$J,358.3,43704,1,0)
 +114     ;;=^358.31IA^4^2
 +115     ;;^UTILITY(U,$J,358.3,43704,1,3,0)
 +116     ;;=3^Nonpsychotic Mental Disorder,Unspec
 +117     ;;^UTILITY(U,$J,358.3,43704,1,4,0)
 +118     ;;=4^F48.9
 +119     ;;^UTILITY(U,$J,358.3,43704,2)
 +120     ;;=^5003596
 +121     ;;^UTILITY(U,$J,358.3,43705,0)
 +122     ;;=Z91.83^^162^2140^5
 +123     ;;^UTILITY(U,$J,358.3,43705,1,0)
 +124     ;;=^358.31IA^4^2