IBDEI36V ; ; 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,50915,1,4,0)
;;=4^Z94.4
;;^UTILITY(U,$J,358.3,50915,2)
;;=^5063658
;;^UTILITY(U,$J,358.3,50916,0)
;;=Z94.84^^193^2498^149
;;^UTILITY(U,$J,358.3,50916,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50916,1,3,0)
;;=3^Stem Cell Transplant Status
;;^UTILITY(U,$J,358.3,50916,1,4,0)
;;=4^Z94.84
;;^UTILITY(U,$J,358.3,50916,2)
;;=^5063665
;;^UTILITY(U,$J,358.3,50917,0)
;;=Z96.21^^193^2498^6
;;^UTILITY(U,$J,358.3,50917,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50917,1,3,0)
;;=3^Cochlear Implant Status
;;^UTILITY(U,$J,358.3,50917,1,4,0)
;;=4^Z96.21
;;^UTILITY(U,$J,358.3,50917,2)
;;=^5063684
;;^UTILITY(U,$J,358.3,50918,0)
;;=Z96.41^^193^2498^132
;;^UTILITY(U,$J,358.3,50918,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50918,1,3,0)
;;=3^Presence of Insulin Pump
;;^UTILITY(U,$J,358.3,50918,1,4,0)
;;=4^Z96.41
;;^UTILITY(U,$J,358.3,50918,2)
;;=^5063688
;;^UTILITY(U,$J,358.3,50919,0)
;;=Z96.641^^193^2498^140
;;^UTILITY(U,$J,358.3,50919,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50919,1,3,0)
;;=3^Presence of Right Artificial Hip Jt
;;^UTILITY(U,$J,358.3,50919,1,4,0)
;;=4^Z96.641
;;^UTILITY(U,$J,358.3,50919,2)
;;=^5063701
;;^UTILITY(U,$J,358.3,50920,0)
;;=Z96.642^^193^2498^135
;;^UTILITY(U,$J,358.3,50920,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50920,1,3,0)
;;=3^Presence of Left Artificial Hip Jt
;;^UTILITY(U,$J,358.3,50920,1,4,0)
;;=4^Z96.642
;;^UTILITY(U,$J,358.3,50920,2)
;;=^5063702
;;^UTILITY(U,$J,358.3,50921,0)
;;=Z96.643^^193^2498^119
;;^UTILITY(U,$J,358.3,50921,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50921,1,3,0)
;;=3^Presence of Artificial Hip Jt,Bilateral
;;^UTILITY(U,$J,358.3,50921,1,4,0)
;;=4^Z96.643
;;^UTILITY(U,$J,358.3,50921,2)
;;=^5063703
;;^UTILITY(U,$J,358.3,50922,0)
;;=Z96.651^^193^2498^141
;;^UTILITY(U,$J,358.3,50922,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50922,1,3,0)
;;=3^Presence of Right Artificial Knee Jt
;;^UTILITY(U,$J,358.3,50922,1,4,0)
;;=4^Z96.651
;;^UTILITY(U,$J,358.3,50922,2)
;;=^5063705
;;^UTILITY(U,$J,358.3,50923,0)
;;=Z96.652^^193^2498^136
;;^UTILITY(U,$J,358.3,50923,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50923,1,3,0)
;;=3^Presence of Left Artificial Knee Jt
;;^UTILITY(U,$J,358.3,50923,1,4,0)
;;=4^Z96.652
;;^UTILITY(U,$J,358.3,50923,2)
;;=^5063706
;;^UTILITY(U,$J,358.3,50924,0)
;;=Z96.653^^193^2498^120
;;^UTILITY(U,$J,358.3,50924,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50924,1,3,0)
;;=3^Presence of Artificial Knee Jt,Bilateral
;;^UTILITY(U,$J,358.3,50924,1,4,0)
;;=4^Z96.653
;;^UTILITY(U,$J,358.3,50924,2)
;;=^5063707
;;^UTILITY(U,$J,358.3,50925,0)
;;=Z96.7^^193^2498^125
;;^UTILITY(U,$J,358.3,50925,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50925,1,3,0)
;;=3^Presence of Bone/Tendon Implants NEC
;;^UTILITY(U,$J,358.3,50925,1,4,0)
;;=4^Z96.7
;;^UTILITY(U,$J,358.3,50925,2)
;;=^5063716
;;^UTILITY(U,$J,358.3,50926,0)
;;=Z97.11^^193^2498^139
;;^UTILITY(U,$J,358.3,50926,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50926,1,3,0)
;;=3^Presence of Right Artificial Arm
;;^UTILITY(U,$J,358.3,50926,1,4,0)
;;=4^Z97.11
;;^UTILITY(U,$J,358.3,50926,2)
;;=^5063722
;;^UTILITY(U,$J,358.3,50927,0)
;;=Z97.12^^193^2498^134
;;^UTILITY(U,$J,358.3,50927,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50927,1,3,0)
;;=3^Presence of Left Artificial Arm
;;^UTILITY(U,$J,358.3,50927,1,4,0)
;;=4^Z97.12
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI36V 3778 printed Dec 13, 2024@02:42:57 Page 2
IBDEI36V ; ; 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,50915,1,4,0)
+2 ;;=4^Z94.4
+3 ;;^UTILITY(U,$J,358.3,50915,2)
+4 ;;=^5063658
+5 ;;^UTILITY(U,$J,358.3,50916,0)
+6 ;;=Z94.84^^193^2498^149
+7 ;;^UTILITY(U,$J,358.3,50916,1,0)
+8 ;;=^358.31IA^4^2
+9 ;;^UTILITY(U,$J,358.3,50916,1,3,0)
+10 ;;=3^Stem Cell Transplant Status
+11 ;;^UTILITY(U,$J,358.3,50916,1,4,0)
+12 ;;=4^Z94.84
+13 ;;^UTILITY(U,$J,358.3,50916,2)
+14 ;;=^5063665
+15 ;;^UTILITY(U,$J,358.3,50917,0)
+16 ;;=Z96.21^^193^2498^6
+17 ;;^UTILITY(U,$J,358.3,50917,1,0)
+18 ;;=^358.31IA^4^2
+19 ;;^UTILITY(U,$J,358.3,50917,1,3,0)
+20 ;;=3^Cochlear Implant Status
+21 ;;^UTILITY(U,$J,358.3,50917,1,4,0)
+22 ;;=4^Z96.21
+23 ;;^UTILITY(U,$J,358.3,50917,2)
+24 ;;=^5063684
+25 ;;^UTILITY(U,$J,358.3,50918,0)
+26 ;;=Z96.41^^193^2498^132
+27 ;;^UTILITY(U,$J,358.3,50918,1,0)
+28 ;;=^358.31IA^4^2
+29 ;;^UTILITY(U,$J,358.3,50918,1,3,0)
+30 ;;=3^Presence of Insulin Pump
+31 ;;^UTILITY(U,$J,358.3,50918,1,4,0)
+32 ;;=4^Z96.41
+33 ;;^UTILITY(U,$J,358.3,50918,2)
+34 ;;=^5063688
+35 ;;^UTILITY(U,$J,358.3,50919,0)
+36 ;;=Z96.641^^193^2498^140
+37 ;;^UTILITY(U,$J,358.3,50919,1,0)
+38 ;;=^358.31IA^4^2
+39 ;;^UTILITY(U,$J,358.3,50919,1,3,0)
+40 ;;=3^Presence of Right Artificial Hip Jt
+41 ;;^UTILITY(U,$J,358.3,50919,1,4,0)
+42 ;;=4^Z96.641
+43 ;;^UTILITY(U,$J,358.3,50919,2)
+44 ;;=^5063701
+45 ;;^UTILITY(U,$J,358.3,50920,0)
+46 ;;=Z96.642^^193^2498^135
+47 ;;^UTILITY(U,$J,358.3,50920,1,0)
+48 ;;=^358.31IA^4^2
+49 ;;^UTILITY(U,$J,358.3,50920,1,3,0)
+50 ;;=3^Presence of Left Artificial Hip Jt
+51 ;;^UTILITY(U,$J,358.3,50920,1,4,0)
+52 ;;=4^Z96.642
+53 ;;^UTILITY(U,$J,358.3,50920,2)
+54 ;;=^5063702
+55 ;;^UTILITY(U,$J,358.3,50921,0)
+56 ;;=Z96.643^^193^2498^119
+57 ;;^UTILITY(U,$J,358.3,50921,1,0)
+58 ;;=^358.31IA^4^2
+59 ;;^UTILITY(U,$J,358.3,50921,1,3,0)
+60 ;;=3^Presence of Artificial Hip Jt,Bilateral
+61 ;;^UTILITY(U,$J,358.3,50921,1,4,0)
+62 ;;=4^Z96.643
+63 ;;^UTILITY(U,$J,358.3,50921,2)
+64 ;;=^5063703
+65 ;;^UTILITY(U,$J,358.3,50922,0)
+66 ;;=Z96.651^^193^2498^141
+67 ;;^UTILITY(U,$J,358.3,50922,1,0)
+68 ;;=^358.31IA^4^2
+69 ;;^UTILITY(U,$J,358.3,50922,1,3,0)
+70 ;;=3^Presence of Right Artificial Knee Jt
+71 ;;^UTILITY(U,$J,358.3,50922,1,4,0)
+72 ;;=4^Z96.651
+73 ;;^UTILITY(U,$J,358.3,50922,2)
+74 ;;=^5063705
+75 ;;^UTILITY(U,$J,358.3,50923,0)
+76 ;;=Z96.652^^193^2498^136
+77 ;;^UTILITY(U,$J,358.3,50923,1,0)
+78 ;;=^358.31IA^4^2
+79 ;;^UTILITY(U,$J,358.3,50923,1,3,0)
+80 ;;=3^Presence of Left Artificial Knee Jt
+81 ;;^UTILITY(U,$J,358.3,50923,1,4,0)
+82 ;;=4^Z96.652
+83 ;;^UTILITY(U,$J,358.3,50923,2)
+84 ;;=^5063706
+85 ;;^UTILITY(U,$J,358.3,50924,0)
+86 ;;=Z96.653^^193^2498^120
+87 ;;^UTILITY(U,$J,358.3,50924,1,0)
+88 ;;=^358.31IA^4^2
+89 ;;^UTILITY(U,$J,358.3,50924,1,3,0)
+90 ;;=3^Presence of Artificial Knee Jt,Bilateral
+91 ;;^UTILITY(U,$J,358.3,50924,1,4,0)
+92 ;;=4^Z96.653
+93 ;;^UTILITY(U,$J,358.3,50924,2)
+94 ;;=^5063707
+95 ;;^UTILITY(U,$J,358.3,50925,0)
+96 ;;=Z96.7^^193^2498^125
+97 ;;^UTILITY(U,$J,358.3,50925,1,0)
+98 ;;=^358.31IA^4^2
+99 ;;^UTILITY(U,$J,358.3,50925,1,3,0)
+100 ;;=3^Presence of Bone/Tendon Implants NEC
+101 ;;^UTILITY(U,$J,358.3,50925,1,4,0)
+102 ;;=4^Z96.7
+103 ;;^UTILITY(U,$J,358.3,50925,2)
+104 ;;=^5063716
+105 ;;^UTILITY(U,$J,358.3,50926,0)
+106 ;;=Z97.11^^193^2498^139
+107 ;;^UTILITY(U,$J,358.3,50926,1,0)
+108 ;;=^358.31IA^4^2
+109 ;;^UTILITY(U,$J,358.3,50926,1,3,0)
+110 ;;=3^Presence of Right Artificial Arm
+111 ;;^UTILITY(U,$J,358.3,50926,1,4,0)
+112 ;;=4^Z97.11
+113 ;;^UTILITY(U,$J,358.3,50926,2)
+114 ;;=^5063722
+115 ;;^UTILITY(U,$J,358.3,50927,0)
+116 ;;=Z97.12^^193^2498^134
+117 ;;^UTILITY(U,$J,358.3,50927,1,0)
+118 ;;=^358.31IA^4^2
+119 ;;^UTILITY(U,$J,358.3,50927,1,3,0)
+120 ;;=3^Presence of Left Artificial Arm
+121 ;;^UTILITY(U,$J,358.3,50927,1,4,0)
+122 ;;=4^Z97.12