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