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