IBDEI2HS ; ; 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,39794,1,3,0)
;;=3^Water Pollution Contact/Exposure
;;^UTILITY(U,$J,358.3,39794,1,4,0)
;;=4^Z77.111
;;^UTILITY(U,$J,358.3,39794,2)
;;=^5063315
;;^UTILITY(U,$J,358.3,39795,0)
;;=Z77.128^^152^2001^113
;;^UTILITY(U,$J,358.3,39795,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39795,1,3,0)
;;=3^Physical Environment Hazards Contact/Exposure
;;^UTILITY(U,$J,358.3,39795,1,4,0)
;;=4^Z77.128
;;^UTILITY(U,$J,358.3,39795,2)
;;=^5063322
;;^UTILITY(U,$J,358.3,39796,0)
;;=Z77.123^^152^2001^146
;;^UTILITY(U,$J,358.3,39796,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39796,1,3,0)
;;=3^Radon/Radiation Contact/Exposure
;;^UTILITY(U,$J,358.3,39796,1,4,0)
;;=4^Z77.123
;;^UTILITY(U,$J,358.3,39796,2)
;;=^5063321
;;^UTILITY(U,$J,358.3,39797,0)
;;=Z77.122^^152^2001^61
;;^UTILITY(U,$J,358.3,39797,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39797,1,3,0)
;;=3^Noise Contact/Exposure
;;^UTILITY(U,$J,358.3,39797,1,4,0)
;;=4^Z77.122
;;^UTILITY(U,$J,358.3,39797,2)
;;=^5063320
;;^UTILITY(U,$J,358.3,39798,0)
;;=Z77.118^^152^2001^11
;;^UTILITY(U,$J,358.3,39798,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39798,1,3,0)
;;=3^Environmental Pollution Contact/Exposure
;;^UTILITY(U,$J,358.3,39798,1,4,0)
;;=4^Z77.118
;;^UTILITY(U,$J,358.3,39798,2)
;;=^5063317
;;^UTILITY(U,$J,358.3,39799,0)
;;=Z77.9^^152^2001^47
;;^UTILITY(U,$J,358.3,39799,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39799,1,3,0)
;;=3^Health Hazard Contact/Exposure
;;^UTILITY(U,$J,358.3,39799,1,4,0)
;;=4^Z77.9
;;^UTILITY(U,$J,358.3,39799,2)
;;=^5063326
;;^UTILITY(U,$J,358.3,39800,0)
;;=Z77.22^^152^2001^10
;;^UTILITY(U,$J,358.3,39800,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39800,1,3,0)
;;=3^Environmental Exposure Tobacco Smoke/Second-Hand Smoke
;;^UTILITY(U,$J,358.3,39800,1,4,0)
;;=4^Z77.22
;;^UTILITY(U,$J,358.3,39800,2)
;;=^5063324
;;^UTILITY(U,$J,358.3,39801,0)
;;=Z80.0^^152^2001^28
;;^UTILITY(U,$J,358.3,39801,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39801,1,3,0)
;;=3^Family Hx of Malig Neop of Digestive Organs
;;^UTILITY(U,$J,358.3,39801,1,4,0)
;;=4^Z80.0
;;^UTILITY(U,$J,358.3,39801,2)
;;=^5063344
;;^UTILITY(U,$J,358.3,39802,0)
;;=Z80.1^^152^2001^34
;;^UTILITY(U,$J,358.3,39802,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39802,1,3,0)
;;=3^Family Hx of Malig Neop of Trachea,Bronc & Lung
;;^UTILITY(U,$J,358.3,39802,1,4,0)
;;=4^Z80.1
;;^UTILITY(U,$J,358.3,39802,2)
;;=^5063345
;;^UTILITY(U,$J,358.3,39803,0)
;;=Z80.3^^152^2001^27
;;^UTILITY(U,$J,358.3,39803,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39803,1,3,0)
;;=3^Family Hx of Malig Neop of Breast
;;^UTILITY(U,$J,358.3,39803,1,4,0)
;;=4^Z80.3
;;^UTILITY(U,$J,358.3,39803,2)
;;=^5063347
;;^UTILITY(U,$J,358.3,39804,0)
;;=Z80.41^^152^2001^31
;;^UTILITY(U,$J,358.3,39804,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39804,1,3,0)
;;=3^Family Hx of Malig Neop of Ovary
;;^UTILITY(U,$J,358.3,39804,1,4,0)
;;=4^Z80.41
;;^UTILITY(U,$J,358.3,39804,2)
;;=^5063348
;;^UTILITY(U,$J,358.3,39805,0)
;;=Z80.42^^152^2001^32
;;^UTILITY(U,$J,358.3,39805,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,39805,1,3,0)
;;=3^Family Hx of Malig Neop of Prostate
;;^UTILITY(U,$J,358.3,39805,1,4,0)
;;=4^Z80.42
;;^UTILITY(U,$J,358.3,39805,2)
;;=^5063349
;;^UTILITY(U,$J,358.3,39806,0)
;;=Z80.43^^152^2001^33
;;^UTILITY(U,$J,358.3,39806,1,0)
;;=^358.31IA^4^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2HS 3764 printed Dec 13, 2024@02:29 Page 2
IBDEI2HS ; ; 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,39794,1,3,0)
+2 ;;=3^Water Pollution Contact/Exposure
+3 ;;^UTILITY(U,$J,358.3,39794,1,4,0)
+4 ;;=4^Z77.111
+5 ;;^UTILITY(U,$J,358.3,39794,2)
+6 ;;=^5063315
+7 ;;^UTILITY(U,$J,358.3,39795,0)
+8 ;;=Z77.128^^152^2001^113
+9 ;;^UTILITY(U,$J,358.3,39795,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,39795,1,3,0)
+12 ;;=3^Physical Environment Hazards Contact/Exposure
+13 ;;^UTILITY(U,$J,358.3,39795,1,4,0)
+14 ;;=4^Z77.128
+15 ;;^UTILITY(U,$J,358.3,39795,2)
+16 ;;=^5063322
+17 ;;^UTILITY(U,$J,358.3,39796,0)
+18 ;;=Z77.123^^152^2001^146
+19 ;;^UTILITY(U,$J,358.3,39796,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,39796,1,3,0)
+22 ;;=3^Radon/Radiation Contact/Exposure
+23 ;;^UTILITY(U,$J,358.3,39796,1,4,0)
+24 ;;=4^Z77.123
+25 ;;^UTILITY(U,$J,358.3,39796,2)
+26 ;;=^5063321
+27 ;;^UTILITY(U,$J,358.3,39797,0)
+28 ;;=Z77.122^^152^2001^61
+29 ;;^UTILITY(U,$J,358.3,39797,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,39797,1,3,0)
+32 ;;=3^Noise Contact/Exposure
+33 ;;^UTILITY(U,$J,358.3,39797,1,4,0)
+34 ;;=4^Z77.122
+35 ;;^UTILITY(U,$J,358.3,39797,2)
+36 ;;=^5063320
+37 ;;^UTILITY(U,$J,358.3,39798,0)
+38 ;;=Z77.118^^152^2001^11
+39 ;;^UTILITY(U,$J,358.3,39798,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,39798,1,3,0)
+42 ;;=3^Environmental Pollution Contact/Exposure
+43 ;;^UTILITY(U,$J,358.3,39798,1,4,0)
+44 ;;=4^Z77.118
+45 ;;^UTILITY(U,$J,358.3,39798,2)
+46 ;;=^5063317
+47 ;;^UTILITY(U,$J,358.3,39799,0)
+48 ;;=Z77.9^^152^2001^47
+49 ;;^UTILITY(U,$J,358.3,39799,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,39799,1,3,0)
+52 ;;=3^Health Hazard Contact/Exposure
+53 ;;^UTILITY(U,$J,358.3,39799,1,4,0)
+54 ;;=4^Z77.9
+55 ;;^UTILITY(U,$J,358.3,39799,2)
+56 ;;=^5063326
+57 ;;^UTILITY(U,$J,358.3,39800,0)
+58 ;;=Z77.22^^152^2001^10
+59 ;;^UTILITY(U,$J,358.3,39800,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,39800,1,3,0)
+62 ;;=3^Environmental Exposure Tobacco Smoke/Second-Hand Smoke
+63 ;;^UTILITY(U,$J,358.3,39800,1,4,0)
+64 ;;=4^Z77.22
+65 ;;^UTILITY(U,$J,358.3,39800,2)
+66 ;;=^5063324
+67 ;;^UTILITY(U,$J,358.3,39801,0)
+68 ;;=Z80.0^^152^2001^28
+69 ;;^UTILITY(U,$J,358.3,39801,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,39801,1,3,0)
+72 ;;=3^Family Hx of Malig Neop of Digestive Organs
+73 ;;^UTILITY(U,$J,358.3,39801,1,4,0)
+74 ;;=4^Z80.0
+75 ;;^UTILITY(U,$J,358.3,39801,2)
+76 ;;=^5063344
+77 ;;^UTILITY(U,$J,358.3,39802,0)
+78 ;;=Z80.1^^152^2001^34
+79 ;;^UTILITY(U,$J,358.3,39802,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,39802,1,3,0)
+82 ;;=3^Family Hx of Malig Neop of Trachea,Bronc & Lung
+83 ;;^UTILITY(U,$J,358.3,39802,1,4,0)
+84 ;;=4^Z80.1
+85 ;;^UTILITY(U,$J,358.3,39802,2)
+86 ;;=^5063345
+87 ;;^UTILITY(U,$J,358.3,39803,0)
+88 ;;=Z80.3^^152^2001^27
+89 ;;^UTILITY(U,$J,358.3,39803,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,39803,1,3,0)
+92 ;;=3^Family Hx of Malig Neop of Breast
+93 ;;^UTILITY(U,$J,358.3,39803,1,4,0)
+94 ;;=4^Z80.3
+95 ;;^UTILITY(U,$J,358.3,39803,2)
+96 ;;=^5063347
+97 ;;^UTILITY(U,$J,358.3,39804,0)
+98 ;;=Z80.41^^152^2001^31
+99 ;;^UTILITY(U,$J,358.3,39804,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,39804,1,3,0)
+102 ;;=3^Family Hx of Malig Neop of Ovary
+103 ;;^UTILITY(U,$J,358.3,39804,1,4,0)
+104 ;;=4^Z80.41
+105 ;;^UTILITY(U,$J,358.3,39804,2)
+106 ;;=^5063348
+107 ;;^UTILITY(U,$J,358.3,39805,0)
+108 ;;=Z80.42^^152^2001^32
+109 ;;^UTILITY(U,$J,358.3,39805,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,39805,1,3,0)
+112 ;;=3^Family Hx of Malig Neop of Prostate
+113 ;;^UTILITY(U,$J,358.3,39805,1,4,0)
+114 ;;=4^Z80.42
+115 ;;^UTILITY(U,$J,358.3,39805,2)
+116 ;;=^5063349
+117 ;;^UTILITY(U,$J,358.3,39806,0)
+118 ;;=Z80.43^^152^2001^33
+119 ;;^UTILITY(U,$J,358.3,39806,1,0)
+120 ;;=^358.31IA^4^2