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