IBDEI1FF ; ; 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,23075,0)
 ;;=K52.9^^78^999^20
 ;;^UTILITY(U,$J,358.3,23075,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23075,1,3,0)
 ;;=3^Gastroenteritis & Colitis Noninfective,Unspec
 ;;^UTILITY(U,$J,358.3,23075,1,4,0)
 ;;=4^K52.9
 ;;^UTILITY(U,$J,358.3,23075,2)
 ;;=^5008704
 ;;^UTILITY(U,$J,358.3,23076,0)
 ;;=K82.9^^78^999^17
 ;;^UTILITY(U,$J,358.3,23076,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23076,1,3,0)
 ;;=3^Gallbladder Disease,Unspec
 ;;^UTILITY(U,$J,358.3,23076,1,4,0)
 ;;=4^K82.9
 ;;^UTILITY(U,$J,358.3,23076,2)
 ;;=^5008875
 ;;^UTILITY(U,$J,358.3,23077,0)
 ;;=K92.2^^78^999^21
 ;;^UTILITY(U,$J,358.3,23077,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23077,1,3,0)
 ;;=3^Gastrointestinal Hemorrhage,Unspec
 ;;^UTILITY(U,$J,358.3,23077,1,4,0)
 ;;=4^K92.2
 ;;^UTILITY(U,$J,358.3,23077,2)
 ;;=^5008915
 ;;^UTILITY(U,$J,358.3,23078,0)
 ;;=K25.9^^78^999^18
 ;;^UTILITY(U,$J,358.3,23078,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23078,1,3,0)
 ;;=3^Gastric Ulcer w/o Hemorrhage/Perforation
 ;;^UTILITY(U,$J,358.3,23078,1,4,0)
 ;;=4^K25.9
 ;;^UTILITY(U,$J,358.3,23078,2)
 ;;=^5008522
 ;;^UTILITY(U,$J,358.3,23079,0)
 ;;=K22.10^^78^999^13
 ;;^UTILITY(U,$J,358.3,23079,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23079,1,3,0)
 ;;=3^Esophagus ulcer w/o bleeding
 ;;^UTILITY(U,$J,358.3,23079,1,4,0)
 ;;=4^K22.10
 ;;^UTILITY(U,$J,358.3,23079,2)
 ;;=^329929
 ;;^UTILITY(U,$J,358.3,23080,0)
 ;;=K22.11^^78^999^12
 ;;^UTILITY(U,$J,358.3,23080,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23080,1,3,0)
 ;;=3^Esophagus ulcer w/ bleeding
 ;;^UTILITY(U,$J,358.3,23080,1,4,0)
 ;;=4^K22.11
 ;;^UTILITY(U,$J,358.3,23080,2)
 ;;=^329930
 ;;^UTILITY(U,$J,358.3,23081,0)
 ;;=K22.2^^78^999^9
 ;;^UTILITY(U,$J,358.3,23081,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23081,1,3,0)
 ;;=3^Esophageal obstruction
 ;;^UTILITY(U,$J,358.3,23081,1,4,0)
 ;;=4^K22.2
 ;;^UTILITY(U,$J,358.3,23081,2)
 ;;=^5008507
 ;;^UTILITY(U,$J,358.3,23082,0)
 ;;=K26.9^^78^999^5
 ;;^UTILITY(U,$J,358.3,23082,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23082,1,3,0)
 ;;=3^Duodenal ulcer w/o hemorrhage/perforation
 ;;^UTILITY(U,$J,358.3,23082,1,4,0)
 ;;=4^K26.9
 ;;^UTILITY(U,$J,358.3,23082,2)
 ;;=^5008527
 ;;^UTILITY(U,$J,358.3,23083,0)
 ;;=K27.9^^78^999^31
 ;;^UTILITY(U,$J,358.3,23083,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23083,1,3,0)
 ;;=3^Peptic ulcer w/o hemorrhage/perforation
 ;;^UTILITY(U,$J,358.3,23083,1,4,0)
 ;;=4^K27.9
 ;;^UTILITY(U,$J,358.3,23083,2)
 ;;=^5008536
 ;;^UTILITY(U,$J,358.3,23084,0)
 ;;=K57.30^^78^999^4
 ;;^UTILITY(U,$J,358.3,23084,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23084,1,3,0)
 ;;=3^Diverticulosis lg intest w/o perforation/abscess w/o bleeding
 ;;^UTILITY(U,$J,358.3,23084,1,4,0)
 ;;=4^K57.30
 ;;^UTILITY(U,$J,358.3,23084,2)
 ;;=^5008723
 ;;^UTILITY(U,$J,358.3,23085,0)
 ;;=K58.9^^78^999^26
 ;;^UTILITY(U,$J,358.3,23085,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23085,1,3,0)
 ;;=3^IBS w/o diarrhea
 ;;^UTILITY(U,$J,358.3,23085,1,4,0)
 ;;=4^K58.9
 ;;^UTILITY(U,$J,358.3,23085,2)
 ;;=^5008740
 ;;^UTILITY(U,$J,358.3,23086,0)
 ;;=K59.09^^78^999^3
 ;;^UTILITY(U,$J,358.3,23086,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,23086,1,3,0)
 ;;=3^Constipation, other
 ;;^UTILITY(U,$J,358.3,23086,1,4,0)
 ;;=4^K59.09
 ;;^UTILITY(U,$J,358.3,23086,2)
 ;;=^323540
 ;;^UTILITY(U,$J,358.3,23087,0)
 ;;=K62.5^^78^999^22
 ;;^UTILITY(U,$J,358.3,23087,1,0)
 ;;=^358.31IA^4^2
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1FF   3776     printed  Sep 23, 2025@19:43:40                                                                                                                                                                                                    Page 2
IBDEI1FF  ; ; 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,23075,0)
 +2       ;;=K52.9^^78^999^20
 +3       ;;^UTILITY(U,$J,358.3,23075,1,0)
 +4       ;;=^358.31IA^4^2
 +5       ;;^UTILITY(U,$J,358.3,23075,1,3,0)
 +6       ;;=3^Gastroenteritis & Colitis Noninfective,Unspec
 +7       ;;^UTILITY(U,$J,358.3,23075,1,4,0)
 +8       ;;=4^K52.9
 +9       ;;^UTILITY(U,$J,358.3,23075,2)
 +10      ;;=^5008704
 +11      ;;^UTILITY(U,$J,358.3,23076,0)
 +12      ;;=K82.9^^78^999^17
 +13      ;;^UTILITY(U,$J,358.3,23076,1,0)
 +14      ;;=^358.31IA^4^2
 +15      ;;^UTILITY(U,$J,358.3,23076,1,3,0)
 +16      ;;=3^Gallbladder Disease,Unspec
 +17      ;;^UTILITY(U,$J,358.3,23076,1,4,0)
 +18      ;;=4^K82.9
 +19      ;;^UTILITY(U,$J,358.3,23076,2)
 +20      ;;=^5008875
 +21      ;;^UTILITY(U,$J,358.3,23077,0)
 +22      ;;=K92.2^^78^999^21
 +23      ;;^UTILITY(U,$J,358.3,23077,1,0)
 +24      ;;=^358.31IA^4^2
 +25      ;;^UTILITY(U,$J,358.3,23077,1,3,0)
 +26      ;;=3^Gastrointestinal Hemorrhage,Unspec
 +27      ;;^UTILITY(U,$J,358.3,23077,1,4,0)
 +28      ;;=4^K92.2
 +29      ;;^UTILITY(U,$J,358.3,23077,2)
 +30      ;;=^5008915
 +31      ;;^UTILITY(U,$J,358.3,23078,0)
 +32      ;;=K25.9^^78^999^18
 +33      ;;^UTILITY(U,$J,358.3,23078,1,0)
 +34      ;;=^358.31IA^4^2
 +35      ;;^UTILITY(U,$J,358.3,23078,1,3,0)
 +36      ;;=3^Gastric Ulcer w/o Hemorrhage/Perforation
 +37      ;;^UTILITY(U,$J,358.3,23078,1,4,0)
 +38      ;;=4^K25.9
 +39      ;;^UTILITY(U,$J,358.3,23078,2)
 +40      ;;=^5008522
 +41      ;;^UTILITY(U,$J,358.3,23079,0)
 +42      ;;=K22.10^^78^999^13
 +43      ;;^UTILITY(U,$J,358.3,23079,1,0)
 +44      ;;=^358.31IA^4^2
 +45      ;;^UTILITY(U,$J,358.3,23079,1,3,0)
 +46      ;;=3^Esophagus ulcer w/o bleeding
 +47      ;;^UTILITY(U,$J,358.3,23079,1,4,0)
 +48      ;;=4^K22.10
 +49      ;;^UTILITY(U,$J,358.3,23079,2)
 +50      ;;=^329929
 +51      ;;^UTILITY(U,$J,358.3,23080,0)
 +52      ;;=K22.11^^78^999^12
 +53      ;;^UTILITY(U,$J,358.3,23080,1,0)
 +54      ;;=^358.31IA^4^2
 +55      ;;^UTILITY(U,$J,358.3,23080,1,3,0)
 +56      ;;=3^Esophagus ulcer w/ bleeding
 +57      ;;^UTILITY(U,$J,358.3,23080,1,4,0)
 +58      ;;=4^K22.11
 +59      ;;^UTILITY(U,$J,358.3,23080,2)
 +60      ;;=^329930
 +61      ;;^UTILITY(U,$J,358.3,23081,0)
 +62      ;;=K22.2^^78^999^9
 +63      ;;^UTILITY(U,$J,358.3,23081,1,0)
 +64      ;;=^358.31IA^4^2
 +65      ;;^UTILITY(U,$J,358.3,23081,1,3,0)
 +66      ;;=3^Esophageal obstruction
 +67      ;;^UTILITY(U,$J,358.3,23081,1,4,0)
 +68      ;;=4^K22.2
 +69      ;;^UTILITY(U,$J,358.3,23081,2)
 +70      ;;=^5008507
 +71      ;;^UTILITY(U,$J,358.3,23082,0)
 +72      ;;=K26.9^^78^999^5
 +73      ;;^UTILITY(U,$J,358.3,23082,1,0)
 +74      ;;=^358.31IA^4^2
 +75      ;;^UTILITY(U,$J,358.3,23082,1,3,0)
 +76      ;;=3^Duodenal ulcer w/o hemorrhage/perforation
 +77      ;;^UTILITY(U,$J,358.3,23082,1,4,0)
 +78      ;;=4^K26.9
 +79      ;;^UTILITY(U,$J,358.3,23082,2)
 +80      ;;=^5008527
 +81      ;;^UTILITY(U,$J,358.3,23083,0)
 +82      ;;=K27.9^^78^999^31
 +83      ;;^UTILITY(U,$J,358.3,23083,1,0)
 +84      ;;=^358.31IA^4^2
 +85      ;;^UTILITY(U,$J,358.3,23083,1,3,0)
 +86      ;;=3^Peptic ulcer w/o hemorrhage/perforation
 +87      ;;^UTILITY(U,$J,358.3,23083,1,4,0)
 +88      ;;=4^K27.9
 +89      ;;^UTILITY(U,$J,358.3,23083,2)
 +90      ;;=^5008536
 +91      ;;^UTILITY(U,$J,358.3,23084,0)
 +92      ;;=K57.30^^78^999^4
 +93      ;;^UTILITY(U,$J,358.3,23084,1,0)
 +94      ;;=^358.31IA^4^2
 +95      ;;^UTILITY(U,$J,358.3,23084,1,3,0)
 +96      ;;=3^Diverticulosis lg intest w/o perforation/abscess w/o bleeding
 +97      ;;^UTILITY(U,$J,358.3,23084,1,4,0)
 +98      ;;=4^K57.30
 +99      ;;^UTILITY(U,$J,358.3,23084,2)
 +100     ;;=^5008723
 +101     ;;^UTILITY(U,$J,358.3,23085,0)
 +102     ;;=K58.9^^78^999^26
 +103     ;;^UTILITY(U,$J,358.3,23085,1,0)
 +104     ;;=^358.31IA^4^2
 +105     ;;^UTILITY(U,$J,358.3,23085,1,3,0)
 +106     ;;=3^IBS w/o diarrhea
 +107     ;;^UTILITY(U,$J,358.3,23085,1,4,0)
 +108     ;;=4^K58.9
 +109     ;;^UTILITY(U,$J,358.3,23085,2)
 +110     ;;=^5008740
 +111     ;;^UTILITY(U,$J,358.3,23086,0)
 +112     ;;=K59.09^^78^999^3
 +113     ;;^UTILITY(U,$J,358.3,23086,1,0)
 +114     ;;=^358.31IA^4^2
 +115     ;;^UTILITY(U,$J,358.3,23086,1,3,0)
 +116     ;;=3^Constipation, other
 +117     ;;^UTILITY(U,$J,358.3,23086,1,4,0)
 +118     ;;=4^K59.09
 +119     ;;^UTILITY(U,$J,358.3,23086,2)
 +120     ;;=^323540
 +121     ;;^UTILITY(U,$J,358.3,23087,0)
 +122     ;;=K62.5^^78^999^22
 +123     ;;^UTILITY(U,$J,358.3,23087,1,0)
 +124     ;;=^358.31IA^4^2