IBDEI2QY ; ; 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,43803,1,4,0)
 ;;=4^Z75.3
 ;;^UTILITY(U,$J,358.3,43803,2)
 ;;=^5063292
 ;;^UTILITY(U,$J,358.3,43804,0)
 ;;=Z75.0^^162^2153^3
 ;;^UTILITY(U,$J,358.3,43804,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43804,1,3,0)
 ;;=3^Medical Services Not Available in Home
 ;;^UTILITY(U,$J,358.3,43804,1,4,0)
 ;;=4^Z75.0
 ;;^UTILITY(U,$J,358.3,43804,2)
 ;;=^5063289
 ;;^UTILITY(U,$J,358.3,43805,0)
 ;;=Z75.1^^162^2153^4
 ;;^UTILITY(U,$J,358.3,43805,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43805,1,3,0)
 ;;=3^Pt Awaiting Admission to Adequate Facility Elsewhere
 ;;^UTILITY(U,$J,358.3,43805,1,4,0)
 ;;=4^Z75.1
 ;;^UTILITY(U,$J,358.3,43805,2)
 ;;=^5063290
 ;;^UTILITY(U,$J,358.3,43806,0)
 ;;=Z75.4^^162^2153^6
 ;;^UTILITY(U,$J,358.3,43806,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43806,1,3,0)
 ;;=3^Unavailability/Inaccessibility of Helping Agencies
 ;;^UTILITY(U,$J,358.3,43806,1,4,0)
 ;;=4^Z75.4
 ;;^UTILITY(U,$J,358.3,43806,2)
 ;;=^5063293
 ;;^UTILITY(U,$J,358.3,43807,0)
 ;;=Z75.8^^162^2153^2
 ;;^UTILITY(U,$J,358.3,43807,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43807,1,3,0)
 ;;=3^Medical Facilities/Health Care Problems
 ;;^UTILITY(U,$J,358.3,43807,1,4,0)
 ;;=4^Z75.8
 ;;^UTILITY(U,$J,358.3,43807,2)
 ;;=^5063295
 ;;^UTILITY(U,$J,358.3,43808,0)
 ;;=Z71.9^^162^2153^1
 ;;^UTILITY(U,$J,358.3,43808,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43808,1,3,0)
 ;;=3^Counseling,Unspec
 ;;^UTILITY(U,$J,358.3,43808,1,4,0)
 ;;=4^Z71.9
 ;;^UTILITY(U,$J,358.3,43808,2)
 ;;=^5063254
 ;;^UTILITY(U,$J,358.3,43809,0)
 ;;=Z51.89^^162^2154^1
 ;;^UTILITY(U,$J,358.3,43809,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43809,1,3,0)
 ;;=3^Aftercare,Oth Spec
 ;;^UTILITY(U,$J,358.3,43809,1,4,0)
 ;;=4^Z51.89
 ;;^UTILITY(U,$J,358.3,43809,2)
 ;;=^5063065
 ;;^UTILITY(U,$J,358.3,43810,0)
 ;;=Z51.5^^162^2154^2
 ;;^UTILITY(U,$J,358.3,43810,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43810,1,3,0)
 ;;=3^Palliative Care
 ;;^UTILITY(U,$J,358.3,43810,1,4,0)
 ;;=4^Z51.5
 ;;^UTILITY(U,$J,358.3,43810,2)
 ;;=^5063063
 ;;^UTILITY(U,$J,358.3,43811,0)
 ;;=Z91.5^^162^2155^1
 ;;^UTILITY(U,$J,358.3,43811,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43811,1,3,0)
 ;;=3^Personal Hx of One or More Suicide Attempts
 ;;^UTILITY(U,$J,358.3,43811,1,4,0)
 ;;=4^Z91.5
 ;;^UTILITY(U,$J,358.3,43811,2)
 ;;=^5063624
 ;;^UTILITY(U,$J,358.3,43812,0)
 ;;=R45.851^^162^2155^2
 ;;^UTILITY(U,$J,358.3,43812,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43812,1,3,0)
 ;;=3^Suicidal Ideations
 ;;^UTILITY(U,$J,358.3,43812,1,4,0)
 ;;=4^R45.851
 ;;^UTILITY(U,$J,358.3,43812,2)
 ;;=^5019474
 ;;^UTILITY(U,$J,358.3,43813,0)
 ;;=T14.91XA^^162^2155^3
 ;;^UTILITY(U,$J,358.3,43813,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43813,1,3,0)
 ;;=3^Suicide Attempt,Initial Encntr
 ;;^UTILITY(U,$J,358.3,43813,1,4,0)
 ;;=4^T14.91XA
 ;;^UTILITY(U,$J,358.3,43813,2)
 ;;=^5151779
 ;;^UTILITY(U,$J,358.3,43814,0)
 ;;=T14.91XD^^162^2155^4
 ;;^UTILITY(U,$J,358.3,43814,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43814,1,3,0)
 ;;=3^Suicide Attempt,Subsequent Encntr
 ;;^UTILITY(U,$J,358.3,43814,1,4,0)
 ;;=4^T14.91XD
 ;;^UTILITY(U,$J,358.3,43814,2)
 ;;=^5151780
 ;;^UTILITY(U,$J,358.3,43815,0)
 ;;=T14.91XS^^162^2155^5
 ;;^UTILITY(U,$J,358.3,43815,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,43815,1,3,0)
 ;;=3^Suicide Attempt,Sequela
 ;;^UTILITY(U,$J,358.3,43815,1,4,0)
 ;;=4^T14.91XS
 ;;^UTILITY(U,$J,358.3,43815,2)
 ;;=^5151781
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2QY   3777     printed  Sep 23, 2025@20:10:07                                                                                                                                                                                                    Page 2
IBDEI2QY  ; ; 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,43803,1,4,0)
 +2       ;;=4^Z75.3
 +3       ;;^UTILITY(U,$J,358.3,43803,2)
 +4       ;;=^5063292
 +5       ;;^UTILITY(U,$J,358.3,43804,0)
 +6       ;;=Z75.0^^162^2153^3
 +7       ;;^UTILITY(U,$J,358.3,43804,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,43804,1,3,0)
 +10      ;;=3^Medical Services Not Available in Home
 +11      ;;^UTILITY(U,$J,358.3,43804,1,4,0)
 +12      ;;=4^Z75.0
 +13      ;;^UTILITY(U,$J,358.3,43804,2)
 +14      ;;=^5063289
 +15      ;;^UTILITY(U,$J,358.3,43805,0)
 +16      ;;=Z75.1^^162^2153^4
 +17      ;;^UTILITY(U,$J,358.3,43805,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,43805,1,3,0)
 +20      ;;=3^Pt Awaiting Admission to Adequate Facility Elsewhere
 +21      ;;^UTILITY(U,$J,358.3,43805,1,4,0)
 +22      ;;=4^Z75.1
 +23      ;;^UTILITY(U,$J,358.3,43805,2)
 +24      ;;=^5063290
 +25      ;;^UTILITY(U,$J,358.3,43806,0)
 +26      ;;=Z75.4^^162^2153^6
 +27      ;;^UTILITY(U,$J,358.3,43806,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,43806,1,3,0)
 +30      ;;=3^Unavailability/Inaccessibility of Helping Agencies
 +31      ;;^UTILITY(U,$J,358.3,43806,1,4,0)
 +32      ;;=4^Z75.4
 +33      ;;^UTILITY(U,$J,358.3,43806,2)
 +34      ;;=^5063293
 +35      ;;^UTILITY(U,$J,358.3,43807,0)
 +36      ;;=Z75.8^^162^2153^2
 +37      ;;^UTILITY(U,$J,358.3,43807,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,43807,1,3,0)
 +40      ;;=3^Medical Facilities/Health Care Problems
 +41      ;;^UTILITY(U,$J,358.3,43807,1,4,0)
 +42      ;;=4^Z75.8
 +43      ;;^UTILITY(U,$J,358.3,43807,2)
 +44      ;;=^5063295
 +45      ;;^UTILITY(U,$J,358.3,43808,0)
 +46      ;;=Z71.9^^162^2153^1
 +47      ;;^UTILITY(U,$J,358.3,43808,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,43808,1,3,0)
 +50      ;;=3^Counseling,Unspec
 +51      ;;^UTILITY(U,$J,358.3,43808,1,4,0)
 +52      ;;=4^Z71.9
 +53      ;;^UTILITY(U,$J,358.3,43808,2)
 +54      ;;=^5063254
 +55      ;;^UTILITY(U,$J,358.3,43809,0)
 +56      ;;=Z51.89^^162^2154^1
 +57      ;;^UTILITY(U,$J,358.3,43809,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,43809,1,3,0)
 +60      ;;=3^Aftercare,Oth Spec
 +61      ;;^UTILITY(U,$J,358.3,43809,1,4,0)
 +62      ;;=4^Z51.89
 +63      ;;^UTILITY(U,$J,358.3,43809,2)
 +64      ;;=^5063065
 +65      ;;^UTILITY(U,$J,358.3,43810,0)
 +66      ;;=Z51.5^^162^2154^2
 +67      ;;^UTILITY(U,$J,358.3,43810,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,43810,1,3,0)
 +70      ;;=3^Palliative Care
 +71      ;;^UTILITY(U,$J,358.3,43810,1,4,0)
 +72      ;;=4^Z51.5
 +73      ;;^UTILITY(U,$J,358.3,43810,2)
 +74      ;;=^5063063
 +75      ;;^UTILITY(U,$J,358.3,43811,0)
 +76      ;;=Z91.5^^162^2155^1
 +77      ;;^UTILITY(U,$J,358.3,43811,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,43811,1,3,0)
 +80      ;;=3^Personal Hx of One or More Suicide Attempts
 +81      ;;^UTILITY(U,$J,358.3,43811,1,4,0)
 +82      ;;=4^Z91.5
 +83      ;;^UTILITY(U,$J,358.3,43811,2)
 +84      ;;=^5063624
 +85      ;;^UTILITY(U,$J,358.3,43812,0)
 +86      ;;=R45.851^^162^2155^2
 +87      ;;^UTILITY(U,$J,358.3,43812,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,43812,1,3,0)
 +90      ;;=3^Suicidal Ideations
 +91      ;;^UTILITY(U,$J,358.3,43812,1,4,0)
 +92      ;;=4^R45.851
 +93      ;;^UTILITY(U,$J,358.3,43812,2)
 +94      ;;=^5019474
 +95      ;;^UTILITY(U,$J,358.3,43813,0)
 +96      ;;=T14.91XA^^162^2155^3
 +97      ;;^UTILITY(U,$J,358.3,43813,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,43813,1,3,0)
 +100     ;;=3^Suicide Attempt,Initial Encntr
 +101     ;;^UTILITY(U,$J,358.3,43813,1,4,0)
 +102     ;;=4^T14.91XA
 +103     ;;^UTILITY(U,$J,358.3,43813,2)
 +104     ;;=^5151779
 +105     ;;^UTILITY(U,$J,358.3,43814,0)
 +106     ;;=T14.91XD^^162^2155^4
 +107     ;;^UTILITY(U,$J,358.3,43814,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,43814,1,3,0)
 +110     ;;=3^Suicide Attempt,Subsequent Encntr
 +111     ;;^UTILITY(U,$J,358.3,43814,1,4,0)
 +112     ;;=4^T14.91XD
 +113     ;;^UTILITY(U,$J,358.3,43814,2)
 +114     ;;=^5151780
 +115     ;;^UTILITY(U,$J,358.3,43815,0)
 +116     ;;=T14.91XS^^162^2155^5
 +117     ;;^UTILITY(U,$J,358.3,43815,1,0)
 +118     ;;=^358.31IA^4^2
 +119     ;;^UTILITY(U,$J,358.3,43815,1,3,0)
 +120     ;;=3^Suicide Attempt,Sequela
 +121     ;;^UTILITY(U,$J,358.3,43815,1,4,0)
 +122     ;;=4^T14.91XS
 +123     ;;^UTILITY(U,$J,358.3,43815,2)
 +124     ;;=^5151781