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