IBDEI2M3 ; ; 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,41708,1,3,0)
 ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, init
 ;;^UTILITY(U,$J,358.3,41708,1,4,0)
 ;;=4^T84.83XA
 ;;^UTILITY(U,$J,358.3,41708,2)
 ;;=^5055460
 ;;^UTILITY(U,$J,358.3,41709,0)
 ;;=T84.83XD^^155^2063^11
 ;;^UTILITY(U,$J,358.3,41709,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41709,1,3,0)
 ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, subs
 ;;^UTILITY(U,$J,358.3,41709,1,4,0)
 ;;=4^T84.83XD
 ;;^UTILITY(U,$J,358.3,41709,2)
 ;;=^5055461
 ;;^UTILITY(U,$J,358.3,41710,0)
 ;;=T84.83XS^^155^2063^12
 ;;^UTILITY(U,$J,358.3,41710,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41710,1,3,0)
 ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, sequela
 ;;^UTILITY(U,$J,358.3,41710,1,4,0)
 ;;=4^T84.83XS
 ;;^UTILITY(U,$J,358.3,41710,2)
 ;;=^5055462
 ;;^UTILITY(U,$J,358.3,41711,0)
 ;;=T84.89XA^^155^2063^1
 ;;^UTILITY(U,$J,358.3,41711,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41711,1,3,0)
 ;;=3^Comp of internal orthopedic prosth dev/grft, init
 ;;^UTILITY(U,$J,358.3,41711,1,4,0)
 ;;=4^T84.89XA
 ;;^UTILITY(U,$J,358.3,41711,2)
 ;;=^5055472
 ;;^UTILITY(U,$J,358.3,41712,0)
 ;;=T84.89XD^^155^2063^2
 ;;^UTILITY(U,$J,358.3,41712,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41712,1,3,0)
 ;;=3^Comp of internal orthopedic prosth dev/grft, subs
 ;;^UTILITY(U,$J,358.3,41712,1,4,0)
 ;;=4^T84.89XD
 ;;^UTILITY(U,$J,358.3,41712,2)
 ;;=^5055473
 ;;^UTILITY(U,$J,358.3,41713,0)
 ;;=T84.89XS^^155^2063^3
 ;;^UTILITY(U,$J,358.3,41713,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41713,1,3,0)
 ;;=3^Comp of internal orthopedic prosth dev/grft, sequela
 ;;^UTILITY(U,$J,358.3,41713,1,4,0)
 ;;=4^T84.89XS
 ;;^UTILITY(U,$J,358.3,41713,2)
 ;;=^5055474
 ;;^UTILITY(U,$J,358.3,41714,0)
 ;;=T84.84XA^^155^2063^13
 ;;^UTILITY(U,$J,358.3,41714,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41714,1,3,0)
 ;;=3^Pain due to internal orthopedic prosth dev/grft, init
 ;;^UTILITY(U,$J,358.3,41714,1,4,0)
 ;;=4^T84.84XA
 ;;^UTILITY(U,$J,358.3,41714,2)
 ;;=^5055463
 ;;^UTILITY(U,$J,358.3,41715,0)
 ;;=T84.84XD^^155^2063^14
 ;;^UTILITY(U,$J,358.3,41715,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41715,1,3,0)
 ;;=3^Pain due to internal orthopedic prosth dev/grft, subs
 ;;^UTILITY(U,$J,358.3,41715,1,4,0)
 ;;=4^T84.84XD
 ;;^UTILITY(U,$J,358.3,41715,2)
 ;;=^5055464
 ;;^UTILITY(U,$J,358.3,41716,0)
 ;;=T84.84XS^^155^2063^15
 ;;^UTILITY(U,$J,358.3,41716,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41716,1,3,0)
 ;;=3^Pain due to internal orthopedic prosth dev/grft, sequela
 ;;^UTILITY(U,$J,358.3,41716,1,4,0)
 ;;=4^T84.84XS
 ;;^UTILITY(U,$J,358.3,41716,2)
 ;;=^5055465
 ;;^UTILITY(U,$J,358.3,41717,0)
 ;;=T84.85XA^^155^2063^16
 ;;^UTILITY(U,$J,358.3,41717,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41717,1,3,0)
 ;;=3^Stenosis due to internal orthopedic prosth dev/grft, init
 ;;^UTILITY(U,$J,358.3,41717,1,4,0)
 ;;=4^T84.85XA
 ;;^UTILITY(U,$J,358.3,41717,2)
 ;;=^5055466
 ;;^UTILITY(U,$J,358.3,41718,0)
 ;;=T84.85XD^^155^2063^17
 ;;^UTILITY(U,$J,358.3,41718,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41718,1,3,0)
 ;;=3^Stenosis due to internal orthopedic prosth dev/grft, subs
 ;;^UTILITY(U,$J,358.3,41718,1,4,0)
 ;;=4^T84.85XD
 ;;^UTILITY(U,$J,358.3,41718,2)
 ;;=^5055467
 ;;^UTILITY(U,$J,358.3,41719,0)
 ;;=T84.85XS^^155^2063^18
 ;;^UTILITY(U,$J,358.3,41719,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,41719,1,3,0)
 ;;=3^Stenosis due to internal orthopedic prosth dev/grft, sequela
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2M3   3813     printed  Sep 23, 2025@20:07:25                                                                                                                                                                                                    Page 2
IBDEI2M3  ; ; 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,41708,1,3,0)
 +2       ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, init
 +3       ;;^UTILITY(U,$J,358.3,41708,1,4,0)
 +4       ;;=4^T84.83XA
 +5       ;;^UTILITY(U,$J,358.3,41708,2)
 +6       ;;=^5055460
 +7       ;;^UTILITY(U,$J,358.3,41709,0)
 +8       ;;=T84.83XD^^155^2063^11
 +9       ;;^UTILITY(U,$J,358.3,41709,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,41709,1,3,0)
 +12      ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, subs
 +13      ;;^UTILITY(U,$J,358.3,41709,1,4,0)
 +14      ;;=4^T84.83XD
 +15      ;;^UTILITY(U,$J,358.3,41709,2)
 +16      ;;=^5055461
 +17      ;;^UTILITY(U,$J,358.3,41710,0)
 +18      ;;=T84.83XS^^155^2063^12
 +19      ;;^UTILITY(U,$J,358.3,41710,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,41710,1,3,0)
 +22      ;;=3^Hemorrhage due to internal orthopedic prosth dev/grft, sequela
 +23      ;;^UTILITY(U,$J,358.3,41710,1,4,0)
 +24      ;;=4^T84.83XS
 +25      ;;^UTILITY(U,$J,358.3,41710,2)
 +26      ;;=^5055462
 +27      ;;^UTILITY(U,$J,358.3,41711,0)
 +28      ;;=T84.89XA^^155^2063^1
 +29      ;;^UTILITY(U,$J,358.3,41711,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,41711,1,3,0)
 +32      ;;=3^Comp of internal orthopedic prosth dev/grft, init
 +33      ;;^UTILITY(U,$J,358.3,41711,1,4,0)
 +34      ;;=4^T84.89XA
 +35      ;;^UTILITY(U,$J,358.3,41711,2)
 +36      ;;=^5055472
 +37      ;;^UTILITY(U,$J,358.3,41712,0)
 +38      ;;=T84.89XD^^155^2063^2
 +39      ;;^UTILITY(U,$J,358.3,41712,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,41712,1,3,0)
 +42      ;;=3^Comp of internal orthopedic prosth dev/grft, subs
 +43      ;;^UTILITY(U,$J,358.3,41712,1,4,0)
 +44      ;;=4^T84.89XD
 +45      ;;^UTILITY(U,$J,358.3,41712,2)
 +46      ;;=^5055473
 +47      ;;^UTILITY(U,$J,358.3,41713,0)
 +48      ;;=T84.89XS^^155^2063^3
 +49      ;;^UTILITY(U,$J,358.3,41713,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,41713,1,3,0)
 +52      ;;=3^Comp of internal orthopedic prosth dev/grft, sequela
 +53      ;;^UTILITY(U,$J,358.3,41713,1,4,0)
 +54      ;;=4^T84.89XS
 +55      ;;^UTILITY(U,$J,358.3,41713,2)
 +56      ;;=^5055474
 +57      ;;^UTILITY(U,$J,358.3,41714,0)
 +58      ;;=T84.84XA^^155^2063^13
 +59      ;;^UTILITY(U,$J,358.3,41714,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,41714,1,3,0)
 +62      ;;=3^Pain due to internal orthopedic prosth dev/grft, init
 +63      ;;^UTILITY(U,$J,358.3,41714,1,4,0)
 +64      ;;=4^T84.84XA
 +65      ;;^UTILITY(U,$J,358.3,41714,2)
 +66      ;;=^5055463
 +67      ;;^UTILITY(U,$J,358.3,41715,0)
 +68      ;;=T84.84XD^^155^2063^14
 +69      ;;^UTILITY(U,$J,358.3,41715,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,41715,1,3,0)
 +72      ;;=3^Pain due to internal orthopedic prosth dev/grft, subs
 +73      ;;^UTILITY(U,$J,358.3,41715,1,4,0)
 +74      ;;=4^T84.84XD
 +75      ;;^UTILITY(U,$J,358.3,41715,2)
 +76      ;;=^5055464
 +77      ;;^UTILITY(U,$J,358.3,41716,0)
 +78      ;;=T84.84XS^^155^2063^15
 +79      ;;^UTILITY(U,$J,358.3,41716,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,41716,1,3,0)
 +82      ;;=3^Pain due to internal orthopedic prosth dev/grft, sequela
 +83      ;;^UTILITY(U,$J,358.3,41716,1,4,0)
 +84      ;;=4^T84.84XS
 +85      ;;^UTILITY(U,$J,358.3,41716,2)
 +86      ;;=^5055465
 +87      ;;^UTILITY(U,$J,358.3,41717,0)
 +88      ;;=T84.85XA^^155^2063^16
 +89      ;;^UTILITY(U,$J,358.3,41717,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,41717,1,3,0)
 +92      ;;=3^Stenosis due to internal orthopedic prosth dev/grft, init
 +93      ;;^UTILITY(U,$J,358.3,41717,1,4,0)
 +94      ;;=4^T84.85XA
 +95      ;;^UTILITY(U,$J,358.3,41717,2)
 +96      ;;=^5055466
 +97      ;;^UTILITY(U,$J,358.3,41718,0)
 +98      ;;=T84.85XD^^155^2063^17
 +99      ;;^UTILITY(U,$J,358.3,41718,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,41718,1,3,0)
 +102     ;;=3^Stenosis due to internal orthopedic prosth dev/grft, subs
 +103     ;;^UTILITY(U,$J,358.3,41718,1,4,0)
 +104     ;;=4^T84.85XD
 +105     ;;^UTILITY(U,$J,358.3,41718,2)
 +106     ;;=^5055467
 +107     ;;^UTILITY(U,$J,358.3,41719,0)
 +108     ;;=T84.85XS^^155^2063^18
 +109     ;;^UTILITY(U,$J,358.3,41719,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,41719,1,3,0)
 +112     ;;=3^Stenosis due to internal orthopedic prosth dev/grft, sequela