- IBDEI3JB ; ; 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,44,0)
- ;;=Age^50^5
- ;;^UTILITY(U,$J,358.5,44,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,44,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,44,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,45,0)
- ;;=HEADER^53
- ;;^UTILITY(U,$J,358.5,45,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,45,2,1,0)
- ;;=NATIONAL COMP & PEN^^^0^0
- ;;^UTILITY(U,$J,358.5,46,0)
- ;;=Patient name^54^3
- ;;^UTILITY(U,$J,358.5,46,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,46,2,1,0)
- ;;=Name:^^^1^1^1^7^30^1
- ;;^UTILITY(U,$J,358.5,47,0)
- ;;=SSN^54^4
- ;;^UTILITY(U,$J,358.5,47,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,47,2,1,0)
- ;;=SSN:^^^39^1^1^44^15^1
- ;;^UTILITY(U,$J,358.5,48,0)
- ;;=Age^54^5
- ;;^UTILITY(U,$J,358.5,48,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,48,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,48,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,49,0)
- ;;=HEADER^60
- ;;^UTILITY(U,$J,358.5,49,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,49,2,1,0)
- ;;=NATIONAL CRITICAL CARE^^^0^0
- ;;^UTILITY(U,$J,358.5,50,0)
- ;;=Patient name^61^3
- ;;^UTILITY(U,$J,358.5,50,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,50,2,1,0)
- ;;=Name:^^^1^1^1^7^30^1
- ;;^UTILITY(U,$J,358.5,51,0)
- ;;=SSN^61^4
- ;;^UTILITY(U,$J,358.5,51,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,51,2,1,0)
- ;;=SSN:^^^39^1^1^44^15^1
- ;;^UTILITY(U,$J,358.5,52,0)
- ;;=Age^61^5
- ;;^UTILITY(U,$J,358.5,52,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,52,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,52,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,53,0)
- ;;=HEADER^65
- ;;^UTILITY(U,$J,358.5,53,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,53,2,1,0)
- ;;=NATIONAL SURGERY-MINOR^^^0^0
- ;;^UTILITY(U,$J,358.5,54,0)
- ;;=Patient name^66^3
- ;;^UTILITY(U,$J,358.5,54,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,54,2,1,0)
- ;;=Name:^^^1^1^1^7^30^1
- ;;^UTILITY(U,$J,358.5,55,0)
- ;;=SSN^66^4
- ;;^UTILITY(U,$J,358.5,55,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,55,2,1,0)
- ;;=SSN:^^^39^1^1^44^15^1
- ;;^UTILITY(U,$J,358.5,56,0)
- ;;=Age^66^5
- ;;^UTILITY(U,$J,358.5,56,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,56,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,56,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,57,0)
- ;;=HEADER^70
- ;;^UTILITY(U,$J,358.5,57,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,57,2,1,0)
- ;;=NATIONAL DEMENTIA CLINIC^^^0^0
- ;;^UTILITY(U,$J,358.5,58,0)
- ;;=Patient name^71^3
- ;;^UTILITY(U,$J,358.5,58,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,58,2,1,0)
- ;;=Name:^^^1^1^1^7^30^1
- ;;^UTILITY(U,$J,358.5,59,0)
- ;;=SSN^71^4
- ;;^UTILITY(U,$J,358.5,59,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,59,2,1,0)
- ;;=SSN:^^^39^1^1^44^15^1
- ;;^UTILITY(U,$J,358.5,60,0)
- ;;=Age^71^5
- ;;^UTILITY(U,$J,358.5,60,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,60,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,60,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,61,0)
- ;;=HEADER^75
- ;;^UTILITY(U,$J,358.5,61,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,61,2,1,0)
- ;;=NATIONAL DERMATOLOGY EF ^^^0^0
- ;;^UTILITY(U,$J,358.5,62,0)
- ;;=Patient name^76^3
- ;;^UTILITY(U,$J,358.5,62,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,62,2,1,0)
- ;;=Name:^^^1^1^1^7^30^1
- ;;^UTILITY(U,$J,358.5,63,0)
- ;;=SSN^76^4
- ;;^UTILITY(U,$J,358.5,63,2,0)
- ;;=^358.52^1^1
- ;;^UTILITY(U,$J,358.5,63,2,1,0)
- ;;=SSN:^^^39^1^1^44^15^1
- ;;^UTILITY(U,$J,358.5,64,0)
- ;;=Age^76^5
- ;;^UTILITY(U,$J,358.5,64,2,0)
- ;;=^358.52^2^2
- ;;^UTILITY(U,$J,358.5,64,2,1,0)
- ;;=DOB:^^^60^1^1^65^12^1
- ;;^UTILITY(U,$J,358.5,64,2,2,0)
- ;;=Age:^^^78^1^1^83^3^2
- ;;^UTILITY(U,$J,358.5,65,0)
- ;;=Patient name^80^3
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3JB 3983 printed Dec 13, 2024@02:49:53 Page 2
- IBDEI3JB ; ; 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,44,0)
- +2 ;;=Age^50^5
- +3 ;;^UTILITY(U,$J,358.5,44,2,0)
- +4 ;;=^358.52^2^2
- +5 ;;^UTILITY(U,$J,358.5,44,2,1,0)
- +6 ;;=DOB:^^^60^1^1^65^12^1
- +7 ;;^UTILITY(U,$J,358.5,44,2,2,0)
- +8 ;;=Age:^^^78^1^1^83^3^2
- +9 ;;^UTILITY(U,$J,358.5,45,0)
- +10 ;;=HEADER^53
- +11 ;;^UTILITY(U,$J,358.5,45,2,0)
- +12 ;;=^358.52^1^1
- +13 ;;^UTILITY(U,$J,358.5,45,2,1,0)
- +14 ;;=NATIONAL COMP & PEN^^^0^0
- +15 ;;^UTILITY(U,$J,358.5,46,0)
- +16 ;;=Patient name^54^3
- +17 ;;^UTILITY(U,$J,358.5,46,2,0)
- +18 ;;=^358.52^1^1
- +19 ;;^UTILITY(U,$J,358.5,46,2,1,0)
- +20 ;;=Name:^^^1^1^1^7^30^1
- +21 ;;^UTILITY(U,$J,358.5,47,0)
- +22 ;;=SSN^54^4
- +23 ;;^UTILITY(U,$J,358.5,47,2,0)
- +24 ;;=^358.52^1^1
- +25 ;;^UTILITY(U,$J,358.5,47,2,1,0)
- +26 ;;=SSN:^^^39^1^1^44^15^1
- +27 ;;^UTILITY(U,$J,358.5,48,0)
- +28 ;;=Age^54^5
- +29 ;;^UTILITY(U,$J,358.5,48,2,0)
- +30 ;;=^358.52^2^2
- +31 ;;^UTILITY(U,$J,358.5,48,2,1,0)
- +32 ;;=DOB:^^^60^1^1^65^12^1
- +33 ;;^UTILITY(U,$J,358.5,48,2,2,0)
- +34 ;;=Age:^^^78^1^1^83^3^2
- +35 ;;^UTILITY(U,$J,358.5,49,0)
- +36 ;;=HEADER^60
- +37 ;;^UTILITY(U,$J,358.5,49,2,0)
- +38 ;;=^358.52^1^1
- +39 ;;^UTILITY(U,$J,358.5,49,2,1,0)
- +40 ;;=NATIONAL CRITICAL CARE^^^0^0
- +41 ;;^UTILITY(U,$J,358.5,50,0)
- +42 ;;=Patient name^61^3
- +43 ;;^UTILITY(U,$J,358.5,50,2,0)
- +44 ;;=^358.52^1^1
- +45 ;;^UTILITY(U,$J,358.5,50,2,1,0)
- +46 ;;=Name:^^^1^1^1^7^30^1
- +47 ;;^UTILITY(U,$J,358.5,51,0)
- +48 ;;=SSN^61^4
- +49 ;;^UTILITY(U,$J,358.5,51,2,0)
- +50 ;;=^358.52^1^1
- +51 ;;^UTILITY(U,$J,358.5,51,2,1,0)
- +52 ;;=SSN:^^^39^1^1^44^15^1
- +53 ;;^UTILITY(U,$J,358.5,52,0)
- +54 ;;=Age^61^5
- +55 ;;^UTILITY(U,$J,358.5,52,2,0)
- +56 ;;=^358.52^2^2
- +57 ;;^UTILITY(U,$J,358.5,52,2,1,0)
- +58 ;;=DOB:^^^60^1^1^65^12^1
- +59 ;;^UTILITY(U,$J,358.5,52,2,2,0)
- +60 ;;=Age:^^^78^1^1^83^3^2
- +61 ;;^UTILITY(U,$J,358.5,53,0)
- +62 ;;=HEADER^65
- +63 ;;^UTILITY(U,$J,358.5,53,2,0)
- +64 ;;=^358.52^1^1
- +65 ;;^UTILITY(U,$J,358.5,53,2,1,0)
- +66 ;;=NATIONAL SURGERY-MINOR^^^0^0
- +67 ;;^UTILITY(U,$J,358.5,54,0)
- +68 ;;=Patient name^66^3
- +69 ;;^UTILITY(U,$J,358.5,54,2,0)
- +70 ;;=^358.52^1^1
- +71 ;;^UTILITY(U,$J,358.5,54,2,1,0)
- +72 ;;=Name:^^^1^1^1^7^30^1
- +73 ;;^UTILITY(U,$J,358.5,55,0)
- +74 ;;=SSN^66^4
- +75 ;;^UTILITY(U,$J,358.5,55,2,0)
- +76 ;;=^358.52^1^1
- +77 ;;^UTILITY(U,$J,358.5,55,2,1,0)
- +78 ;;=SSN:^^^39^1^1^44^15^1
- +79 ;;^UTILITY(U,$J,358.5,56,0)
- +80 ;;=Age^66^5
- +81 ;;^UTILITY(U,$J,358.5,56,2,0)
- +82 ;;=^358.52^2^2
- +83 ;;^UTILITY(U,$J,358.5,56,2,1,0)
- +84 ;;=DOB:^^^60^1^1^65^12^1
- +85 ;;^UTILITY(U,$J,358.5,56,2,2,0)
- +86 ;;=Age:^^^78^1^1^83^3^2
- +87 ;;^UTILITY(U,$J,358.5,57,0)
- +88 ;;=HEADER^70
- +89 ;;^UTILITY(U,$J,358.5,57,2,0)
- +90 ;;=^358.52^1^1
- +91 ;;^UTILITY(U,$J,358.5,57,2,1,0)
- +92 ;;=NATIONAL DEMENTIA CLINIC^^^0^0
- +93 ;;^UTILITY(U,$J,358.5,58,0)
- +94 ;;=Patient name^71^3
- +95 ;;^UTILITY(U,$J,358.5,58,2,0)
- +96 ;;=^358.52^1^1
- +97 ;;^UTILITY(U,$J,358.5,58,2,1,0)
- +98 ;;=Name:^^^1^1^1^7^30^1
- +99 ;;^UTILITY(U,$J,358.5,59,0)
- +100 ;;=SSN^71^4
- +101 ;;^UTILITY(U,$J,358.5,59,2,0)
- +102 ;;=^358.52^1^1
- +103 ;;^UTILITY(U,$J,358.5,59,2,1,0)
- +104 ;;=SSN:^^^39^1^1^44^15^1
- +105 ;;^UTILITY(U,$J,358.5,60,0)
- +106 ;;=Age^71^5
- +107 ;;^UTILITY(U,$J,358.5,60,2,0)
- +108 ;;=^358.52^2^2
- +109 ;;^UTILITY(U,$J,358.5,60,2,1,0)
- +110 ;;=DOB:^^^60^1^1^65^12^1
- +111 ;;^UTILITY(U,$J,358.5,60,2,2,0)
- +112 ;;=Age:^^^78^1^1^83^3^2
- +113 ;;^UTILITY(U,$J,358.5,61,0)
- +114 ;;=HEADER^75
- +115 ;;^UTILITY(U,$J,358.5,61,2,0)
- +116 ;;=^358.52^1^1
- +117 ;;^UTILITY(U,$J,358.5,61,2,1,0)
- +118 ;;=NATIONAL DERMATOLOGY EF ^^^0^0
- +119 ;;^UTILITY(U,$J,358.5,62,0)
- +120 ;;=Patient name^76^3
- +121 ;;^UTILITY(U,$J,358.5,62,2,0)
- +122 ;;=^358.52^1^1
- +123 ;;^UTILITY(U,$J,358.5,62,2,1,0)
- +124 ;;=Name:^^^1^1^1^7^30^1
- +125 ;;^UTILITY(U,$J,358.5,63,0)
- +126 ;;=SSN^76^4
- +127 ;;^UTILITY(U,$J,358.5,63,2,0)
- +128 ;;=^358.52^1^1
- +129 ;;^UTILITY(U,$J,358.5,63,2,1,0)
- +130 ;;=SSN:^^^39^1^1^44^15^1
- +131 ;;^UTILITY(U,$J,358.5,64,0)
- +132 ;;=Age^76^5
- +133 ;;^UTILITY(U,$J,358.5,64,2,0)
- +134 ;;=^358.52^2^2
- +135 ;;^UTILITY(U,$J,358.5,64,2,1,0)
- +136 ;;=DOB:^^^60^1^1^65^12^1
- +137 ;;^UTILITY(U,$J,358.5,64,2,2,0)
- +138 ;;=Age:^^^78^1^1^83^3^2
- +139 ;;^UTILITY(U,$J,358.5,65,0)
- +140 ;;=Patient name^80^3