IBDEI0X6 ; ; 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,14948,1,4,0)
 ;;=4^S02.111S
 ;;^UTILITY(U,$J,358.3,14948,2)
 ;;=^5020275
 ;;^UTILITY(U,$J,358.3,14949,0)
 ;;=S02.112S^^58^712^46
 ;;^UTILITY(U,$J,358.3,14949,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14949,1,3,0)
 ;;=3^Type III occipital condyle fracture, sequela
 ;;^UTILITY(U,$J,358.3,14949,1,4,0)
 ;;=4^S02.112S
 ;;^UTILITY(U,$J,358.3,14949,2)
 ;;=^5020281
 ;;^UTILITY(U,$J,358.3,14950,0)
 ;;=S02.402S^^58^712^47
 ;;^UTILITY(U,$J,358.3,14950,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14950,1,3,0)
 ;;=3^Zygomatic fracture, unspecified, sequela
 ;;^UTILITY(U,$J,358.3,14950,1,4,0)
 ;;=4^S02.402S
 ;;^UTILITY(U,$J,358.3,14950,2)
 ;;=^5020335
 ;;^UTILITY(U,$J,358.3,14951,0)
 ;;=F10.20^^58^713^1
 ;;^UTILITY(U,$J,358.3,14951,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14951,1,3,0)
 ;;=3^Alcohol dependence, uncomplicated
 ;;^UTILITY(U,$J,358.3,14951,1,4,0)
 ;;=4^F10.20
 ;;^UTILITY(U,$J,358.3,14951,2)
 ;;=^5003081
 ;;^UTILITY(U,$J,358.3,14952,0)
 ;;=F31.10^^58^713^2
 ;;^UTILITY(U,$J,358.3,14952,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14952,1,3,0)
 ;;=3^Bipolar disord, crnt episode manic w/o psych features, unsp
 ;;^UTILITY(U,$J,358.3,14952,1,4,0)
 ;;=4^F31.10
 ;;^UTILITY(U,$J,358.3,14952,2)
 ;;=^5003495
 ;;^UTILITY(U,$J,358.3,14953,0)
 ;;=F32.9^^58^713^14
 ;;^UTILITY(U,$J,358.3,14953,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14953,1,3,0)
 ;;=3^MDD,Single Episode,Unspec
 ;;^UTILITY(U,$J,358.3,14953,1,4,0)
 ;;=4^F32.9
 ;;^UTILITY(U,$J,358.3,14953,2)
 ;;=^5003528
 ;;^UTILITY(U,$J,358.3,14954,0)
 ;;=F20.0^^58^713^15
 ;;^UTILITY(U,$J,358.3,14954,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14954,1,3,0)
 ;;=3^Paranoid schizophrenia
 ;;^UTILITY(U,$J,358.3,14954,1,4,0)
 ;;=4^F20.0
 ;;^UTILITY(U,$J,358.3,14954,2)
 ;;=^5003469
 ;;^UTILITY(U,$J,358.3,14955,0)
 ;;=F06.0^^58^713^16
 ;;^UTILITY(U,$J,358.3,14955,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14955,1,3,0)
 ;;=3^Psychotic disorder w hallucin due to known physiol condition
 ;;^UTILITY(U,$J,358.3,14955,1,4,0)
 ;;=4^F06.0
 ;;^UTILITY(U,$J,358.3,14955,2)
 ;;=^5003053
 ;;^UTILITY(U,$J,358.3,14956,0)
 ;;=F20.9^^58^713^20
 ;;^UTILITY(U,$J,358.3,14956,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14956,1,3,0)
 ;;=3^Schizophrenia, unspecified
 ;;^UTILITY(U,$J,358.3,14956,1,4,0)
 ;;=4^F20.9
 ;;^UTILITY(U,$J,358.3,14956,2)
 ;;=^5003476
 ;;^UTILITY(U,$J,358.3,14957,0)
 ;;=F03.91^^58^713^3
 ;;^UTILITY(U,$J,358.3,14957,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14957,1,3,0)
 ;;=3^Dementia with behavioral disturbance,Unspec
 ;;^UTILITY(U,$J,358.3,14957,1,4,0)
 ;;=4^F03.91
 ;;^UTILITY(U,$J,358.3,14957,2)
 ;;=^5133350
 ;;^UTILITY(U,$J,358.3,14958,0)
 ;;=F03.90^^58^713^4
 ;;^UTILITY(U,$J,358.3,14958,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14958,1,3,0)
 ;;=3^Dementia without behavioral disturbance,Unspec
 ;;^UTILITY(U,$J,358.3,14958,1,4,0)
 ;;=4^F03.90
 ;;^UTILITY(U,$J,358.3,14958,2)
 ;;=^5003050
 ;;^UTILITY(U,$J,358.3,14959,0)
 ;;=F33.0^^58^713^6
 ;;^UTILITY(U,$J,358.3,14959,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14959,1,3,0)
 ;;=3^MDD,Recurrent,Mild
 ;;^UTILITY(U,$J,358.3,14959,1,4,0)
 ;;=4^F33.0
 ;;^UTILITY(U,$J,358.3,14959,2)
 ;;=^5003529
 ;;^UTILITY(U,$J,358.3,14960,0)
 ;;=F33.1^^58^713^7
 ;;^UTILITY(U,$J,358.3,14960,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,14960,1,3,0)
 ;;=3^MDD,Recurrent,Moderate
 ;;^UTILITY(U,$J,358.3,14960,1,4,0)
 ;;=4^F33.1
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0X6   3773     printed  Sep 23, 2025@19:33:29                                                                                                                                                                                                    Page 2
IBDEI0X6  ; ; 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,14948,1,4,0)
 +2       ;;=4^S02.111S
 +3       ;;^UTILITY(U,$J,358.3,14948,2)
 +4       ;;=^5020275
 +5       ;;^UTILITY(U,$J,358.3,14949,0)
 +6       ;;=S02.112S^^58^712^46
 +7       ;;^UTILITY(U,$J,358.3,14949,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,14949,1,3,0)
 +10      ;;=3^Type III occipital condyle fracture, sequela
 +11      ;;^UTILITY(U,$J,358.3,14949,1,4,0)
 +12      ;;=4^S02.112S
 +13      ;;^UTILITY(U,$J,358.3,14949,2)
 +14      ;;=^5020281
 +15      ;;^UTILITY(U,$J,358.3,14950,0)
 +16      ;;=S02.402S^^58^712^47
 +17      ;;^UTILITY(U,$J,358.3,14950,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,14950,1,3,0)
 +20      ;;=3^Zygomatic fracture, unspecified, sequela
 +21      ;;^UTILITY(U,$J,358.3,14950,1,4,0)
 +22      ;;=4^S02.402S
 +23      ;;^UTILITY(U,$J,358.3,14950,2)
 +24      ;;=^5020335
 +25      ;;^UTILITY(U,$J,358.3,14951,0)
 +26      ;;=F10.20^^58^713^1
 +27      ;;^UTILITY(U,$J,358.3,14951,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,14951,1,3,0)
 +30      ;;=3^Alcohol dependence, uncomplicated
 +31      ;;^UTILITY(U,$J,358.3,14951,1,4,0)
 +32      ;;=4^F10.20
 +33      ;;^UTILITY(U,$J,358.3,14951,2)
 +34      ;;=^5003081
 +35      ;;^UTILITY(U,$J,358.3,14952,0)
 +36      ;;=F31.10^^58^713^2
 +37      ;;^UTILITY(U,$J,358.3,14952,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,14952,1,3,0)
 +40      ;;=3^Bipolar disord, crnt episode manic w/o psych features, unsp
 +41      ;;^UTILITY(U,$J,358.3,14952,1,4,0)
 +42      ;;=4^F31.10
 +43      ;;^UTILITY(U,$J,358.3,14952,2)
 +44      ;;=^5003495
 +45      ;;^UTILITY(U,$J,358.3,14953,0)
 +46      ;;=F32.9^^58^713^14
 +47      ;;^UTILITY(U,$J,358.3,14953,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,14953,1,3,0)
 +50      ;;=3^MDD,Single Episode,Unspec
 +51      ;;^UTILITY(U,$J,358.3,14953,1,4,0)
 +52      ;;=4^F32.9
 +53      ;;^UTILITY(U,$J,358.3,14953,2)
 +54      ;;=^5003528
 +55      ;;^UTILITY(U,$J,358.3,14954,0)
 +56      ;;=F20.0^^58^713^15
 +57      ;;^UTILITY(U,$J,358.3,14954,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,14954,1,3,0)
 +60      ;;=3^Paranoid schizophrenia
 +61      ;;^UTILITY(U,$J,358.3,14954,1,4,0)
 +62      ;;=4^F20.0
 +63      ;;^UTILITY(U,$J,358.3,14954,2)
 +64      ;;=^5003469
 +65      ;;^UTILITY(U,$J,358.3,14955,0)
 +66      ;;=F06.0^^58^713^16
 +67      ;;^UTILITY(U,$J,358.3,14955,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,14955,1,3,0)
 +70      ;;=3^Psychotic disorder w hallucin due to known physiol condition
 +71      ;;^UTILITY(U,$J,358.3,14955,1,4,0)
 +72      ;;=4^F06.0
 +73      ;;^UTILITY(U,$J,358.3,14955,2)
 +74      ;;=^5003053
 +75      ;;^UTILITY(U,$J,358.3,14956,0)
 +76      ;;=F20.9^^58^713^20
 +77      ;;^UTILITY(U,$J,358.3,14956,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,14956,1,3,0)
 +80      ;;=3^Schizophrenia, unspecified
 +81      ;;^UTILITY(U,$J,358.3,14956,1,4,0)
 +82      ;;=4^F20.9
 +83      ;;^UTILITY(U,$J,358.3,14956,2)
 +84      ;;=^5003476
 +85      ;;^UTILITY(U,$J,358.3,14957,0)
 +86      ;;=F03.91^^58^713^3
 +87      ;;^UTILITY(U,$J,358.3,14957,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,14957,1,3,0)
 +90      ;;=3^Dementia with behavioral disturbance,Unspec
 +91      ;;^UTILITY(U,$J,358.3,14957,1,4,0)
 +92      ;;=4^F03.91
 +93      ;;^UTILITY(U,$J,358.3,14957,2)
 +94      ;;=^5133350
 +95      ;;^UTILITY(U,$J,358.3,14958,0)
 +96      ;;=F03.90^^58^713^4
 +97      ;;^UTILITY(U,$J,358.3,14958,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,14958,1,3,0)
 +100     ;;=3^Dementia without behavioral disturbance,Unspec
 +101     ;;^UTILITY(U,$J,358.3,14958,1,4,0)
 +102     ;;=4^F03.90
 +103     ;;^UTILITY(U,$J,358.3,14958,2)
 +104     ;;=^5003050
 +105     ;;^UTILITY(U,$J,358.3,14959,0)
 +106     ;;=F33.0^^58^713^6
 +107     ;;^UTILITY(U,$J,358.3,14959,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,14959,1,3,0)
 +110     ;;=3^MDD,Recurrent,Mild
 +111     ;;^UTILITY(U,$J,358.3,14959,1,4,0)
 +112     ;;=4^F33.0
 +113     ;;^UTILITY(U,$J,358.3,14959,2)
 +114     ;;=^5003529
 +115     ;;^UTILITY(U,$J,358.3,14960,0)
 +116     ;;=F33.1^^58^713^7
 +117     ;;^UTILITY(U,$J,358.3,14960,1,0)
 +118     ;;=^358.31IA^4^2
 +119     ;;^UTILITY(U,$J,358.3,14960,1,3,0)
 +120     ;;=3^MDD,Recurrent,Moderate
 +121     ;;^UTILITY(U,$J,358.3,14960,1,4,0)
 +122     ;;=4^F33.1