IBDEI0KB ; ; 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,9138,1,4,0)
 ;;=4^M79.7
 ;;^UTILITY(U,$J,358.3,9138,2)
 ;;=^46261
 ;;^UTILITY(U,$J,358.3,9139,0)
 ;;=M80.08XA^^39^407^1
 ;;^UTILITY(U,$J,358.3,9139,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9139,1,3,0)
 ;;=3^Age-Related Osteoporosis w/ Vertebra Fx,Init Encntr
 ;;^UTILITY(U,$J,358.3,9139,1,4,0)
 ;;=4^M80.08XA
 ;;^UTILITY(U,$J,358.3,9139,2)
 ;;=^5013495
 ;;^UTILITY(U,$J,358.3,9140,0)
 ;;=M80.08XD^^39^407^2
 ;;^UTILITY(U,$J,358.3,9140,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9140,1,3,0)
 ;;=3^Age-Related Osteoporosis w/ Vertebra Fx,Subs Encntr
 ;;^UTILITY(U,$J,358.3,9140,1,4,0)
 ;;=4^M80.08XD
 ;;^UTILITY(U,$J,358.3,9140,2)
 ;;=^5013496
 ;;^UTILITY(U,$J,358.3,9141,0)
 ;;=M84.48XA^^39^407^123
 ;;^UTILITY(U,$J,358.3,9141,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9141,1,3,0)
 ;;=3^Pathological Fx,Oth Site,Init Encntr
 ;;^UTILITY(U,$J,358.3,9141,1,4,0)
 ;;=4^M84.48XA
 ;;^UTILITY(U,$J,358.3,9141,2)
 ;;=^5014016
 ;;^UTILITY(U,$J,358.3,9142,0)
 ;;=M84.48XD^^39^407^124
 ;;^UTILITY(U,$J,358.3,9142,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9142,1,3,0)
 ;;=3^Pathological Fx,Oth Site,Subs Encntr
 ;;^UTILITY(U,$J,358.3,9142,1,4,0)
 ;;=4^M84.48XD
 ;;^UTILITY(U,$J,358.3,9142,2)
 ;;=^5014017
 ;;^UTILITY(U,$J,358.3,9143,0)
 ;;=M87.011^^39^407^48
 ;;^UTILITY(U,$J,358.3,9143,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9143,1,3,0)
 ;;=3^Idiopathic Aseptic Necrosis of Right Shoulder
 ;;^UTILITY(U,$J,358.3,9143,1,4,0)
 ;;=4^M87.011
 ;;^UTILITY(U,$J,358.3,9143,2)
 ;;=^5014658
 ;;^UTILITY(U,$J,358.3,9144,0)
 ;;=M87.012^^39^407^45
 ;;^UTILITY(U,$J,358.3,9144,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9144,1,3,0)
 ;;=3^Idiopathic Aseptic Necrosis of Left Shoulder
 ;;^UTILITY(U,$J,358.3,9144,1,4,0)
 ;;=4^M87.012
 ;;^UTILITY(U,$J,358.3,9144,2)
 ;;=^5014659
 ;;^UTILITY(U,$J,358.3,9145,0)
 ;;=M87.050^^39^407^46
 ;;^UTILITY(U,$J,358.3,9145,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9145,1,3,0)
 ;;=3^Idiopathic Aseptic Necrosis of Pelvis
 ;;^UTILITY(U,$J,358.3,9145,1,4,0)
 ;;=4^M87.050
 ;;^UTILITY(U,$J,358.3,9145,2)
 ;;=^5014679
 ;;^UTILITY(U,$J,358.3,9146,0)
 ;;=M87.051^^39^407^47
 ;;^UTILITY(U,$J,358.3,9146,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9146,1,3,0)
 ;;=3^Idiopathic Aseptic Necrosis of Right Femur
 ;;^UTILITY(U,$J,358.3,9146,1,4,0)
 ;;=4^M87.051
 ;;^UTILITY(U,$J,358.3,9146,2)
 ;;=^5014680
 ;;^UTILITY(U,$J,358.3,9147,0)
 ;;=M87.052^^39^407^44
 ;;^UTILITY(U,$J,358.3,9147,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9147,1,3,0)
 ;;=3^Idiopathic Aseptic Necrosis of Left Femur
 ;;^UTILITY(U,$J,358.3,9147,1,4,0)
 ;;=4^M87.052
 ;;^UTILITY(U,$J,358.3,9147,2)
 ;;=^5014681
 ;;^UTILITY(U,$J,358.3,9148,0)
 ;;=M87.111^^39^407^78
 ;;^UTILITY(U,$J,358.3,9148,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9148,1,3,0)
 ;;=3^Osteonecrosis d/t Drugs,Right Shoulder
 ;;^UTILITY(U,$J,358.3,9148,1,4,0)
 ;;=4^M87.111
 ;;^UTILITY(U,$J,358.3,9148,2)
 ;;=^5014701
 ;;^UTILITY(U,$J,358.3,9149,0)
 ;;=M87.112^^39^407^75
 ;;^UTILITY(U,$J,358.3,9149,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9149,1,3,0)
 ;;=3^Osteonecrosis d/t Drugs,Left Shoulder
 ;;^UTILITY(U,$J,358.3,9149,1,4,0)
 ;;=4^M87.112
 ;;^UTILITY(U,$J,358.3,9149,2)
 ;;=^5014702
 ;;^UTILITY(U,$J,358.3,9150,0)
 ;;=M87.150^^39^407^76
 ;;^UTILITY(U,$J,358.3,9150,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,9150,1,3,0)
 ;;=3^Osteonecrosis d/t Drugs,Pelvis
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0KB   3748     printed  Sep 23, 2025@19:26:20                                                                                                                                                                                                    Page 2
IBDEI0KB  ; ; 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,9138,1,4,0)
 +2       ;;=4^M79.7
 +3       ;;^UTILITY(U,$J,358.3,9138,2)
 +4       ;;=^46261
 +5       ;;^UTILITY(U,$J,358.3,9139,0)
 +6       ;;=M80.08XA^^39^407^1
 +7       ;;^UTILITY(U,$J,358.3,9139,1,0)
 +8       ;;=^358.31IA^4^2
 +9       ;;^UTILITY(U,$J,358.3,9139,1,3,0)
 +10      ;;=3^Age-Related Osteoporosis w/ Vertebra Fx,Init Encntr
 +11      ;;^UTILITY(U,$J,358.3,9139,1,4,0)
 +12      ;;=4^M80.08XA
 +13      ;;^UTILITY(U,$J,358.3,9139,2)
 +14      ;;=^5013495
 +15      ;;^UTILITY(U,$J,358.3,9140,0)
 +16      ;;=M80.08XD^^39^407^2
 +17      ;;^UTILITY(U,$J,358.3,9140,1,0)
 +18      ;;=^358.31IA^4^2
 +19      ;;^UTILITY(U,$J,358.3,9140,1,3,0)
 +20      ;;=3^Age-Related Osteoporosis w/ Vertebra Fx,Subs Encntr
 +21      ;;^UTILITY(U,$J,358.3,9140,1,4,0)
 +22      ;;=4^M80.08XD
 +23      ;;^UTILITY(U,$J,358.3,9140,2)
 +24      ;;=^5013496
 +25      ;;^UTILITY(U,$J,358.3,9141,0)
 +26      ;;=M84.48XA^^39^407^123
 +27      ;;^UTILITY(U,$J,358.3,9141,1,0)
 +28      ;;=^358.31IA^4^2
 +29      ;;^UTILITY(U,$J,358.3,9141,1,3,0)
 +30      ;;=3^Pathological Fx,Oth Site,Init Encntr
 +31      ;;^UTILITY(U,$J,358.3,9141,1,4,0)
 +32      ;;=4^M84.48XA
 +33      ;;^UTILITY(U,$J,358.3,9141,2)
 +34      ;;=^5014016
 +35      ;;^UTILITY(U,$J,358.3,9142,0)
 +36      ;;=M84.48XD^^39^407^124
 +37      ;;^UTILITY(U,$J,358.3,9142,1,0)
 +38      ;;=^358.31IA^4^2
 +39      ;;^UTILITY(U,$J,358.3,9142,1,3,0)
 +40      ;;=3^Pathological Fx,Oth Site,Subs Encntr
 +41      ;;^UTILITY(U,$J,358.3,9142,1,4,0)
 +42      ;;=4^M84.48XD
 +43      ;;^UTILITY(U,$J,358.3,9142,2)
 +44      ;;=^5014017
 +45      ;;^UTILITY(U,$J,358.3,9143,0)
 +46      ;;=M87.011^^39^407^48
 +47      ;;^UTILITY(U,$J,358.3,9143,1,0)
 +48      ;;=^358.31IA^4^2
 +49      ;;^UTILITY(U,$J,358.3,9143,1,3,0)
 +50      ;;=3^Idiopathic Aseptic Necrosis of Right Shoulder
 +51      ;;^UTILITY(U,$J,358.3,9143,1,4,0)
 +52      ;;=4^M87.011
 +53      ;;^UTILITY(U,$J,358.3,9143,2)
 +54      ;;=^5014658
 +55      ;;^UTILITY(U,$J,358.3,9144,0)
 +56      ;;=M87.012^^39^407^45
 +57      ;;^UTILITY(U,$J,358.3,9144,1,0)
 +58      ;;=^358.31IA^4^2
 +59      ;;^UTILITY(U,$J,358.3,9144,1,3,0)
 +60      ;;=3^Idiopathic Aseptic Necrosis of Left Shoulder
 +61      ;;^UTILITY(U,$J,358.3,9144,1,4,0)
 +62      ;;=4^M87.012
 +63      ;;^UTILITY(U,$J,358.3,9144,2)
 +64      ;;=^5014659
 +65      ;;^UTILITY(U,$J,358.3,9145,0)
 +66      ;;=M87.050^^39^407^46
 +67      ;;^UTILITY(U,$J,358.3,9145,1,0)
 +68      ;;=^358.31IA^4^2
 +69      ;;^UTILITY(U,$J,358.3,9145,1,3,0)
 +70      ;;=3^Idiopathic Aseptic Necrosis of Pelvis
 +71      ;;^UTILITY(U,$J,358.3,9145,1,4,0)
 +72      ;;=4^M87.050
 +73      ;;^UTILITY(U,$J,358.3,9145,2)
 +74      ;;=^5014679
 +75      ;;^UTILITY(U,$J,358.3,9146,0)
 +76      ;;=M87.051^^39^407^47
 +77      ;;^UTILITY(U,$J,358.3,9146,1,0)
 +78      ;;=^358.31IA^4^2
 +79      ;;^UTILITY(U,$J,358.3,9146,1,3,0)
 +80      ;;=3^Idiopathic Aseptic Necrosis of Right Femur
 +81      ;;^UTILITY(U,$J,358.3,9146,1,4,0)
 +82      ;;=4^M87.051
 +83      ;;^UTILITY(U,$J,358.3,9146,2)
 +84      ;;=^5014680
 +85      ;;^UTILITY(U,$J,358.3,9147,0)
 +86      ;;=M87.052^^39^407^44
 +87      ;;^UTILITY(U,$J,358.3,9147,1,0)
 +88      ;;=^358.31IA^4^2
 +89      ;;^UTILITY(U,$J,358.3,9147,1,3,0)
 +90      ;;=3^Idiopathic Aseptic Necrosis of Left Femur
 +91      ;;^UTILITY(U,$J,358.3,9147,1,4,0)
 +92      ;;=4^M87.052
 +93      ;;^UTILITY(U,$J,358.3,9147,2)
 +94      ;;=^5014681
 +95      ;;^UTILITY(U,$J,358.3,9148,0)
 +96      ;;=M87.111^^39^407^78
 +97      ;;^UTILITY(U,$J,358.3,9148,1,0)
 +98      ;;=^358.31IA^4^2
 +99      ;;^UTILITY(U,$J,358.3,9148,1,3,0)
 +100     ;;=3^Osteonecrosis d/t Drugs,Right Shoulder
 +101     ;;^UTILITY(U,$J,358.3,9148,1,4,0)
 +102     ;;=4^M87.111
 +103     ;;^UTILITY(U,$J,358.3,9148,2)
 +104     ;;=^5014701
 +105     ;;^UTILITY(U,$J,358.3,9149,0)
 +106     ;;=M87.112^^39^407^75
 +107     ;;^UTILITY(U,$J,358.3,9149,1,0)
 +108     ;;=^358.31IA^4^2
 +109     ;;^UTILITY(U,$J,358.3,9149,1,3,0)
 +110     ;;=3^Osteonecrosis d/t Drugs,Left Shoulder
 +111     ;;^UTILITY(U,$J,358.3,9149,1,4,0)
 +112     ;;=4^M87.112
 +113     ;;^UTILITY(U,$J,358.3,9149,2)
 +114     ;;=^5014702
 +115     ;;^UTILITY(U,$J,358.3,9150,0)
 +116     ;;=M87.150^^39^407^76
 +117     ;;^UTILITY(U,$J,358.3,9150,1,0)
 +118     ;;=^358.31IA^4^2
 +119     ;;^UTILITY(U,$J,358.3,9150,1,3,0)
 +120     ;;=3^Osteonecrosis d/t Drugs,Pelvis