IBDEI3JF ; ; 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,129,0)
;;=HEADER^156
;;^UTILITY(U,$J,358.5,129,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,129,2,1,0)
;;=NATIONAL HBPC CLINICIAN^^^0^0
;;^UTILITY(U,$J,358.5,130,0)
;;=Patient name^157^3
;;^UTILITY(U,$J,358.5,130,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,130,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,131,0)
;;=SSN^157^4
;;^UTILITY(U,$J,358.5,131,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,131,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,132,0)
;;=Age^157^5
;;^UTILITY(U,$J,358.5,132,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,132,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,132,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,133,0)
;;=HEADER^161
;;^UTILITY(U,$J,358.5,133,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,133,2,1,0)
;;=NATIONAL HBPC - NURSING^^^0^0
;;^UTILITY(U,$J,358.5,134,0)
;;=Patient name^163^3
;;^UTILITY(U,$J,358.5,134,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,134,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,135,0)
;;=SSN^163^4
;;^UTILITY(U,$J,358.5,135,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,135,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,136,0)
;;=Age^163^5
;;^UTILITY(U,$J,358.5,136,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,136,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,136,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,137,0)
;;=HEADER^167
;;^UTILITY(U,$J,358.5,137,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,137,2,1,0)
;;=NATIONAL MENTAL HEALTH - PSYCHOLOGIST^^^0^0
;;^UTILITY(U,$J,358.5,138,0)
;;=Patient name^168^3
;;^UTILITY(U,$J,358.5,138,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,138,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,139,0)
;;=SSN^168^4
;;^UTILITY(U,$J,358.5,139,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,139,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,140,0)
;;=Age^168^5
;;^UTILITY(U,$J,358.5,140,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,140,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,140,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,141,0)
;;=HEADER^171
;;^UTILITY(U,$J,358.5,141,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,141,2,1,0)
;;=NATIONAL HBPC - REHAB THERAPY^^^0^0
;;^UTILITY(U,$J,358.5,142,0)
;;=Patient name^172^3
;;^UTILITY(U,$J,358.5,142,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,142,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,143,0)
;;=SSN^172^4
;;^UTILITY(U,$J,358.5,143,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,143,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,144,0)
;;=Age^172^5
;;^UTILITY(U,$J,358.5,144,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,144,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,144,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,145,0)
;;=HEADER^176
;;^UTILITY(U,$J,358.5,145,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,145,2,1,0)
;;=NATIONAL HEMATOLOGY^^^0^0
;;^UTILITY(U,$J,358.5,146,0)
;;=Patient name^177^3
;;^UTILITY(U,$J,358.5,146,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,146,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,147,0)
;;=SSN^177^4
;;^UTILITY(U,$J,358.5,147,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,147,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,148,0)
;;=Age^177^5
;;^UTILITY(U,$J,358.5,148,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,148,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,148,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,149,0)
;;=Patient name^180^3
;;^UTILITY(U,$J,358.5,149,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,149,2,1,0)
;;=Name:^^^1^1^1^7^30^1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3JF 3987 printed Dec 13, 2024@02:49:57 Page 2
IBDEI3JF ; ; 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,129,0)
+2 ;;=HEADER^156
+3 ;;^UTILITY(U,$J,358.5,129,2,0)
+4 ;;=^358.52^1^1
+5 ;;^UTILITY(U,$J,358.5,129,2,1,0)
+6 ;;=NATIONAL HBPC CLINICIAN^^^0^0
+7 ;;^UTILITY(U,$J,358.5,130,0)
+8 ;;=Patient name^157^3
+9 ;;^UTILITY(U,$J,358.5,130,2,0)
+10 ;;=^358.52^1^1
+11 ;;^UTILITY(U,$J,358.5,130,2,1,0)
+12 ;;=Name:^^^1^1^1^7^30^1
+13 ;;^UTILITY(U,$J,358.5,131,0)
+14 ;;=SSN^157^4
+15 ;;^UTILITY(U,$J,358.5,131,2,0)
+16 ;;=^358.52^1^1
+17 ;;^UTILITY(U,$J,358.5,131,2,1,0)
+18 ;;=SSN:^^^39^1^1^44^15^1
+19 ;;^UTILITY(U,$J,358.5,132,0)
+20 ;;=Age^157^5
+21 ;;^UTILITY(U,$J,358.5,132,2,0)
+22 ;;=^358.52^2^2
+23 ;;^UTILITY(U,$J,358.5,132,2,1,0)
+24 ;;=DOB:^^^60^1^1^65^12^1
+25 ;;^UTILITY(U,$J,358.5,132,2,2,0)
+26 ;;=Age:^^^78^1^1^83^3^2
+27 ;;^UTILITY(U,$J,358.5,133,0)
+28 ;;=HEADER^161
+29 ;;^UTILITY(U,$J,358.5,133,2,0)
+30 ;;=^358.52^1^1
+31 ;;^UTILITY(U,$J,358.5,133,2,1,0)
+32 ;;=NATIONAL HBPC - NURSING^^^0^0
+33 ;;^UTILITY(U,$J,358.5,134,0)
+34 ;;=Patient name^163^3
+35 ;;^UTILITY(U,$J,358.5,134,2,0)
+36 ;;=^358.52^1^1
+37 ;;^UTILITY(U,$J,358.5,134,2,1,0)
+38 ;;=Name:^^^1^1^1^7^30^1
+39 ;;^UTILITY(U,$J,358.5,135,0)
+40 ;;=SSN^163^4
+41 ;;^UTILITY(U,$J,358.5,135,2,0)
+42 ;;=^358.52^1^1
+43 ;;^UTILITY(U,$J,358.5,135,2,1,0)
+44 ;;=SSN:^^^39^1^1^44^15^1
+45 ;;^UTILITY(U,$J,358.5,136,0)
+46 ;;=Age^163^5
+47 ;;^UTILITY(U,$J,358.5,136,2,0)
+48 ;;=^358.52^2^2
+49 ;;^UTILITY(U,$J,358.5,136,2,1,0)
+50 ;;=DOB:^^^60^1^1^65^12^1
+51 ;;^UTILITY(U,$J,358.5,136,2,2,0)
+52 ;;=Age:^^^78^1^1^83^3^2
+53 ;;^UTILITY(U,$J,358.5,137,0)
+54 ;;=HEADER^167
+55 ;;^UTILITY(U,$J,358.5,137,2,0)
+56 ;;=^358.52^1^1
+57 ;;^UTILITY(U,$J,358.5,137,2,1,0)
+58 ;;=NATIONAL MENTAL HEALTH - PSYCHOLOGIST^^^0^0
+59 ;;^UTILITY(U,$J,358.5,138,0)
+60 ;;=Patient name^168^3
+61 ;;^UTILITY(U,$J,358.5,138,2,0)
+62 ;;=^358.52^1^1
+63 ;;^UTILITY(U,$J,358.5,138,2,1,0)
+64 ;;=Name:^^^1^1^1^7^30^1
+65 ;;^UTILITY(U,$J,358.5,139,0)
+66 ;;=SSN^168^4
+67 ;;^UTILITY(U,$J,358.5,139,2,0)
+68 ;;=^358.52^1^1
+69 ;;^UTILITY(U,$J,358.5,139,2,1,0)
+70 ;;=SSN:^^^39^1^1^44^15^1
+71 ;;^UTILITY(U,$J,358.5,140,0)
+72 ;;=Age^168^5
+73 ;;^UTILITY(U,$J,358.5,140,2,0)
+74 ;;=^358.52^2^2
+75 ;;^UTILITY(U,$J,358.5,140,2,1,0)
+76 ;;=DOB:^^^60^1^1^65^12^1
+77 ;;^UTILITY(U,$J,358.5,140,2,2,0)
+78 ;;=Age:^^^78^1^1^83^3^2
+79 ;;^UTILITY(U,$J,358.5,141,0)
+80 ;;=HEADER^171
+81 ;;^UTILITY(U,$J,358.5,141,2,0)
+82 ;;=^358.52^1^1
+83 ;;^UTILITY(U,$J,358.5,141,2,1,0)
+84 ;;=NATIONAL HBPC - REHAB THERAPY^^^0^0
+85 ;;^UTILITY(U,$J,358.5,142,0)
+86 ;;=Patient name^172^3
+87 ;;^UTILITY(U,$J,358.5,142,2,0)
+88 ;;=^358.52^1^1
+89 ;;^UTILITY(U,$J,358.5,142,2,1,0)
+90 ;;=Name:^^^1^1^1^7^30^1
+91 ;;^UTILITY(U,$J,358.5,143,0)
+92 ;;=SSN^172^4
+93 ;;^UTILITY(U,$J,358.5,143,2,0)
+94 ;;=^358.52^1^1
+95 ;;^UTILITY(U,$J,358.5,143,2,1,0)
+96 ;;=SSN:^^^39^1^1^44^15^1
+97 ;;^UTILITY(U,$J,358.5,144,0)
+98 ;;=Age^172^5
+99 ;;^UTILITY(U,$J,358.5,144,2,0)
+100 ;;=^358.52^2^2
+101 ;;^UTILITY(U,$J,358.5,144,2,1,0)
+102 ;;=DOB:^^^60^1^1^65^12^1
+103 ;;^UTILITY(U,$J,358.5,144,2,2,0)
+104 ;;=Age:^^^78^1^1^83^3^2
+105 ;;^UTILITY(U,$J,358.5,145,0)
+106 ;;=HEADER^176
+107 ;;^UTILITY(U,$J,358.5,145,2,0)
+108 ;;=^358.52^1^1
+109 ;;^UTILITY(U,$J,358.5,145,2,1,0)
+110 ;;=NATIONAL HEMATOLOGY^^^0^0
+111 ;;^UTILITY(U,$J,358.5,146,0)
+112 ;;=Patient name^177^3
+113 ;;^UTILITY(U,$J,358.5,146,2,0)
+114 ;;=^358.52^1^1
+115 ;;^UTILITY(U,$J,358.5,146,2,1,0)
+116 ;;=Name:^^^1^1^1^7^30^1
+117 ;;^UTILITY(U,$J,358.5,147,0)
+118 ;;=SSN^177^4
+119 ;;^UTILITY(U,$J,358.5,147,2,0)
+120 ;;=^358.52^1^1
+121 ;;^UTILITY(U,$J,358.5,147,2,1,0)
+122 ;;=SSN:^^^39^1^1^44^15^1
+123 ;;^UTILITY(U,$J,358.5,148,0)
+124 ;;=Age^177^5
+125 ;;^UTILITY(U,$J,358.5,148,2,0)
+126 ;;=^358.52^2^2
+127 ;;^UTILITY(U,$J,358.5,148,2,1,0)
+128 ;;=DOB:^^^60^1^1^65^12^1
+129 ;;^UTILITY(U,$J,358.5,148,2,2,0)
+130 ;;=Age:^^^78^1^1^83^3^2
+131 ;;^UTILITY(U,$J,358.5,149,0)
+132 ;;=Patient name^180^3
+133 ;;^UTILITY(U,$J,358.5,149,2,0)
+134 ;;=^358.52^1^1
+135 ;;^UTILITY(U,$J,358.5,149,2,1,0)
+136 ;;=Name:^^^1^1^1^7^30^1