IBDEI0JN ; ; 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,8839,0)
 ;;=Z83.41^^39^402^36
 ;;^UTILITY(U,$J,358.3,8839,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8839,1,3,0)
 ;;=3^Family Hx of Mult Endocrine Neoplasia Syndrome
 ;;^UTILITY(U,$J,358.3,8839,1,4,0)
 ;;=4^Z83.41
 ;;^UTILITY(U,$J,358.3,8839,2)
 ;;=^5063380
 ;;^UTILITY(U,$J,358.3,8840,0)
 ;;=Z81.8^^39^402^43
 ;;^UTILITY(U,$J,358.3,8840,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8840,1,3,0)
 ;;=3^Family Hx of Substance Abuse/Dependence,Psychoactive
 ;;^UTILITY(U,$J,358.3,8840,1,4,0)
 ;;=4^Z81.8
 ;;^UTILITY(U,$J,358.3,8840,2)
 ;;=^5063363
 ;;^UTILITY(U,$J,358.3,8841,0)
 ;;=Z81.4^^39^402^44
 ;;^UTILITY(U,$J,358.3,8841,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8841,1,3,0)
 ;;=3^Family Hx of Substance Abuse/Dependence NEC
 ;;^UTILITY(U,$J,358.3,8841,1,4,0)
 ;;=4^Z81.4
 ;;^UTILITY(U,$J,358.3,8841,2)
 ;;=^5063362
 ;;^UTILITY(U,$J,358.3,8842,0)
 ;;=Z98.0^^39^402^55
 ;;^UTILITY(U,$J,358.3,8842,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8842,1,3,0)
 ;;=3^Intestinal Bypass/Anastomosis Status
 ;;^UTILITY(U,$J,358.3,8842,1,4,0)
 ;;=4^Z98.0
 ;;^UTILITY(U,$J,358.3,8842,2)
 ;;=^5063733
 ;;^UTILITY(U,$J,358.3,8843,0)
 ;;=Z91.128^^39^402^54
 ;;^UTILITY(U,$J,358.3,8843,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8843,1,3,0)
 ;;=3^Intentional Underdose of Meds d/t Other Reasons
 ;;^UTILITY(U,$J,358.3,8843,1,4,0)
 ;;=4^Z91.128
 ;;^UTILITY(U,$J,358.3,8843,2)
 ;;=^5063613
 ;;^UTILITY(U,$J,358.3,8844,0)
 ;;=Z77.120^^39^402^60
 ;;^UTILITY(U,$J,358.3,8844,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8844,1,3,0)
 ;;=3^Mold (Toxic) Contact/Exposure
 ;;^UTILITY(U,$J,358.3,8844,1,4,0)
 ;;=4^Z77.120
 ;;^UTILITY(U,$J,358.3,8844,2)
 ;;=^5063318
 ;;^UTILITY(U,$J,358.3,8845,0)
 ;;=Z86.74^^39^402^103
 ;;^UTILITY(U,$J,358.3,8845,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8845,1,3,0)
 ;;=3^Personal Hx of Sudden Cardiac Arrest 
 ;;^UTILITY(U,$J,358.3,8845,1,4,0)
 ;;=4^Z86.74
 ;;^UTILITY(U,$J,358.3,8845,2)
 ;;=^5063478
 ;;^UTILITY(U,$J,358.3,8846,0)
 ;;=Z86.718^^39^402^111
 ;;^UTILITY(U,$J,358.3,8846,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8846,1,3,0)
 ;;=3^Personal Hx of Venous Thrombosis/Embolism (DVT)
 ;;^UTILITY(U,$J,358.3,8846,1,4,0)
 ;;=4^Z86.718
 ;;^UTILITY(U,$J,358.3,8846,2)
 ;;=^5063475
 ;;^UTILITY(U,$J,358.3,8847,0)
 ;;=Z96.1^^39^402^133
 ;;^UTILITY(U,$J,358.3,8847,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8847,1,3,0)
 ;;=3^Presence of Intraocular Lens
 ;;^UTILITY(U,$J,358.3,8847,1,4,0)
 ;;=4^Z96.1
 ;;^UTILITY(U,$J,358.3,8847,2)
 ;;=^5063682
 ;;^UTILITY(U,$J,358.3,8848,0)
 ;;=Z96.612^^39^402^138
 ;;^UTILITY(U,$J,358.3,8848,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8848,1,3,0)
 ;;=3^Presence of Left Artificial Shoulder Joint
 ;;^UTILITY(U,$J,358.3,8848,1,4,0)
 ;;=4^Z96.612
 ;;^UTILITY(U,$J,358.3,8848,2)
 ;;=^5063693
 ;;^UTILITY(U,$J,358.3,8849,0)
 ;;=Z96.611^^39^402^143
 ;;^UTILITY(U,$J,358.3,8849,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8849,1,3,0)
 ;;=3^Presence of Right Artificial Shoulder Joint
 ;;^UTILITY(U,$J,358.3,8849,1,4,0)
 ;;=4^Z96.611
 ;;^UTILITY(U,$J,358.3,8849,2)
 ;;=^5063692
 ;;^UTILITY(U,$J,358.3,8850,0)
 ;;=Z93.0^^39^402^151
 ;;^UTILITY(U,$J,358.3,8850,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,8850,1,3,0)
 ;;=3^Tracheostomy Status
 ;;^UTILITY(U,$J,358.3,8850,1,4,0)
 ;;=4^Z93.0
 ;;^UTILITY(U,$J,358.3,8850,2)
 ;;=^5063642
 ;;^UTILITY(U,$J,358.3,8851,0)
 ;;=Z99.3^^39^402^156
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0JN   3762     printed  Sep 23, 2025@19:25:58                                                                                                                                                                                                    Page 2
IBDEI0JN  ; ; 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,8839,0)
 +2       ;;=Z83.41^^39^402^36
 +3       ;;^UTILITY(U,$J,358.3,8839,1,0)
 +4       ;;=^358.31IA^4^2
 +5       ;;^UTILITY(U,$J,358.3,8839,1,3,0)
 +6       ;;=3^Family Hx of Mult Endocrine Neoplasia Syndrome
 +7       ;;^UTILITY(U,$J,358.3,8839,1,4,0)
 +8       ;;=4^Z83.41
 +9       ;;^UTILITY(U,$J,358.3,8839,2)
 +10      ;;=^5063380
 +11      ;;^UTILITY(U,$J,358.3,8840,0)
 +12      ;;=Z81.8^^39^402^43
 +13      ;;^UTILITY(U,$J,358.3,8840,1,0)
 +14      ;;=^358.31IA^4^2
 +15      ;;^UTILITY(U,$J,358.3,8840,1,3,0)
 +16      ;;=3^Family Hx of Substance Abuse/Dependence,Psychoactive
 +17      ;;^UTILITY(U,$J,358.3,8840,1,4,0)
 +18      ;;=4^Z81.8
 +19      ;;^UTILITY(U,$J,358.3,8840,2)
 +20      ;;=^5063363
 +21      ;;^UTILITY(U,$J,358.3,8841,0)
 +22      ;;=Z81.4^^39^402^44
 +23      ;;^UTILITY(U,$J,358.3,8841,1,0)
 +24      ;;=^358.31IA^4^2
 +25      ;;^UTILITY(U,$J,358.3,8841,1,3,0)
 +26      ;;=3^Family Hx of Substance Abuse/Dependence NEC
 +27      ;;^UTILITY(U,$J,358.3,8841,1,4,0)
 +28      ;;=4^Z81.4
 +29      ;;^UTILITY(U,$J,358.3,8841,2)
 +30      ;;=^5063362
 +31      ;;^UTILITY(U,$J,358.3,8842,0)
 +32      ;;=Z98.0^^39^402^55
 +33      ;;^UTILITY(U,$J,358.3,8842,1,0)
 +34      ;;=^358.31IA^4^2
 +35      ;;^UTILITY(U,$J,358.3,8842,1,3,0)
 +36      ;;=3^Intestinal Bypass/Anastomosis Status
 +37      ;;^UTILITY(U,$J,358.3,8842,1,4,0)
 +38      ;;=4^Z98.0
 +39      ;;^UTILITY(U,$J,358.3,8842,2)
 +40      ;;=^5063733
 +41      ;;^UTILITY(U,$J,358.3,8843,0)
 +42      ;;=Z91.128^^39^402^54
 +43      ;;^UTILITY(U,$J,358.3,8843,1,0)
 +44      ;;=^358.31IA^4^2
 +45      ;;^UTILITY(U,$J,358.3,8843,1,3,0)
 +46      ;;=3^Intentional Underdose of Meds d/t Other Reasons
 +47      ;;^UTILITY(U,$J,358.3,8843,1,4,0)
 +48      ;;=4^Z91.128
 +49      ;;^UTILITY(U,$J,358.3,8843,2)
 +50      ;;=^5063613
 +51      ;;^UTILITY(U,$J,358.3,8844,0)
 +52      ;;=Z77.120^^39^402^60
 +53      ;;^UTILITY(U,$J,358.3,8844,1,0)
 +54      ;;=^358.31IA^4^2
 +55      ;;^UTILITY(U,$J,358.3,8844,1,3,0)
 +56      ;;=3^Mold (Toxic) Contact/Exposure
 +57      ;;^UTILITY(U,$J,358.3,8844,1,4,0)
 +58      ;;=4^Z77.120
 +59      ;;^UTILITY(U,$J,358.3,8844,2)
 +60      ;;=^5063318
 +61      ;;^UTILITY(U,$J,358.3,8845,0)
 +62      ;;=Z86.74^^39^402^103
 +63      ;;^UTILITY(U,$J,358.3,8845,1,0)
 +64      ;;=^358.31IA^4^2
 +65      ;;^UTILITY(U,$J,358.3,8845,1,3,0)
 +66      ;;=3^Personal Hx of Sudden Cardiac Arrest 
 +67      ;;^UTILITY(U,$J,358.3,8845,1,4,0)
 +68      ;;=4^Z86.74
 +69      ;;^UTILITY(U,$J,358.3,8845,2)
 +70      ;;=^5063478
 +71      ;;^UTILITY(U,$J,358.3,8846,0)
 +72      ;;=Z86.718^^39^402^111
 +73      ;;^UTILITY(U,$J,358.3,8846,1,0)
 +74      ;;=^358.31IA^4^2
 +75      ;;^UTILITY(U,$J,358.3,8846,1,3,0)
 +76      ;;=3^Personal Hx of Venous Thrombosis/Embolism (DVT)
 +77      ;;^UTILITY(U,$J,358.3,8846,1,4,0)
 +78      ;;=4^Z86.718
 +79      ;;^UTILITY(U,$J,358.3,8846,2)
 +80      ;;=^5063475
 +81      ;;^UTILITY(U,$J,358.3,8847,0)
 +82      ;;=Z96.1^^39^402^133
 +83      ;;^UTILITY(U,$J,358.3,8847,1,0)
 +84      ;;=^358.31IA^4^2
 +85      ;;^UTILITY(U,$J,358.3,8847,1,3,0)
 +86      ;;=3^Presence of Intraocular Lens
 +87      ;;^UTILITY(U,$J,358.3,8847,1,4,0)
 +88      ;;=4^Z96.1
 +89      ;;^UTILITY(U,$J,358.3,8847,2)
 +90      ;;=^5063682
 +91      ;;^UTILITY(U,$J,358.3,8848,0)
 +92      ;;=Z96.612^^39^402^138
 +93      ;;^UTILITY(U,$J,358.3,8848,1,0)
 +94      ;;=^358.31IA^4^2
 +95      ;;^UTILITY(U,$J,358.3,8848,1,3,0)
 +96      ;;=3^Presence of Left Artificial Shoulder Joint
 +97      ;;^UTILITY(U,$J,358.3,8848,1,4,0)
 +98      ;;=4^Z96.612
 +99      ;;^UTILITY(U,$J,358.3,8848,2)
 +100     ;;=^5063693
 +101     ;;^UTILITY(U,$J,358.3,8849,0)
 +102     ;;=Z96.611^^39^402^143
 +103     ;;^UTILITY(U,$J,358.3,8849,1,0)
 +104     ;;=^358.31IA^4^2
 +105     ;;^UTILITY(U,$J,358.3,8849,1,3,0)
 +106     ;;=3^Presence of Right Artificial Shoulder Joint
 +107     ;;^UTILITY(U,$J,358.3,8849,1,4,0)
 +108     ;;=4^Z96.611
 +109     ;;^UTILITY(U,$J,358.3,8849,2)
 +110     ;;=^5063692
 +111     ;;^UTILITY(U,$J,358.3,8850,0)
 +112     ;;=Z93.0^^39^402^151
 +113     ;;^UTILITY(U,$J,358.3,8850,1,0)
 +114     ;;=^358.31IA^4^2
 +115     ;;^UTILITY(U,$J,358.3,8850,1,3,0)
 +116     ;;=3^Tracheostomy Status
 +117     ;;^UTILITY(U,$J,358.3,8850,1,4,0)
 +118     ;;=4^Z93.0
 +119     ;;^UTILITY(U,$J,358.3,8850,2)
 +120     ;;=^5063642
 +121     ;;^UTILITY(U,$J,358.3,8851,0)
 +122     ;;=Z99.3^^39^402^156