IBDEI3DB ; ; 05-NOV-2019
;;3.0;IB ENCOUNTER FORM IMP/EXP;;NOV 05, 2019
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,239,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,239,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,239,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,240,0)
;;=HEADER^280
;;^UTILITY(U,$J,358.5,240,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,240,2,1,0)
;;=NATIONAL WOMEN'S HEALTH^^^0^0
;;^UTILITY(U,$J,358.5,241,0)
;;=HEADER^283
;;^UTILITY(U,$J,358.5,241,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,241,2,1,0)
;;=NATIONAL WOUND OSTOMY^^^0^0
;;^UTILITY(U,$J,358.5,242,0)
;;=Patient name^284^1
;;^UTILITY(U,$J,358.5,242,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,242,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,243,0)
;;=SSN^284^2
;;^UTILITY(U,$J,358.5,243,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,243,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,244,0)
;;=Age^284^3
;;^UTILITY(U,$J,358.5,244,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,244,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,244,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,245,0)
;;=HEADER^289
;;^UTILITY(U,$J,358.5,245,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,245,2,1,0)
;;=NATIONAL ANESTHESIA^^^0^0
;;^UTILITY(U,$J,358.5,246,0)
;;=Patient name^290^1
;;^UTILITY(U,$J,358.5,246,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,246,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,247,0)
;;=SSN^290^2
;;^UTILITY(U,$J,358.5,247,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,247,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,248,0)
;;=Age^290^3
;;^UTILITY(U,$J,358.5,248,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,248,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,248,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,249,0)
;;=HEADER^293
;;^UTILITY(U,$J,358.5,249,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,249,2,1,0)
;;=NATIONAL CLC^^^0^0
;;^UTILITY(U,$J,358.5,250,0)
;;=Patient name^295^1
;;^UTILITY(U,$J,358.5,250,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,250,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,251,0)
;;=SSN^295^2
;;^UTILITY(U,$J,358.5,251,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,251,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,252,0)
;;=Age^295^3
;;^UTILITY(U,$J,358.5,252,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,252,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,252,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,253,0)
;;=Patient name^299^1
;;^UTILITY(U,$J,358.5,253,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,253,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,254,0)
;;=SSN^299^2
;;^UTILITY(U,$J,358.5,254,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,254,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
;;^UTILITY(U,$J,358.5,255,0)
;;=Age^299^3
;;^UTILITY(U,$J,358.5,255,2,0)
;;=^358.52^2^2
;;^UTILITY(U,$J,358.5,255,2,1,0)
;;=DOB:^^^60^1^1^65^12^1
;;^UTILITY(U,$J,358.5,255,2,2,0)
;;=Age:^^^78^1^1^83^3^2
;;^UTILITY(U,$J,358.5,256,0)
;;=HEADER^300
;;^UTILITY(U,$J,358.5,256,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,256,2,1,0)
;;=NATIONAL INPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
;;^UTILITY(U,$J,358.5,257,0)
;;=Patient name^304^1
;;^UTILITY(U,$J,358.5,257,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,257,2,1,0)
;;=Name:^^^1^1^1^7^30^1
;;^UTILITY(U,$J,358.5,258,0)
;;=SSN^304^2
;;^UTILITY(U,$J,358.5,258,2,0)
;;=^358.52^1^1
;;^UTILITY(U,$J,358.5,258,2,1,0)
;;=SSN:^^^39^1^1^44^15^1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3DB 3762 printed Dec 13, 2024@02:46:32 Page 2
IBDEI3DB ; ; 05-NOV-2019
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;NOV 05, 2019
+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,239,2,0)
+2 ;;=^358.52^2^2
+3 ;;^UTILITY(U,$J,358.5,239,2,1,0)
+4 ;;=DOB:^^^60^1^1^65^12^1
+5 ;;^UTILITY(U,$J,358.5,239,2,2,0)
+6 ;;=Age:^^^78^1^1^83^3^2
+7 ;;^UTILITY(U,$J,358.5,240,0)
+8 ;;=HEADER^280
+9 ;;^UTILITY(U,$J,358.5,240,2,0)
+10 ;;=^358.52^1^1
+11 ;;^UTILITY(U,$J,358.5,240,2,1,0)
+12 ;;=NATIONAL WOMEN'S HEALTH^^^0^0
+13 ;;^UTILITY(U,$J,358.5,241,0)
+14 ;;=HEADER^283
+15 ;;^UTILITY(U,$J,358.5,241,2,0)
+16 ;;=^358.52^1^1
+17 ;;^UTILITY(U,$J,358.5,241,2,1,0)
+18 ;;=NATIONAL WOUND OSTOMY^^^0^0
+19 ;;^UTILITY(U,$J,358.5,242,0)
+20 ;;=Patient name^284^1
+21 ;;^UTILITY(U,$J,358.5,242,2,0)
+22 ;;=^358.52^1^1
+23 ;;^UTILITY(U,$J,358.5,242,2,1,0)
+24 ;;=Name:^^^1^1^1^7^30^1
+25 ;;^UTILITY(U,$J,358.5,243,0)
+26 ;;=SSN^284^2
+27 ;;^UTILITY(U,$J,358.5,243,2,0)
+28 ;;=^358.52^1^1
+29 ;;^UTILITY(U,$J,358.5,243,2,1,0)
+30 ;;=SSN:^^^39^1^1^44^15^1
+31 ;;^UTILITY(U,$J,358.5,244,0)
+32 ;;=Age^284^3
+33 ;;^UTILITY(U,$J,358.5,244,2,0)
+34 ;;=^358.52^2^2
+35 ;;^UTILITY(U,$J,358.5,244,2,1,0)
+36 ;;=DOB:^^^60^1^1^65^12^1
+37 ;;^UTILITY(U,$J,358.5,244,2,2,0)
+38 ;;=Age:^^^78^1^1^83^3^2
+39 ;;^UTILITY(U,$J,358.5,245,0)
+40 ;;=HEADER^289
+41 ;;^UTILITY(U,$J,358.5,245,2,0)
+42 ;;=^358.52^1^1
+43 ;;^UTILITY(U,$J,358.5,245,2,1,0)
+44 ;;=NATIONAL ANESTHESIA^^^0^0
+45 ;;^UTILITY(U,$J,358.5,246,0)
+46 ;;=Patient name^290^1
+47 ;;^UTILITY(U,$J,358.5,246,2,0)
+48 ;;=^358.52^1^1
+49 ;;^UTILITY(U,$J,358.5,246,2,1,0)
+50 ;;=Name:^^^1^1^1^7^30^1
+51 ;;^UTILITY(U,$J,358.5,247,0)
+52 ;;=SSN^290^2
+53 ;;^UTILITY(U,$J,358.5,247,2,0)
+54 ;;=^358.52^1^1
+55 ;;^UTILITY(U,$J,358.5,247,2,1,0)
+56 ;;=SSN:^^^39^1^1^44^15^1
+57 ;;^UTILITY(U,$J,358.5,248,0)
+58 ;;=Age^290^3
+59 ;;^UTILITY(U,$J,358.5,248,2,0)
+60 ;;=^358.52^2^2
+61 ;;^UTILITY(U,$J,358.5,248,2,1,0)
+62 ;;=DOB:^^^60^1^1^65^12^1
+63 ;;^UTILITY(U,$J,358.5,248,2,2,0)
+64 ;;=Age:^^^78^1^1^83^3^2
+65 ;;^UTILITY(U,$J,358.5,249,0)
+66 ;;=HEADER^293
+67 ;;^UTILITY(U,$J,358.5,249,2,0)
+68 ;;=^358.52^1^1
+69 ;;^UTILITY(U,$J,358.5,249,2,1,0)
+70 ;;=NATIONAL CLC^^^0^0
+71 ;;^UTILITY(U,$J,358.5,250,0)
+72 ;;=Patient name^295^1
+73 ;;^UTILITY(U,$J,358.5,250,2,0)
+74 ;;=^358.52^1^1
+75 ;;^UTILITY(U,$J,358.5,250,2,1,0)
+76 ;;=Name:^^^1^1^1^7^30^1
+77 ;;^UTILITY(U,$J,358.5,251,0)
+78 ;;=SSN^295^2
+79 ;;^UTILITY(U,$J,358.5,251,2,0)
+80 ;;=^358.52^1^1
+81 ;;^UTILITY(U,$J,358.5,251,2,1,0)
+82 ;;=SSN:^^^39^1^1^44^15^1
+83 ;;^UTILITY(U,$J,358.5,252,0)
+84 ;;=Age^295^3
+85 ;;^UTILITY(U,$J,358.5,252,2,0)
+86 ;;=^358.52^2^2
+87 ;;^UTILITY(U,$J,358.5,252,2,1,0)
+88 ;;=DOB:^^^60^1^1^65^12^1
+89 ;;^UTILITY(U,$J,358.5,252,2,2,0)
+90 ;;=Age:^^^78^1^1^83^3^2
+91 ;;^UTILITY(U,$J,358.5,253,0)
+92 ;;=Patient name^299^1
+93 ;;^UTILITY(U,$J,358.5,253,2,0)
+94 ;;=^358.52^1^1
+95 ;;^UTILITY(U,$J,358.5,253,2,1,0)
+96 ;;=Name:^^^1^1^1^7^30^1
+97 ;;^UTILITY(U,$J,358.5,254,0)
+98 ;;=SSN^299^2
+99 ;;^UTILITY(U,$J,358.5,254,2,0)
+100 ;;=^358.52^1^1
+101 ;;^UTILITY(U,$J,358.5,254,2,1,0)
+102 ;;=SSN:^^^39^1^1^44^15^1
+103 ;;^UTILITY(U,$J,358.5,255,0)
+104 ;;=Age^299^3
+105 ;;^UTILITY(U,$J,358.5,255,2,0)
+106 ;;=^358.52^2^2
+107 ;;^UTILITY(U,$J,358.5,255,2,1,0)
+108 ;;=DOB:^^^60^1^1^65^12^1
+109 ;;^UTILITY(U,$J,358.5,255,2,2,0)
+110 ;;=Age:^^^78^1^1^83^3^2
+111 ;;^UTILITY(U,$J,358.5,256,0)
+112 ;;=HEADER^300
+113 ;;^UTILITY(U,$J,358.5,256,2,0)
+114 ;;=^358.52^1^1
+115 ;;^UTILITY(U,$J,358.5,256,2,1,0)
+116 ;;=NATIONAL INPATIENT HOSPICE/PALLIATIVE CARE^^^0^0
+117 ;;^UTILITY(U,$J,358.5,257,0)
+118 ;;=Patient name^304^1
+119 ;;^UTILITY(U,$J,358.5,257,2,0)
+120 ;;=^358.52^1^1
+121 ;;^UTILITY(U,$J,358.5,257,2,1,0)
+122 ;;=Name:^^^1^1^1^7^30^1
+123 ;;^UTILITY(U,$J,358.5,258,0)
+124 ;;=SSN^304^2
+125 ;;^UTILITY(U,$J,358.5,258,2,0)
+126 ;;=^358.52^1^1
+127 ;;^UTILITY(U,$J,358.5,258,2,1,0)
+128 ;;=SSN:^^^39^1^1^44^15^1