IBDEI244 ; ; 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,33755,1,3,0)
 ;;=3^Chronic postprocedural pain NEC
 ;;^UTILITY(U,$J,358.3,33755,1,4,0)
 ;;=4^G89.28
 ;;^UTILITY(U,$J,358.3,33755,2)
 ;;=^5004157
 ;;^UTILITY(U,$J,358.3,33756,0)
 ;;=G89.29^^132^1710^4
 ;;^UTILITY(U,$J,358.3,33756,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33756,1,3,0)
 ;;=3^Chronic Pain,Other
 ;;^UTILITY(U,$J,358.3,33756,1,4,0)
 ;;=4^G89.29
 ;;^UTILITY(U,$J,358.3,33756,2)
 ;;=^5004158
 ;;^UTILITY(U,$J,358.3,33757,0)
 ;;=M00.851^^132^1711^2
 ;;^UTILITY(U,$J,358.3,33757,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33757,1,3,0)
 ;;=3^Arthritis d/t other bacteria, right hip
 ;;^UTILITY(U,$J,358.3,33757,1,4,0)
 ;;=4^M00.851
 ;;^UTILITY(U,$J,358.3,33757,2)
 ;;=^5009682
 ;;^UTILITY(U,$J,358.3,33758,0)
 ;;=M00.852^^132^1711^1
 ;;^UTILITY(U,$J,358.3,33758,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33758,1,3,0)
 ;;=3^Arthritis d/t other bacteria, left hip
 ;;^UTILITY(U,$J,358.3,33758,1,4,0)
 ;;=4^M00.852
 ;;^UTILITY(U,$J,358.3,33758,2)
 ;;=^5009683
 ;;^UTILITY(U,$J,358.3,33759,0)
 ;;=S70.02XA^^132^1711^5
 ;;^UTILITY(U,$J,358.3,33759,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33759,1,3,0)
 ;;=3^Contusion of left hip, initial encounter
 ;;^UTILITY(U,$J,358.3,33759,1,4,0)
 ;;=4^S70.02XA
 ;;^UTILITY(U,$J,358.3,33759,2)
 ;;=^5036837
 ;;^UTILITY(U,$J,358.3,33760,0)
 ;;=S70.01XA^^132^1711^7
 ;;^UTILITY(U,$J,358.3,33760,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33760,1,3,0)
 ;;=3^Contusion of right hip, initial encounter
 ;;^UTILITY(U,$J,358.3,33760,1,4,0)
 ;;=4^S70.01XA
 ;;^UTILITY(U,$J,358.3,33760,2)
 ;;=^5036834
 ;;^UTILITY(U,$J,358.3,33761,0)
 ;;=S72.142A^^132^1711^15
 ;;^UTILITY(U,$J,358.3,33761,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33761,1,3,0)
 ;;=3^Displaced intertrochanteric fracture of left femur, init
 ;;^UTILITY(U,$J,358.3,33761,1,4,0)
 ;;=4^S72.142A
 ;;^UTILITY(U,$J,358.3,33761,2)
 ;;=^5037931
 ;;^UTILITY(U,$J,358.3,33762,0)
 ;;=S72.141A^^132^1711^16
 ;;^UTILITY(U,$J,358.3,33762,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33762,1,3,0)
 ;;=3^Displaced intertrochanteric fracture of right femur, init
 ;;^UTILITY(U,$J,358.3,33762,1,4,0)
 ;;=4^S72.141A
 ;;^UTILITY(U,$J,358.3,33762,2)
 ;;=^5037915
 ;;^UTILITY(U,$J,358.3,33763,0)
 ;;=S72.22XA^^132^1711^17
 ;;^UTILITY(U,$J,358.3,33763,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33763,1,3,0)
 ;;=3^Displaced subtrochanteric fracture of left femur, init
 ;;^UTILITY(U,$J,358.3,33763,1,4,0)
 ;;=4^S72.22XA
 ;;^UTILITY(U,$J,358.3,33763,2)
 ;;=^5038027
 ;;^UTILITY(U,$J,358.3,33764,0)
 ;;=S72.21XA^^132^1711^18
 ;;^UTILITY(U,$J,358.3,33764,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33764,1,3,0)
 ;;=3^Displaced subtrochanteric fracture of right femur, init
 ;;^UTILITY(U,$J,358.3,33764,1,4,0)
 ;;=4^S72.21XA
 ;;^UTILITY(U,$J,358.3,33764,2)
 ;;=^5038011
 ;;^UTILITY(U,$J,358.3,33765,0)
 ;;=S72.002A^^132^1711^21
 ;;^UTILITY(U,$J,358.3,33765,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33765,1,3,0)
 ;;=3^Fracture of unsp part of neck of left femur, init
 ;;^UTILITY(U,$J,358.3,33765,1,4,0)
 ;;=4^S72.002A
 ;;^UTILITY(U,$J,358.3,33765,2)
 ;;=^5037063
 ;;^UTILITY(U,$J,358.3,33766,0)
 ;;=S72.001A^^132^1711^22
 ;;^UTILITY(U,$J,358.3,33766,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,33766,1,3,0)
 ;;=3^Fracture of unsp part of neck of right femur, init
 ;;^UTILITY(U,$J,358.3,33766,1,4,0)
 ;;=4^S72.001A
 ;;^UTILITY(U,$J,358.3,33766,2)
 ;;=^5037047
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI244   3763     printed  Sep 23, 2025@19:57:25                                                                                                                                                                                                    Page 2
IBDEI244  ; ; 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,33755,1,3,0)
 +2       ;;=3^Chronic postprocedural pain NEC
 +3       ;;^UTILITY(U,$J,358.3,33755,1,4,0)
 +4       ;;=4^G89.28
 +5       ;;^UTILITY(U,$J,358.3,33755,2)
 +6       ;;=^5004157
 +7       ;;^UTILITY(U,$J,358.3,33756,0)
 +8       ;;=G89.29^^132^1710^4
 +9       ;;^UTILITY(U,$J,358.3,33756,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,33756,1,3,0)
 +12      ;;=3^Chronic Pain,Other
 +13      ;;^UTILITY(U,$J,358.3,33756,1,4,0)
 +14      ;;=4^G89.29
 +15      ;;^UTILITY(U,$J,358.3,33756,2)
 +16      ;;=^5004158
 +17      ;;^UTILITY(U,$J,358.3,33757,0)
 +18      ;;=M00.851^^132^1711^2
 +19      ;;^UTILITY(U,$J,358.3,33757,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,33757,1,3,0)
 +22      ;;=3^Arthritis d/t other bacteria, right hip
 +23      ;;^UTILITY(U,$J,358.3,33757,1,4,0)
 +24      ;;=4^M00.851
 +25      ;;^UTILITY(U,$J,358.3,33757,2)
 +26      ;;=^5009682
 +27      ;;^UTILITY(U,$J,358.3,33758,0)
 +28      ;;=M00.852^^132^1711^1
 +29      ;;^UTILITY(U,$J,358.3,33758,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,33758,1,3,0)
 +32      ;;=3^Arthritis d/t other bacteria, left hip
 +33      ;;^UTILITY(U,$J,358.3,33758,1,4,0)
 +34      ;;=4^M00.852
 +35      ;;^UTILITY(U,$J,358.3,33758,2)
 +36      ;;=^5009683
 +37      ;;^UTILITY(U,$J,358.3,33759,0)
 +38      ;;=S70.02XA^^132^1711^5
 +39      ;;^UTILITY(U,$J,358.3,33759,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,33759,1,3,0)
 +42      ;;=3^Contusion of left hip, initial encounter
 +43      ;;^UTILITY(U,$J,358.3,33759,1,4,0)
 +44      ;;=4^S70.02XA
 +45      ;;^UTILITY(U,$J,358.3,33759,2)
 +46      ;;=^5036837
 +47      ;;^UTILITY(U,$J,358.3,33760,0)
 +48      ;;=S70.01XA^^132^1711^7
 +49      ;;^UTILITY(U,$J,358.3,33760,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,33760,1,3,0)
 +52      ;;=3^Contusion of right hip, initial encounter
 +53      ;;^UTILITY(U,$J,358.3,33760,1,4,0)
 +54      ;;=4^S70.01XA
 +55      ;;^UTILITY(U,$J,358.3,33760,2)
 +56      ;;=^5036834
 +57      ;;^UTILITY(U,$J,358.3,33761,0)
 +58      ;;=S72.142A^^132^1711^15
 +59      ;;^UTILITY(U,$J,358.3,33761,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,33761,1,3,0)
 +62      ;;=3^Displaced intertrochanteric fracture of left femur, init
 +63      ;;^UTILITY(U,$J,358.3,33761,1,4,0)
 +64      ;;=4^S72.142A
 +65      ;;^UTILITY(U,$J,358.3,33761,2)
 +66      ;;=^5037931
 +67      ;;^UTILITY(U,$J,358.3,33762,0)
 +68      ;;=S72.141A^^132^1711^16
 +69      ;;^UTILITY(U,$J,358.3,33762,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,33762,1,3,0)
 +72      ;;=3^Displaced intertrochanteric fracture of right femur, init
 +73      ;;^UTILITY(U,$J,358.3,33762,1,4,0)
 +74      ;;=4^S72.141A
 +75      ;;^UTILITY(U,$J,358.3,33762,2)
 +76      ;;=^5037915
 +77      ;;^UTILITY(U,$J,358.3,33763,0)
 +78      ;;=S72.22XA^^132^1711^17
 +79      ;;^UTILITY(U,$J,358.3,33763,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,33763,1,3,0)
 +82      ;;=3^Displaced subtrochanteric fracture of left femur, init
 +83      ;;^UTILITY(U,$J,358.3,33763,1,4,0)
 +84      ;;=4^S72.22XA
 +85      ;;^UTILITY(U,$J,358.3,33763,2)
 +86      ;;=^5038027
 +87      ;;^UTILITY(U,$J,358.3,33764,0)
 +88      ;;=S72.21XA^^132^1711^18
 +89      ;;^UTILITY(U,$J,358.3,33764,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,33764,1,3,0)
 +92      ;;=3^Displaced subtrochanteric fracture of right femur, init
 +93      ;;^UTILITY(U,$J,358.3,33764,1,4,0)
 +94      ;;=4^S72.21XA
 +95      ;;^UTILITY(U,$J,358.3,33764,2)
 +96      ;;=^5038011
 +97      ;;^UTILITY(U,$J,358.3,33765,0)
 +98      ;;=S72.002A^^132^1711^21
 +99      ;;^UTILITY(U,$J,358.3,33765,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,33765,1,3,0)
 +102     ;;=3^Fracture of unsp part of neck of left femur, init
 +103     ;;^UTILITY(U,$J,358.3,33765,1,4,0)
 +104     ;;=4^S72.002A
 +105     ;;^UTILITY(U,$J,358.3,33765,2)
 +106     ;;=^5037063
 +107     ;;^UTILITY(U,$J,358.3,33766,0)
 +108     ;;=S72.001A^^132^1711^22
 +109     ;;^UTILITY(U,$J,358.3,33766,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,33766,1,3,0)
 +112     ;;=3^Fracture of unsp part of neck of right femur, init
 +113     ;;^UTILITY(U,$J,358.3,33766,1,4,0)
 +114     ;;=4^S72.001A
 +115     ;;^UTILITY(U,$J,358.3,33766,2)
 +116     ;;=^5037047