IBDEI1ZK ; ; 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,31700,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31700,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, second tri, fetus 4
 ;;^UTILITY(U,$J,358.3,31700,1,4,0)
 ;;=4^O41.1024
 ;;^UTILITY(U,$J,358.3,31700,2)
 ;;=^5017252
 ;;^UTILITY(U,$J,358.3,31701,0)
 ;;=O41.1025^^126^1627^32
 ;;^UTILITY(U,$J,358.3,31701,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31701,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, second tri, fetus 5
 ;;^UTILITY(U,$J,358.3,31701,1,4,0)
 ;;=4^O41.1025
 ;;^UTILITY(U,$J,358.3,31701,2)
 ;;=^5017253
 ;;^UTILITY(U,$J,358.3,31702,0)
 ;;=O41.1030^^126^1627^33
 ;;^UTILITY(U,$J,358.3,31702,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31702,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, unsp
 ;;^UTILITY(U,$J,358.3,31702,1,4,0)
 ;;=4^O41.1030
 ;;^UTILITY(U,$J,358.3,31702,2)
 ;;=^5017255
 ;;^UTILITY(U,$J,358.3,31703,0)
 ;;=O41.1031^^126^1627^34
 ;;^UTILITY(U,$J,358.3,31703,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31703,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, fetus 1
 ;;^UTILITY(U,$J,358.3,31703,1,4,0)
 ;;=4^O41.1031
 ;;^UTILITY(U,$J,358.3,31703,2)
 ;;=^5017256
 ;;^UTILITY(U,$J,358.3,31704,0)
 ;;=O41.1032^^126^1627^35
 ;;^UTILITY(U,$J,358.3,31704,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31704,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, fetus 2
 ;;^UTILITY(U,$J,358.3,31704,1,4,0)
 ;;=4^O41.1032
 ;;^UTILITY(U,$J,358.3,31704,2)
 ;;=^5017257
 ;;^UTILITY(U,$J,358.3,31705,0)
 ;;=O41.1033^^126^1627^36
 ;;^UTILITY(U,$J,358.3,31705,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31705,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, fetus 3
 ;;^UTILITY(U,$J,358.3,31705,1,4,0)
 ;;=4^O41.1033
 ;;^UTILITY(U,$J,358.3,31705,2)
 ;;=^5017258
 ;;^UTILITY(U,$J,358.3,31706,0)
 ;;=O41.1034^^126^1627^37
 ;;^UTILITY(U,$J,358.3,31706,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31706,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, fetus 4
 ;;^UTILITY(U,$J,358.3,31706,1,4,0)
 ;;=4^O41.1034
 ;;^UTILITY(U,$J,358.3,31706,2)
 ;;=^5017259
 ;;^UTILITY(U,$J,358.3,31707,0)
 ;;=O41.1035^^126^1627^38
 ;;^UTILITY(U,$J,358.3,31707,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31707,1,3,0)
 ;;=3^Infct of amniotic sac/membrns, third tri, fetus 5
 ;;^UTILITY(U,$J,358.3,31707,1,4,0)
 ;;=4^O41.1035
 ;;^UTILITY(U,$J,358.3,31707,2)
 ;;=^5017260
 ;;^UTILITY(U,$J,358.3,31708,0)
 ;;=O41.1210^^126^1627^7
 ;;^UTILITY(U,$J,358.3,31708,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31708,1,3,0)
 ;;=3^Chorioamnionitis, first trimester, not applicable or unsp
 ;;^UTILITY(U,$J,358.3,31708,1,4,0)
 ;;=4^O41.1210
 ;;^UTILITY(U,$J,358.3,31708,2)
 ;;=^5017267
 ;;^UTILITY(U,$J,358.3,31709,0)
 ;;=O41.1211^^126^1627^2
 ;;^UTILITY(U,$J,358.3,31709,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31709,1,3,0)
 ;;=3^Chorioamnionitis, first trimester, fetus 1
 ;;^UTILITY(U,$J,358.3,31709,1,4,0)
 ;;=4^O41.1211
 ;;^UTILITY(U,$J,358.3,31709,2)
 ;;=^5017268
 ;;^UTILITY(U,$J,358.3,31710,0)
 ;;=O41.1212^^126^1627^3
 ;;^UTILITY(U,$J,358.3,31710,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31710,1,3,0)
 ;;=3^Chorioamnionitis, first trimester, fetus 2
 ;;^UTILITY(U,$J,358.3,31710,1,4,0)
 ;;=4^O41.1212
 ;;^UTILITY(U,$J,358.3,31710,2)
 ;;=^5017269
 ;;^UTILITY(U,$J,358.3,31711,0)
 ;;=O41.1213^^126^1627^4
 ;;^UTILITY(U,$J,358.3,31711,1,0)
 ;;=^358.31IA^4^2
 ;;^UTILITY(U,$J,358.3,31711,1,3,0)
 ;;=3^Chorioamnionitis, first trimester, fetus 3
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1ZK   3774     printed  Sep 23, 2025@19:54:53                                                                                                                                                                                                    Page 2
IBDEI1ZK  ; ; 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,31700,1,0)
 +2       ;;=^358.31IA^4^2
 +3       ;;^UTILITY(U,$J,358.3,31700,1,3,0)
 +4       ;;=3^Infct of amniotic sac/membrns, second tri, fetus 4
 +5       ;;^UTILITY(U,$J,358.3,31700,1,4,0)
 +6       ;;=4^O41.1024
 +7       ;;^UTILITY(U,$J,358.3,31700,2)
 +8       ;;=^5017252
 +9       ;;^UTILITY(U,$J,358.3,31701,0)
 +10      ;;=O41.1025^^126^1627^32
 +11      ;;^UTILITY(U,$J,358.3,31701,1,0)
 +12      ;;=^358.31IA^4^2
 +13      ;;^UTILITY(U,$J,358.3,31701,1,3,0)
 +14      ;;=3^Infct of amniotic sac/membrns, second tri, fetus 5
 +15      ;;^UTILITY(U,$J,358.3,31701,1,4,0)
 +16      ;;=4^O41.1025
 +17      ;;^UTILITY(U,$J,358.3,31701,2)
 +18      ;;=^5017253
 +19      ;;^UTILITY(U,$J,358.3,31702,0)
 +20      ;;=O41.1030^^126^1627^33
 +21      ;;^UTILITY(U,$J,358.3,31702,1,0)
 +22      ;;=^358.31IA^4^2
 +23      ;;^UTILITY(U,$J,358.3,31702,1,3,0)
 +24      ;;=3^Infct of amniotic sac/membrns, third tri, unsp
 +25      ;;^UTILITY(U,$J,358.3,31702,1,4,0)
 +26      ;;=4^O41.1030
 +27      ;;^UTILITY(U,$J,358.3,31702,2)
 +28      ;;=^5017255
 +29      ;;^UTILITY(U,$J,358.3,31703,0)
 +30      ;;=O41.1031^^126^1627^34
 +31      ;;^UTILITY(U,$J,358.3,31703,1,0)
 +32      ;;=^358.31IA^4^2
 +33      ;;^UTILITY(U,$J,358.3,31703,1,3,0)
 +34      ;;=3^Infct of amniotic sac/membrns, third tri, fetus 1
 +35      ;;^UTILITY(U,$J,358.3,31703,1,4,0)
 +36      ;;=4^O41.1031
 +37      ;;^UTILITY(U,$J,358.3,31703,2)
 +38      ;;=^5017256
 +39      ;;^UTILITY(U,$J,358.3,31704,0)
 +40      ;;=O41.1032^^126^1627^35
 +41      ;;^UTILITY(U,$J,358.3,31704,1,0)
 +42      ;;=^358.31IA^4^2
 +43      ;;^UTILITY(U,$J,358.3,31704,1,3,0)
 +44      ;;=3^Infct of amniotic sac/membrns, third tri, fetus 2
 +45      ;;^UTILITY(U,$J,358.3,31704,1,4,0)
 +46      ;;=4^O41.1032
 +47      ;;^UTILITY(U,$J,358.3,31704,2)
 +48      ;;=^5017257
 +49      ;;^UTILITY(U,$J,358.3,31705,0)
 +50      ;;=O41.1033^^126^1627^36
 +51      ;;^UTILITY(U,$J,358.3,31705,1,0)
 +52      ;;=^358.31IA^4^2
 +53      ;;^UTILITY(U,$J,358.3,31705,1,3,0)
 +54      ;;=3^Infct of amniotic sac/membrns, third tri, fetus 3
 +55      ;;^UTILITY(U,$J,358.3,31705,1,4,0)
 +56      ;;=4^O41.1033
 +57      ;;^UTILITY(U,$J,358.3,31705,2)
 +58      ;;=^5017258
 +59      ;;^UTILITY(U,$J,358.3,31706,0)
 +60      ;;=O41.1034^^126^1627^37
 +61      ;;^UTILITY(U,$J,358.3,31706,1,0)
 +62      ;;=^358.31IA^4^2
 +63      ;;^UTILITY(U,$J,358.3,31706,1,3,0)
 +64      ;;=3^Infct of amniotic sac/membrns, third tri, fetus 4
 +65      ;;^UTILITY(U,$J,358.3,31706,1,4,0)
 +66      ;;=4^O41.1034
 +67      ;;^UTILITY(U,$J,358.3,31706,2)
 +68      ;;=^5017259
 +69      ;;^UTILITY(U,$J,358.3,31707,0)
 +70      ;;=O41.1035^^126^1627^38
 +71      ;;^UTILITY(U,$J,358.3,31707,1,0)
 +72      ;;=^358.31IA^4^2
 +73      ;;^UTILITY(U,$J,358.3,31707,1,3,0)
 +74      ;;=3^Infct of amniotic sac/membrns, third tri, fetus 5
 +75      ;;^UTILITY(U,$J,358.3,31707,1,4,0)
 +76      ;;=4^O41.1035
 +77      ;;^UTILITY(U,$J,358.3,31707,2)
 +78      ;;=^5017260
 +79      ;;^UTILITY(U,$J,358.3,31708,0)
 +80      ;;=O41.1210^^126^1627^7
 +81      ;;^UTILITY(U,$J,358.3,31708,1,0)
 +82      ;;=^358.31IA^4^2
 +83      ;;^UTILITY(U,$J,358.3,31708,1,3,0)
 +84      ;;=3^Chorioamnionitis, first trimester, not applicable or unsp
 +85      ;;^UTILITY(U,$J,358.3,31708,1,4,0)
 +86      ;;=4^O41.1210
 +87      ;;^UTILITY(U,$J,358.3,31708,2)
 +88      ;;=^5017267
 +89      ;;^UTILITY(U,$J,358.3,31709,0)
 +90      ;;=O41.1211^^126^1627^2
 +91      ;;^UTILITY(U,$J,358.3,31709,1,0)
 +92      ;;=^358.31IA^4^2
 +93      ;;^UTILITY(U,$J,358.3,31709,1,3,0)
 +94      ;;=3^Chorioamnionitis, first trimester, fetus 1
 +95      ;;^UTILITY(U,$J,358.3,31709,1,4,0)
 +96      ;;=4^O41.1211
 +97      ;;^UTILITY(U,$J,358.3,31709,2)
 +98      ;;=^5017268
 +99      ;;^UTILITY(U,$J,358.3,31710,0)
 +100     ;;=O41.1212^^126^1627^3
 +101     ;;^UTILITY(U,$J,358.3,31710,1,0)
 +102     ;;=^358.31IA^4^2
 +103     ;;^UTILITY(U,$J,358.3,31710,1,3,0)
 +104     ;;=3^Chorioamnionitis, first trimester, fetus 2
 +105     ;;^UTILITY(U,$J,358.3,31710,1,4,0)
 +106     ;;=4^O41.1212
 +107     ;;^UTILITY(U,$J,358.3,31710,2)
 +108     ;;=^5017269
 +109     ;;^UTILITY(U,$J,358.3,31711,0)
 +110     ;;=O41.1213^^126^1627^4
 +111     ;;^UTILITY(U,$J,358.3,31711,1,0)
 +112     ;;=^358.31IA^4^2
 +113     ;;^UTILITY(U,$J,358.3,31711,1,3,0)
 +114     ;;=3^Chorioamnionitis, first trimester, fetus 3