IBDEI3JG ; ; 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,150,0)
;;=SSN^180^4
;;^UTILITY(U,$J,358.5,150,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,150,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,151,0)
;;=Age^180^5
;;^UTILITY(U,$J,358.5,151,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,151,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,151,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,152,0)
;;=HEADER^182
;;^UTILITY(U,$J,358.5,152,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,152,2,1,0)
;;=NATIONAL INPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
;;^UTILITY(U,$J,358.5,153,0)
;;=Patient name^185^3
;;^UTILITY(U,$J,358.5,153,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,153,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,154,0)
;;=SSN^185^4
;;^UTILITY(U,$J,358.5,154,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,154,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,155,0)
;;=Age^185^5
;;^UTILITY(U,$J,358.5,155,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,155,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,155,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,156,0)
;;=HEADER^187
;;^UTILITY(U,$J,358.5,156,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,156,2,1,0)
;;=NATIONAL OUTPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
;;^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 HT - CLINICIAN^^^0^0
;;^UTILITY(U,$J,358.5,158,0)
;;=Patient name^190^3
;;^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^4
;;^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^5
;;^UTILITY(U,$J,358.5,160,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,160,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,160,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,161,0)
;;=HEADER^194
;;^UTILITY(U,$J,358.5,161,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,161,2,1,0)
;;=NATIONAL HT - NURSING^^^0^0
;;^UTILITY(U,$J,358.5,162,0)
;;=Patient name^195^3
;;^UTILITY(U,$J,358.5,162,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,162,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,163,0)
;;=SSN^195^4
;;^UTILITY(U,$J,358.5,163,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,163,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,164,0)
;;=Age^195^5
;;^UTILITY(U,$J,358.5,164,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,164,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,164,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,165,0)
;;=HEADER^199
;;^UTILITY(U,$J,358.5,165,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,165,2,1,0)
;;=NATIONAL HT - SOCIAL WORK SERVICES^^^0^0
;;^UTILITY(U,$J,358.5,166,0)
;;=Patient name^200^3
;;^UTILITY(U,$J,358.5,166,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,166,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,167,0)
;;=SSN^200^4
;;^UTILITY(U,$J,358.5,167,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,167,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,168,0)
;;=Age^200^5
;;^UTILITY(U,$J,358.5,168,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,168,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,168,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,169,0)
;;=HEADER^204
;;^UTILITY(U,$J,358.5,169,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,169,2,1,0)
;;=NATIONAL INFECTIOUS DISEASE^^^0^0
;;^UTILITY(U,$J,358.5,170,0)
;;=Patient name^205^3
;;^UTILITY(U,$J,358.5,170,2,0)
;;=^358.52^1^1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3JG 3963 printed Dec 13, 2024@02:49:57 Page 2
IBDEI3JG ; ; 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,150,0)
+2 ;;=SSN^180^4
+3 ;;^UTILITY(U,$J,358.5,150,2,0)
+4 ;;=^358.52^1^1
+5 ;;^UTILITY(U,$J,358.5,150,2,1,0)
+6 ;;=SSN:^^^39^1^1^44^15^1
+7 ;;^UTILITY(U,$J,358.5,151,0)
+8 ;;=Age^180^5
+9 ;;^UTILITY(U,$J,358.5,151,2,0)
+10 ;;=^358.52^2^2
+11 ;;^UTILITY(U,$J,358.5,151,2,1,0)
+12 ;;=DOB:^^^60^1^1^65^12^1
+13 ;;^UTILITY(U,$J,358.5,151,2,2,0)
+14 ;;=Age:^^^78^1^1^83^3^2
+15 ;;^UTILITY(U,$J,358.5,152,0)
+16 ;;=HEADER^182
+17 ;;^UTILITY(U,$J,358.5,152,2,0)
+18 ;;=^358.52^1^1
+19 ;;^UTILITY(U,$J,358.5,152,2,1,0)
+20 ;;=NATIONAL INPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
+21 ;;^UTILITY(U,$J,358.5,153,0)
+22 ;;=Patient name^185^3
+23 ;;^UTILITY(U,$J,358.5,153,2,0)
+24 ;;=^358.52^1^1
+25 ;;^UTILITY(U,$J,358.5,153,2,1,0)
+26 ;;=Name:^^^1^1^1^7^30^1
+27 ;;^UTILITY(U,$J,358.5,154,0)
+28 ;;=SSN^185^4
+29 ;;^UTILITY(U,$J,358.5,154,2,0)
+30 ;;=^358.52^1^1
+31 ;;^UTILITY(U,$J,358.5,154,2,1,0)
+32 ;;=SSN:^^^39^1^1^44^15^1
+33 ;;^UTILITY(U,$J,358.5,155,0)
+34 ;;=Age^185^5
+35 ;;^UTILITY(U,$J,358.5,155,2,0)
+36 ;;=^358.52^2^2
+37 ;;^UTILITY(U,$J,358.5,155,2,1,0)
+38 ;;=DOB:^^^60^1^1^65^12^1
+39 ;;^UTILITY(U,$J,358.5,155,2,2,0)
+40 ;;=Age:^^^78^1^1^83^3^2
+41 ;;^UTILITY(U,$J,358.5,156,0)
+42 ;;=HEADER^187
+43 ;;^UTILITY(U,$J,358.5,156,2,0)
+44 ;;=^358.52^1^1
+45 ;;^UTILITY(U,$J,358.5,156,2,1,0)
+46 ;;=NATIONAL OUTPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
+47 ;;^UTILITY(U,$J,358.5,157,0)
+48 ;;=HEADER^189
+49 ;;^UTILITY(U,$J,358.5,157,2,0)
+50 ;;=^358.52^1^1
+51 ;;^UTILITY(U,$J,358.5,157,2,1,0)
+52 ;;=NATIONAL HT - CLINICIAN^^^0^0
+53 ;;^UTILITY(U,$J,358.5,158,0)
+54 ;;=Patient name^190^3
+55 ;;^UTILITY(U,$J,358.5,158,2,0)
+56 ;;=^358.52^1^1
+57 ;;^UTILITY(U,$J,358.5,158,2,1,0)
+58 ;;=Name:^^^1^1^1^7^30^1
+59 ;;^UTILITY(U,$J,358.5,159,0)
+60 ;;=SSN^190^4
+61 ;;^UTILITY(U,$J,358.5,159,2,0)
+62 ;;=^358.52^1^1
+63 ;;^UTILITY(U,$J,358.5,159,2,1,0)
+64 ;;=SSN:^^^39^1^1^44^15^1
+65 ;;^UTILITY(U,$J,358.5,160,0)
+66 ;;=Age^190^5
+67 ;;^UTILITY(U,$J,358.5,160,2,0)
+68 ;;=^358.52^2^2
+69 ;;^UTILITY(U,$J,358.5,160,2,1,0)
+70 ;;=DOB:^^^60^1^1^65^12^1
+71 ;;^UTILITY(U,$J,358.5,160,2,2,0)
+72 ;;=Age:^^^78^1^1^83^3^2
+73 ;;^UTILITY(U,$J,358.5,161,0)
+74 ;;=HEADER^194
+75 ;;^UTILITY(U,$J,358.5,161,2,0)
+76 ;;=^358.52^1^1
+77 ;;^UTILITY(U,$J,358.5,161,2,1,0)
+78 ;;=NATIONAL HT - NURSING^^^0^0
+79 ;;^UTILITY(U,$J,358.5,162,0)
+80 ;;=Patient name^195^3
+81 ;;^UTILITY(U,$J,358.5,162,2,0)
+82 ;;=^358.52^1^1
+83 ;;^UTILITY(U,$J,358.5,162,2,1,0)
+84 ;;=Name:^^^1^1^1^7^30^1
+85 ;;^UTILITY(U,$J,358.5,163,0)
+86 ;;=SSN^195^4
+87 ;;^UTILITY(U,$J,358.5,163,2,0)
+88 ;;=^358.52^1^1
+89 ;;^UTILITY(U,$J,358.5,163,2,1,0)
+90 ;;=SSN:^^^39^1^1^44^15^1
+91 ;;^UTILITY(U,$J,358.5,164,0)
+92 ;;=Age^195^5
+93 ;;^UTILITY(U,$J,358.5,164,2,0)
+94 ;;=^358.52^2^2
+95 ;;^UTILITY(U,$J,358.5,164,2,1,0)
+96 ;;=DOB:^^^60^1^1^65^12^1
+97 ;;^UTILITY(U,$J,358.5,164,2,2,0)
+98 ;;=Age:^^^78^1^1^83^3^2
+99 ;;^UTILITY(U,$J,358.5,165,0)
+100 ;;=HEADER^199
+101 ;;^UTILITY(U,$J,358.5,165,2,0)
+102 ;;=^358.52^1^1
+103 ;;^UTILITY(U,$J,358.5,165,2,1,0)
+104 ;;=NATIONAL HT - SOCIAL WORK SERVICES^^^0^0
+105 ;;^UTILITY(U,$J,358.5,166,0)
+106 ;;=Patient name^200^3
+107 ;;^UTILITY(U,$J,358.5,166,2,0)
+108 ;;=^358.52^1^1
+109 ;;^UTILITY(U,$J,358.5,166,2,1,0)
+110 ;;=Name:^^^1^1^1^7^30^1
+111 ;;^UTILITY(U,$J,358.5,167,0)
+112 ;;=SSN^200^4
+113 ;;^UTILITY(U,$J,358.5,167,2,0)
+114 ;;=^358.52^1^1
+115 ;;^UTILITY(U,$J,358.5,167,2,1,0)
+116 ;;=SSN:^^^39^1^1^44^15^1
+117 ;;^UTILITY(U,$J,358.5,168,0)
+118 ;;=Age^200^5
+119 ;;^UTILITY(U,$J,358.5,168,2,0)
+120 ;;=^358.52^2^2
+121 ;;^UTILITY(U,$J,358.5,168,2,1,0)
+122 ;;=DOB:^^^60^1^1^65^12^1
+123 ;;^UTILITY(U,$J,358.5,168,2,2,0)
+124 ;;=Age:^^^78^1^1^83^3^2
+125 ;;^UTILITY(U,$J,358.5,169,0)
+126 ;;=HEADER^204
+127 ;;^UTILITY(U,$J,358.5,169,2,0)
+128 ;;=^358.52^1^1
+129 ;;^UTILITY(U,$J,358.5,169,2,1,0)
+130 ;;=NATIONAL INFECTIOUS DISEASE^^^0^0
+131 ;;^UTILITY(U,$J,358.5,170,0)
+132 ;;=Patient name^205^3
+133 ;;^UTILITY(U,$J,358.5,170,2,0)
+134 ;;=^358.52^1^1