IBDEI37E ; ; 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,51149,1,3,0)
 ;;=3^Systemic Lupus Erythematosus,Pericarditis
 ;;^UTILITY(U,$J,358.3,51149,1,4,0)
 ;;=4^M32.12
 ;;^UTILITY(U,$J,358.3,51149,2)
 ;;=^5011755
 ;;^UTILITY(U,$J,358.3,51150,0)
 ;;=M05.59^^193^2503^165
 ;;^UTILITY(U,$J,358.3,51150,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51150,1,3,0)
 ;;=3^Rheumatoid Polyneuropathy w/ Rheumatoid Arthritis of Mult Sites
 ;;^UTILITY(U,$J,358.3,51150,1,4,0)
 ;;=4^M05.59
 ;;^UTILITY(U,$J,358.3,51150,2)
 ;;=^5009976
 ;;^UTILITY(U,$J,358.3,51151,0)
 ;;=M05.711^^193^2503^159
 ;;^UTILITY(U,$J,358.3,51151,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51151,1,3,0)
 ;;=3^Rheumatoid Arthritis of Right Shoulder
 ;;^UTILITY(U,$J,358.3,51151,1,4,0)
 ;;=4^M05.711
 ;;^UTILITY(U,$J,358.3,51151,2)
 ;;=^5010001
 ;;^UTILITY(U,$J,358.3,51152,0)
 ;;=M05.712^^193^2503^152
 ;;^UTILITY(U,$J,358.3,51152,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51152,1,3,0)
 ;;=3^Rheumatoid Arthritis of Left Shoulder
 ;;^UTILITY(U,$J,358.3,51152,1,4,0)
 ;;=4^M05.712
 ;;^UTILITY(U,$J,358.3,51152,2)
 ;;=^5010002
 ;;^UTILITY(U,$J,358.3,51153,0)
 ;;=M05.731^^193^2503^160
 ;;^UTILITY(U,$J,358.3,51153,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51153,1,3,0)
 ;;=3^Rheumatoid Arthritis of Right Wrist
 ;;^UTILITY(U,$J,358.3,51153,1,4,0)
 ;;=4^M05.731
 ;;^UTILITY(U,$J,358.3,51153,2)
 ;;=^5010007
 ;;^UTILITY(U,$J,358.3,51154,0)
 ;;=M05.732^^193^2503^153
 ;;^UTILITY(U,$J,358.3,51154,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51154,1,3,0)
 ;;=3^Rheumatoid Arthritis of Left Wrist
 ;;^UTILITY(U,$J,358.3,51154,1,4,0)
 ;;=4^M05.732
 ;;^UTILITY(U,$J,358.3,51154,2)
 ;;=^5010008
 ;;^UTILITY(U,$J,358.3,51155,0)
 ;;=M05.741^^193^2503^156
 ;;^UTILITY(U,$J,358.3,51155,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51155,1,3,0)
 ;;=3^Rheumatoid Arthritis of Right Hand
 ;;^UTILITY(U,$J,358.3,51155,1,4,0)
 ;;=4^M05.741
 ;;^UTILITY(U,$J,358.3,51155,2)
 ;;=^5010010
 ;;^UTILITY(U,$J,358.3,51156,0)
 ;;=M05.742^^193^2503^149
 ;;^UTILITY(U,$J,358.3,51156,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51156,1,3,0)
 ;;=3^Rheumatoid Arthritis of Left Hand
 ;;^UTILITY(U,$J,358.3,51156,1,4,0)
 ;;=4^M05.742
 ;;^UTILITY(U,$J,358.3,51156,2)
 ;;=^5010011
 ;;^UTILITY(U,$J,358.3,51157,0)
 ;;=M05.751^^193^2503^157
 ;;^UTILITY(U,$J,358.3,51157,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51157,1,3,0)
 ;;=3^Rheumatoid Arthritis of Right Hip
 ;;^UTILITY(U,$J,358.3,51157,1,4,0)
 ;;=4^M05.751
 ;;^UTILITY(U,$J,358.3,51157,2)
 ;;=^5010013
 ;;^UTILITY(U,$J,358.3,51158,0)
 ;;=M05.752^^193^2503^150
 ;;^UTILITY(U,$J,358.3,51158,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51158,1,3,0)
 ;;=3^Rheumatoid Arthritis of Left Hip
 ;;^UTILITY(U,$J,358.3,51158,1,4,0)
 ;;=4^M05.752
 ;;^UTILITY(U,$J,358.3,51158,2)
 ;;=^5010014
 ;;^UTILITY(U,$J,358.3,51159,0)
 ;;=M05.761^^193^2503^158
 ;;^UTILITY(U,$J,358.3,51159,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51159,1,3,0)
 ;;=3^Rheumatoid Arthritis of Right Knee
 ;;^UTILITY(U,$J,358.3,51159,1,4,0)
 ;;=4^M05.761
 ;;^UTILITY(U,$J,358.3,51159,2)
 ;;=^5010016
 ;;^UTILITY(U,$J,358.3,51160,0)
 ;;=M05.762^^193^2503^151
 ;;^UTILITY(U,$J,358.3,51160,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,51160,1,3,0)
 ;;=3^Rheumatoid Arthritis of Left Knee
 ;;^UTILITY(U,$J,358.3,51160,1,4,0)
 ;;=4^M05.762
 ;;^UTILITY(U,$J,358.3,51160,2)
 ;;=^5010017
 ;;^UTILITY(U,$J,358.3,51161,0)
 ;;=M05.771^^193^2503^155
 ;;^UTILITY(U,$J,358.3,51161,1,0)
 ;;=^358.31IA^4^2
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI37E   3796     printed  Sep 23, 2025@20:19:16                                                                                                                                                                                                    Page 2
IBDEI37E  ; ; 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,51149,1,3,0)
 +2       ;;=3^Systemic Lupus Erythematosus,Pericarditis
 +3       ;;^UTILITY(U,$J,358.3,51149,1,4,0)
 +4       ;;=4^M32.12
 +5       ;;^UTILITY(U,$J,358.3,51149,2)
 +6       ;;=^5011755
 +7       ;;^UTILITY(U,$J,358.3,51150,0)
 +8       ;;=M05.59^^193^2503^165
 +9       ;;^UTILITY(U,$J,358.3,51150,1,0)
 +10      ;;=^358.31IA^4^2
 +11      ;;^UTILITY(U,$J,358.3,51150,1,3,0)
 +12      ;;=3^Rheumatoid Polyneuropathy w/ Rheumatoid Arthritis of Mult Sites
 +13      ;;^UTILITY(U,$J,358.3,51150,1,4,0)
 +14      ;;=4^M05.59
 +15      ;;^UTILITY(U,$J,358.3,51150,2)
 +16      ;;=^5009976
 +17      ;;^UTILITY(U,$J,358.3,51151,0)
 +18      ;;=M05.711^^193^2503^159
 +19      ;;^UTILITY(U,$J,358.3,51151,1,0)
 +20      ;;=^358.31IA^4^2
 +21      ;;^UTILITY(U,$J,358.3,51151,1,3,0)
 +22      ;;=3^Rheumatoid Arthritis of Right Shoulder
 +23      ;;^UTILITY(U,$J,358.3,51151,1,4,0)
 +24      ;;=4^M05.711
 +25      ;;^UTILITY(U,$J,358.3,51151,2)
 +26      ;;=^5010001
 +27      ;;^UTILITY(U,$J,358.3,51152,0)
 +28      ;;=M05.712^^193^2503^152
 +29      ;;^UTILITY(U,$J,358.3,51152,1,0)
 +30      ;;=^358.31IA^4^2
 +31      ;;^UTILITY(U,$J,358.3,51152,1,3,0)
 +32      ;;=3^Rheumatoid Arthritis of Left Shoulder
 +33      ;;^UTILITY(U,$J,358.3,51152,1,4,0)
 +34      ;;=4^M05.712
 +35      ;;^UTILITY(U,$J,358.3,51152,2)
 +36      ;;=^5010002
 +37      ;;^UTILITY(U,$J,358.3,51153,0)
 +38      ;;=M05.731^^193^2503^160
 +39      ;;^UTILITY(U,$J,358.3,51153,1,0)
 +40      ;;=^358.31IA^4^2
 +41      ;;^UTILITY(U,$J,358.3,51153,1,3,0)
 +42      ;;=3^Rheumatoid Arthritis of Right Wrist
 +43      ;;^UTILITY(U,$J,358.3,51153,1,4,0)
 +44      ;;=4^M05.731
 +45      ;;^UTILITY(U,$J,358.3,51153,2)
 +46      ;;=^5010007
 +47      ;;^UTILITY(U,$J,358.3,51154,0)
 +48      ;;=M05.732^^193^2503^153
 +49      ;;^UTILITY(U,$J,358.3,51154,1,0)
 +50      ;;=^358.31IA^4^2
 +51      ;;^UTILITY(U,$J,358.3,51154,1,3,0)
 +52      ;;=3^Rheumatoid Arthritis of Left Wrist
 +53      ;;^UTILITY(U,$J,358.3,51154,1,4,0)
 +54      ;;=4^M05.732
 +55      ;;^UTILITY(U,$J,358.3,51154,2)
 +56      ;;=^5010008
 +57      ;;^UTILITY(U,$J,358.3,51155,0)
 +58      ;;=M05.741^^193^2503^156
 +59      ;;^UTILITY(U,$J,358.3,51155,1,0)
 +60      ;;=^358.31IA^4^2
 +61      ;;^UTILITY(U,$J,358.3,51155,1,3,0)
 +62      ;;=3^Rheumatoid Arthritis of Right Hand
 +63      ;;^UTILITY(U,$J,358.3,51155,1,4,0)
 +64      ;;=4^M05.741
 +65      ;;^UTILITY(U,$J,358.3,51155,2)
 +66      ;;=^5010010
 +67      ;;^UTILITY(U,$J,358.3,51156,0)
 +68      ;;=M05.742^^193^2503^149
 +69      ;;^UTILITY(U,$J,358.3,51156,1,0)
 +70      ;;=^358.31IA^4^2
 +71      ;;^UTILITY(U,$J,358.3,51156,1,3,0)
 +72      ;;=3^Rheumatoid Arthritis of Left Hand
 +73      ;;^UTILITY(U,$J,358.3,51156,1,4,0)
 +74      ;;=4^M05.742
 +75      ;;^UTILITY(U,$J,358.3,51156,2)
 +76      ;;=^5010011
 +77      ;;^UTILITY(U,$J,358.3,51157,0)
 +78      ;;=M05.751^^193^2503^157
 +79      ;;^UTILITY(U,$J,358.3,51157,1,0)
 +80      ;;=^358.31IA^4^2
 +81      ;;^UTILITY(U,$J,358.3,51157,1,3,0)
 +82      ;;=3^Rheumatoid Arthritis of Right Hip
 +83      ;;^UTILITY(U,$J,358.3,51157,1,4,0)
 +84      ;;=4^M05.751
 +85      ;;^UTILITY(U,$J,358.3,51157,2)
 +86      ;;=^5010013
 +87      ;;^UTILITY(U,$J,358.3,51158,0)
 +88      ;;=M05.752^^193^2503^150
 +89      ;;^UTILITY(U,$J,358.3,51158,1,0)
 +90      ;;=^358.31IA^4^2
 +91      ;;^UTILITY(U,$J,358.3,51158,1,3,0)
 +92      ;;=3^Rheumatoid Arthritis of Left Hip
 +93      ;;^UTILITY(U,$J,358.3,51158,1,4,0)
 +94      ;;=4^M05.752
 +95      ;;^UTILITY(U,$J,358.3,51158,2)
 +96      ;;=^5010014
 +97      ;;^UTILITY(U,$J,358.3,51159,0)
 +98      ;;=M05.761^^193^2503^158
 +99      ;;^UTILITY(U,$J,358.3,51159,1,0)
 +100     ;;=^358.31IA^4^2
 +101     ;;^UTILITY(U,$J,358.3,51159,1,3,0)
 +102     ;;=3^Rheumatoid Arthritis of Right Knee
 +103     ;;^UTILITY(U,$J,358.3,51159,1,4,0)
 +104     ;;=4^M05.761
 +105     ;;^UTILITY(U,$J,358.3,51159,2)
 +106     ;;=^5010016
 +107     ;;^UTILITY(U,$J,358.3,51160,0)
 +108     ;;=M05.762^^193^2503^151
 +109     ;;^UTILITY(U,$J,358.3,51160,1,0)
 +110     ;;=^358.31IA^4^2
 +111     ;;^UTILITY(U,$J,358.3,51160,1,3,0)
 +112     ;;=3^Rheumatoid Arthritis of Left Knee
 +113     ;;^UTILITY(U,$J,358.3,51160,1,4,0)
 +114     ;;=4^M05.762
 +115     ;;^UTILITY(U,$J,358.3,51160,2)
 +116     ;;=^5010017
 +117     ;;^UTILITY(U,$J,358.3,51161,0)
 +118     ;;=M05.771^^193^2503^155
 +119     ;;^UTILITY(U,$J,358.3,51161,1,0)
 +120     ;;=^358.31IA^4^2