IBDEI3CA ; ; 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,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 INFECTIOUS DISEASE^^^0^0
;;^UTILITY(U,$J,358.5,142,0)
;;=Patient name^172^1
;;^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^2
;;^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^3
;;^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 INPATIENT^^^0^0
;;^UTILITY(U,$J,358.5,146,0)
;;=Patient name^177^1
;;^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^2
;;^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^3
;;^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)
;;=HEADER^180
;;^UTILITY(U,$J,358.5,149,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,149,2,1,0)
;;=NATIONAL MEDICAL FOSTER HOME^^^0^0
;;^UTILITY(U,$J,358.5,150,0)
;;=Patient name^181^1
;;^UTILITY(U,$J,358.5,150,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,150,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,151,0)
;;=SSN^181^2
;;^UTILITY(U,$J,358.5,151,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,151,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,152,0)
;;=Age^181^3
;;^UTILITY(U,$J,358.5,152,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,152,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,152,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,153,0)
;;=HEADER^185
;;^UTILITY(U,$J,358.5,153,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,153,2,1,0)
;;=NATIONAL MH MHICM^^^0^0
;;^UTILITY(U,$J,358.5,154,0)
;;=Patient name^186^1
;;^UTILITY(U,$J,358.5,154,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,154,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,155,0)
;;=SSN^186^2
;;^UTILITY(U,$J,358.5,155,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,155,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,156,0)
;;=Age^186^3
;;^UTILITY(U,$J,358.5,156,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,156,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,156,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,157,0)
;;=HEADER^189
;;^UTILITY(U,$J,358.5,157,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,157,2,1,0)
;;=NATIONAL MENTAL HEALTH - NURSE^^^0^0
;;^UTILITY(U,$J,358.5,158,0)
;;=Patient name^190^1
;;^UTILITY(U,$J,358.5,158,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,158,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,159,0)
;;=SSN^190^2
;;^UTILITY(U,$J,358.5,159,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,159,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,160,0)
;;=Age^190^3
;;^UTILITY(U,$J,358.5,160,2,0)
;;=^358.52^2^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3CA 3749 printed Nov 22, 2024@17:56:07 Page 2
IBDEI3CA ; ; 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,140,2,2,0)
+2 ;;=Age:^^^78^1^1^83^3^2
+3 ;;^UTILITY(U,$J,358.5,141,0)
+4 ;;=HEADER^171
+5 ;;^UTILITY(U,$J,358.5,141,2,0)
+6 ;;=^358.52^1^1
+7 ;;^UTILITY(U,$J,358.5,141,2,1,0)
+8 ;;=NATIONAL INFECTIOUS DISEASE^^^0^0
+9 ;;^UTILITY(U,$J,358.5,142,0)
+10 ;;=Patient name^172^1
+11 ;;^UTILITY(U,$J,358.5,142,2,0)
+12 ;;=^358.52^1^1
+13 ;;^UTILITY(U,$J,358.5,142,2,1,0)
+14 ;;=Name:^^^1^1^1^7^30^1
+15 ;;^UTILITY(U,$J,358.5,143,0)
+16 ;;=SSN^172^2
+17 ;;^UTILITY(U,$J,358.5,143,2,0)
+18 ;;=^358.52^1^1
+19 ;;^UTILITY(U,$J,358.5,143,2,1,0)
+20 ;;=SSN:^^^39^1^1^44^15^1
+21 ;;^UTILITY(U,$J,358.5,144,0)
+22 ;;=Age^172^3
+23 ;;^UTILITY(U,$J,358.5,144,2,0)
+24 ;;=^358.52^2^2
+25 ;;^UTILITY(U,$J,358.5,144,2,1,0)
+26 ;;=DOB:^^^60^1^1^65^12^1
+27 ;;^UTILITY(U,$J,358.5,144,2,2,0)
+28 ;;=Age:^^^78^1^1^83^3^2
+29 ;;^UTILITY(U,$J,358.5,145,0)
+30 ;;=HEADER^176
+31 ;;^UTILITY(U,$J,358.5,145,2,0)
+32 ;;=^358.52^1^1
+33 ;;^UTILITY(U,$J,358.5,145,2,1,0)
+34 ;;=NATIONAL INPATIENT^^^0^0
+35 ;;^UTILITY(U,$J,358.5,146,0)
+36 ;;=Patient name^177^1
+37 ;;^UTILITY(U,$J,358.5,146,2,0)
+38 ;;=^358.52^1^1
+39 ;;^UTILITY(U,$J,358.5,146,2,1,0)
+40 ;;=Name:^^^1^1^1^7^30^1
+41 ;;^UTILITY(U,$J,358.5,147,0)
+42 ;;=SSN^177^2
+43 ;;^UTILITY(U,$J,358.5,147,2,0)
+44 ;;=^358.52^1^1
+45 ;;^UTILITY(U,$J,358.5,147,2,1,0)
+46 ;;=SSN:^^^39^1^1^44^15^1
+47 ;;^UTILITY(U,$J,358.5,148,0)
+48 ;;=Age^177^3
+49 ;;^UTILITY(U,$J,358.5,148,2,0)
+50 ;;=^358.52^2^2
+51 ;;^UTILITY(U,$J,358.5,148,2,1,0)
+52 ;;=DOB:^^^60^1^1^65^12^1
+53 ;;^UTILITY(U,$J,358.5,148,2,2,0)
+54 ;;=Age:^^^78^1^1^83^3^2
+55 ;;^UTILITY(U,$J,358.5,149,0)
+56 ;;=HEADER^180
+57 ;;^UTILITY(U,$J,358.5,149,2,0)
+58 ;;=^358.52^1^1
+59 ;;^UTILITY(U,$J,358.5,149,2,1,0)
+60 ;;=NATIONAL MEDICAL FOSTER HOME^^^0^0
+61 ;;^UTILITY(U,$J,358.5,150,0)
+62 ;;=Patient name^181^1
+63 ;;^UTILITY(U,$J,358.5,150,2,0)
+64 ;;=^358.52^1^1
+65 ;;^UTILITY(U,$J,358.5,150,2,1,0)
+66 ;;=Name:^^^1^1^1^7^30^1
+67 ;;^UTILITY(U,$J,358.5,151,0)
+68 ;;=SSN^181^2
+69 ;;^UTILITY(U,$J,358.5,151,2,0)
+70 ;;=^358.52^1^1
+71 ;;^UTILITY(U,$J,358.5,151,2,1,0)
+72 ;;=SSN:^^^39^1^1^44^15^1
+73 ;;^UTILITY(U,$J,358.5,152,0)
+74 ;;=Age^181^3
+75 ;;^UTILITY(U,$J,358.5,152,2,0)
+76 ;;=^358.52^2^2
+77 ;;^UTILITY(U,$J,358.5,152,2,1,0)
+78 ;;=DOB:^^^60^1^1^65^12^1
+79 ;;^UTILITY(U,$J,358.5,152,2,2,0)
+80 ;;=Age:^^^78^1^1^83^3^2
+81 ;;^UTILITY(U,$J,358.5,153,0)
+82 ;;=HEADER^185
+83 ;;^UTILITY(U,$J,358.5,153,2,0)
+84 ;;=^358.52^1^1
+85 ;;^UTILITY(U,$J,358.5,153,2,1,0)
+86 ;;=NATIONAL MH MHICM^^^0^0
+87 ;;^UTILITY(U,$J,358.5,154,0)
+88 ;;=Patient name^186^1
+89 ;;^UTILITY(U,$J,358.5,154,2,0)
+90 ;;=^358.52^1^1
+91 ;;^UTILITY(U,$J,358.5,154,2,1,0)
+92 ;;=Name:^^^1^1^1^7^30^1
+93 ;;^UTILITY(U,$J,358.5,155,0)
+94 ;;=SSN^186^2
+95 ;;^UTILITY(U,$J,358.5,155,2,0)
+96 ;;=^358.52^1^1
+97 ;;^UTILITY(U,$J,358.5,155,2,1,0)
+98 ;;=SSN:^^^39^1^1^44^15^1
+99 ;;^UTILITY(U,$J,358.5,156,0)
+100 ;;=Age^186^3
+101 ;;^UTILITY(U,$J,358.5,156,2,0)
+102 ;;=^358.52^2^2
+103 ;;^UTILITY(U,$J,358.5,156,2,1,0)
+104 ;;=DOB:^^^60^1^1^65^12^1
+105 ;;^UTILITY(U,$J,358.5,156,2,2,0)
+106 ;;=Age:^^^78^1^1^83^3^2
+107 ;;^UTILITY(U,$J,358.5,157,0)
+108 ;;=HEADER^189
+109 ;;^UTILITY(U,$J,358.5,157,2,0)
+110 ;;=^358.52^1^1
+111 ;;^UTILITY(U,$J,358.5,157,2,1,0)
+112 ;;=NATIONAL MENTAL HEALTH - NURSE^^^0^0
+113 ;;^UTILITY(U,$J,358.5,158,0)
+114 ;;=Patient name^190^1
+115 ;;^UTILITY(U,$J,358.5,158,2,0)
+116 ;;=^358.52^1^1
+117 ;;^UTILITY(U,$J,358.5,158,2,1,0)
+118 ;;=Name:^^^1^1^1^7^30^1
+119 ;;^UTILITY(U,$J,358.5,159,0)
+120 ;;=SSN^190^2
+121 ;;^UTILITY(U,$J,358.5,159,2,0)
+122 ;;=^358.52^1^1
+123 ;;^UTILITY(U,$J,358.5,159,2,1,0)
+124 ;;=SSN:^^^39^1^1^44^15^1
+125 ;;^UTILITY(U,$J,358.5,160,0)
+126 ;;=Age^190^3
+127 ;;^UTILITY(U,$J,358.5,160,2,0)
+128 ;;=^358.52^2^2