IBDEI1U7 ; ; 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,29351,1,3,0)
;;=3^Central Sleep Apnea,Idiopathic
;;^UTILITY(U,$J,358.3,29351,1,4,0)
;;=4^G47.31
;;^UTILITY(U,$J,358.3,29351,2)
;;=^332761
;;^UTILITY(U,$J,358.3,29352,0)
;;=G47.21^^118^1483^5
;;^UTILITY(U,$J,358.3,29352,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29352,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
;;^UTILITY(U,$J,358.3,29352,1,4,0)
;;=4^G47.21
;;^UTILITY(U,$J,358.3,29352,2)
;;=^332769
;;^UTILITY(U,$J,358.3,29353,0)
;;=G47.22^^118^1483^4
;;^UTILITY(U,$J,358.3,29353,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29353,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
;;^UTILITY(U,$J,358.3,29353,1,4,0)
;;=4^G47.22
;;^UTILITY(U,$J,358.3,29353,2)
;;=^332770
;;^UTILITY(U,$J,358.3,29354,0)
;;=G47.23^^118^1483^6
;;^UTILITY(U,$J,358.3,29354,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29354,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
;;^UTILITY(U,$J,358.3,29354,1,4,0)
;;=4^G47.23
;;^UTILITY(U,$J,358.3,29354,2)
;;=^5003975
;;^UTILITY(U,$J,358.3,29355,0)
;;=G47.24^^118^1483^7
;;^UTILITY(U,$J,358.3,29355,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29355,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
;;^UTILITY(U,$J,358.3,29355,1,4,0)
;;=4^G47.24
;;^UTILITY(U,$J,358.3,29355,2)
;;=^5003976
;;^UTILITY(U,$J,358.3,29356,0)
;;=G47.26^^118^1483^8
;;^UTILITY(U,$J,358.3,29356,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29356,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
;;^UTILITY(U,$J,358.3,29356,1,4,0)
;;=4^G47.26
;;^UTILITY(U,$J,358.3,29356,2)
;;=^332774
;;^UTILITY(U,$J,358.3,29357,0)
;;=G47.20^^118^1483^9
;;^UTILITY(U,$J,358.3,29357,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29357,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
;;^UTILITY(U,$J,358.3,29357,1,4,0)
;;=4^G47.20
;;^UTILITY(U,$J,358.3,29357,2)
;;=^5003974
;;^UTILITY(U,$J,358.3,29358,0)
;;=F51.3^^118^1483^21
;;^UTILITY(U,$J,358.3,29358,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29358,1,3,0)
;;=3^Non-REM Sleep Arousal D/O;Sleepwalking Type
;;^UTILITY(U,$J,358.3,29358,1,4,0)
;;=4^F51.3
;;^UTILITY(U,$J,358.3,29358,2)
;;=^5003613
;;^UTILITY(U,$J,358.3,29359,0)
;;=F51.4^^118^1483^20
;;^UTILITY(U,$J,358.3,29359,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29359,1,3,0)
;;=3^Non-REM Sleep Arousal D/O;Sleep Terror Type
;;^UTILITY(U,$J,358.3,29359,1,4,0)
;;=4^F51.4
;;^UTILITY(U,$J,358.3,29359,2)
;;=^5003614
;;^UTILITY(U,$J,358.3,29360,0)
;;=F51.5^^118^1483^19
;;^UTILITY(U,$J,358.3,29360,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29360,1,3,0)
;;=3^Nightmare D/O
;;^UTILITY(U,$J,358.3,29360,1,4,0)
;;=4^F51.5
;;^UTILITY(U,$J,358.3,29360,2)
;;=^5003615
;;^UTILITY(U,$J,358.3,29361,0)
;;=G47.52^^118^1483^23
;;^UTILITY(U,$J,358.3,29361,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29361,1,3,0)
;;=3^Rapid Eye Movement Sleep Behavior D/O
;;^UTILITY(U,$J,358.3,29361,1,4,0)
;;=4^G47.52
;;^UTILITY(U,$J,358.3,29361,2)
;;=^332778
;;^UTILITY(U,$J,358.3,29362,0)
;;=G25.81^^118^1483^24
;;^UTILITY(U,$J,358.3,29362,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,29362,1,3,0)
;;=3^Restless Legs Syndrome
;;^UTILITY(U,$J,358.3,29362,1,4,0)
;;=4^G25.81
;;^UTILITY(U,$J,358.3,29362,2)
;;=^5003801
;;^UTILITY(U,$J,358.3,29363,0)
;;=G47.19^^118^1483^11
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1U7 3750 printed Dec 13, 2024@02:15:53 Page 2
IBDEI1U7 ; ; 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,29351,1,3,0)
+2 ;;=3^Central Sleep Apnea,Idiopathic
+3 ;;^UTILITY(U,$J,358.3,29351,1,4,0)
+4 ;;=4^G47.31
+5 ;;^UTILITY(U,$J,358.3,29351,2)
+6 ;;=^332761
+7 ;;^UTILITY(U,$J,358.3,29352,0)
+8 ;;=G47.21^^118^1483^5
+9 ;;^UTILITY(U,$J,358.3,29352,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,29352,1,3,0)
+12 ;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
+13 ;;^UTILITY(U,$J,358.3,29352,1,4,0)
+14 ;;=4^G47.21
+15 ;;^UTILITY(U,$J,358.3,29352,2)
+16 ;;=^332769
+17 ;;^UTILITY(U,$J,358.3,29353,0)
+18 ;;=G47.22^^118^1483^4
+19 ;;^UTILITY(U,$J,358.3,29353,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,29353,1,3,0)
+22 ;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
+23 ;;^UTILITY(U,$J,358.3,29353,1,4,0)
+24 ;;=4^G47.22
+25 ;;^UTILITY(U,$J,358.3,29353,2)
+26 ;;=^332770
+27 ;;^UTILITY(U,$J,358.3,29354,0)
+28 ;;=G47.23^^118^1483^6
+29 ;;^UTILITY(U,$J,358.3,29354,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,29354,1,3,0)
+32 ;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
+33 ;;^UTILITY(U,$J,358.3,29354,1,4,0)
+34 ;;=4^G47.23
+35 ;;^UTILITY(U,$J,358.3,29354,2)
+36 ;;=^5003975
+37 ;;^UTILITY(U,$J,358.3,29355,0)
+38 ;;=G47.24^^118^1483^7
+39 ;;^UTILITY(U,$J,358.3,29355,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,29355,1,3,0)
+42 ;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
+43 ;;^UTILITY(U,$J,358.3,29355,1,4,0)
+44 ;;=4^G47.24
+45 ;;^UTILITY(U,$J,358.3,29355,2)
+46 ;;=^5003976
+47 ;;^UTILITY(U,$J,358.3,29356,0)
+48 ;;=G47.26^^118^1483^8
+49 ;;^UTILITY(U,$J,358.3,29356,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,29356,1,3,0)
+52 ;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
+53 ;;^UTILITY(U,$J,358.3,29356,1,4,0)
+54 ;;=4^G47.26
+55 ;;^UTILITY(U,$J,358.3,29356,2)
+56 ;;=^332774
+57 ;;^UTILITY(U,$J,358.3,29357,0)
+58 ;;=G47.20^^118^1483^9
+59 ;;^UTILITY(U,$J,358.3,29357,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,29357,1,3,0)
+62 ;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
+63 ;;^UTILITY(U,$J,358.3,29357,1,4,0)
+64 ;;=4^G47.20
+65 ;;^UTILITY(U,$J,358.3,29357,2)
+66 ;;=^5003974
+67 ;;^UTILITY(U,$J,358.3,29358,0)
+68 ;;=F51.3^^118^1483^21
+69 ;;^UTILITY(U,$J,358.3,29358,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,29358,1,3,0)
+72 ;;=3^Non-REM Sleep Arousal D/O;Sleepwalking Type
+73 ;;^UTILITY(U,$J,358.3,29358,1,4,0)
+74 ;;=4^F51.3
+75 ;;^UTILITY(U,$J,358.3,29358,2)
+76 ;;=^5003613
+77 ;;^UTILITY(U,$J,358.3,29359,0)
+78 ;;=F51.4^^118^1483^20
+79 ;;^UTILITY(U,$J,358.3,29359,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,29359,1,3,0)
+82 ;;=3^Non-REM Sleep Arousal D/O;Sleep Terror Type
+83 ;;^UTILITY(U,$J,358.3,29359,1,4,0)
+84 ;;=4^F51.4
+85 ;;^UTILITY(U,$J,358.3,29359,2)
+86 ;;=^5003614
+87 ;;^UTILITY(U,$J,358.3,29360,0)
+88 ;;=F51.5^^118^1483^19
+89 ;;^UTILITY(U,$J,358.3,29360,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,29360,1,3,0)
+92 ;;=3^Nightmare D/O
+93 ;;^UTILITY(U,$J,358.3,29360,1,4,0)
+94 ;;=4^F51.5
+95 ;;^UTILITY(U,$J,358.3,29360,2)
+96 ;;=^5003615
+97 ;;^UTILITY(U,$J,358.3,29361,0)
+98 ;;=G47.52^^118^1483^23
+99 ;;^UTILITY(U,$J,358.3,29361,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,29361,1,3,0)
+102 ;;=3^Rapid Eye Movement Sleep Behavior D/O
+103 ;;^UTILITY(U,$J,358.3,29361,1,4,0)
+104 ;;=4^G47.52
+105 ;;^UTILITY(U,$J,358.3,29361,2)
+106 ;;=^332778
+107 ;;^UTILITY(U,$J,358.3,29362,0)
+108 ;;=G25.81^^118^1483^24
+109 ;;^UTILITY(U,$J,358.3,29362,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,29362,1,3,0)
+112 ;;=3^Restless Legs Syndrome
+113 ;;^UTILITY(U,$J,358.3,29362,1,4,0)
+114 ;;=4^G25.81
+115 ;;^UTILITY(U,$J,358.3,29362,2)
+116 ;;=^5003801
+117 ;;^UTILITY(U,$J,358.3,29363,0)
+118 ;;=G47.19^^118^1483^11