IBDEI0XL ; ; 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,15135,2)
 ;;=^5063710
 ;;^UTILITY(U,$J,358.3,15136,0)
 ;;=Z96.622^^58^716^3
 ;;^UTILITY(U,$J,358.3,15136,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15136,1,3,0)
 ;;=3^Presence of left artificial elbow joint
 ;;^UTILITY(U,$J,358.3,15136,1,4,0)
 ;;=4^Z96.622
 ;;^UTILITY(U,$J,358.3,15136,2)
 ;;=^5063696
 ;;^UTILITY(U,$J,358.3,15137,0)
 ;;=Z96.642^^58^716^4
 ;;^UTILITY(U,$J,358.3,15137,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15137,1,3,0)
 ;;=3^Presence of left artificial hip joint
 ;;^UTILITY(U,$J,358.3,15137,1,4,0)
 ;;=4^Z96.642
 ;;^UTILITY(U,$J,358.3,15137,2)
 ;;=^5063702
 ;;^UTILITY(U,$J,358.3,15138,0)
 ;;=Z96.652^^58^716^5
 ;;^UTILITY(U,$J,358.3,15138,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15138,1,3,0)
 ;;=3^Presence of left artificial knee joint
 ;;^UTILITY(U,$J,358.3,15138,1,4,0)
 ;;=4^Z96.652
 ;;^UTILITY(U,$J,358.3,15138,2)
 ;;=^5063706
 ;;^UTILITY(U,$J,358.3,15139,0)
 ;;=Z96.612^^58^716^6
 ;;^UTILITY(U,$J,358.3,15139,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15139,1,3,0)
 ;;=3^Presence of left artificial shoulder joint
 ;;^UTILITY(U,$J,358.3,15139,1,4,0)
 ;;=4^Z96.612
 ;;^UTILITY(U,$J,358.3,15139,2)
 ;;=^5063693
 ;;^UTILITY(U,$J,358.3,15140,0)
 ;;=Z96.632^^58^716^7
 ;;^UTILITY(U,$J,358.3,15140,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15140,1,3,0)
 ;;=3^Presence of left artificial wrist joint
 ;;^UTILITY(U,$J,358.3,15140,1,4,0)
 ;;=4^Z96.632
 ;;^UTILITY(U,$J,358.3,15140,2)
 ;;=^5063699
 ;;^UTILITY(U,$J,358.3,15141,0)
 ;;=Z96.60^^58^716^14
 ;;^UTILITY(U,$J,358.3,15141,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15141,1,3,0)
 ;;=3^Presence of unspecified orthopedic joint implant
 ;;^UTILITY(U,$J,358.3,15141,1,4,0)
 ;;=4^Z96.60
 ;;^UTILITY(U,$J,358.3,15141,2)
 ;;=^5063691
 ;;^UTILITY(U,$J,358.3,15142,0)
 ;;=Z96.661^^58^716^8
 ;;^UTILITY(U,$J,358.3,15142,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15142,1,3,0)
 ;;=3^Presence of right artificial ankle joint
 ;;^UTILITY(U,$J,358.3,15142,1,4,0)
 ;;=4^Z96.661
 ;;^UTILITY(U,$J,358.3,15142,2)
 ;;=^5063709
 ;;^UTILITY(U,$J,358.3,15143,0)
 ;;=Z96.621^^58^716^9
 ;;^UTILITY(U,$J,358.3,15143,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15143,1,3,0)
 ;;=3^Presence of right artificial elbow joint
 ;;^UTILITY(U,$J,358.3,15143,1,4,0)
 ;;=4^Z96.621
 ;;^UTILITY(U,$J,358.3,15143,2)
 ;;=^5063695
 ;;^UTILITY(U,$J,358.3,15144,0)
 ;;=Z96.641^^58^716^10
 ;;^UTILITY(U,$J,358.3,15144,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15144,1,3,0)
 ;;=3^Presence of right artificial hip joint
 ;;^UTILITY(U,$J,358.3,15144,1,4,0)
 ;;=4^Z96.641
 ;;^UTILITY(U,$J,358.3,15144,2)
 ;;=^5063701
 ;;^UTILITY(U,$J,358.3,15145,0)
 ;;=Z96.651^^58^716^11
 ;;^UTILITY(U,$J,358.3,15145,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15145,1,3,0)
 ;;=3^Presence of right artificial knee joint
 ;;^UTILITY(U,$J,358.3,15145,1,4,0)
 ;;=4^Z96.651
 ;;^UTILITY(U,$J,358.3,15145,2)
 ;;=^5063705
 ;;^UTILITY(U,$J,358.3,15146,0)
 ;;=Z96.611^^58^716^12
 ;;^UTILITY(U,$J,358.3,15146,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15146,1,3,0)
 ;;=3^Presence of right artificial shoulder joint
 ;;^UTILITY(U,$J,358.3,15146,1,4,0)
 ;;=4^Z96.611
 ;;^UTILITY(U,$J,358.3,15146,2)
 ;;=^5063692
 ;;^UTILITY(U,$J,358.3,15147,0)
 ;;=Z96.631^^58^716^13
 ;;^UTILITY(U,$J,358.3,15147,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,15147,1,3,0)
 ;;=3^Presence of right artificial wrist joint
 ;;^UTILITY(U,$J,358.3,15147,1,4,0)
 ;;=4^Z96.631
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0XL   3790     printed  Sep 23, 2025@19:33:43                                                                                                                                                                                                    Page 2
IBDEI0XL  ; ; 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,15135,2)
 +2       ;;=^5063710
 +3       ;;^UTILITY(U,$J,358.3,15136,0)
 +4       ;;=Z96.622^^58^716^3
 +5       ;;^UTILITY(U,$J,358.3,15136,1,0)
 +6       ;;=^358.31IA^4^2
 +7       ;;^UTILITY(U,$J,358.3,15136,1,3,0)
 +8       ;;=3^Presence of left artificial elbow joint
 +9       ;;^UTILITY(U,$J,358.3,15136,1,4,0)
 +10      ;;=4^Z96.622
 +11      ;;^UTILITY(U,$J,358.3,15136,2)
 +12      ;;=^5063696
 +13      ;;^UTILITY(U,$J,358.3,15137,0)
 +14      ;;=Z96.642^^58^716^4
 +15      ;;^UTILITY(U,$J,358.3,15137,1,0)
 +16      ;;=^358.31IA^4^2
 +17      ;;^UTILITY(U,$J,358.3,15137,1,3,0)
 +18      ;;=3^Presence of left artificial hip joint
 +19      ;;^UTILITY(U,$J,358.3,15137,1,4,0)
 +20      ;;=4^Z96.642
 +21      ;;^UTILITY(U,$J,358.3,15137,2)
 +22      ;;=^5063702
 +23      ;;^UTILITY(U,$J,358.3,15138,0)
 +24      ;;=Z96.652^^58^716^5
 +25      ;;^UTILITY(U,$J,358.3,15138,1,0)
 +26      ;;=^358.31IA^4^2
 +27      ;;^UTILITY(U,$J,358.3,15138,1,3,0)
 +28      ;;=3^Presence of left artificial knee joint
 +29      ;;^UTILITY(U,$J,358.3,15138,1,4,0)
 +30      ;;=4^Z96.652
 +31      ;;^UTILITY(U,$J,358.3,15138,2)
 +32      ;;=^5063706
 +33      ;;^UTILITY(U,$J,358.3,15139,0)
 +34      ;;=Z96.612^^58^716^6
 +35      ;;^UTILITY(U,$J,358.3,15139,1,0)
 +36      ;;=^358.31IA^4^2
 +37      ;;^UTILITY(U,$J,358.3,15139,1,3,0)
 +38      ;;=3^Presence of left artificial shoulder joint
 +39      ;;^UTILITY(U,$J,358.3,15139,1,4,0)
 +40      ;;=4^Z96.612
 +41      ;;^UTILITY(U,$J,358.3,15139,2)
 +42      ;;=^5063693
 +43      ;;^UTILITY(U,$J,358.3,15140,0)
 +44      ;;=Z96.632^^58^716^7
 +45      ;;^UTILITY(U,$J,358.3,15140,1,0)
 +46      ;;=^358.31IA^4^2
 +47      ;;^UTILITY(U,$J,358.3,15140,1,3,0)
 +48      ;;=3^Presence of left artificial wrist joint
 +49      ;;^UTILITY(U,$J,358.3,15140,1,4,0)
 +50      ;;=4^Z96.632
 +51      ;;^UTILITY(U,$J,358.3,15140,2)
 +52      ;;=^5063699
 +53      ;;^UTILITY(U,$J,358.3,15141,0)
 +54      ;;=Z96.60^^58^716^14
 +55      ;;^UTILITY(U,$J,358.3,15141,1,0)
 +56      ;;=^358.31IA^4^2
 +57      ;;^UTILITY(U,$J,358.3,15141,1,3,0)
 +58      ;;=3^Presence of unspecified orthopedic joint implant
 +59      ;;^UTILITY(U,$J,358.3,15141,1,4,0)
 +60      ;;=4^Z96.60
 +61      ;;^UTILITY(U,$J,358.3,15141,2)
 +62      ;;=^5063691
 +63      ;;^UTILITY(U,$J,358.3,15142,0)
 +64      ;;=Z96.661^^58^716^8
 +65      ;;^UTILITY(U,$J,358.3,15142,1,0)
 +66      ;;=^358.31IA^4^2
 +67      ;;^UTILITY(U,$J,358.3,15142,1,3,0)
 +68      ;;=3^Presence of right artificial ankle joint
 +69      ;;^UTILITY(U,$J,358.3,15142,1,4,0)
 +70      ;;=4^Z96.661
 +71      ;;^UTILITY(U,$J,358.3,15142,2)
 +72      ;;=^5063709
 +73      ;;^UTILITY(U,$J,358.3,15143,0)
 +74      ;;=Z96.621^^58^716^9
 +75      ;;^UTILITY(U,$J,358.3,15143,1,0)
 +76      ;;=^358.31IA^4^2
 +77      ;;^UTILITY(U,$J,358.3,15143,1,3,0)
 +78      ;;=3^Presence of right artificial elbow joint
 +79      ;;^UTILITY(U,$J,358.3,15143,1,4,0)
 +80      ;;=4^Z96.621
 +81      ;;^UTILITY(U,$J,358.3,15143,2)
 +82      ;;=^5063695
 +83      ;;^UTILITY(U,$J,358.3,15144,0)
 +84      ;;=Z96.641^^58^716^10
 +85      ;;^UTILITY(U,$J,358.3,15144,1,0)
 +86      ;;=^358.31IA^4^2
 +87      ;;^UTILITY(U,$J,358.3,15144,1,3,0)
 +88      ;;=3^Presence of right artificial hip joint
 +89      ;;^UTILITY(U,$J,358.3,15144,1,4,0)
 +90      ;;=4^Z96.641
 +91      ;;^UTILITY(U,$J,358.3,15144,2)
 +92      ;;=^5063701
 +93      ;;^UTILITY(U,$J,358.3,15145,0)
 +94      ;;=Z96.651^^58^716^11
 +95      ;;^UTILITY(U,$J,358.3,15145,1,0)
 +96      ;;=^358.31IA^4^2
 +97      ;;^UTILITY(U,$J,358.3,15145,1,3,0)
 +98      ;;=3^Presence of right artificial knee joint
 +99      ;;^UTILITY(U,$J,358.3,15145,1,4,0)
 +100     ;;=4^Z96.651
 +101     ;;^UTILITY(U,$J,358.3,15145,2)
 +102     ;;=^5063705
 +103     ;;^UTILITY(U,$J,358.3,15146,0)
 +104     ;;=Z96.611^^58^716^12
 +105     ;;^UTILITY(U,$J,358.3,15146,1,0)
 +106     ;;=^358.31IA^4^2
 +107     ;;^UTILITY(U,$J,358.3,15146,1,3,0)
 +108     ;;=3^Presence of right artificial shoulder joint
 +109     ;;^UTILITY(U,$J,358.3,15146,1,4,0)
 +110     ;;=4^Z96.611
 +111     ;;^UTILITY(U,$J,358.3,15146,2)
 +112     ;;=^5063692
 +113     ;;^UTILITY(U,$J,358.3,15147,0)
 +114     ;;=Z96.631^^58^716^13
 +115     ;;^UTILITY(U,$J,358.3,15147,1,0)
 +116     ;;=^358.31IA^4^2
 +117     ;;^UTILITY(U,$J,358.3,15147,1,3,0)
 +118     ;;=3^Presence of right artificial wrist joint
 +119     ;;^UTILITY(U,$J,358.3,15147,1,4,0)
 +120     ;;=4^Z96.631