- IBDEI2DK ; ; 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,37903,1,3,0)
- ;;=3^Lacrtn w/o foreign body lft lsr toe(s) w/o nail dmg, init
- ;;^UTILITY(U,$J,358.3,37903,1,4,0)
- ;;=4^S91.115A
- ;;^UTILITY(U,$J,358.3,37903,2)
- ;;=^5044195
- ;;^UTILITY(U,$J,358.3,37904,0)
- ;;=S91.111A^^146^1921^26
- ;;^UTILITY(U,$J,358.3,37904,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37904,1,3,0)
- ;;=3^Lacrtn w/o foreign body rt grt toe w/o nail dmg, init
- ;;^UTILITY(U,$J,358.3,37904,1,4,0)
- ;;=4^S91.111A
- ;;^UTILITY(U,$J,358.3,37904,2)
- ;;=^5044183
- ;;^UTILITY(U,$J,358.3,37905,0)
- ;;=S91.112A^^146^1921^19
- ;;^UTILITY(U,$J,358.3,37905,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37905,1,3,0)
- ;;=3^Lacrtn w/o foreign body lft grt toe w/o nail dmg, init
- ;;^UTILITY(U,$J,358.3,37905,1,4,0)
- ;;=4^S91.112A
- ;;^UTILITY(U,$J,358.3,37905,2)
- ;;=^5044186
- ;;^UTILITY(U,$J,358.3,37906,0)
- ;;=S91.214A^^146^1921^15
- ;;^UTILITY(U,$J,358.3,37906,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37906,1,3,0)
- ;;=3^Lacrtn w/o foregin body rt lsr toe(s) w/ nail dmg, init
- ;;^UTILITY(U,$J,358.3,37906,1,4,0)
- ;;=4^S91.214A
- ;;^UTILITY(U,$J,358.3,37906,2)
- ;;=^5044279
- ;;^UTILITY(U,$J,358.3,37907,0)
- ;;=S91.215A^^146^1921^21
- ;;^UTILITY(U,$J,358.3,37907,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37907,1,3,0)
- ;;=3^Lacrtn w/o foreign body lft lsr toe(s) w/ nail dmg, init
- ;;^UTILITY(U,$J,358.3,37907,1,4,0)
- ;;=4^S91.215A
- ;;^UTILITY(U,$J,358.3,37907,2)
- ;;=^5044282
- ;;^UTILITY(U,$J,358.3,37908,0)
- ;;=S91.022A^^146^1921^5
- ;;^UTILITY(U,$J,358.3,37908,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37908,1,3,0)
- ;;=3^Lacrtn w/ foreign body lft ankl, init
- ;;^UTILITY(U,$J,358.3,37908,1,4,0)
- ;;=4^S91.022A
- ;;^UTILITY(U,$J,358.3,37908,2)
- ;;=^5137406
- ;;^UTILITY(U,$J,358.3,37909,0)
- ;;=S91.021A^^146^1921^10
- ;;^UTILITY(U,$J,358.3,37909,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37909,1,3,0)
- ;;=3^Lacrtn w/ foreign body rt ankl, init
- ;;^UTILITY(U,$J,358.3,37909,1,4,0)
- ;;=4^S91.021A
- ;;^UTILITY(U,$J,358.3,37909,2)
- ;;=^5044144
- ;;^UTILITY(U,$J,358.3,37910,0)
- ;;=S81.821A^^146^1921^14
- ;;^UTILITY(U,$J,358.3,37910,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37910,1,3,0)
- ;;=3^Lacrtn w/ foreign body rt lwr leg, init
- ;;^UTILITY(U,$J,358.3,37910,1,4,0)
- ;;=4^S81.821A
- ;;^UTILITY(U,$J,358.3,37910,2)
- ;;=^5040080
- ;;^UTILITY(U,$J,358.3,37911,0)
- ;;=S81.822A^^146^1921^2
- ;;^UTILITY(U,$J,358.3,37911,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37911,1,3,0)
- ;;=3^Lacrtn w/ foregin body lft lwr leg, init
- ;;^UTILITY(U,$J,358.3,37911,1,4,0)
- ;;=4^S81.822A
- ;;^UTILITY(U,$J,358.3,37911,2)
- ;;=^5136691
- ;;^UTILITY(U,$J,358.3,37912,0)
- ;;=S91.321A^^146^1921^3
- ;;^UTILITY(U,$J,358.3,37912,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37912,1,3,0)
- ;;=3^Lacrtn w/ foregin body rt ft, init
- ;;^UTILITY(U,$J,358.3,37912,1,4,0)
- ;;=4^S91.321A
- ;;^UTILITY(U,$J,358.3,37912,2)
- ;;=^5044329
- ;;^UTILITY(U,$J,358.3,37913,0)
- ;;=S91.322A^^146^1921^1
- ;;^UTILITY(U,$J,358.3,37913,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37913,1,3,0)
- ;;=3^Lacrtn w/ foregin body lft ft, init
- ;;^UTILITY(U,$J,358.3,37913,1,4,0)
- ;;=4^S91.322A
- ;;^UTILITY(U,$J,358.3,37913,2)
- ;;=^5137527
- ;;^UTILITY(U,$J,358.3,37914,0)
- ;;=S91.125A^^146^1921^8
- ;;^UTILITY(U,$J,358.3,37914,1,0)
- ;;=^358.31IA^4^2
- ;;^UTILITY(U,$J,358.3,37914,1,3,0)
- ;;=3^Lacrtn w/ foreign body lft lsr toe(s) w/o nail dmg, init
- ;;^UTILITY(U,$J,358.3,37914,1,4,0)
- ;;=4^S91.125A
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2DK 3750 printed Dec 13, 2024@02:26:39 Page 2
- IBDEI2DK ; ; 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,37903,1,3,0)
- +2 ;;=3^Lacrtn w/o foreign body lft lsr toe(s) w/o nail dmg, init
- +3 ;;^UTILITY(U,$J,358.3,37903,1,4,0)
- +4 ;;=4^S91.115A
- +5 ;;^UTILITY(U,$J,358.3,37903,2)
- +6 ;;=^5044195
- +7 ;;^UTILITY(U,$J,358.3,37904,0)
- +8 ;;=S91.111A^^146^1921^26
- +9 ;;^UTILITY(U,$J,358.3,37904,1,0)
- +10 ;;=^358.31IA^4^2
- +11 ;;^UTILITY(U,$J,358.3,37904,1,3,0)
- +12 ;;=3^Lacrtn w/o foreign body rt grt toe w/o nail dmg, init
- +13 ;;^UTILITY(U,$J,358.3,37904,1,4,0)
- +14 ;;=4^S91.111A
- +15 ;;^UTILITY(U,$J,358.3,37904,2)
- +16 ;;=^5044183
- +17 ;;^UTILITY(U,$J,358.3,37905,0)
- +18 ;;=S91.112A^^146^1921^19
- +19 ;;^UTILITY(U,$J,358.3,37905,1,0)
- +20 ;;=^358.31IA^4^2
- +21 ;;^UTILITY(U,$J,358.3,37905,1,3,0)
- +22 ;;=3^Lacrtn w/o foreign body lft grt toe w/o nail dmg, init
- +23 ;;^UTILITY(U,$J,358.3,37905,1,4,0)
- +24 ;;=4^S91.112A
- +25 ;;^UTILITY(U,$J,358.3,37905,2)
- +26 ;;=^5044186
- +27 ;;^UTILITY(U,$J,358.3,37906,0)
- +28 ;;=S91.214A^^146^1921^15
- +29 ;;^UTILITY(U,$J,358.3,37906,1,0)
- +30 ;;=^358.31IA^4^2
- +31 ;;^UTILITY(U,$J,358.3,37906,1,3,0)
- +32 ;;=3^Lacrtn w/o foregin body rt lsr toe(s) w/ nail dmg, init
- +33 ;;^UTILITY(U,$J,358.3,37906,1,4,0)
- +34 ;;=4^S91.214A
- +35 ;;^UTILITY(U,$J,358.3,37906,2)
- +36 ;;=^5044279
- +37 ;;^UTILITY(U,$J,358.3,37907,0)
- +38 ;;=S91.215A^^146^1921^21
- +39 ;;^UTILITY(U,$J,358.3,37907,1,0)
- +40 ;;=^358.31IA^4^2
- +41 ;;^UTILITY(U,$J,358.3,37907,1,3,0)
- +42 ;;=3^Lacrtn w/o foreign body lft lsr toe(s) w/ nail dmg, init
- +43 ;;^UTILITY(U,$J,358.3,37907,1,4,0)
- +44 ;;=4^S91.215A
- +45 ;;^UTILITY(U,$J,358.3,37907,2)
- +46 ;;=^5044282
- +47 ;;^UTILITY(U,$J,358.3,37908,0)
- +48 ;;=S91.022A^^146^1921^5
- +49 ;;^UTILITY(U,$J,358.3,37908,1,0)
- +50 ;;=^358.31IA^4^2
- +51 ;;^UTILITY(U,$J,358.3,37908,1,3,0)
- +52 ;;=3^Lacrtn w/ foreign body lft ankl, init
- +53 ;;^UTILITY(U,$J,358.3,37908,1,4,0)
- +54 ;;=4^S91.022A
- +55 ;;^UTILITY(U,$J,358.3,37908,2)
- +56 ;;=^5137406
- +57 ;;^UTILITY(U,$J,358.3,37909,0)
- +58 ;;=S91.021A^^146^1921^10
- +59 ;;^UTILITY(U,$J,358.3,37909,1,0)
- +60 ;;=^358.31IA^4^2
- +61 ;;^UTILITY(U,$J,358.3,37909,1,3,0)
- +62 ;;=3^Lacrtn w/ foreign body rt ankl, init
- +63 ;;^UTILITY(U,$J,358.3,37909,1,4,0)
- +64 ;;=4^S91.021A
- +65 ;;^UTILITY(U,$J,358.3,37909,2)
- +66 ;;=^5044144
- +67 ;;^UTILITY(U,$J,358.3,37910,0)
- +68 ;;=S81.821A^^146^1921^14
- +69 ;;^UTILITY(U,$J,358.3,37910,1,0)
- +70 ;;=^358.31IA^4^2
- +71 ;;^UTILITY(U,$J,358.3,37910,1,3,0)
- +72 ;;=3^Lacrtn w/ foreign body rt lwr leg, init
- +73 ;;^UTILITY(U,$J,358.3,37910,1,4,0)
- +74 ;;=4^S81.821A
- +75 ;;^UTILITY(U,$J,358.3,37910,2)
- +76 ;;=^5040080
- +77 ;;^UTILITY(U,$J,358.3,37911,0)
- +78 ;;=S81.822A^^146^1921^2
- +79 ;;^UTILITY(U,$J,358.3,37911,1,0)
- +80 ;;=^358.31IA^4^2
- +81 ;;^UTILITY(U,$J,358.3,37911,1,3,0)
- +82 ;;=3^Lacrtn w/ foregin body lft lwr leg, init
- +83 ;;^UTILITY(U,$J,358.3,37911,1,4,0)
- +84 ;;=4^S81.822A
- +85 ;;^UTILITY(U,$J,358.3,37911,2)
- +86 ;;=^5136691
- +87 ;;^UTILITY(U,$J,358.3,37912,0)
- +88 ;;=S91.321A^^146^1921^3
- +89 ;;^UTILITY(U,$J,358.3,37912,1,0)
- +90 ;;=^358.31IA^4^2
- +91 ;;^UTILITY(U,$J,358.3,37912,1,3,0)
- +92 ;;=3^Lacrtn w/ foregin body rt ft, init
- +93 ;;^UTILITY(U,$J,358.3,37912,1,4,0)
- +94 ;;=4^S91.321A
- +95 ;;^UTILITY(U,$J,358.3,37912,2)
- +96 ;;=^5044329
- +97 ;;^UTILITY(U,$J,358.3,37913,0)
- +98 ;;=S91.322A^^146^1921^1
- +99 ;;^UTILITY(U,$J,358.3,37913,1,0)
- +100 ;;=^358.31IA^4^2
- +101 ;;^UTILITY(U,$J,358.3,37913,1,3,0)
- +102 ;;=3^Lacrtn w/ foregin body lft ft, init
- +103 ;;^UTILITY(U,$J,358.3,37913,1,4,0)
- +104 ;;=4^S91.322A
- +105 ;;^UTILITY(U,$J,358.3,37913,2)
- +106 ;;=^5137527
- +107 ;;^UTILITY(U,$J,358.3,37914,0)
- +108 ;;=S91.125A^^146^1921^8
- +109 ;;^UTILITY(U,$J,358.3,37914,1,0)
- +110 ;;=^358.31IA^4^2
- +111 ;;^UTILITY(U,$J,358.3,37914,1,3,0)
- +112 ;;=3^Lacrtn w/ foreign body lft lsr toe(s) w/o nail dmg, init
- +113 ;;^UTILITY(U,$J,358.3,37914,1,4,0)
- +114 ;;=4^S91.125A