IBDEI32P ; ; 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,49070,2)
 ;;=^5063131
 ;;^UTILITY(U,$J,358.3,49071,0)
 ;;=Z63.5^^185^2428^155
 ;;^UTILITY(U,$J,358.3,49071,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49071,1,3,0)
 ;;=3^Problems Related to Separation/Divorce
 ;;^UTILITY(U,$J,358.3,49071,1,4,0)
 ;;=4^Z63.5
 ;;^UTILITY(U,$J,358.3,49071,2)
 ;;=^5063169
 ;;^UTILITY(U,$J,358.3,49072,0)
 ;;=Z55.9^^185^2428^132
 ;;^UTILITY(U,$J,358.3,49072,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49072,1,3,0)
 ;;=3^Problems Related to Education/Literacy,Unspec
 ;;^UTILITY(U,$J,358.3,49072,1,4,0)
 ;;=4^Z55.9
 ;;^UTILITY(U,$J,358.3,49072,2)
 ;;=^5063106
 ;;^UTILITY(U,$J,358.3,49073,0)
 ;;=Z56.9^^185^2428^133
 ;;^UTILITY(U,$J,358.3,49073,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49073,1,3,0)
 ;;=3^Problems Related to Employment,Unspec
 ;;^UTILITY(U,$J,358.3,49073,1,4,0)
 ;;=4^Z56.9
 ;;^UTILITY(U,$J,358.3,49073,2)
 ;;=^5063117
 ;;^UTILITY(U,$J,358.3,49074,0)
 ;;=Z65.5^^185^2428^130
 ;;^UTILITY(U,$J,358.3,49074,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49074,1,3,0)
 ;;=3^Problems Related to Disaster/War/Other Hostilities
 ;;^UTILITY(U,$J,358.3,49074,1,4,0)
 ;;=4^Z65.5
 ;;^UTILITY(U,$J,358.3,49074,2)
 ;;=^5063184
 ;;^UTILITY(U,$J,358.3,49075,0)
 ;;=Z59.5^^185^2428^134
 ;;^UTILITY(U,$J,358.3,49075,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49075,1,3,0)
 ;;=3^Problems Related to Extreme Poverty
 ;;^UTILITY(U,$J,358.3,49075,1,4,0)
 ;;=4^Z59.5
 ;;^UTILITY(U,$J,358.3,49075,2)
 ;;=^5063134
 ;;^UTILITY(U,$J,358.3,49076,0)
 ;;=Z59.0^^185^2428^136
 ;;^UTILITY(U,$J,358.3,49076,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49076,1,3,0)
 ;;=3^Problems Related to Homelessness
 ;;^UTILITY(U,$J,358.3,49076,1,4,0)
 ;;=4^Z59.0
 ;;^UTILITY(U,$J,358.3,49076,2)
 ;;=^5063129
 ;;^UTILITY(U,$J,358.3,49077,0)
 ;;=Z59.9^^185^2428^137
 ;;^UTILITY(U,$J,358.3,49077,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49077,1,3,0)
 ;;=3^Problems Related to Housing/Economic Circumstances
 ;;^UTILITY(U,$J,358.3,49077,1,4,0)
 ;;=4^Z59.9
 ;;^UTILITY(U,$J,358.3,49077,2)
 ;;=^5063138
 ;;^UTILITY(U,$J,358.3,49078,0)
 ;;=Z59.1^^185^2428^138
 ;;^UTILITY(U,$J,358.3,49078,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49078,1,3,0)
 ;;=3^Problems Related to Inadequate Housing
 ;;^UTILITY(U,$J,358.3,49078,1,4,0)
 ;;=4^Z59.1
 ;;^UTILITY(U,$J,358.3,49078,2)
 ;;=^5063130
 ;;^UTILITY(U,$J,358.3,49079,0)
 ;;=Z59.7^^185^2428^139
 ;;^UTILITY(U,$J,358.3,49079,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49079,1,3,0)
 ;;=3^Problems Related to Insufficient Social Insurance/Welfare Support
 ;;^UTILITY(U,$J,358.3,49079,1,4,0)
 ;;=4^Z59.7
 ;;^UTILITY(U,$J,358.3,49079,2)
 ;;=^5063136
 ;;^UTILITY(U,$J,358.3,49080,0)
 ;;=Z59.4^^185^2428^140
 ;;^UTILITY(U,$J,358.3,49080,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49080,1,3,0)
 ;;=3^Problems Related to Lack of Food/Drinking Water
 ;;^UTILITY(U,$J,358.3,49080,1,4,0)
 ;;=4^Z59.4
 ;;^UTILITY(U,$J,358.3,49080,2)
 ;;=^5063133
 ;;^UTILITY(U,$J,358.3,49081,0)
 ;;=Z73.9^^185^2428^141
 ;;^UTILITY(U,$J,358.3,49081,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49081,1,3,0)
 ;;=3^Problems Related to Life Management Difficulty
 ;;^UTILITY(U,$J,358.3,49081,1,4,0)
 ;;=4^Z73.9
 ;;^UTILITY(U,$J,358.3,49081,2)
 ;;=^5063281
 ;;^UTILITY(U,$J,358.3,49082,0)
 ;;=Z72.9^^185^2428^142
 ;;^UTILITY(U,$J,358.3,49082,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,49082,1,3,0)
 ;;=3^Problems Related to Lifestyle
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI32P   3766     printed  Sep 23, 2025@20:16:39                                                                                                                                                                                                    Page 2
IBDEI32P  ; ; 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,49070,2)
 +2       ;;=^5063131
 +3       ;;^UTILITY(U,$J,358.3,49071,0)
 +4       ;;=Z63.5^^185^2428^155
 +5       ;;^UTILITY(U,$J,358.3,49071,1,0)
 +6       ;;=^358.31IA^4^2
 +7       ;;^UTILITY(U,$J,358.3,49071,1,3,0)
 +8       ;;=3^Problems Related to Separation/Divorce
 +9       ;;^UTILITY(U,$J,358.3,49071,1,4,0)
 +10      ;;=4^Z63.5
 +11      ;;^UTILITY(U,$J,358.3,49071,2)
 +12      ;;=^5063169
 +13      ;;^UTILITY(U,$J,358.3,49072,0)
 +14      ;;=Z55.9^^185^2428^132
 +15      ;;^UTILITY(U,$J,358.3,49072,1,0)
 +16      ;;=^358.31IA^4^2
 +17      ;;^UTILITY(U,$J,358.3,49072,1,3,0)
 +18      ;;=3^Problems Related to Education/Literacy,Unspec
 +19      ;;^UTILITY(U,$J,358.3,49072,1,4,0)
 +20      ;;=4^Z55.9
 +21      ;;^UTILITY(U,$J,358.3,49072,2)
 +22      ;;=^5063106
 +23      ;;^UTILITY(U,$J,358.3,49073,0)
 +24      ;;=Z56.9^^185^2428^133
 +25      ;;^UTILITY(U,$J,358.3,49073,1,0)
 +26      ;;=^358.31IA^4^2
 +27      ;;^UTILITY(U,$J,358.3,49073,1,3,0)
 +28      ;;=3^Problems Related to Employment,Unspec
 +29      ;;^UTILITY(U,$J,358.3,49073,1,4,0)
 +30      ;;=4^Z56.9
 +31      ;;^UTILITY(U,$J,358.3,49073,2)
 +32      ;;=^5063117
 +33      ;;^UTILITY(U,$J,358.3,49074,0)
 +34      ;;=Z65.5^^185^2428^130
 +35      ;;^UTILITY(U,$J,358.3,49074,1,0)
 +36      ;;=^358.31IA^4^2
 +37      ;;^UTILITY(U,$J,358.3,49074,1,3,0)
 +38      ;;=3^Problems Related to Disaster/War/Other Hostilities
 +39      ;;^UTILITY(U,$J,358.3,49074,1,4,0)
 +40      ;;=4^Z65.5
 +41      ;;^UTILITY(U,$J,358.3,49074,2)
 +42      ;;=^5063184
 +43      ;;^UTILITY(U,$J,358.3,49075,0)
 +44      ;;=Z59.5^^185^2428^134
 +45      ;;^UTILITY(U,$J,358.3,49075,1,0)
 +46      ;;=^358.31IA^4^2
 +47      ;;^UTILITY(U,$J,358.3,49075,1,3,0)
 +48      ;;=3^Problems Related to Extreme Poverty
 +49      ;;^UTILITY(U,$J,358.3,49075,1,4,0)
 +50      ;;=4^Z59.5
 +51      ;;^UTILITY(U,$J,358.3,49075,2)
 +52      ;;=^5063134
 +53      ;;^UTILITY(U,$J,358.3,49076,0)
 +54      ;;=Z59.0^^185^2428^136
 +55      ;;^UTILITY(U,$J,358.3,49076,1,0)
 +56      ;;=^358.31IA^4^2
 +57      ;;^UTILITY(U,$J,358.3,49076,1,3,0)
 +58      ;;=3^Problems Related to Homelessness
 +59      ;;^UTILITY(U,$J,358.3,49076,1,4,0)
 +60      ;;=4^Z59.0
 +61      ;;^UTILITY(U,$J,358.3,49076,2)
 +62      ;;=^5063129
 +63      ;;^UTILITY(U,$J,358.3,49077,0)
 +64      ;;=Z59.9^^185^2428^137
 +65      ;;^UTILITY(U,$J,358.3,49077,1,0)
 +66      ;;=^358.31IA^4^2
 +67      ;;^UTILITY(U,$J,358.3,49077,1,3,0)
 +68      ;;=3^Problems Related to Housing/Economic Circumstances
 +69      ;;^UTILITY(U,$J,358.3,49077,1,4,0)
 +70      ;;=4^Z59.9
 +71      ;;^UTILITY(U,$J,358.3,49077,2)
 +72      ;;=^5063138
 +73      ;;^UTILITY(U,$J,358.3,49078,0)
 +74      ;;=Z59.1^^185^2428^138
 +75      ;;^UTILITY(U,$J,358.3,49078,1,0)
 +76      ;;=^358.31IA^4^2
 +77      ;;^UTILITY(U,$J,358.3,49078,1,3,0)
 +78      ;;=3^Problems Related to Inadequate Housing
 +79      ;;^UTILITY(U,$J,358.3,49078,1,4,0)
 +80      ;;=4^Z59.1
 +81      ;;^UTILITY(U,$J,358.3,49078,2)
 +82      ;;=^5063130
 +83      ;;^UTILITY(U,$J,358.3,49079,0)
 +84      ;;=Z59.7^^185^2428^139
 +85      ;;^UTILITY(U,$J,358.3,49079,1,0)
 +86      ;;=^358.31IA^4^2
 +87      ;;^UTILITY(U,$J,358.3,49079,1,3,0)
 +88      ;;=3^Problems Related to Insufficient Social Insurance/Welfare Support
 +89      ;;^UTILITY(U,$J,358.3,49079,1,4,0)
 +90      ;;=4^Z59.7
 +91      ;;^UTILITY(U,$J,358.3,49079,2)
 +92      ;;=^5063136
 +93      ;;^UTILITY(U,$J,358.3,49080,0)
 +94      ;;=Z59.4^^185^2428^140
 +95      ;;^UTILITY(U,$J,358.3,49080,1,0)
 +96      ;;=^358.31IA^4^2
 +97      ;;^UTILITY(U,$J,358.3,49080,1,3,0)
 +98      ;;=3^Problems Related to Lack of Food/Drinking Water
 +99      ;;^UTILITY(U,$J,358.3,49080,1,4,0)
 +100     ;;=4^Z59.4
 +101     ;;^UTILITY(U,$J,358.3,49080,2)
 +102     ;;=^5063133
 +103     ;;^UTILITY(U,$J,358.3,49081,0)
 +104     ;;=Z73.9^^185^2428^141
 +105     ;;^UTILITY(U,$J,358.3,49081,1,0)
 +106     ;;=^358.31IA^4^2
 +107     ;;^UTILITY(U,$J,358.3,49081,1,3,0)
 +108     ;;=3^Problems Related to Life Management Difficulty
 +109     ;;^UTILITY(U,$J,358.3,49081,1,4,0)
 +110     ;;=4^Z73.9
 +111     ;;^UTILITY(U,$J,358.3,49081,2)
 +112     ;;=^5063281
 +113     ;;^UTILITY(U,$J,358.3,49082,0)
 +114     ;;=Z72.9^^185^2428^142
 +115     ;;^UTILITY(U,$J,358.3,49082,1,0)
 +116     ;;=^358.31IA^4^2
 +117     ;;^UTILITY(U,$J,358.3,49082,1,3,0)
 +118     ;;=3^Problems Related to Lifestyle