IBDEI0P0 ; ; 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,11226,0)
 ;;=Z59.1^^42^514^12
 ;;^UTILITY(U,$J,358.3,11226,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11226,1,3,0)
 ;;=3^Inadequate Housing
 ;;^UTILITY(U,$J,358.3,11226,1,4,0)
 ;;=4^Z59.1
 ;;^UTILITY(U,$J,358.3,11226,2)
 ;;=^5063130
 ;;^UTILITY(U,$J,358.3,11227,0)
 ;;=Z59.5^^42^514^3
 ;;^UTILITY(U,$J,358.3,11227,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11227,1,3,0)
 ;;=3^Extreme Poverty
 ;;^UTILITY(U,$J,358.3,11227,1,4,0)
 ;;=4^Z59.5
 ;;^UTILITY(U,$J,358.3,11227,2)
 ;;=^5063134
 ;;^UTILITY(U,$J,358.3,11228,0)
 ;;=Z60.2^^42^514^18
 ;;^UTILITY(U,$J,358.3,11228,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11228,1,3,0)
 ;;=3^Problems Related to Living Alone
 ;;^UTILITY(U,$J,358.3,11228,1,4,0)
 ;;=4^Z60.2
 ;;^UTILITY(U,$J,358.3,11228,2)
 ;;=^5063140
 ;;^UTILITY(U,$J,358.3,11229,0)
 ;;=Z74.2^^42^514^1
 ;;^UTILITY(U,$J,358.3,11229,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11229,1,3,0)
 ;;=3^Assistance at Home Needed
 ;;^UTILITY(U,$J,358.3,11229,1,4,0)
 ;;=4^Z74.2
 ;;^UTILITY(U,$J,358.3,11229,2)
 ;;=^5063285
 ;;^UTILITY(U,$J,358.3,11230,0)
 ;;=Z75.5^^42^514^5
 ;;^UTILITY(U,$J,358.3,11230,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11230,1,3,0)
 ;;=3^Holiday Relief Care
 ;;^UTILITY(U,$J,358.3,11230,1,4,0)
 ;;=4^Z75.5
 ;;^UTILITY(U,$J,358.3,11230,2)
 ;;=^5063294
 ;;^UTILITY(U,$J,358.3,11231,0)
 ;;=Z59.3^^42^514^19
 ;;^UTILITY(U,$J,358.3,11231,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11231,1,3,0)
 ;;=3^Problems Related to Living in Residential Institution
 ;;^UTILITY(U,$J,358.3,11231,1,4,0)
 ;;=4^Z59.3
 ;;^UTILITY(U,$J,358.3,11231,2)
 ;;=^5063132
 ;;^UTILITY(U,$J,358.3,11232,0)
 ;;=Z63.8^^42^514^15
 ;;^UTILITY(U,$J,358.3,11232,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11232,1,3,0)
 ;;=3^Primary Support Group Problems
 ;;^UTILITY(U,$J,358.3,11232,1,4,0)
 ;;=4^Z63.8
 ;;^UTILITY(U,$J,358.3,11232,2)
 ;;=^5063174
 ;;^UTILITY(U,$J,358.3,11233,0)
 ;;=Z59.00^^42^514^8
 ;;^UTILITY(U,$J,358.3,11233,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11233,1,3,0)
 ;;=3^Homelessness,Unspec
 ;;^UTILITY(U,$J,358.3,11233,1,4,0)
 ;;=4^Z59.00
 ;;^UTILITY(U,$J,358.3,11233,2)
 ;;=^5161304
 ;;^UTILITY(U,$J,358.3,11234,0)
 ;;=Z59.01^^42^514^6
 ;;^UTILITY(U,$J,358.3,11234,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11234,1,3,0)
 ;;=3^Homelessness,Sheltered
 ;;^UTILITY(U,$J,358.3,11234,1,4,0)
 ;;=4^Z59.01
 ;;^UTILITY(U,$J,358.3,11234,2)
 ;;=^5161305
 ;;^UTILITY(U,$J,358.3,11235,0)
 ;;=Z59.02^^42^514^7
 ;;^UTILITY(U,$J,358.3,11235,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11235,1,3,0)
 ;;=3^Homelessness,Unsheltered
 ;;^UTILITY(U,$J,358.3,11235,1,4,0)
 ;;=4^Z59.02
 ;;^UTILITY(U,$J,358.3,11235,2)
 ;;=^5161306
 ;;^UTILITY(U,$J,358.3,11236,0)
 ;;=Z59.811^^42^514^9
 ;;^UTILITY(U,$J,358.3,11236,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11236,1,3,0)
 ;;=3^Housing Instability,Housed w/ Risk of Homelessness
 ;;^UTILITY(U,$J,358.3,11236,1,4,0)
 ;;=4^Z59.811
 ;;^UTILITY(U,$J,358.3,11236,2)
 ;;=^5161309
 ;;^UTILITY(U,$J,358.3,11237,0)
 ;;=Z59.812^^42^514^10
 ;;^UTILITY(U,$J,358.3,11237,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11237,1,3,0)
 ;;=3^Housing Instability,Housed,Homelessness in Past 12 Months
 ;;^UTILITY(U,$J,358.3,11237,1,4,0)
 ;;=4^Z59.812
 ;;^UTILITY(U,$J,358.3,11237,2)
 ;;=^5161310
 ;;^UTILITY(U,$J,358.3,11238,0)
 ;;=Z59.819^^42^514^11
 ;;^UTILITY(U,$J,358.3,11238,1,0)
 ;;=^358.31IA^4^2
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0P0   3750     printed  Sep 23, 2025@19:28:57                                                                                                                                                                                                    Page 2
IBDEI0P0  ; ; 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,11226,0)
 +2       ;;=Z59.1^^42^514^12
 +3       ;;^UTILITY(U,$J,358.3,11226,1,0)
 +4       ;;=^358.31IA^4^2
 +5       ;;^UTILITY(U,$J,358.3,11226,1,3,0)
 +6       ;;=3^Inadequate Housing
 +7       ;;^UTILITY(U,$J,358.3,11226,1,4,0)
 +8       ;;=4^Z59.1
 +9       ;;^UTILITY(U,$J,358.3,11226,2)
 +10      ;;=^5063130
 +11      ;;^UTILITY(U,$J,358.3,11227,0)
 +12      ;;=Z59.5^^42^514^3
 +13      ;;^UTILITY(U,$J,358.3,11227,1,0)
 +14      ;;=^358.31IA^4^2
 +15      ;;^UTILITY(U,$J,358.3,11227,1,3,0)
 +16      ;;=3^Extreme Poverty
 +17      ;;^UTILITY(U,$J,358.3,11227,1,4,0)
 +18      ;;=4^Z59.5
 +19      ;;^UTILITY(U,$J,358.3,11227,2)
 +20      ;;=^5063134
 +21      ;;^UTILITY(U,$J,358.3,11228,0)
 +22      ;;=Z60.2^^42^514^18
 +23      ;;^UTILITY(U,$J,358.3,11228,1,0)
 +24      ;;=^358.31IA^4^2
 +25      ;;^UTILITY(U,$J,358.3,11228,1,3,0)
 +26      ;;=3^Problems Related to Living Alone
 +27      ;;^UTILITY(U,$J,358.3,11228,1,4,0)
 +28      ;;=4^Z60.2
 +29      ;;^UTILITY(U,$J,358.3,11228,2)
 +30      ;;=^5063140
 +31      ;;^UTILITY(U,$J,358.3,11229,0)
 +32      ;;=Z74.2^^42^514^1
 +33      ;;^UTILITY(U,$J,358.3,11229,1,0)
 +34      ;;=^358.31IA^4^2
 +35      ;;^UTILITY(U,$J,358.3,11229,1,3,0)
 +36      ;;=3^Assistance at Home Needed
 +37      ;;^UTILITY(U,$J,358.3,11229,1,4,0)
 +38      ;;=4^Z74.2
 +39      ;;^UTILITY(U,$J,358.3,11229,2)
 +40      ;;=^5063285
 +41      ;;^UTILITY(U,$J,358.3,11230,0)
 +42      ;;=Z75.5^^42^514^5
 +43      ;;^UTILITY(U,$J,358.3,11230,1,0)
 +44      ;;=^358.31IA^4^2
 +45      ;;^UTILITY(U,$J,358.3,11230,1,3,0)
 +46      ;;=3^Holiday Relief Care
 +47      ;;^UTILITY(U,$J,358.3,11230,1,4,0)
 +48      ;;=4^Z75.5
 +49      ;;^UTILITY(U,$J,358.3,11230,2)
 +50      ;;=^5063294
 +51      ;;^UTILITY(U,$J,358.3,11231,0)
 +52      ;;=Z59.3^^42^514^19
 +53      ;;^UTILITY(U,$J,358.3,11231,1,0)
 +54      ;;=^358.31IA^4^2
 +55      ;;^UTILITY(U,$J,358.3,11231,1,3,0)
 +56      ;;=3^Problems Related to Living in Residential Institution
 +57      ;;^UTILITY(U,$J,358.3,11231,1,4,0)
 +58      ;;=4^Z59.3
 +59      ;;^UTILITY(U,$J,358.3,11231,2)
 +60      ;;=^5063132
 +61      ;;^UTILITY(U,$J,358.3,11232,0)
 +62      ;;=Z63.8^^42^514^15
 +63      ;;^UTILITY(U,$J,358.3,11232,1,0)
 +64      ;;=^358.31IA^4^2
 +65      ;;^UTILITY(U,$J,358.3,11232,1,3,0)
 +66      ;;=3^Primary Support Group Problems
 +67      ;;^UTILITY(U,$J,358.3,11232,1,4,0)
 +68      ;;=4^Z63.8
 +69      ;;^UTILITY(U,$J,358.3,11232,2)
 +70      ;;=^5063174
 +71      ;;^UTILITY(U,$J,358.3,11233,0)
 +72      ;;=Z59.00^^42^514^8
 +73      ;;^UTILITY(U,$J,358.3,11233,1,0)
 +74      ;;=^358.31IA^4^2
 +75      ;;^UTILITY(U,$J,358.3,11233,1,3,0)
 +76      ;;=3^Homelessness,Unspec
 +77      ;;^UTILITY(U,$J,358.3,11233,1,4,0)
 +78      ;;=4^Z59.00
 +79      ;;^UTILITY(U,$J,358.3,11233,2)
 +80      ;;=^5161304
 +81      ;;^UTILITY(U,$J,358.3,11234,0)
 +82      ;;=Z59.01^^42^514^6
 +83      ;;^UTILITY(U,$J,358.3,11234,1,0)
 +84      ;;=^358.31IA^4^2
 +85      ;;^UTILITY(U,$J,358.3,11234,1,3,0)
 +86      ;;=3^Homelessness,Sheltered
 +87      ;;^UTILITY(U,$J,358.3,11234,1,4,0)
 +88      ;;=4^Z59.01
 +89      ;;^UTILITY(U,$J,358.3,11234,2)
 +90      ;;=^5161305
 +91      ;;^UTILITY(U,$J,358.3,11235,0)
 +92      ;;=Z59.02^^42^514^7
 +93      ;;^UTILITY(U,$J,358.3,11235,1,0)
 +94      ;;=^358.31IA^4^2
 +95      ;;^UTILITY(U,$J,358.3,11235,1,3,0)
 +96      ;;=3^Homelessness,Unsheltered
 +97      ;;^UTILITY(U,$J,358.3,11235,1,4,0)
 +98      ;;=4^Z59.02
 +99      ;;^UTILITY(U,$J,358.3,11235,2)
 +100     ;;=^5161306
 +101     ;;^UTILITY(U,$J,358.3,11236,0)
 +102     ;;=Z59.811^^42^514^9
 +103     ;;^UTILITY(U,$J,358.3,11236,1,0)
 +104     ;;=^358.31IA^4^2
 +105     ;;^UTILITY(U,$J,358.3,11236,1,3,0)
 +106     ;;=3^Housing Instability,Housed w/ Risk of Homelessness
 +107     ;;^UTILITY(U,$J,358.3,11236,1,4,0)
 +108     ;;=4^Z59.811
 +109     ;;^UTILITY(U,$J,358.3,11236,2)
 +110     ;;=^5161309
 +111     ;;^UTILITY(U,$J,358.3,11237,0)
 +112     ;;=Z59.812^^42^514^10
 +113     ;;^UTILITY(U,$J,358.3,11237,1,0)
 +114     ;;=^358.31IA^4^2
 +115     ;;^UTILITY(U,$J,358.3,11237,1,3,0)
 +116     ;;=3^Housing Instability,Housed,Homelessness in Past 12 Months
 +117     ;;^UTILITY(U,$J,358.3,11237,1,4,0)
 +118     ;;=4^Z59.812
 +119     ;;^UTILITY(U,$J,358.3,11237,2)
 +120     ;;=^5161310
 +121     ;;^UTILITY(U,$J,358.3,11238,0)
 +122     ;;=Z59.819^^42^514^11
 +123     ;;^UTILITY(U,$J,358.3,11238,1,0)
 +124     ;;=^358.31IA^4^2