IBDEI2AK ; ; 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,36592,0)
;;=S48.922A^^142^1863^25
;;^UTILITY(U,$J,358.3,36592,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36592,1,3,0)
;;=3^Amputation,Partial Traumatic Left Shoulder,Init Encntr
;;^UTILITY(U,$J,358.3,36592,1,4,0)
;;=4^S48.922A
;;^UTILITY(U,$J,358.3,36592,2)
;;=^5028335
;;^UTILITY(U,$J,358.3,36593,0)
;;=S98.142A^^142^1863^13
;;^UTILITY(U,$J,358.3,36593,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36593,1,3,0)
;;=3^Amputation,Partial Traumatic Left 1 Lesser Toe,Init Encntr
;;^UTILITY(U,$J,358.3,36593,1,4,0)
;;=4^S98.142A
;;^UTILITY(U,$J,358.3,36593,2)
;;=^5046293
;;^UTILITY(U,$J,358.3,36594,0)
;;=S58.121A^^142^1863^33
;;^UTILITY(U,$J,358.3,36594,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36594,1,3,0)
;;=3^Amputation,Partial Traumatic Right Arm Between Elbow & Wrist,Init Encntr
;;^UTILITY(U,$J,358.3,36594,1,4,0)
;;=4^S58.121A
;;^UTILITY(U,$J,358.3,36594,2)
;;=^5031934
;;^UTILITY(U,$J,358.3,36595,0)
;;=S98.141A^^142^1863^31
;;^UTILITY(U,$J,358.3,36595,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36595,1,3,0)
;;=3^Amputation,Partial Traumatic Right 1 Lesser Toe,Init Encntr
;;^UTILITY(U,$J,358.3,36595,1,4,0)
;;=4^S98.141A
;;^UTILITY(U,$J,358.3,36595,2)
;;=^5046290
;;^UTILITY(U,$J,358.3,36596,0)
;;=S98.021A^^142^1863^34
;;^UTILITY(U,$J,358.3,36596,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36596,1,3,0)
;;=3^Amputation,Partial Traumatic Right Foot at Ankle Level,Init Encntr
;;^UTILITY(U,$J,358.3,36596,1,4,0)
;;=4^S98.021A
;;^UTILITY(U,$J,358.3,36596,2)
;;=^5046254
;;^UTILITY(U,$J,358.3,36597,0)
;;=S98.921A^^142^1863^35
;;^UTILITY(U,$J,358.3,36597,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36597,1,3,0)
;;=3^Amputation,Partial Traumatic Right Foot,Init Encntr
;;^UTILITY(U,$J,358.3,36597,1,4,0)
;;=4^S98.921A
;;^UTILITY(U,$J,358.3,36597,2)
;;=^5046344
;;^UTILITY(U,$J,358.3,36598,0)
;;=S98.121A^^142^1863^36
;;^UTILITY(U,$J,358.3,36598,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36598,1,3,0)
;;=3^Amputation,Partial Traumatic Right Great Toe,Init Encntr
;;^UTILITY(U,$J,358.3,36598,1,4,0)
;;=4^S98.121A
;;^UTILITY(U,$J,358.3,36598,2)
;;=^5046272
;;^UTILITY(U,$J,358.3,36599,0)
;;=S98.321A^^142^1863^42
;;^UTILITY(U,$J,358.3,36599,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36599,1,3,0)
;;=3^Amputation,Partial Traumatic Right Midfoot,Init Encntr
;;^UTILITY(U,$J,358.3,36599,1,4,0)
;;=4^S98.321A
;;^UTILITY(U,$J,358.3,36599,2)
;;=^5046326
;;^UTILITY(U,$J,358.3,36600,0)
;;=S48.921A^^142^1863^43
;;^UTILITY(U,$J,358.3,36600,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36600,1,3,0)
;;=3^Amputation,Partial Traumatic Right Shoulder,Init Encntr
;;^UTILITY(U,$J,358.3,36600,1,4,0)
;;=4^S48.921A
;;^UTILITY(U,$J,358.3,36600,2)
;;=^5028332
;;^UTILITY(U,$J,358.3,36601,0)
;;=S98.221A^^142^1863^32
;;^UTILITY(U,$J,358.3,36601,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36601,1,3,0)
;;=3^Amputation,Partial Traumatic Right 2 or More Lesser Toes,Init Encntr
;;^UTILITY(U,$J,358.3,36601,1,4,0)
;;=4^S98.221A
;;^UTILITY(U,$J,358.3,36601,2)
;;=^5046308
;;^UTILITY(U,$J,358.3,36602,0)
;;=S68.120A^^142^1863^37
;;^UTILITY(U,$J,358.3,36602,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,36602,1,3,0)
;;=3^Amputation,Partial Traumatic Right MCP Index Finger,Init Encntr
;;^UTILITY(U,$J,358.3,36602,1,4,0)
;;=4^S68.120A
;;^UTILITY(U,$J,358.3,36602,2)
;;=^5036669
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2AK 3761 printed Oct 16, 2024@18:25:47 Page 2
IBDEI2AK ; ; 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,36592,0)
+2 ;;=S48.922A^^142^1863^25
+3 ;;^UTILITY(U,$J,358.3,36592,1,0)
+4 ;;=^358.31IA^4^2
+5 ;;^UTILITY(U,$J,358.3,36592,1,3,0)
+6 ;;=3^Amputation,Partial Traumatic Left Shoulder,Init Encntr
+7 ;;^UTILITY(U,$J,358.3,36592,1,4,0)
+8 ;;=4^S48.922A
+9 ;;^UTILITY(U,$J,358.3,36592,2)
+10 ;;=^5028335
+11 ;;^UTILITY(U,$J,358.3,36593,0)
+12 ;;=S98.142A^^142^1863^13
+13 ;;^UTILITY(U,$J,358.3,36593,1,0)
+14 ;;=^358.31IA^4^2
+15 ;;^UTILITY(U,$J,358.3,36593,1,3,0)
+16 ;;=3^Amputation,Partial Traumatic Left 1 Lesser Toe,Init Encntr
+17 ;;^UTILITY(U,$J,358.3,36593,1,4,0)
+18 ;;=4^S98.142A
+19 ;;^UTILITY(U,$J,358.3,36593,2)
+20 ;;=^5046293
+21 ;;^UTILITY(U,$J,358.3,36594,0)
+22 ;;=S58.121A^^142^1863^33
+23 ;;^UTILITY(U,$J,358.3,36594,1,0)
+24 ;;=^358.31IA^4^2
+25 ;;^UTILITY(U,$J,358.3,36594,1,3,0)
+26 ;;=3^Amputation,Partial Traumatic Right Arm Between Elbow & Wrist,Init Encntr
+27 ;;^UTILITY(U,$J,358.3,36594,1,4,0)
+28 ;;=4^S58.121A
+29 ;;^UTILITY(U,$J,358.3,36594,2)
+30 ;;=^5031934
+31 ;;^UTILITY(U,$J,358.3,36595,0)
+32 ;;=S98.141A^^142^1863^31
+33 ;;^UTILITY(U,$J,358.3,36595,1,0)
+34 ;;=^358.31IA^4^2
+35 ;;^UTILITY(U,$J,358.3,36595,1,3,0)
+36 ;;=3^Amputation,Partial Traumatic Right 1 Lesser Toe,Init Encntr
+37 ;;^UTILITY(U,$J,358.3,36595,1,4,0)
+38 ;;=4^S98.141A
+39 ;;^UTILITY(U,$J,358.3,36595,2)
+40 ;;=^5046290
+41 ;;^UTILITY(U,$J,358.3,36596,0)
+42 ;;=S98.021A^^142^1863^34
+43 ;;^UTILITY(U,$J,358.3,36596,1,0)
+44 ;;=^358.31IA^4^2
+45 ;;^UTILITY(U,$J,358.3,36596,1,3,0)
+46 ;;=3^Amputation,Partial Traumatic Right Foot at Ankle Level,Init Encntr
+47 ;;^UTILITY(U,$J,358.3,36596,1,4,0)
+48 ;;=4^S98.021A
+49 ;;^UTILITY(U,$J,358.3,36596,2)
+50 ;;=^5046254
+51 ;;^UTILITY(U,$J,358.3,36597,0)
+52 ;;=S98.921A^^142^1863^35
+53 ;;^UTILITY(U,$J,358.3,36597,1,0)
+54 ;;=^358.31IA^4^2
+55 ;;^UTILITY(U,$J,358.3,36597,1,3,0)
+56 ;;=3^Amputation,Partial Traumatic Right Foot,Init Encntr
+57 ;;^UTILITY(U,$J,358.3,36597,1,4,0)
+58 ;;=4^S98.921A
+59 ;;^UTILITY(U,$J,358.3,36597,2)
+60 ;;=^5046344
+61 ;;^UTILITY(U,$J,358.3,36598,0)
+62 ;;=S98.121A^^142^1863^36
+63 ;;^UTILITY(U,$J,358.3,36598,1,0)
+64 ;;=^358.31IA^4^2
+65 ;;^UTILITY(U,$J,358.3,36598,1,3,0)
+66 ;;=3^Amputation,Partial Traumatic Right Great Toe,Init Encntr
+67 ;;^UTILITY(U,$J,358.3,36598,1,4,0)
+68 ;;=4^S98.121A
+69 ;;^UTILITY(U,$J,358.3,36598,2)
+70 ;;=^5046272
+71 ;;^UTILITY(U,$J,358.3,36599,0)
+72 ;;=S98.321A^^142^1863^42
+73 ;;^UTILITY(U,$J,358.3,36599,1,0)
+74 ;;=^358.31IA^4^2
+75 ;;^UTILITY(U,$J,358.3,36599,1,3,0)
+76 ;;=3^Amputation,Partial Traumatic Right Midfoot,Init Encntr
+77 ;;^UTILITY(U,$J,358.3,36599,1,4,0)
+78 ;;=4^S98.321A
+79 ;;^UTILITY(U,$J,358.3,36599,2)
+80 ;;=^5046326
+81 ;;^UTILITY(U,$J,358.3,36600,0)
+82 ;;=S48.921A^^142^1863^43
+83 ;;^UTILITY(U,$J,358.3,36600,1,0)
+84 ;;=^358.31IA^4^2
+85 ;;^UTILITY(U,$J,358.3,36600,1,3,0)
+86 ;;=3^Amputation,Partial Traumatic Right Shoulder,Init Encntr
+87 ;;^UTILITY(U,$J,358.3,36600,1,4,0)
+88 ;;=4^S48.921A
+89 ;;^UTILITY(U,$J,358.3,36600,2)
+90 ;;=^5028332
+91 ;;^UTILITY(U,$J,358.3,36601,0)
+92 ;;=S98.221A^^142^1863^32
+93 ;;^UTILITY(U,$J,358.3,36601,1,0)
+94 ;;=^358.31IA^4^2
+95 ;;^UTILITY(U,$J,358.3,36601,1,3,0)
+96 ;;=3^Amputation,Partial Traumatic Right 2 or More Lesser Toes,Init Encntr
+97 ;;^UTILITY(U,$J,358.3,36601,1,4,0)
+98 ;;=4^S98.221A
+99 ;;^UTILITY(U,$J,358.3,36601,2)
+100 ;;=^5046308
+101 ;;^UTILITY(U,$J,358.3,36602,0)
+102 ;;=S68.120A^^142^1863^37
+103 ;;^UTILITY(U,$J,358.3,36602,1,0)
+104 ;;=^358.31IA^4^2
+105 ;;^UTILITY(U,$J,358.3,36602,1,3,0)
+106 ;;=3^Amputation,Partial Traumatic Right MCP Index Finger,Init Encntr
+107 ;;^UTILITY(U,$J,358.3,36602,1,4,0)
+108 ;;=4^S68.120A
+109 ;;^UTILITY(U,$J,358.3,36602,2)
+110 ;;=^5036669