IBDEI1SA ; ; 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,28493,2)
;;=^5003975
;;^UTILITY(U,$J,358.3,28494,0)
;;=G47.24^^115^1405^7
;;^UTILITY(U,$J,358.3,28494,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28494,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
;;^UTILITY(U,$J,358.3,28494,1,4,0)
;;=4^G47.24
;;^UTILITY(U,$J,358.3,28494,2)
;;=^5003976
;;^UTILITY(U,$J,358.3,28495,0)
;;=G47.26^^115^1405^8
;;^UTILITY(U,$J,358.3,28495,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28495,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
;;^UTILITY(U,$J,358.3,28495,1,4,0)
;;=4^G47.26
;;^UTILITY(U,$J,358.3,28495,2)
;;=^332774
;;^UTILITY(U,$J,358.3,28496,0)
;;=G47.20^^115^1405^9
;;^UTILITY(U,$J,358.3,28496,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28496,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
;;^UTILITY(U,$J,358.3,28496,1,4,0)
;;=4^G47.20
;;^UTILITY(U,$J,358.3,28496,2)
;;=^5003974
;;^UTILITY(U,$J,358.3,28497,0)
;;=F51.3^^115^1405^21
;;^UTILITY(U,$J,358.3,28497,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28497,1,3,0)
;;=3^Non-REM Sleep Arousal D/O;Sleepwalking Type
;;^UTILITY(U,$J,358.3,28497,1,4,0)
;;=4^F51.3
;;^UTILITY(U,$J,358.3,28497,2)
;;=^5003613
;;^UTILITY(U,$J,358.3,28498,0)
;;=F51.4^^115^1405^20
;;^UTILITY(U,$J,358.3,28498,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28498,1,3,0)
;;=3^Non-REM Sleep Arousal D/O;Sleep Terror Type
;;^UTILITY(U,$J,358.3,28498,1,4,0)
;;=4^F51.4
;;^UTILITY(U,$J,358.3,28498,2)
;;=^5003614
;;^UTILITY(U,$J,358.3,28499,0)
;;=F51.5^^115^1405^19
;;^UTILITY(U,$J,358.3,28499,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28499,1,3,0)
;;=3^Nightmare D/O
;;^UTILITY(U,$J,358.3,28499,1,4,0)
;;=4^F51.5
;;^UTILITY(U,$J,358.3,28499,2)
;;=^5003615
;;^UTILITY(U,$J,358.3,28500,0)
;;=G47.52^^115^1405^23
;;^UTILITY(U,$J,358.3,28500,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28500,1,3,0)
;;=3^Rapid Eye Movement Sleep Behavior D/O
;;^UTILITY(U,$J,358.3,28500,1,4,0)
;;=4^G47.52
;;^UTILITY(U,$J,358.3,28500,2)
;;=^332778
;;^UTILITY(U,$J,358.3,28501,0)
;;=G25.81^^115^1405^24
;;^UTILITY(U,$J,358.3,28501,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28501,1,3,0)
;;=3^Restless Legs Syndrome
;;^UTILITY(U,$J,358.3,28501,1,4,0)
;;=4^G25.81
;;^UTILITY(U,$J,358.3,28501,2)
;;=^5003801
;;^UTILITY(U,$J,358.3,28502,0)
;;=G47.19^^115^1405^11
;;^UTILITY(U,$J,358.3,28502,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28502,1,3,0)
;;=3^Hypersomnolence D/O,Other Specified
;;^UTILITY(U,$J,358.3,28502,1,4,0)
;;=4^G47.19
;;^UTILITY(U,$J,358.3,28502,2)
;;=^5003973
;;^UTILITY(U,$J,358.3,28503,0)
;;=G47.8^^115^1405^28
;;^UTILITY(U,$J,358.3,28503,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28503,1,3,0)
;;=3^Sleep-Wake D/O,Other Specified
;;^UTILITY(U,$J,358.3,28503,1,4,0)
;;=4^G47.8
;;^UTILITY(U,$J,358.3,28503,2)
;;=^5003989
;;^UTILITY(U,$J,358.3,28504,0)
;;=G47.411^^115^1405^17
;;^UTILITY(U,$J,358.3,28504,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28504,1,3,0)
;;=3^Narcolepsy w/ Cataplexy
;;^UTILITY(U,$J,358.3,28504,1,4,0)
;;=4^G47.411
;;^UTILITY(U,$J,358.3,28504,2)
;;=^5003981
;;^UTILITY(U,$J,358.3,28505,0)
;;=G47.37^^115^1405^1
;;^UTILITY(U,$J,358.3,28505,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,28505,1,3,0)
;;=3^Central Sleep Apnea,Comorbid w/ Opioid Use
;;^UTILITY(U,$J,358.3,28505,1,4,0)
;;=4^G47.37
;;^UTILITY(U,$J,358.3,28505,2)
;;=^332767
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1SA 3786 printed Dec 13, 2024@02:14:49 Page 2
IBDEI1SA ; ; 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,28493,2)
+2 ;;=^5003975
+3 ;;^UTILITY(U,$J,358.3,28494,0)
+4 ;;=G47.24^^115^1405^7
+5 ;;^UTILITY(U,$J,358.3,28494,1,0)
+6 ;;=^358.31IA^4^2
+7 ;;^UTILITY(U,$J,358.3,28494,1,3,0)
+8 ;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
+9 ;;^UTILITY(U,$J,358.3,28494,1,4,0)
+10 ;;=4^G47.24
+11 ;;^UTILITY(U,$J,358.3,28494,2)
+12 ;;=^5003976
+13 ;;^UTILITY(U,$J,358.3,28495,0)
+14 ;;=G47.26^^115^1405^8
+15 ;;^UTILITY(U,$J,358.3,28495,1,0)
+16 ;;=^358.31IA^4^2
+17 ;;^UTILITY(U,$J,358.3,28495,1,3,0)
+18 ;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
+19 ;;^UTILITY(U,$J,358.3,28495,1,4,0)
+20 ;;=4^G47.26
+21 ;;^UTILITY(U,$J,358.3,28495,2)
+22 ;;=^332774
+23 ;;^UTILITY(U,$J,358.3,28496,0)
+24 ;;=G47.20^^115^1405^9
+25 ;;^UTILITY(U,$J,358.3,28496,1,0)
+26 ;;=^358.31IA^4^2
+27 ;;^UTILITY(U,$J,358.3,28496,1,3,0)
+28 ;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
+29 ;;^UTILITY(U,$J,358.3,28496,1,4,0)
+30 ;;=4^G47.20
+31 ;;^UTILITY(U,$J,358.3,28496,2)
+32 ;;=^5003974
+33 ;;^UTILITY(U,$J,358.3,28497,0)
+34 ;;=F51.3^^115^1405^21
+35 ;;^UTILITY(U,$J,358.3,28497,1,0)
+36 ;;=^358.31IA^4^2
+37 ;;^UTILITY(U,$J,358.3,28497,1,3,0)
+38 ;;=3^Non-REM Sleep Arousal D/O;Sleepwalking Type
+39 ;;^UTILITY(U,$J,358.3,28497,1,4,0)
+40 ;;=4^F51.3
+41 ;;^UTILITY(U,$J,358.3,28497,2)
+42 ;;=^5003613
+43 ;;^UTILITY(U,$J,358.3,28498,0)
+44 ;;=F51.4^^115^1405^20
+45 ;;^UTILITY(U,$J,358.3,28498,1,0)
+46 ;;=^358.31IA^4^2
+47 ;;^UTILITY(U,$J,358.3,28498,1,3,0)
+48 ;;=3^Non-REM Sleep Arousal D/O;Sleep Terror Type
+49 ;;^UTILITY(U,$J,358.3,28498,1,4,0)
+50 ;;=4^F51.4
+51 ;;^UTILITY(U,$J,358.3,28498,2)
+52 ;;=^5003614
+53 ;;^UTILITY(U,$J,358.3,28499,0)
+54 ;;=F51.5^^115^1405^19
+55 ;;^UTILITY(U,$J,358.3,28499,1,0)
+56 ;;=^358.31IA^4^2
+57 ;;^UTILITY(U,$J,358.3,28499,1,3,0)
+58 ;;=3^Nightmare D/O
+59 ;;^UTILITY(U,$J,358.3,28499,1,4,0)
+60 ;;=4^F51.5
+61 ;;^UTILITY(U,$J,358.3,28499,2)
+62 ;;=^5003615
+63 ;;^UTILITY(U,$J,358.3,28500,0)
+64 ;;=G47.52^^115^1405^23
+65 ;;^UTILITY(U,$J,358.3,28500,1,0)
+66 ;;=^358.31IA^4^2
+67 ;;^UTILITY(U,$J,358.3,28500,1,3,0)
+68 ;;=3^Rapid Eye Movement Sleep Behavior D/O
+69 ;;^UTILITY(U,$J,358.3,28500,1,4,0)
+70 ;;=4^G47.52
+71 ;;^UTILITY(U,$J,358.3,28500,2)
+72 ;;=^332778
+73 ;;^UTILITY(U,$J,358.3,28501,0)
+74 ;;=G25.81^^115^1405^24
+75 ;;^UTILITY(U,$J,358.3,28501,1,0)
+76 ;;=^358.31IA^4^2
+77 ;;^UTILITY(U,$J,358.3,28501,1,3,0)
+78 ;;=3^Restless Legs Syndrome
+79 ;;^UTILITY(U,$J,358.3,28501,1,4,0)
+80 ;;=4^G25.81
+81 ;;^UTILITY(U,$J,358.3,28501,2)
+82 ;;=^5003801
+83 ;;^UTILITY(U,$J,358.3,28502,0)
+84 ;;=G47.19^^115^1405^11
+85 ;;^UTILITY(U,$J,358.3,28502,1,0)
+86 ;;=^358.31IA^4^2
+87 ;;^UTILITY(U,$J,358.3,28502,1,3,0)
+88 ;;=3^Hypersomnolence D/O,Other Specified
+89 ;;^UTILITY(U,$J,358.3,28502,1,4,0)
+90 ;;=4^G47.19
+91 ;;^UTILITY(U,$J,358.3,28502,2)
+92 ;;=^5003973
+93 ;;^UTILITY(U,$J,358.3,28503,0)
+94 ;;=G47.8^^115^1405^28
+95 ;;^UTILITY(U,$J,358.3,28503,1,0)
+96 ;;=^358.31IA^4^2
+97 ;;^UTILITY(U,$J,358.3,28503,1,3,0)
+98 ;;=3^Sleep-Wake D/O,Other Specified
+99 ;;^UTILITY(U,$J,358.3,28503,1,4,0)
+100 ;;=4^G47.8
+101 ;;^UTILITY(U,$J,358.3,28503,2)
+102 ;;=^5003989
+103 ;;^UTILITY(U,$J,358.3,28504,0)
+104 ;;=G47.411^^115^1405^17
+105 ;;^UTILITY(U,$J,358.3,28504,1,0)
+106 ;;=^358.31IA^4^2
+107 ;;^UTILITY(U,$J,358.3,28504,1,3,0)
+108 ;;=3^Narcolepsy w/ Cataplexy
+109 ;;^UTILITY(U,$J,358.3,28504,1,4,0)
+110 ;;=4^G47.411
+111 ;;^UTILITY(U,$J,358.3,28504,2)
+112 ;;=^5003981
+113 ;;^UTILITY(U,$J,358.3,28505,0)
+114 ;;=G47.37^^115^1405^1
+115 ;;^UTILITY(U,$J,358.3,28505,1,0)
+116 ;;=^358.31IA^4^2
+117 ;;^UTILITY(U,$J,358.3,28505,1,3,0)
+118 ;;=3^Central Sleep Apnea,Comorbid w/ Opioid Use
+119 ;;^UTILITY(U,$J,358.3,28505,1,4,0)
+120 ;;=4^G47.37
+121 ;;^UTILITY(U,$J,358.3,28505,2)
+122 ;;=^332767