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