IBDEI0P1 ; ; 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,11238,1,3,0)
 ;;=3^Housing Instability,Housed,Unspec
 ;;^UTILITY(U,$J,358.3,11238,1,4,0)
 ;;=4^Z59.819
 ;;^UTILITY(U,$J,358.3,11238,2)
 ;;=^5161311
 ;;^UTILITY(U,$J,358.3,11239,0)
 ;;=Z59.89^^42^514^16
 ;;^UTILITY(U,$J,358.3,11239,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11239,1,3,0)
 ;;=3^Problems Related to Housing & Economic Circumstances,Other
 ;;^UTILITY(U,$J,358.3,11239,1,4,0)
 ;;=4^Z59.89
 ;;^UTILITY(U,$J,358.3,11239,2)
 ;;=^5161312
 ;;^UTILITY(U,$J,358.3,11240,0)
 ;;=Z59.2^^42^514^2
 ;;^UTILITY(U,$J,358.3,11240,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11240,1,3,0)
 ;;=3^Discord w/ Neighbors,Lodgers,Landlords
 ;;^UTILITY(U,$J,358.3,11240,1,4,0)
 ;;=4^Z59.2
 ;;^UTILITY(U,$J,358.3,11240,2)
 ;;=^5063131
 ;;^UTILITY(U,$J,358.3,11241,0)
 ;;=Z59.9^^42^514^17
 ;;^UTILITY(U,$J,358.3,11241,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11241,1,3,0)
 ;;=3^Problems Related to Housing & Economic Circumstances,Unspec
 ;;^UTILITY(U,$J,358.3,11241,1,4,0)
 ;;=4^Z59.9
 ;;^UTILITY(U,$J,358.3,11241,2)
 ;;=^5063138
 ;;^UTILITY(U,$J,358.3,11242,0)
 ;;=Z59.7^^42^514^13
 ;;^UTILITY(U,$J,358.3,11242,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11242,1,3,0)
 ;;=3^Insufficient Social Insurance & Welfare Support
 ;;^UTILITY(U,$J,358.3,11242,1,4,0)
 ;;=4^Z59.7
 ;;^UTILITY(U,$J,358.3,11242,2)
 ;;=^5063136
 ;;^UTILITY(U,$J,358.3,11243,0)
 ;;=Z59.41^^42^514^4
 ;;^UTILITY(U,$J,358.3,11243,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11243,1,3,0)
 ;;=3^Food Insecurity
 ;;^UTILITY(U,$J,358.3,11243,1,4,0)
 ;;=4^Z59.41
 ;;^UTILITY(U,$J,358.3,11243,2)
 ;;=^5161307
 ;;^UTILITY(U,$J,358.3,11244,0)
 ;;=Z59.48^^42^514^14
 ;;^UTILITY(U,$J,358.3,11244,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11244,1,3,0)
 ;;=3^Lack of Adequate Food,Other Spec
 ;;^UTILITY(U,$J,358.3,11244,1,4,0)
 ;;=4^Z59.48
 ;;^UTILITY(U,$J,358.3,11244,2)
 ;;=^5161308
 ;;^UTILITY(U,$J,358.3,11245,0)
 ;;=Z72.51^^42^515^2
 ;;^UTILITY(U,$J,358.3,11245,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11245,1,3,0)
 ;;=3^High Risk Heterosexual Behavior
 ;;^UTILITY(U,$J,358.3,11245,1,4,0)
 ;;=4^Z72.51
 ;;^UTILITY(U,$J,358.3,11245,2)
 ;;=^5063258
 ;;^UTILITY(U,$J,358.3,11246,0)
 ;;=Z72.6^^42^515^1
 ;;^UTILITY(U,$J,358.3,11246,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11246,1,3,0)
 ;;=3^Gambling/Betting
 ;;^UTILITY(U,$J,358.3,11246,1,4,0)
 ;;=4^Z72.6
 ;;^UTILITY(U,$J,358.3,11246,2)
 ;;=^5063261
 ;;^UTILITY(U,$J,358.3,11247,0)
 ;;=Z72.3^^42^515^4
 ;;^UTILITY(U,$J,358.3,11247,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11247,1,3,0)
 ;;=3^Lack of Physical Exercise
 ;;^UTILITY(U,$J,358.3,11247,1,4,0)
 ;;=4^Z72.3
 ;;^UTILITY(U,$J,358.3,11247,2)
 ;;=^5063256
 ;;^UTILITY(U,$J,358.3,11248,0)
 ;;=Z72.4^^42^515^3
 ;;^UTILITY(U,$J,358.3,11248,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11248,1,3,0)
 ;;=3^Inappropriate Diet/Eating Habits
 ;;^UTILITY(U,$J,358.3,11248,1,4,0)
 ;;=4^Z72.4
 ;;^UTILITY(U,$J,358.3,11248,2)
 ;;=^5063257
 ;;^UTILITY(U,$J,358.3,11249,0)
 ;;=Z72.820^^42^515^6
 ;;^UTILITY(U,$J,358.3,11249,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11249,1,3,0)
 ;;=3^Sleep Deprivation
 ;;^UTILITY(U,$J,358.3,11249,1,4,0)
 ;;=4^Z72.820
 ;;^UTILITY(U,$J,358.3,11249,2)
 ;;=^5063264
 ;;^UTILITY(U,$J,358.3,11250,0)
 ;;=Z72.9^^42^515^5
 ;;^UTILITY(U,$J,358.3,11250,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,11250,1,3,0)
 ;;=3^Lifestyle Related Problems,Unspec
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0P1   3755     printed  Sep 23, 2025@19:28:58                                                                                                                                                                                                    Page 2
IBDEI0P1  ; ; 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,11238,1,3,0)
 +2       ;;=3^Housing Instability,Housed,Unspec
 +3       ;;^UTILITY(U,$J,358.3,11238,1,4,0)
 +4       ;;=4^Z59.819
 +5       ;;^UTILITY(U,$J,358.3,11238,2)
 +6       ;;=^5161311
 +7       ;;^UTILITY(U,$J,358.3,11239,0)
 +8       ;;=Z59.89^^42^514^16
 +9       ;;^UTILITY(U,$J,358.3,11239,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,11239,1,3,0)
 +12      ;;=3^Problems Related to Housing & Economic Circumstances,Other
 +13      ;;^UTILITY(U,$J,358.3,11239,1,4,0)
 +14      ;;=4^Z59.89
 +15      ;;^UTILITY(U,$J,358.3,11239,2)
 +16      ;;=^5161312
 +17      ;;^UTILITY(U,$J,358.3,11240,0)
 +18      ;;=Z59.2^^42^514^2
 +19      ;;^UTILITY(U,$J,358.3,11240,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,11240,1,3,0)
 +22      ;;=3^Discord w/ Neighbors,Lodgers,Landlords
 +23      ;;^UTILITY(U,$J,358.3,11240,1,4,0)
 +24      ;;=4^Z59.2
 +25      ;;^UTILITY(U,$J,358.3,11240,2)
 +26      ;;=^5063131
 +27      ;;^UTILITY(U,$J,358.3,11241,0)
 +28      ;;=Z59.9^^42^514^17
 +29      ;;^UTILITY(U,$J,358.3,11241,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,11241,1,3,0)
 +32      ;;=3^Problems Related to Housing & Economic Circumstances,Unspec
 +33      ;;^UTILITY(U,$J,358.3,11241,1,4,0)
 +34      ;;=4^Z59.9
 +35      ;;^UTILITY(U,$J,358.3,11241,2)
 +36      ;;=^5063138
 +37      ;;^UTILITY(U,$J,358.3,11242,0)
 +38      ;;=Z59.7^^42^514^13
 +39      ;;^UTILITY(U,$J,358.3,11242,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,11242,1,3,0)
 +42      ;;=3^Insufficient Social Insurance & Welfare Support
 +43      ;;^UTILITY(U,$J,358.3,11242,1,4,0)
 +44      ;;=4^Z59.7
 +45      ;;^UTILITY(U,$J,358.3,11242,2)
 +46      ;;=^5063136
 +47      ;;^UTILITY(U,$J,358.3,11243,0)
 +48      ;;=Z59.41^^42^514^4
 +49      ;;^UTILITY(U,$J,358.3,11243,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,11243,1,3,0)
 +52      ;;=3^Food Insecurity
 +53      ;;^UTILITY(U,$J,358.3,11243,1,4,0)
 +54      ;;=4^Z59.41
 +55      ;;^UTILITY(U,$J,358.3,11243,2)
 +56      ;;=^5161307
 +57      ;;^UTILITY(U,$J,358.3,11244,0)
 +58      ;;=Z59.48^^42^514^14
 +59      ;;^UTILITY(U,$J,358.3,11244,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,11244,1,3,0)
 +62      ;;=3^Lack of Adequate Food,Other Spec
 +63      ;;^UTILITY(U,$J,358.3,11244,1,4,0)
 +64      ;;=4^Z59.48
 +65      ;;^UTILITY(U,$J,358.3,11244,2)
 +66      ;;=^5161308
 +67      ;;^UTILITY(U,$J,358.3,11245,0)
 +68      ;;=Z72.51^^42^515^2
 +69      ;;^UTILITY(U,$J,358.3,11245,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,11245,1,3,0)
 +72      ;;=3^High Risk Heterosexual Behavior
 +73      ;;^UTILITY(U,$J,358.3,11245,1,4,0)
 +74      ;;=4^Z72.51
 +75      ;;^UTILITY(U,$J,358.3,11245,2)
 +76      ;;=^5063258
 +77      ;;^UTILITY(U,$J,358.3,11246,0)
 +78      ;;=Z72.6^^42^515^1
 +79      ;;^UTILITY(U,$J,358.3,11246,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,11246,1,3,0)
 +82      ;;=3^Gambling/Betting
 +83      ;;^UTILITY(U,$J,358.3,11246,1,4,0)
 +84      ;;=4^Z72.6
 +85      ;;^UTILITY(U,$J,358.3,11246,2)
 +86      ;;=^5063261
 +87      ;;^UTILITY(U,$J,358.3,11247,0)
 +88      ;;=Z72.3^^42^515^4
 +89      ;;^UTILITY(U,$J,358.3,11247,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,11247,1,3,0)
 +92      ;;=3^Lack of Physical Exercise
 +93      ;;^UTILITY(U,$J,358.3,11247,1,4,0)
 +94      ;;=4^Z72.3
 +95      ;;^UTILITY(U,$J,358.3,11247,2)
 +96      ;;=^5063256
 +97      ;;^UTILITY(U,$J,358.3,11248,0)
 +98      ;;=Z72.4^^42^515^3
 +99      ;;^UTILITY(U,$J,358.3,11248,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,11248,1,3,0)
 +102     ;;=3^Inappropriate Diet/Eating Habits
 +103     ;;^UTILITY(U,$J,358.3,11248,1,4,0)
 +104     ;;=4^Z72.4
 +105     ;;^UTILITY(U,$J,358.3,11248,2)
 +106     ;;=^5063257
 +107     ;;^UTILITY(U,$J,358.3,11249,0)
 +108     ;;=Z72.820^^42^515^6
 +109     ;;^UTILITY(U,$J,358.3,11249,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,11249,1,3,0)
 +112     ;;=3^Sleep Deprivation
 +113     ;;^UTILITY(U,$J,358.3,11249,1,4,0)
 +114     ;;=4^Z72.820
 +115     ;;^UTILITY(U,$J,358.3,11249,2)
 +116     ;;=^5063264
 +117     ;;^UTILITY(U,$J,358.3,11250,0)
 +118     ;;=Z72.9^^42^515^5
 +119     ;;^UTILITY(U,$J,358.3,11250,1,0)
 +120     ;;=^358.31IA^4^2
 +121     ;;^UTILITY(U,$J,358.3,11250,1,3,0)
 +122     ;;=3^Lifestyle Related Problems,Unspec