IBDEI3JM ; ; 19-NOV-2015
;;3.0;IB ENCOUNTER FORM IMP/EXP;;JUN 29, 2015
Q:'DIFQR(358.5) 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,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.5,275,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,275,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,276,0)
;;=Age^331^5
;;^UTILITY(U,$J,358.5,276,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,276,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,276,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,277,0)
;;=HEADER^334
;;^UTILITY(U,$J,358.5,277,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,277,2,1,0)
;;=NATIONAL PREVENTIVE HEALTH^^^0^0
;;^UTILITY(U,$J,358.5,278,0)
;;=Patient name^335^3
;;^UTILITY(U,$J,358.5,278,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,278,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,279,0)
;;=SSN^335^4
;;^UTILITY(U,$J,358.5,279,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,279,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,280,0)
;;=Age^335^5
;;^UTILITY(U,$J,358.5,280,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,280,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,280,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,281,0)
;;=HEADER^339
;;^UTILITY(U,$J,358.5,281,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,281,2,1,0)
;;=NATIONAL PRIMARY CARE^^^0^0
;;^UTILITY(U,$J,358.5,282,0)
;;=Patient name^340^3
;;^UTILITY(U,$J,358.5,282,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,282,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,283,0)
;;=SSN^340^4
;;^UTILITY(U,$J,358.5,283,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,283,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,284,0)
;;=Age^340^5
;;^UTILITY(U,$J,358.5,284,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,284,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,284,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,285,0)
;;=HEADER^344
;;^UTILITY(U,$J,358.5,285,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,285,2,1,0)
;;=NATIONAL PROSTHETICS F-T-F VISITS^^^0^0
;;^UTILITY(U,$J,358.5,286,0)
;;=Patient name^345^3
;;^UTILITY(U,$J,358.5,286,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,286,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,287,0)
;;=SSN^345^4
;;^UTILITY(U,$J,358.5,287,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,287,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,288,0)
;;=Age^345^5
;;^UTILITY(U,$J,358.5,288,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,288,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,288,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,289,0)
;;=HEADER^350
;;^UTILITY(U,$J,358.5,289,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,289,2,1,0)
;;=NATIONAL PULMONARY^^^0^0
;;^UTILITY(U,$J,358.5,290,0)
;;=Patient name^351^3
;;^UTILITY(U,$J,358.5,290,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,290,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,291,0)
;;=SSN^351^4
;;^UTILITY(U,$J,358.5,291,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,291,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,292,0)
;;=Age^351^5
;;^UTILITY(U,$J,358.5,292,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,292,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,292,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,293,0)
;;=HEADER^353
;;^UTILITY(U,$J,358.5,293,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,293,2,1,0)
;;=NATIONAL RADIATION THERAPY^^B^0^0
;;^UTILITY(U,$J,358.5,294,0)
;;=Patient name^356^3
;;^UTILITY(U,$J,358.5,294,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,294,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,295,0)
;;=SSN^356^4
;;^UTILITY(U,$J,358.5,295,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,295,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,296,0)
;;=Age^356^5
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3JM 3973 printed Dec 13, 2024@02:50:03 Page 2
IBDEI3JM ; ; 19-NOV-2015
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;JUN 29, 2015
+2 if 'DIFQR(358.5)
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,99)
if $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,358.5,275,2,0)
+2 ;;=^358.52^1^1
+3 ;;^UTILITY(U,$J,358.5,275,2,1,0)
+4 ;;=SSN:^^^39^1^1^44^15^1
+5 ;;^UTILITY(U,$J,358.5,276,0)
+6 ;;=Age^331^5
+7 ;;^UTILITY(U,$J,358.5,276,2,0)
+8 ;;=^358.52^2^2
+9 ;;^UTILITY(U,$J,358.5,276,2,1,0)
+10 ;;=DOB:^^^60^1^1^65^12^1
+11 ;;^UTILITY(U,$J,358.5,276,2,2,0)
+12 ;;=Age:^^^78^1^1^83^3^2
+13 ;;^UTILITY(U,$J,358.5,277,0)
+14 ;;=HEADER^334
+15 ;;^UTILITY(U,$J,358.5,277,2,0)
+16 ;;=^358.52^1^1
+17 ;;^UTILITY(U,$J,358.5,277,2,1,0)
+18 ;;=NATIONAL PREVENTIVE HEALTH^^^0^0
+19 ;;^UTILITY(U,$J,358.5,278,0)
+20 ;;=Patient name^335^3
+21 ;;^UTILITY(U,$J,358.5,278,2,0)
+22 ;;=^358.52^1^1
+23 ;;^UTILITY(U,$J,358.5,278,2,1,0)
+24 ;;=Name:^^^1^1^1^7^30^1
+25 ;;^UTILITY(U,$J,358.5,279,0)
+26 ;;=SSN^335^4
+27 ;;^UTILITY(U,$J,358.5,279,2,0)
+28 ;;=^358.52^1^1
+29 ;;^UTILITY(U,$J,358.5,279,2,1,0)
+30 ;;=SSN:^^^39^1^1^44^15^1
+31 ;;^UTILITY(U,$J,358.5,280,0)
+32 ;;=Age^335^5
+33 ;;^UTILITY(U,$J,358.5,280,2,0)
+34 ;;=^358.52^2^2
+35 ;;^UTILITY(U,$J,358.5,280,2,1,0)
+36 ;;=DOB:^^^60^1^1^65^12^1
+37 ;;^UTILITY(U,$J,358.5,280,2,2,0)
+38 ;;=Age:^^^78^1^1^83^3^2
+39 ;;^UTILITY(U,$J,358.5,281,0)
+40 ;;=HEADER^339
+41 ;;^UTILITY(U,$J,358.5,281,2,0)
+42 ;;=^358.52^1^1
+43 ;;^UTILITY(U,$J,358.5,281,2,1,0)
+44 ;;=NATIONAL PRIMARY CARE^^^0^0
+45 ;;^UTILITY(U,$J,358.5,282,0)
+46 ;;=Patient name^340^3
+47 ;;^UTILITY(U,$J,358.5,282,2,0)
+48 ;;=^358.52^1^1
+49 ;;^UTILITY(U,$J,358.5,282,2,1,0)
+50 ;;=Name:^^^1^1^1^7^30^1
+51 ;;^UTILITY(U,$J,358.5,283,0)
+52 ;;=SSN^340^4
+53 ;;^UTILITY(U,$J,358.5,283,2,0)
+54 ;;=^358.52^1^1
+55 ;;^UTILITY(U,$J,358.5,283,2,1,0)
+56 ;;=SSN:^^^39^1^1^44^15^1
+57 ;;^UTILITY(U,$J,358.5,284,0)
+58 ;;=Age^340^5
+59 ;;^UTILITY(U,$J,358.5,284,2,0)
+60 ;;=^358.52^2^2
+61 ;;^UTILITY(U,$J,358.5,284,2,1,0)
+62 ;;=DOB:^^^60^1^1^65^12^1
+63 ;;^UTILITY(U,$J,358.5,284,2,2,0)
+64 ;;=Age:^^^78^1^1^83^3^2
+65 ;;^UTILITY(U,$J,358.5,285,0)
+66 ;;=HEADER^344
+67 ;;^UTILITY(U,$J,358.5,285,2,0)
+68 ;;=^358.52^1^1
+69 ;;^UTILITY(U,$J,358.5,285,2,1,0)
+70 ;;=NATIONAL PROSTHETICS F-T-F VISITS^^^0^0
+71 ;;^UTILITY(U,$J,358.5,286,0)
+72 ;;=Patient name^345^3
+73 ;;^UTILITY(U,$J,358.5,286,2,0)
+74 ;;=^358.52^1^1
+75 ;;^UTILITY(U,$J,358.5,286,2,1,0)
+76 ;;=Name:^^^1^1^1^7^30^1
+77 ;;^UTILITY(U,$J,358.5,287,0)
+78 ;;=SSN^345^4
+79 ;;^UTILITY(U,$J,358.5,287,2,0)
+80 ;;=^358.52^1^1
+81 ;;^UTILITY(U,$J,358.5,287,2,1,0)
+82 ;;=SSN:^^^39^1^1^44^15^1
+83 ;;^UTILITY(U,$J,358.5,288,0)
+84 ;;=Age^345^5
+85 ;;^UTILITY(U,$J,358.5,288,2,0)
+86 ;;=^358.52^2^2
+87 ;;^UTILITY(U,$J,358.5,288,2,1,0)
+88 ;;=DOB:^^^60^1^1^65^12^1
+89 ;;^UTILITY(U,$J,358.5,288,2,2,0)
+90 ;;=Age:^^^78^1^1^83^3^2
+91 ;;^UTILITY(U,$J,358.5,289,0)
+92 ;;=HEADER^350
+93 ;;^UTILITY(U,$J,358.5,289,2,0)
+94 ;;=^358.52^1^1
+95 ;;^UTILITY(U,$J,358.5,289,2,1,0)
+96 ;;=NATIONAL PULMONARY^^^0^0
+97 ;;^UTILITY(U,$J,358.5,290,0)
+98 ;;=Patient name^351^3
+99 ;;^UTILITY(U,$J,358.5,290,2,0)
+100 ;;=^358.52^1^1
+101 ;;^UTILITY(U,$J,358.5,290,2,1,0)
+102 ;;=Name:^^^1^1^1^7^30^1
+103 ;;^UTILITY(U,$J,358.5,291,0)
+104 ;;=SSN^351^4
+105 ;;^UTILITY(U,$J,358.5,291,2,0)
+106 ;;=^358.52^1^1
+107 ;;^UTILITY(U,$J,358.5,291,2,1,0)
+108 ;;=SSN:^^^39^1^1^44^15^1
+109 ;;^UTILITY(U,$J,358.5,292,0)
+110 ;;=Age^351^5
+111 ;;^UTILITY(U,$J,358.5,292,2,0)
+112 ;;=^358.52^2^2
+113 ;;^UTILITY(U,$J,358.5,292,2,1,0)
+114 ;;=DOB:^^^60^1^1^65^12^1
+115 ;;^UTILITY(U,$J,358.5,292,2,2,0)
+116 ;;=Age:^^^78^1^1^83^3^2
+117 ;;^UTILITY(U,$J,358.5,293,0)
+118 ;;=HEADER^353
+119 ;;^UTILITY(U,$J,358.5,293,2,0)
+120 ;;=^358.52^1^1
+121 ;;^UTILITY(U,$J,358.5,293,2,1,0)
+122 ;;=NATIONAL RADIATION THERAPY^^B^0^0
+123 ;;^UTILITY(U,$J,358.5,294,0)
+124 ;;=Patient name^356^3
+125 ;;^UTILITY(U,$J,358.5,294,2,0)
+126 ;;=^358.52^1^1
+127 ;;^UTILITY(U,$J,358.5,294,2,1,0)
+128 ;;=Name:^^^1^1^1^7^30^1
+129 ;;^UTILITY(U,$J,358.5,295,0)
+130 ;;=SSN^356^4
+131 ;;^UTILITY(U,$J,358.5,295,2,0)
+132 ;;=^358.52^1^1
+133 ;;^UTILITY(U,$J,358.5,295,2,1,0)
+134 ;;=SSN:^^^39^1^1^44^15^1
+135 ;;^UTILITY(U,$J,358.5,296,0)
+136 ;;=Age^356^5