IBDEI0K6 ; ; 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,9077,1,4,0)
 ;;=4^M16.0
 ;;^UTILITY(U,$J,358.3,9077,2)
 ;;=^5010769
 ;;^UTILITY(U,$J,358.3,9078,0)
 ;;=M16.11^^39^407^139
 ;;^UTILITY(U,$J,358.3,9078,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9078,1,3,0)
 ;;=3^Primary Osteoarthritis of Right Hip
 ;;^UTILITY(U,$J,358.3,9078,1,4,0)
 ;;=4^M16.11
 ;;^UTILITY(U,$J,358.3,9078,2)
 ;;=^5010771
 ;;^UTILITY(U,$J,358.3,9079,0)
 ;;=M16.12^^39^407^133
 ;;^UTILITY(U,$J,358.3,9079,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9079,1,3,0)
 ;;=3^Primary Osteoarthritis of Left Hip
 ;;^UTILITY(U,$J,358.3,9079,1,4,0)
 ;;=4^M16.12
 ;;^UTILITY(U,$J,358.3,9079,2)
 ;;=^5010772
 ;;^UTILITY(U,$J,358.3,9080,0)
 ;;=M17.0^^39^407^129
 ;;^UTILITY(U,$J,358.3,9080,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9080,1,3,0)
 ;;=3^Primary Osteoarthritis of Bilateral Knees
 ;;^UTILITY(U,$J,358.3,9080,1,4,0)
 ;;=4^M17.0
 ;;^UTILITY(U,$J,358.3,9080,2)
 ;;=^5010784
 ;;^UTILITY(U,$J,358.3,9081,0)
 ;;=M17.11^^39^407^140
 ;;^UTILITY(U,$J,358.3,9081,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9081,1,3,0)
 ;;=3^Primary Osteoarthritis of Right Knee
 ;;^UTILITY(U,$J,358.3,9081,1,4,0)
 ;;=4^M17.11
 ;;^UTILITY(U,$J,358.3,9081,2)
 ;;=^5010786
 ;;^UTILITY(U,$J,358.3,9082,0)
 ;;=M17.12^^39^407^134
 ;;^UTILITY(U,$J,358.3,9082,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9082,1,3,0)
 ;;=3^Primary Osteoarthritis of Left Knee
 ;;^UTILITY(U,$J,358.3,9082,1,4,0)
 ;;=4^M17.12
 ;;^UTILITY(U,$J,358.3,9082,2)
 ;;=^5010787
 ;;^UTILITY(U,$J,358.3,9083,0)
 ;;=M18.0^^39^407^128
 ;;^UTILITY(U,$J,358.3,9083,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9083,1,3,0)
 ;;=3^Primary Osteoarthritis of Bilateral 1st Carpometacarp Jts
 ;;^UTILITY(U,$J,358.3,9083,1,4,0)
 ;;=4^M18.0
 ;;^UTILITY(U,$J,358.3,9083,2)
 ;;=^5010795
 ;;^UTILITY(U,$J,358.3,9084,0)
 ;;=M18.11^^39^407^138
 ;;^UTILITY(U,$J,358.3,9084,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9084,1,3,0)
 ;;=3^Primary Osteoarthritis of Right Hand 1st Carpometacarp Jt
 ;;^UTILITY(U,$J,358.3,9084,1,4,0)
 ;;=4^M18.11
 ;;^UTILITY(U,$J,358.3,9084,2)
 ;;=^5010797
 ;;^UTILITY(U,$J,358.3,9085,0)
 ;;=M18.12^^39^407^132
 ;;^UTILITY(U,$J,358.3,9085,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9085,1,3,0)
 ;;=3^Primary Osteoarthritis of Left Hand 1st Carpometacarp Jt
 ;;^UTILITY(U,$J,358.3,9085,1,4,0)
 ;;=4^M18.12
 ;;^UTILITY(U,$J,358.3,9085,2)
 ;;=^5010798
 ;;^UTILITY(U,$J,358.3,9086,0)
 ;;=M19.011^^39^407^141
 ;;^UTILITY(U,$J,358.3,9086,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9086,1,3,0)
 ;;=3^Primary Osteoarthritis of Right Shoulder
 ;;^UTILITY(U,$J,358.3,9086,1,4,0)
 ;;=4^M19.011
 ;;^UTILITY(U,$J,358.3,9086,2)
 ;;=^5010808
 ;;^UTILITY(U,$J,358.3,9087,0)
 ;;=M19.012^^39^407^135
 ;;^UTILITY(U,$J,358.3,9087,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9087,1,3,0)
 ;;=3^Primary Osteoarthritis of Left Shoulder
 ;;^UTILITY(U,$J,358.3,9087,1,4,0)
 ;;=4^M19.012
 ;;^UTILITY(U,$J,358.3,9087,2)
 ;;=^5010809
 ;;^UTILITY(U,$J,358.3,9088,0)
 ;;=M19.031^^39^407^142
 ;;^UTILITY(U,$J,358.3,9088,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9088,1,3,0)
 ;;=3^Primary Osteoarthritis of Right Wrist
 ;;^UTILITY(U,$J,358.3,9088,1,4,0)
 ;;=4^M19.031
 ;;^UTILITY(U,$J,358.3,9088,2)
 ;;=^5010814
 ;;^UTILITY(U,$J,358.3,9089,0)
 ;;=M19.032^^39^407^136
 ;;^UTILITY(U,$J,358.3,9089,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9089,1,3,0)
 ;;=3^Primary Osteoarthritis of Left Wrist
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0K6   3749     printed  Sep 23, 2025@19:26:15                                                                                                                                                                                                    Page 2
IBDEI0K6  ; ; 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,9077,1,4,0)
 +2       ;;=4^M16.0
 +3       ;;^UTILITY(U,$J,358.3,9077,2)
 +4       ;;=^5010769
 +5       ;;^UTILITY(U,$J,358.3,9078,0)
 +6       ;;=M16.11^^39^407^139
 +7       ;;^UTILITY(U,$J,358.3,9078,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,9078,1,3,0)
 +10      ;;=3^Primary Osteoarthritis of Right Hip
 +11      ;;^UTILITY(U,$J,358.3,9078,1,4,0)
 +12      ;;=4^M16.11
 +13      ;;^UTILITY(U,$J,358.3,9078,2)
 +14      ;;=^5010771
 +15      ;;^UTILITY(U,$J,358.3,9079,0)
 +16      ;;=M16.12^^39^407^133
 +17      ;;^UTILITY(U,$J,358.3,9079,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,9079,1,3,0)
 +20      ;;=3^Primary Osteoarthritis of Left Hip
 +21      ;;^UTILITY(U,$J,358.3,9079,1,4,0)
 +22      ;;=4^M16.12
 +23      ;;^UTILITY(U,$J,358.3,9079,2)
 +24      ;;=^5010772
 +25      ;;^UTILITY(U,$J,358.3,9080,0)
 +26      ;;=M17.0^^39^407^129
 +27      ;;^UTILITY(U,$J,358.3,9080,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,9080,1,3,0)
 +30      ;;=3^Primary Osteoarthritis of Bilateral Knees
 +31      ;;^UTILITY(U,$J,358.3,9080,1,4,0)
 +32      ;;=4^M17.0
 +33      ;;^UTILITY(U,$J,358.3,9080,2)
 +34      ;;=^5010784
 +35      ;;^UTILITY(U,$J,358.3,9081,0)
 +36      ;;=M17.11^^39^407^140
 +37      ;;^UTILITY(U,$J,358.3,9081,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,9081,1,3,0)
 +40      ;;=3^Primary Osteoarthritis of Right Knee
 +41      ;;^UTILITY(U,$J,358.3,9081,1,4,0)
 +42      ;;=4^M17.11
 +43      ;;^UTILITY(U,$J,358.3,9081,2)
 +44      ;;=^5010786
 +45      ;;^UTILITY(U,$J,358.3,9082,0)
 +46      ;;=M17.12^^39^407^134
 +47      ;;^UTILITY(U,$J,358.3,9082,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,9082,1,3,0)
 +50      ;;=3^Primary Osteoarthritis of Left Knee
 +51      ;;^UTILITY(U,$J,358.3,9082,1,4,0)
 +52      ;;=4^M17.12
 +53      ;;^UTILITY(U,$J,358.3,9082,2)
 +54      ;;=^5010787
 +55      ;;^UTILITY(U,$J,358.3,9083,0)
 +56      ;;=M18.0^^39^407^128
 +57      ;;^UTILITY(U,$J,358.3,9083,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,9083,1,3,0)
 +60      ;;=3^Primary Osteoarthritis of Bilateral 1st Carpometacarp Jts
 +61      ;;^UTILITY(U,$J,358.3,9083,1,4,0)
 +62      ;;=4^M18.0
 +63      ;;^UTILITY(U,$J,358.3,9083,2)
 +64      ;;=^5010795
 +65      ;;^UTILITY(U,$J,358.3,9084,0)
 +66      ;;=M18.11^^39^407^138
 +67      ;;^UTILITY(U,$J,358.3,9084,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,9084,1,3,0)
 +70      ;;=3^Primary Osteoarthritis of Right Hand 1st Carpometacarp Jt
 +71      ;;^UTILITY(U,$J,358.3,9084,1,4,0)
 +72      ;;=4^M18.11
 +73      ;;^UTILITY(U,$J,358.3,9084,2)
 +74      ;;=^5010797
 +75      ;;^UTILITY(U,$J,358.3,9085,0)
 +76      ;;=M18.12^^39^407^132
 +77      ;;^UTILITY(U,$J,358.3,9085,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,9085,1,3,0)
 +80      ;;=3^Primary Osteoarthritis of Left Hand 1st Carpometacarp Jt
 +81      ;;^UTILITY(U,$J,358.3,9085,1,4,0)
 +82      ;;=4^M18.12
 +83      ;;^UTILITY(U,$J,358.3,9085,2)
 +84      ;;=^5010798
 +85      ;;^UTILITY(U,$J,358.3,9086,0)
 +86      ;;=M19.011^^39^407^141
 +87      ;;^UTILITY(U,$J,358.3,9086,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,9086,1,3,0)
 +90      ;;=3^Primary Osteoarthritis of Right Shoulder
 +91      ;;^UTILITY(U,$J,358.3,9086,1,4,0)
 +92      ;;=4^M19.011
 +93      ;;^UTILITY(U,$J,358.3,9086,2)
 +94      ;;=^5010808
 +95      ;;^UTILITY(U,$J,358.3,9087,0)
 +96      ;;=M19.012^^39^407^135
 +97      ;;^UTILITY(U,$J,358.3,9087,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,9087,1,3,0)
 +100     ;;=3^Primary Osteoarthritis of Left Shoulder
 +101     ;;^UTILITY(U,$J,358.3,9087,1,4,0)
 +102     ;;=4^M19.012
 +103     ;;^UTILITY(U,$J,358.3,9087,2)
 +104     ;;=^5010809
 +105     ;;^UTILITY(U,$J,358.3,9088,0)
 +106     ;;=M19.031^^39^407^142
 +107     ;;^UTILITY(U,$J,358.3,9088,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,9088,1,3,0)
 +110     ;;=3^Primary Osteoarthritis of Right Wrist
 +111     ;;^UTILITY(U,$J,358.3,9088,1,4,0)
 +112     ;;=4^M19.031
 +113     ;;^UTILITY(U,$J,358.3,9088,2)
 +114     ;;=^5010814
 +115     ;;^UTILITY(U,$J,358.3,9089,0)
 +116     ;;=M19.032^^39^407^136
 +117     ;;^UTILITY(U,$J,358.3,9089,1,0)
 +118     ;;=^358.31IA^4^2
 +119     ;;^UTILITY(U,$J,358.3,9089,1,3,0)
 +120     ;;=3^Primary Osteoarthritis of Left Wrist