IBDEI3J9 ; ; 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)
;;=^IBE(358.5,
;;^UTILITY(U,$J,358.5,0)
;;=IMP/EXP DATA FIELD^358.5I^392^392
;;^UTILITY(U,$J,358.5,1,0)
;;=Patient name^2^3
;;^UTILITY(U,$J,358.5,1,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,1,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,2,0)
;;=SSN^2^4
;;^UTILITY(U,$J,358.5,2,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,2,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,3,0)
;;=Age^2^5
;;^UTILITY(U,$J,358.5,3,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,3,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,3,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,4,0)
;;=HEADER^3
;;^UTILITY(U,$J,358.5,4,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,4,2,1,0)
;;=NATIONAL ADDICTION^^^0^0
;;^UTILITY(U,$J,358.5,5,0)
;;=HEADER^6
;;^UTILITY(U,$J,358.5,5,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,5,2,1,0)
;;=NATIONAL ADULT DAY HEALTH CARE VISIT-NURSE^^^0^0
;;^UTILITY(U,$J,358.5,6,0)
;;=Patient name^7^3
;;^UTILITY(U,$J,358.5,6,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,6,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,7,0)
;;=SSN^7^4
;;^UTILITY(U,$J,358.5,7,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,7,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,8,0)
;;=Age^7^5
;;^UTILITY(U,$J,358.5,8,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,8,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,8,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,9,0)
;;=HEADER^12
;;^UTILITY(U,$J,358.5,9,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,9,2,1,0)
;;=NATIONAL ALLERGY CLINIC^^^0^0
;;^UTILITY(U,$J,358.5,10,0)
;;=Patient name^13^3
;;^UTILITY(U,$J,358.5,10,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,10,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,11,0)
;;=SSN^13^4
;;^UTILITY(U,$J,358.5,11,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,11,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,12,0)
;;=Age^13^5
;;^UTILITY(U,$J,358.5,12,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,12,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,12,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,13,0)
;;=HEADER^18
;;^UTILITY(U,$J,358.5,13,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,13,2,1,0)
;;=NATIONAL ANESTHESIA^^^0^0
;;^UTILITY(U,$J,358.5,14,0)
;;=Patient name^19^3
;;^UTILITY(U,$J,358.5,14,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,14,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,15,0)
;;=SSN^19^4
;;^UTILITY(U,$J,358.5,15,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,15,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,16,0)
;;=Age^19^5
;;^UTILITY(U,$J,358.5,16,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,16,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,16,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,17,0)
;;=HEADER^21
;;^UTILITY(U,$J,358.5,17,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,17,2,1,0)
;;=NATIONAL AUDIOLOGY^^^0^0
;;^UTILITY(U,$J,358.5,18,0)
;;=Patient name^22^3
;;^UTILITY(U,$J,358.5,18,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,18,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,19,0)
;;=SSN^22^4
;;^UTILITY(U,$J,358.5,19,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,19,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,20,0)
;;=Age^22^5
;;^UTILITY(U,$J,358.5,20,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,20,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,20,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,21,0)
;;=HEADER^25
;;^UTILITY(U,$J,358.5,21,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,21,2,1,0)
;;=NATIONAL BLIND REHAB^^^0^0
;;^UTILITY(U,$J,358.5,22,0)
;;=Patient name^26^3
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3J9 4009 printed Dec 13, 2024@02:49:51 Page 2
IBDEI3J9 ; ; 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)
+2 ;;=^IBE(358.5,
+3 ;;^UTILITY(U,$J,358.5,0)
+4 ;;=IMP/EXP DATA FIELD^358.5I^392^392
+5 ;;^UTILITY(U,$J,358.5,1,0)
+6 ;;=Patient name^2^3
+7 ;;^UTILITY(U,$J,358.5,1,2,0)
+8 ;;=^358.52^1^1
+9 ;;^UTILITY(U,$J,358.5,1,2,1,0)
+10 ;;=Name:^^^1^1^1^7^30^1
+11 ;;^UTILITY(U,$J,358.5,2,0)
+12 ;;=SSN^2^4
+13 ;;^UTILITY(U,$J,358.5,2,2,0)
+14 ;;=^358.52^1^1
+15 ;;^UTILITY(U,$J,358.5,2,2,1,0)
+16 ;;=SSN:^^^39^1^1^44^15^1
+17 ;;^UTILITY(U,$J,358.5,3,0)
+18 ;;=Age^2^5
+19 ;;^UTILITY(U,$J,358.5,3,2,0)
+20 ;;=^358.52^2^2
+21 ;;^UTILITY(U,$J,358.5,3,2,1,0)
+22 ;;=DOB:^^^60^1^1^65^12^1
+23 ;;^UTILITY(U,$J,358.5,3,2,2,0)
+24 ;;=Age:^^^78^1^1^83^3^2
+25 ;;^UTILITY(U,$J,358.5,4,0)
+26 ;;=HEADER^3
+27 ;;^UTILITY(U,$J,358.5,4,2,0)
+28 ;;=^358.52^1^1
+29 ;;^UTILITY(U,$J,358.5,4,2,1,0)
+30 ;;=NATIONAL ADDICTION^^^0^0
+31 ;;^UTILITY(U,$J,358.5,5,0)
+32 ;;=HEADER^6
+33 ;;^UTILITY(U,$J,358.5,5,2,0)
+34 ;;=^358.52^1^1
+35 ;;^UTILITY(U,$J,358.5,5,2,1,0)
+36 ;;=NATIONAL ADULT DAY HEALTH CARE VISIT-NURSE^^^0^0
+37 ;;^UTILITY(U,$J,358.5,6,0)
+38 ;;=Patient name^7^3
+39 ;;^UTILITY(U,$J,358.5,6,2,0)
+40 ;;=^358.52^1^1
+41 ;;^UTILITY(U,$J,358.5,6,2,1,0)
+42 ;;=Name:^^^1^1^1^7^30^1
+43 ;;^UTILITY(U,$J,358.5,7,0)
+44 ;;=SSN^7^4
+45 ;;^UTILITY(U,$J,358.5,7,2,0)
+46 ;;=^358.52^1^1
+47 ;;^UTILITY(U,$J,358.5,7,2,1,0)
+48 ;;=SSN:^^^39^1^1^44^15^1
+49 ;;^UTILITY(U,$J,358.5,8,0)
+50 ;;=Age^7^5
+51 ;;^UTILITY(U,$J,358.5,8,2,0)
+52 ;;=^358.52^2^2
+53 ;;^UTILITY(U,$J,358.5,8,2,1,0)
+54 ;;=DOB:^^^60^1^1^65^12^1
+55 ;;^UTILITY(U,$J,358.5,8,2,2,0)
+56 ;;=Age:^^^78^1^1^83^3^2
+57 ;;^UTILITY(U,$J,358.5,9,0)
+58 ;;=HEADER^12
+59 ;;^UTILITY(U,$J,358.5,9,2,0)
+60 ;;=^358.52^1^1
+61 ;;^UTILITY(U,$J,358.5,9,2,1,0)
+62 ;;=NATIONAL ALLERGY CLINIC^^^0^0
+63 ;;^UTILITY(U,$J,358.5,10,0)
+64 ;;=Patient name^13^3
+65 ;;^UTILITY(U,$J,358.5,10,2,0)
+66 ;;=^358.52^1^1
+67 ;;^UTILITY(U,$J,358.5,10,2,1,0)
+68 ;;=Name:^^^1^1^1^7^30^1
+69 ;;^UTILITY(U,$J,358.5,11,0)
+70 ;;=SSN^13^4
+71 ;;^UTILITY(U,$J,358.5,11,2,0)
+72 ;;=^358.52^1^1
+73 ;;^UTILITY(U,$J,358.5,11,2,1,0)
+74 ;;=SSN:^^^39^1^1^44^15^1
+75 ;;^UTILITY(U,$J,358.5,12,0)
+76 ;;=Age^13^5
+77 ;;^UTILITY(U,$J,358.5,12,2,0)
+78 ;;=^358.52^2^2
+79 ;;^UTILITY(U,$J,358.5,12,2,1,0)
+80 ;;=DOB:^^^60^1^1^65^12^1
+81 ;;^UTILITY(U,$J,358.5,12,2,2,0)
+82 ;;=Age:^^^78^1^1^83^3^2
+83 ;;^UTILITY(U,$J,358.5,13,0)
+84 ;;=HEADER^18
+85 ;;^UTILITY(U,$J,358.5,13,2,0)
+86 ;;=^358.52^1^1
+87 ;;^UTILITY(U,$J,358.5,13,2,1,0)
+88 ;;=NATIONAL ANESTHESIA^^^0^0
+89 ;;^UTILITY(U,$J,358.5,14,0)
+90 ;;=Patient name^19^3
+91 ;;^UTILITY(U,$J,358.5,14,2,0)
+92 ;;=^358.52^1^1
+93 ;;^UTILITY(U,$J,358.5,14,2,1,0)
+94 ;;=Name:^^^1^1^1^7^30^1
+95 ;;^UTILITY(U,$J,358.5,15,0)
+96 ;;=SSN^19^4
+97 ;;^UTILITY(U,$J,358.5,15,2,0)
+98 ;;=^358.52^1^1
+99 ;;^UTILITY(U,$J,358.5,15,2,1,0)
+100 ;;=SSN:^^^39^1^1^44^15^1
+101 ;;^UTILITY(U,$J,358.5,16,0)
+102 ;;=Age^19^5
+103 ;;^UTILITY(U,$J,358.5,16,2,0)
+104 ;;=^358.52^2^2
+105 ;;^UTILITY(U,$J,358.5,16,2,1,0)
+106 ;;=DOB:^^^60^1^1^65^12^1
+107 ;;^UTILITY(U,$J,358.5,16,2,2,0)
+108 ;;=Age:^^^78^1^1^83^3^2
+109 ;;^UTILITY(U,$J,358.5,17,0)
+110 ;;=HEADER^21
+111 ;;^UTILITY(U,$J,358.5,17,2,0)
+112 ;;=^358.52^1^1
+113 ;;^UTILITY(U,$J,358.5,17,2,1,0)
+114 ;;=NATIONAL AUDIOLOGY^^^0^0
+115 ;;^UTILITY(U,$J,358.5,18,0)
+116 ;;=Patient name^22^3
+117 ;;^UTILITY(U,$J,358.5,18,2,0)
+118 ;;=^358.52^1^1
+119 ;;^UTILITY(U,$J,358.5,18,2,1,0)
+120 ;;=Name:^^^1^1^1^7^30^1
+121 ;;^UTILITY(U,$J,358.5,19,0)
+122 ;;=SSN^22^4
+123 ;;^UTILITY(U,$J,358.5,19,2,0)
+124 ;;=^358.52^1^1
+125 ;;^UTILITY(U,$J,358.5,19,2,1,0)
+126 ;;=SSN:^^^39^1^1^44^15^1
+127 ;;^UTILITY(U,$J,358.5,20,0)
+128 ;;=Age^22^5
+129 ;;^UTILITY(U,$J,358.5,20,2,0)
+130 ;;=^358.52^2^2
+131 ;;^UTILITY(U,$J,358.5,20,2,1,0)
+132 ;;=DOB:^^^60^1^1^65^12^1
+133 ;;^UTILITY(U,$J,358.5,20,2,2,0)
+134 ;;=Age:^^^78^1^1^83^3^2
+135 ;;^UTILITY(U,$J,358.5,21,0)
+136 ;;=HEADER^25
+137 ;;^UTILITY(U,$J,358.5,21,2,0)
+138 ;;=^358.52^1^1
+139 ;;^UTILITY(U,$J,358.5,21,2,1,0)
+140 ;;=NATIONAL BLIND REHAB^^^0^0
+141 ;;^UTILITY(U,$J,358.5,22,0)
+142 ;;=Patient name^26^3