IBDEI36N ; ; 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,50818,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50818,1,3,0)
;;=3^Personal Hx of Malig Neop of Stomach
;;^UTILITY(U,$J,358.3,50818,1,4,0)
;;=4^Z85.028
;;^UTILITY(U,$J,358.3,50818,2)
;;=^5063397
;;^UTILITY(U,$J,358.3,50819,0)
;;=Z85.038^^193^2498^84
;;^UTILITY(U,$J,358.3,50819,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50819,1,3,0)
;;=3^Personal Hx of Malig Neop of Large Intestine
;;^UTILITY(U,$J,358.3,50819,1,4,0)
;;=4^Z85.038
;;^UTILITY(U,$J,358.3,50819,2)
;;=^5063399
;;^UTILITY(U,$J,358.3,50820,0)
;;=Z85.048^^193^2498^91
;;^UTILITY(U,$J,358.3,50820,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50820,1,3,0)
;;=3^Personal Hx of Malig Neop of Rectum,Rectosig Junct & Anus
;;^UTILITY(U,$J,358.3,50820,1,4,0)
;;=4^Z85.048
;;^UTILITY(U,$J,358.3,50820,2)
;;=^5063401
;;^UTILITY(U,$J,358.3,50821,0)
;;=Z85.118^^193^2498^80
;;^UTILITY(U,$J,358.3,50821,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50821,1,3,0)
;;=3^Personal Hx of Malig Neop of Bronchus & Lung
;;^UTILITY(U,$J,358.3,50821,1,4,0)
;;=4^Z85.118
;;^UTILITY(U,$J,358.3,50821,2)
;;=^5063408
;;^UTILITY(U,$J,358.3,50822,0)
;;=Z85.21^^193^2498^85
;;^UTILITY(U,$J,358.3,50822,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50822,1,3,0)
;;=3^Personal Hx of Malig Neop of Larynx
;;^UTILITY(U,$J,358.3,50822,1,4,0)
;;=4^Z85.21
;;^UTILITY(U,$J,358.3,50822,2)
;;=^5063411
;;^UTILITY(U,$J,358.3,50823,0)
;;=Z85.3^^193^2498^79
;;^UTILITY(U,$J,358.3,50823,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50823,1,3,0)
;;=3^Personal Hx of Malig Neop of Breast
;;^UTILITY(U,$J,358.3,50823,1,4,0)
;;=4^Z85.3
;;^UTILITY(U,$J,358.3,50823,2)
;;=^5063416
;;^UTILITY(U,$J,358.3,50824,0)
;;=Z85.41^^193^2498^81
;;^UTILITY(U,$J,358.3,50824,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50824,1,3,0)
;;=3^Personal Hx of Malig Neop of Cervix Uteri
;;^UTILITY(U,$J,358.3,50824,1,4,0)
;;=4^Z85.41
;;^UTILITY(U,$J,358.3,50824,2)
;;=^5063418
;;^UTILITY(U,$J,358.3,50825,0)
;;=Z85.43^^193^2498^89
;;^UTILITY(U,$J,358.3,50825,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50825,1,3,0)
;;=3^Personal Hx of Malig Neop of Ovary
;;^UTILITY(U,$J,358.3,50825,1,4,0)
;;=4^Z85.43
;;^UTILITY(U,$J,358.3,50825,2)
;;=^5063420
;;^UTILITY(U,$J,358.3,50826,0)
;;=Z85.46^^193^2498^90
;;^UTILITY(U,$J,358.3,50826,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50826,1,3,0)
;;=3^Personal Hx of Malig Neop of Prostate
;;^UTILITY(U,$J,358.3,50826,1,4,0)
;;=4^Z85.46
;;^UTILITY(U,$J,358.3,50826,2)
;;=^5063423
;;^UTILITY(U,$J,358.3,50827,0)
;;=Z85.47^^193^2498^94
;;^UTILITY(U,$J,358.3,50827,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50827,1,3,0)
;;=3^Personal Hx of Malig Neop of Testis
;;^UTILITY(U,$J,358.3,50827,1,4,0)
;;=4^Z85.47
;;^UTILITY(U,$J,358.3,50827,2)
;;=^5063424
;;^UTILITY(U,$J,358.3,50828,0)
;;=Z85.51^^193^2498^78
;;^UTILITY(U,$J,358.3,50828,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50828,1,3,0)
;;=3^Personal Hx of Malig Neop of Bladder
;;^UTILITY(U,$J,358.3,50828,1,4,0)
;;=4^Z85.51
;;^UTILITY(U,$J,358.3,50828,2)
;;=^5063428
;;^UTILITY(U,$J,358.3,50829,0)
;;=Z85.528^^193^2498^83
;;^UTILITY(U,$J,358.3,50829,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,50829,1,3,0)
;;=3^Personal Hx of Malig Neop of Kidney
;;^UTILITY(U,$J,358.3,50829,1,4,0)
;;=4^Z85.528
;;^UTILITY(U,$J,358.3,50829,2)
;;=^5063430
;;^UTILITY(U,$J,358.3,50830,0)
;;=Z85.6^^193^2498^74
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI36N 3791 printed Dec 13, 2024@02:42:50 Page 2
IBDEI36N ; ; 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,50818,1,0)
+2 ;;=^358.31IA^4^2
+3 ;;^UTILITY(U,$J,358.3,50818,1,3,0)
+4 ;;=3^Personal Hx of Malig Neop of Stomach
+5 ;;^UTILITY(U,$J,358.3,50818,1,4,0)
+6 ;;=4^Z85.028
+7 ;;^UTILITY(U,$J,358.3,50818,2)
+8 ;;=^5063397
+9 ;;^UTILITY(U,$J,358.3,50819,0)
+10 ;;=Z85.038^^193^2498^84
+11 ;;^UTILITY(U,$J,358.3,50819,1,0)
+12 ;;=^358.31IA^4^2
+13 ;;^UTILITY(U,$J,358.3,50819,1,3,0)
+14 ;;=3^Personal Hx of Malig Neop of Large Intestine
+15 ;;^UTILITY(U,$J,358.3,50819,1,4,0)
+16 ;;=4^Z85.038
+17 ;;^UTILITY(U,$J,358.3,50819,2)
+18 ;;=^5063399
+19 ;;^UTILITY(U,$J,358.3,50820,0)
+20 ;;=Z85.048^^193^2498^91
+21 ;;^UTILITY(U,$J,358.3,50820,1,0)
+22 ;;=^358.31IA^4^2
+23 ;;^UTILITY(U,$J,358.3,50820,1,3,0)
+24 ;;=3^Personal Hx of Malig Neop of Rectum,Rectosig Junct & Anus
+25 ;;^UTILITY(U,$J,358.3,50820,1,4,0)
+26 ;;=4^Z85.048
+27 ;;^UTILITY(U,$J,358.3,50820,2)
+28 ;;=^5063401
+29 ;;^UTILITY(U,$J,358.3,50821,0)
+30 ;;=Z85.118^^193^2498^80
+31 ;;^UTILITY(U,$J,358.3,50821,1,0)
+32 ;;=^358.31IA^4^2
+33 ;;^UTILITY(U,$J,358.3,50821,1,3,0)
+34 ;;=3^Personal Hx of Malig Neop of Bronchus & Lung
+35 ;;^UTILITY(U,$J,358.3,50821,1,4,0)
+36 ;;=4^Z85.118
+37 ;;^UTILITY(U,$J,358.3,50821,2)
+38 ;;=^5063408
+39 ;;^UTILITY(U,$J,358.3,50822,0)
+40 ;;=Z85.21^^193^2498^85
+41 ;;^UTILITY(U,$J,358.3,50822,1,0)
+42 ;;=^358.31IA^4^2
+43 ;;^UTILITY(U,$J,358.3,50822,1,3,0)
+44 ;;=3^Personal Hx of Malig Neop of Larynx
+45 ;;^UTILITY(U,$J,358.3,50822,1,4,0)
+46 ;;=4^Z85.21
+47 ;;^UTILITY(U,$J,358.3,50822,2)
+48 ;;=^5063411
+49 ;;^UTILITY(U,$J,358.3,50823,0)
+50 ;;=Z85.3^^193^2498^79
+51 ;;^UTILITY(U,$J,358.3,50823,1,0)
+52 ;;=^358.31IA^4^2
+53 ;;^UTILITY(U,$J,358.3,50823,1,3,0)
+54 ;;=3^Personal Hx of Malig Neop of Breast
+55 ;;^UTILITY(U,$J,358.3,50823,1,4,0)
+56 ;;=4^Z85.3
+57 ;;^UTILITY(U,$J,358.3,50823,2)
+58 ;;=^5063416
+59 ;;^UTILITY(U,$J,358.3,50824,0)
+60 ;;=Z85.41^^193^2498^81
+61 ;;^UTILITY(U,$J,358.3,50824,1,0)
+62 ;;=^358.31IA^4^2
+63 ;;^UTILITY(U,$J,358.3,50824,1,3,0)
+64 ;;=3^Personal Hx of Malig Neop of Cervix Uteri
+65 ;;^UTILITY(U,$J,358.3,50824,1,4,0)
+66 ;;=4^Z85.41
+67 ;;^UTILITY(U,$J,358.3,50824,2)
+68 ;;=^5063418
+69 ;;^UTILITY(U,$J,358.3,50825,0)
+70 ;;=Z85.43^^193^2498^89
+71 ;;^UTILITY(U,$J,358.3,50825,1,0)
+72 ;;=^358.31IA^4^2
+73 ;;^UTILITY(U,$J,358.3,50825,1,3,0)
+74 ;;=3^Personal Hx of Malig Neop of Ovary
+75 ;;^UTILITY(U,$J,358.3,50825,1,4,0)
+76 ;;=4^Z85.43
+77 ;;^UTILITY(U,$J,358.3,50825,2)
+78 ;;=^5063420
+79 ;;^UTILITY(U,$J,358.3,50826,0)
+80 ;;=Z85.46^^193^2498^90
+81 ;;^UTILITY(U,$J,358.3,50826,1,0)
+82 ;;=^358.31IA^4^2
+83 ;;^UTILITY(U,$J,358.3,50826,1,3,0)
+84 ;;=3^Personal Hx of Malig Neop of Prostate
+85 ;;^UTILITY(U,$J,358.3,50826,1,4,0)
+86 ;;=4^Z85.46
+87 ;;^UTILITY(U,$J,358.3,50826,2)
+88 ;;=^5063423
+89 ;;^UTILITY(U,$J,358.3,50827,0)
+90 ;;=Z85.47^^193^2498^94
+91 ;;^UTILITY(U,$J,358.3,50827,1,0)
+92 ;;=^358.31IA^4^2
+93 ;;^UTILITY(U,$J,358.3,50827,1,3,0)
+94 ;;=3^Personal Hx of Malig Neop of Testis
+95 ;;^UTILITY(U,$J,358.3,50827,1,4,0)
+96 ;;=4^Z85.47
+97 ;;^UTILITY(U,$J,358.3,50827,2)
+98 ;;=^5063424
+99 ;;^UTILITY(U,$J,358.3,50828,0)
+100 ;;=Z85.51^^193^2498^78
+101 ;;^UTILITY(U,$J,358.3,50828,1,0)
+102 ;;=^358.31IA^4^2
+103 ;;^UTILITY(U,$J,358.3,50828,1,3,0)
+104 ;;=3^Personal Hx of Malig Neop of Bladder
+105 ;;^UTILITY(U,$J,358.3,50828,1,4,0)
+106 ;;=4^Z85.51
+107 ;;^UTILITY(U,$J,358.3,50828,2)
+108 ;;=^5063428
+109 ;;^UTILITY(U,$J,358.3,50829,0)
+110 ;;=Z85.528^^193^2498^83
+111 ;;^UTILITY(U,$J,358.3,50829,1,0)
+112 ;;=^358.31IA^4^2
+113 ;;^UTILITY(U,$J,358.3,50829,1,3,0)
+114 ;;=3^Personal Hx of Malig Neop of Kidney
+115 ;;^UTILITY(U,$J,358.3,50829,1,4,0)
+116 ;;=4^Z85.528
+117 ;;^UTILITY(U,$J,358.3,50829,2)
+118 ;;=^5063430
+119 ;;^UTILITY(U,$J,358.3,50830,0)
+120 ;;=Z85.6^^193^2498^74