IBDEI3C5 ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
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,999) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.5,40,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,41,0)
;;=HEADER^49
;;^UTILITY(U,$J,358.5,41,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,41,2,1,0)
;;=NATIONAL NEUROLOGY^^^0^0
;;^UTILITY(U,$J,358.5,42,0)
;;=Patient name^50^1
;;^UTILITY(U,$J,358.5,42,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,42,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,43,0)
;;=SSN^50^2
;;^UTILITY(U,$J,358.5,43,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,43,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,44,0)
;;=Age^50^3
;;^UTILITY(U,$J,358.5,44,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,44,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,44,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,45,0)
;;=HEADER^55
;;^UTILITY(U,$J,358.5,45,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,45,2,1,0)
;;=NATIONAL NEUROSURGERY^^^0^0
;;^UTILITY(U,$J,358.5,46,0)
;;=Patient name^56^1
;;^UTILITY(U,$J,358.5,46,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,46,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,47,0)
;;=SSN^56^2
;;^UTILITY(U,$J,358.5,47,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,47,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,48,0)
;;=Age^56^3
;;^UTILITY(U,$J,358.5,48,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,48,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,48,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,49,0)
;;=HEADER^60
;;^UTILITY(U,$J,358.5,49,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,49,2,1,0)
;;=NATIONAL PAIN^^^0^0
;;^UTILITY(U,$J,358.5,50,0)
;;=Patient name^61^1
;;^UTILITY(U,$J,358.5,50,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,50,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,51,0)
;;=SSN^61^2
;;^UTILITY(U,$J,358.5,51,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,51,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,52,0)
;;=Age^61^3
;;^UTILITY(U,$J,358.5,52,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,52,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,52,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,53,0)
;;=HEADER^64
;;^UTILITY(U,$J,358.5,53,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,53,2,1,0)
;;=NATIONAL RHEUMATOLOGY^^^0^0
;;^UTILITY(U,$J,358.5,54,0)
;;=Patient name^65^1
;;^UTILITY(U,$J,358.5,54,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,54,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,55,0)
;;=SSN^65^2
;;^UTILITY(U,$J,358.5,55,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,55,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,56,0)
;;=Age^65^3
;;^UTILITY(U,$J,358.5,56,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,56,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,56,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,57,0)
;;=Patient name^69^1
;;^UTILITY(U,$J,358.5,57,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,57,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,58,0)
;;=SSN^69^2
;;^UTILITY(U,$J,358.5,58,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,58,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,59,0)
;;=Age^69^3
;;^UTILITY(U,$J,358.5,59,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,59,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,59,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,60,0)
;;=HEADER^70
;;^UTILITY(U,$J,358.5,60,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,60,2,1,0)
;;=NATIONAL ADDICTION^^^0^0
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3C5 3757 printed Nov 22, 2024@17:56:02 Page 2
IBDEI3C5 ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+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,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.5,40,2,2,0)
+2 ;;=Age:^^^78^1^1^83^3^2
+3 ;;^UTILITY(U,$J,358.5,41,0)
+4 ;;=HEADER^49
+5 ;;^UTILITY(U,$J,358.5,41,2,0)
+6 ;;=^358.52^1^1
+7 ;;^UTILITY(U,$J,358.5,41,2,1,0)
+8 ;;=NATIONAL NEUROLOGY^^^0^0
+9 ;;^UTILITY(U,$J,358.5,42,0)
+10 ;;=Patient name^50^1
+11 ;;^UTILITY(U,$J,358.5,42,2,0)
+12 ;;=^358.52^1^1
+13 ;;^UTILITY(U,$J,358.5,42,2,1,0)
+14 ;;=Name:^^^1^1^1^7^30^1
+15 ;;^UTILITY(U,$J,358.5,43,0)
+16 ;;=SSN^50^2
+17 ;;^UTILITY(U,$J,358.5,43,2,0)
+18 ;;=^358.52^1^1
+19 ;;^UTILITY(U,$J,358.5,43,2,1,0)
+20 ;;=SSN:^^^39^1^1^44^15^1
+21 ;;^UTILITY(U,$J,358.5,44,0)
+22 ;;=Age^50^3
+23 ;;^UTILITY(U,$J,358.5,44,2,0)
+24 ;;=^358.52^2^2
+25 ;;^UTILITY(U,$J,358.5,44,2,1,0)
+26 ;;=DOB:^^^60^1^1^65^12^1
+27 ;;^UTILITY(U,$J,358.5,44,2,2,0)
+28 ;;=Age:^^^78^1^1^83^3^2
+29 ;;^UTILITY(U,$J,358.5,45,0)
+30 ;;=HEADER^55
+31 ;;^UTILITY(U,$J,358.5,45,2,0)
+32 ;;=^358.52^1^1
+33 ;;^UTILITY(U,$J,358.5,45,2,1,0)
+34 ;;=NATIONAL NEUROSURGERY^^^0^0
+35 ;;^UTILITY(U,$J,358.5,46,0)
+36 ;;=Patient name^56^1
+37 ;;^UTILITY(U,$J,358.5,46,2,0)
+38 ;;=^358.52^1^1
+39 ;;^UTILITY(U,$J,358.5,46,2,1,0)
+40 ;;=Name:^^^1^1^1^7^30^1
+41 ;;^UTILITY(U,$J,358.5,47,0)
+42 ;;=SSN^56^2
+43 ;;^UTILITY(U,$J,358.5,47,2,0)
+44 ;;=^358.52^1^1
+45 ;;^UTILITY(U,$J,358.5,47,2,1,0)
+46 ;;=SSN:^^^39^1^1^44^15^1
+47 ;;^UTILITY(U,$J,358.5,48,0)
+48 ;;=Age^56^3
+49 ;;^UTILITY(U,$J,358.5,48,2,0)
+50 ;;=^358.52^2^2
+51 ;;^UTILITY(U,$J,358.5,48,2,1,0)
+52 ;;=DOB:^^^60^1^1^65^12^1
+53 ;;^UTILITY(U,$J,358.5,48,2,2,0)
+54 ;;=Age:^^^78^1^1^83^3^2
+55 ;;^UTILITY(U,$J,358.5,49,0)
+56 ;;=HEADER^60
+57 ;;^UTILITY(U,$J,358.5,49,2,0)
+58 ;;=^358.52^1^1
+59 ;;^UTILITY(U,$J,358.5,49,2,1,0)
+60 ;;=NATIONAL PAIN^^^0^0
+61 ;;^UTILITY(U,$J,358.5,50,0)
+62 ;;=Patient name^61^1
+63 ;;^UTILITY(U,$J,358.5,50,2,0)
+64 ;;=^358.52^1^1
+65 ;;^UTILITY(U,$J,358.5,50,2,1,0)
+66 ;;=Name:^^^1^1^1^7^30^1
+67 ;;^UTILITY(U,$J,358.5,51,0)
+68 ;;=SSN^61^2
+69 ;;^UTILITY(U,$J,358.5,51,2,0)
+70 ;;=^358.52^1^1
+71 ;;^UTILITY(U,$J,358.5,51,2,1,0)
+72 ;;=SSN:^^^39^1^1^44^15^1
+73 ;;^UTILITY(U,$J,358.5,52,0)
+74 ;;=Age^61^3
+75 ;;^UTILITY(U,$J,358.5,52,2,0)
+76 ;;=^358.52^2^2
+77 ;;^UTILITY(U,$J,358.5,52,2,1,0)
+78 ;;=DOB:^^^60^1^1^65^12^1
+79 ;;^UTILITY(U,$J,358.5,52,2,2,0)
+80 ;;=Age:^^^78^1^1^83^3^2
+81 ;;^UTILITY(U,$J,358.5,53,0)
+82 ;;=HEADER^64
+83 ;;^UTILITY(U,$J,358.5,53,2,0)
+84 ;;=^358.52^1^1
+85 ;;^UTILITY(U,$J,358.5,53,2,1,0)
+86 ;;=NATIONAL RHEUMATOLOGY^^^0^0
+87 ;;^UTILITY(U,$J,358.5,54,0)
+88 ;;=Patient name^65^1
+89 ;;^UTILITY(U,$J,358.5,54,2,0)
+90 ;;=^358.52^1^1
+91 ;;^UTILITY(U,$J,358.5,54,2,1,0)
+92 ;;=Name:^^^1^1^1^7^30^1
+93 ;;^UTILITY(U,$J,358.5,55,0)
+94 ;;=SSN^65^2
+95 ;;^UTILITY(U,$J,358.5,55,2,0)
+96 ;;=^358.52^1^1
+97 ;;^UTILITY(U,$J,358.5,55,2,1,0)
+98 ;;=SSN:^^^39^1^1^44^15^1
+99 ;;^UTILITY(U,$J,358.5,56,0)
+100 ;;=Age^65^3
+101 ;;^UTILITY(U,$J,358.5,56,2,0)
+102 ;;=^358.52^2^2
+103 ;;^UTILITY(U,$J,358.5,56,2,1,0)
+104 ;;=DOB:^^^60^1^1^65^12^1
+105 ;;^UTILITY(U,$J,358.5,56,2,2,0)
+106 ;;=Age:^^^78^1^1^83^3^2
+107 ;;^UTILITY(U,$J,358.5,57,0)
+108 ;;=Patient name^69^1
+109 ;;^UTILITY(U,$J,358.5,57,2,0)
+110 ;;=^358.52^1^1
+111 ;;^UTILITY(U,$J,358.5,57,2,1,0)
+112 ;;=Name:^^^1^1^1^7^30^1
+113 ;;^UTILITY(U,$J,358.5,58,0)
+114 ;;=SSN^69^2
+115 ;;^UTILITY(U,$J,358.5,58,2,0)
+116 ;;=^358.52^1^1
+117 ;;^UTILITY(U,$J,358.5,58,2,1,0)
+118 ;;=SSN:^^^39^1^1^44^15^1
+119 ;;^UTILITY(U,$J,358.5,59,0)
+120 ;;=Age^69^3
+121 ;;^UTILITY(U,$J,358.5,59,2,0)
+122 ;;=^358.52^2^2
+123 ;;^UTILITY(U,$J,358.5,59,2,1,0)
+124 ;;=DOB:^^^60^1^1^65^12^1
+125 ;;^UTILITY(U,$J,358.5,59,2,2,0)
+126 ;;=Age:^^^78^1^1^83^3^2
+127 ;;^UTILITY(U,$J,358.5,60,0)
+128 ;;=HEADER^70
+129 ;;^UTILITY(U,$J,358.5,60,2,0)
+130 ;;=^358.52^1^1
+131 ;;^UTILITY(U,$J,358.5,60,2,1,0)
+132 ;;=NATIONAL ADDICTION^^^0^0