IBDEI3CE ; ; 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,219,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,220,0)
;;=Age^263^3
;;^UTILITY(U,$J,358.5,220,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,220,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,220,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,221,0)
;;=HEADER^266
;;^UTILITY(U,$J,358.5,221,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,221,2,1,0)
;;=NATIONAL SPINAL CORD INJURY^^^0^0
;;^UTILITY(U,$J,358.5,222,0)
;;=Patient name^267^1
;;^UTILITY(U,$J,358.5,222,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,222,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,223,0)
;;=SSN^267^2
;;^UTILITY(U,$J,358.5,223,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,223,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,224,0)
;;=Age^267^3
;;^UTILITY(U,$J,358.5,224,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,224,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,224,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,225,0)
;;=HEADER^272
;;^UTILITY(U,$J,358.5,225,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,225,2,1,0)
;;=NATIONAL SPEECH^^^0^0
;;^UTILITY(U,$J,358.5,226,0)
;;=Patient name^273^1
;;^UTILITY(U,$J,358.5,226,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,226,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,227,0)
;;=SSN^273^2
;;^UTILITY(U,$J,358.5,227,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,227,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,228,0)
;;=Age^273^3
;;^UTILITY(U,$J,358.5,228,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,228,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,228,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,229,0)
;;=HEADER^275
;;^UTILITY(U,$J,358.5,229,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,229,2,1,0)
;;=NATIONAL SOCIAL WORK SERVICE (OTHER THAN MH)^^^0^0
;;^UTILITY(U,$J,358.5,230,0)
;;=Patient name^276^1
;;^UTILITY(U,$J,358.5,230,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,230,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,231,0)
;;=SSN^276^2
;;^UTILITY(U,$J,358.5,231,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,231,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,232,0)
;;=Age^276^3
;;^UTILITY(U,$J,358.5,232,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,232,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,232,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,233,0)
;;=HEADER^280
;;^UTILITY(U,$J,358.5,233,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,233,2,1,0)
;;=NATIONAL SOCIAL WORK SERVICE - MENTAL HEALTH^^^0^0
;;^UTILITY(U,$J,358.5,234,0)
;;=Patient name^281^1
;;^UTILITY(U,$J,358.5,234,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,234,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,235,0)
;;=SSN^281^2
;;^UTILITY(U,$J,358.5,235,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,235,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,236,0)
;;=Age^281^3
;;^UTILITY(U,$J,358.5,236,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,236,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,236,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,237,0)
;;=HEADER^284
;;^UTILITY(U,$J,358.5,237,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,237,2,1,0)
;;=NATIONAL TBI^^^0^0
;;^UTILITY(U,$J,358.5,238,0)
;;=Patient name^285^1
;;^UTILITY(U,$J,358.5,238,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,238,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,239,0)
;;=SSN^285^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3CE 3783 printed Dec 13, 2024@02:46:02 Page 2
IBDEI3CE ; ; 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,219,2,1,0)
+2 ;;=SSN:^^^39^1^1^44^15^1
+3 ;;^UTILITY(U,$J,358.5,220,0)
+4 ;;=Age^263^3
+5 ;;^UTILITY(U,$J,358.5,220,2,0)
+6 ;;=^358.52^2^2
+7 ;;^UTILITY(U,$J,358.5,220,2,1,0)
+8 ;;=DOB:^^^60^1^1^65^12^1
+9 ;;^UTILITY(U,$J,358.5,220,2,2,0)
+10 ;;=Age:^^^78^1^1^83^3^2
+11 ;;^UTILITY(U,$J,358.5,221,0)
+12 ;;=HEADER^266
+13 ;;^UTILITY(U,$J,358.5,221,2,0)
+14 ;;=^358.52^1^1
+15 ;;^UTILITY(U,$J,358.5,221,2,1,0)
+16 ;;=NATIONAL SPINAL CORD INJURY^^^0^0
+17 ;;^UTILITY(U,$J,358.5,222,0)
+18 ;;=Patient name^267^1
+19 ;;^UTILITY(U,$J,358.5,222,2,0)
+20 ;;=^358.52^1^1
+21 ;;^UTILITY(U,$J,358.5,222,2,1,0)
+22 ;;=Name:^^^1^1^1^7^30^1
+23 ;;^UTILITY(U,$J,358.5,223,0)
+24 ;;=SSN^267^2
+25 ;;^UTILITY(U,$J,358.5,223,2,0)
+26 ;;=^358.52^1^1
+27 ;;^UTILITY(U,$J,358.5,223,2,1,0)
+28 ;;=SSN:^^^39^1^1^44^15^1
+29 ;;^UTILITY(U,$J,358.5,224,0)
+30 ;;=Age^267^3
+31 ;;^UTILITY(U,$J,358.5,224,2,0)
+32 ;;=^358.52^2^2
+33 ;;^UTILITY(U,$J,358.5,224,2,1,0)
+34 ;;=DOB:^^^60^1^1^65^12^1
+35 ;;^UTILITY(U,$J,358.5,224,2,2,0)
+36 ;;=Age:^^^78^1^1^83^3^2
+37 ;;^UTILITY(U,$J,358.5,225,0)
+38 ;;=HEADER^272
+39 ;;^UTILITY(U,$J,358.5,225,2,0)
+40 ;;=^358.52^1^1
+41 ;;^UTILITY(U,$J,358.5,225,2,1,0)
+42 ;;=NATIONAL SPEECH^^^0^0
+43 ;;^UTILITY(U,$J,358.5,226,0)
+44 ;;=Patient name^273^1
+45 ;;^UTILITY(U,$J,358.5,226,2,0)
+46 ;;=^358.52^1^1
+47 ;;^UTILITY(U,$J,358.5,226,2,1,0)
+48 ;;=Name:^^^1^1^1^7^30^1
+49 ;;^UTILITY(U,$J,358.5,227,0)
+50 ;;=SSN^273^2
+51 ;;^UTILITY(U,$J,358.5,227,2,0)
+52 ;;=^358.52^1^1
+53 ;;^UTILITY(U,$J,358.5,227,2,1,0)
+54 ;;=SSN:^^^39^1^1^44^15^1
+55 ;;^UTILITY(U,$J,358.5,228,0)
+56 ;;=Age^273^3
+57 ;;^UTILITY(U,$J,358.5,228,2,0)
+58 ;;=^358.52^2^2
+59 ;;^UTILITY(U,$J,358.5,228,2,1,0)
+60 ;;=DOB:^^^60^1^1^65^12^1
+61 ;;^UTILITY(U,$J,358.5,228,2,2,0)
+62 ;;=Age:^^^78^1^1^83^3^2
+63 ;;^UTILITY(U,$J,358.5,229,0)
+64 ;;=HEADER^275
+65 ;;^UTILITY(U,$J,358.5,229,2,0)
+66 ;;=^358.52^1^1
+67 ;;^UTILITY(U,$J,358.5,229,2,1,0)
+68 ;;=NATIONAL SOCIAL WORK SERVICE (OTHER THAN MH)^^^0^0
+69 ;;^UTILITY(U,$J,358.5,230,0)
+70 ;;=Patient name^276^1
+71 ;;^UTILITY(U,$J,358.5,230,2,0)
+72 ;;=^358.52^1^1
+73 ;;^UTILITY(U,$J,358.5,230,2,1,0)
+74 ;;=Name:^^^1^1^1^7^30^1
+75 ;;^UTILITY(U,$J,358.5,231,0)
+76 ;;=SSN^276^2
+77 ;;^UTILITY(U,$J,358.5,231,2,0)
+78 ;;=^358.52^1^1
+79 ;;^UTILITY(U,$J,358.5,231,2,1,0)
+80 ;;=SSN:^^^39^1^1^44^15^1
+81 ;;^UTILITY(U,$J,358.5,232,0)
+82 ;;=Age^276^3
+83 ;;^UTILITY(U,$J,358.5,232,2,0)
+84 ;;=^358.52^2^2
+85 ;;^UTILITY(U,$J,358.5,232,2,1,0)
+86 ;;=DOB:^^^60^1^1^65^12^1
+87 ;;^UTILITY(U,$J,358.5,232,2,2,0)
+88 ;;=Age:^^^78^1^1^83^3^2
+89 ;;^UTILITY(U,$J,358.5,233,0)
+90 ;;=HEADER^280
+91 ;;^UTILITY(U,$J,358.5,233,2,0)
+92 ;;=^358.52^1^1
+93 ;;^UTILITY(U,$J,358.5,233,2,1,0)
+94 ;;=NATIONAL SOCIAL WORK SERVICE - MENTAL HEALTH^^^0^0
+95 ;;^UTILITY(U,$J,358.5,234,0)
+96 ;;=Patient name^281^1
+97 ;;^UTILITY(U,$J,358.5,234,2,0)
+98 ;;=^358.52^1^1
+99 ;;^UTILITY(U,$J,358.5,234,2,1,0)
+100 ;;=Name:^^^1^1^1^7^30^1
+101 ;;^UTILITY(U,$J,358.5,235,0)
+102 ;;=SSN^281^2
+103 ;;^UTILITY(U,$J,358.5,235,2,0)
+104 ;;=^358.52^1^1
+105 ;;^UTILITY(U,$J,358.5,235,2,1,0)
+106 ;;=SSN:^^^39^1^1^44^15^1
+107 ;;^UTILITY(U,$J,358.5,236,0)
+108 ;;=Age^281^3
+109 ;;^UTILITY(U,$J,358.5,236,2,0)
+110 ;;=^358.52^2^2
+111 ;;^UTILITY(U,$J,358.5,236,2,1,0)
+112 ;;=DOB:^^^60^1^1^65^12^1
+113 ;;^UTILITY(U,$J,358.5,236,2,2,0)
+114 ;;=Age:^^^78^1^1^83^3^2
+115 ;;^UTILITY(U,$J,358.5,237,0)
+116 ;;=HEADER^284
+117 ;;^UTILITY(U,$J,358.5,237,2,0)
+118 ;;=^358.52^1^1
+119 ;;^UTILITY(U,$J,358.5,237,2,1,0)
+120 ;;=NATIONAL TBI^^^0^0
+121 ;;^UTILITY(U,$J,358.5,238,0)
+122 ;;=Patient name^285^1
+123 ;;^UTILITY(U,$J,358.5,238,2,0)
+124 ;;=^358.52^1^1
+125 ;;^UTILITY(U,$J,358.5,238,2,1,0)
+126 ;;=Name:^^^1^1^1^7^30^1
+127 ;;^UTILITY(U,$J,358.5,239,0)
+128 ;;=SSN^285^2