IBDEI32C ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
Q:'DIFQR(358.3) 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.3,48911,1,3,0)
;;=3^Hypersomnia,Primary
;;^UTILITY(U,$J,358.3,48911,1,4,0)
;;=4^F51.11
;;^UTILITY(U,$J,358.3,48911,2)
;;=^5003609
;;^UTILITY(U,$J,358.3,48912,0)
;;=F51.13^^185^2427^4
;;^UTILITY(U,$J,358.3,48912,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48912,1,3,0)
;;=3^Hypersomina d/t Mental Disorder
;;^UTILITY(U,$J,358.3,48912,1,4,0)
;;=4^F51.13
;;^UTILITY(U,$J,358.3,48912,2)
;;=^5003611
;;^UTILITY(U,$J,358.3,48913,0)
;;=F51.19^^185^2427^6
;;^UTILITY(U,$J,358.3,48913,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48913,1,3,0)
;;=3^Hypersomnia,Other
;;^UTILITY(U,$J,358.3,48913,1,4,0)
;;=4^F51.19
;;^UTILITY(U,$J,358.3,48913,2)
;;=^5003612
;;^UTILITY(U,$J,358.3,48914,0)
;;=F51.05^^185^2427^10
;;^UTILITY(U,$J,358.3,48914,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48914,1,3,0)
;;=3^Insomnia d/t Mental Disorder
;;^UTILITY(U,$J,358.3,48914,1,4,0)
;;=4^F51.05
;;^UTILITY(U,$J,358.3,48914,2)
;;=^5003607
;;^UTILITY(U,$J,358.3,48915,0)
;;=F51.09^^185^2427^12
;;^UTILITY(U,$J,358.3,48915,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48915,1,3,0)
;;=3^Insomnia,Other
;;^UTILITY(U,$J,358.3,48915,1,4,0)
;;=4^F51.09
;;^UTILITY(U,$J,358.3,48915,2)
;;=^5003608
;;^UTILITY(U,$J,358.3,48916,0)
;;=F51.02^^185^2427^11
;;^UTILITY(U,$J,358.3,48916,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48916,1,3,0)
;;=3^Insomnia,Adjustment
;;^UTILITY(U,$J,358.3,48916,1,4,0)
;;=4^F51.02
;;^UTILITY(U,$J,358.3,48916,2)
;;=^5003604
;;^UTILITY(U,$J,358.3,48917,0)
;;=F51.01^^185^2427^14
;;^UTILITY(U,$J,358.3,48917,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48917,1,3,0)
;;=3^Insomnia,Primary
;;^UTILITY(U,$J,358.3,48917,1,4,0)
;;=4^F51.01
;;^UTILITY(U,$J,358.3,48917,2)
;;=^5003603
;;^UTILITY(U,$J,358.3,48918,0)
;;=F51.04^^185^2427^15
;;^UTILITY(U,$J,358.3,48918,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48918,1,3,0)
;;=3^Insomnia,Psychophysiologic
;;^UTILITY(U,$J,358.3,48918,1,4,0)
;;=4^F51.04
;;^UTILITY(U,$J,358.3,48918,2)
;;=^5003606
;;^UTILITY(U,$J,358.3,48919,0)
;;=G47.00^^185^2427^16
;;^UTILITY(U,$J,358.3,48919,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48919,1,3,0)
;;=3^Insomnia,Unspec
;;^UTILITY(U,$J,358.3,48919,1,4,0)
;;=4^G47.00
;;^UTILITY(U,$J,358.3,48919,2)
;;=^332924
;;^UTILITY(U,$J,358.3,48920,0)
;;=F51.03^^185^2427^13
;;^UTILITY(U,$J,358.3,48920,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48920,1,3,0)
;;=3^Insomnia,Paradoxical
;;^UTILITY(U,$J,358.3,48920,1,4,0)
;;=4^F51.03
;;^UTILITY(U,$J,358.3,48920,2)
;;=^5003605
;;^UTILITY(U,$J,358.3,48921,0)
;;=G47.33^^185^2427^18
;;^UTILITY(U,$J,358.3,48921,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48921,1,3,0)
;;=3^Sleep Apnea,Obstructive
;;^UTILITY(U,$J,358.3,48921,1,4,0)
;;=4^G47.33
;;^UTILITY(U,$J,358.3,48921,2)
;;=^332763
;;^UTILITY(U,$J,358.3,48922,0)
;;=G47.30^^185^2427^19
;;^UTILITY(U,$J,358.3,48922,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48922,1,3,0)
;;=3^Sleep Apnea,Unspec
;;^UTILITY(U,$J,358.3,48922,1,4,0)
;;=4^G47.30
;;^UTILITY(U,$J,358.3,48922,2)
;;=^5003977
;;^UTILITY(U,$J,358.3,48923,0)
;;=Z72.820^^185^2427^20
;;^UTILITY(U,$J,358.3,48923,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48923,1,3,0)
;;=3^Sleep Deprivation
;;^UTILITY(U,$J,358.3,48923,1,4,0)
;;=4^Z72.820
;;^UTILITY(U,$J,358.3,48923,2)
;;=^5063264
;;^UTILITY(U,$J,358.3,48924,0)
;;=F51.5^^185^2427^21
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI32C 3777 printed Nov 22, 2024@17:50:35 Page 2
IBDEI32C ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+2 if 'DIFQR(358.3)
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.3,48911,1,3,0)
+2 ;;=3^Hypersomnia,Primary
+3 ;;^UTILITY(U,$J,358.3,48911,1,4,0)
+4 ;;=4^F51.11
+5 ;;^UTILITY(U,$J,358.3,48911,2)
+6 ;;=^5003609
+7 ;;^UTILITY(U,$J,358.3,48912,0)
+8 ;;=F51.13^^185^2427^4
+9 ;;^UTILITY(U,$J,358.3,48912,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,48912,1,3,0)
+12 ;;=3^Hypersomina d/t Mental Disorder
+13 ;;^UTILITY(U,$J,358.3,48912,1,4,0)
+14 ;;=4^F51.13
+15 ;;^UTILITY(U,$J,358.3,48912,2)
+16 ;;=^5003611
+17 ;;^UTILITY(U,$J,358.3,48913,0)
+18 ;;=F51.19^^185^2427^6
+19 ;;^UTILITY(U,$J,358.3,48913,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,48913,1,3,0)
+22 ;;=3^Hypersomnia,Other
+23 ;;^UTILITY(U,$J,358.3,48913,1,4,0)
+24 ;;=4^F51.19
+25 ;;^UTILITY(U,$J,358.3,48913,2)
+26 ;;=^5003612
+27 ;;^UTILITY(U,$J,358.3,48914,0)
+28 ;;=F51.05^^185^2427^10
+29 ;;^UTILITY(U,$J,358.3,48914,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,48914,1,3,0)
+32 ;;=3^Insomnia d/t Mental Disorder
+33 ;;^UTILITY(U,$J,358.3,48914,1,4,0)
+34 ;;=4^F51.05
+35 ;;^UTILITY(U,$J,358.3,48914,2)
+36 ;;=^5003607
+37 ;;^UTILITY(U,$J,358.3,48915,0)
+38 ;;=F51.09^^185^2427^12
+39 ;;^UTILITY(U,$J,358.3,48915,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,48915,1,3,0)
+42 ;;=3^Insomnia,Other
+43 ;;^UTILITY(U,$J,358.3,48915,1,4,0)
+44 ;;=4^F51.09
+45 ;;^UTILITY(U,$J,358.3,48915,2)
+46 ;;=^5003608
+47 ;;^UTILITY(U,$J,358.3,48916,0)
+48 ;;=F51.02^^185^2427^11
+49 ;;^UTILITY(U,$J,358.3,48916,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,48916,1,3,0)
+52 ;;=3^Insomnia,Adjustment
+53 ;;^UTILITY(U,$J,358.3,48916,1,4,0)
+54 ;;=4^F51.02
+55 ;;^UTILITY(U,$J,358.3,48916,2)
+56 ;;=^5003604
+57 ;;^UTILITY(U,$J,358.3,48917,0)
+58 ;;=F51.01^^185^2427^14
+59 ;;^UTILITY(U,$J,358.3,48917,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,48917,1,3,0)
+62 ;;=3^Insomnia,Primary
+63 ;;^UTILITY(U,$J,358.3,48917,1,4,0)
+64 ;;=4^F51.01
+65 ;;^UTILITY(U,$J,358.3,48917,2)
+66 ;;=^5003603
+67 ;;^UTILITY(U,$J,358.3,48918,0)
+68 ;;=F51.04^^185^2427^15
+69 ;;^UTILITY(U,$J,358.3,48918,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,48918,1,3,0)
+72 ;;=3^Insomnia,Psychophysiologic
+73 ;;^UTILITY(U,$J,358.3,48918,1,4,0)
+74 ;;=4^F51.04
+75 ;;^UTILITY(U,$J,358.3,48918,2)
+76 ;;=^5003606
+77 ;;^UTILITY(U,$J,358.3,48919,0)
+78 ;;=G47.00^^185^2427^16
+79 ;;^UTILITY(U,$J,358.3,48919,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,48919,1,3,0)
+82 ;;=3^Insomnia,Unspec
+83 ;;^UTILITY(U,$J,358.3,48919,1,4,0)
+84 ;;=4^G47.00
+85 ;;^UTILITY(U,$J,358.3,48919,2)
+86 ;;=^332924
+87 ;;^UTILITY(U,$J,358.3,48920,0)
+88 ;;=F51.03^^185^2427^13
+89 ;;^UTILITY(U,$J,358.3,48920,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,48920,1,3,0)
+92 ;;=3^Insomnia,Paradoxical
+93 ;;^UTILITY(U,$J,358.3,48920,1,4,0)
+94 ;;=4^F51.03
+95 ;;^UTILITY(U,$J,358.3,48920,2)
+96 ;;=^5003605
+97 ;;^UTILITY(U,$J,358.3,48921,0)
+98 ;;=G47.33^^185^2427^18
+99 ;;^UTILITY(U,$J,358.3,48921,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,48921,1,3,0)
+102 ;;=3^Sleep Apnea,Obstructive
+103 ;;^UTILITY(U,$J,358.3,48921,1,4,0)
+104 ;;=4^G47.33
+105 ;;^UTILITY(U,$J,358.3,48921,2)
+106 ;;=^332763
+107 ;;^UTILITY(U,$J,358.3,48922,0)
+108 ;;=G47.30^^185^2427^19
+109 ;;^UTILITY(U,$J,358.3,48922,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,48922,1,3,0)
+112 ;;=3^Sleep Apnea,Unspec
+113 ;;^UTILITY(U,$J,358.3,48922,1,4,0)
+114 ;;=4^G47.30
+115 ;;^UTILITY(U,$J,358.3,48922,2)
+116 ;;=^5003977
+117 ;;^UTILITY(U,$J,358.3,48923,0)
+118 ;;=Z72.820^^185^2427^20
+119 ;;^UTILITY(U,$J,358.3,48923,1,0)
+120 ;;=^358.31IA^4^2
+121 ;;^UTILITY(U,$J,358.3,48923,1,3,0)
+122 ;;=3^Sleep Deprivation
+123 ;;^UTILITY(U,$J,358.3,48923,1,4,0)
+124 ;;=4^Z72.820
+125 ;;^UTILITY(U,$J,358.3,48923,2)
+126 ;;=^5063264
+127 ;;^UTILITY(U,$J,358.3,48924,0)
+128 ;;=F51.5^^185^2427^21