IBDEI0O2 ; ; 01-FEB-2022
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 01, 2022
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,10827,1,3,0)
;;=3^Non-Rapid Eye Movement Sleep Arousal D/O;Sleepwalking Type
;;^UTILITY(U,$J,358.3,10827,1,4,0)
;;=4^F51.3
;;^UTILITY(U,$J,358.3,10827,2)
;;=^5003613
;;^UTILITY(U,$J,358.3,10828,0)
;;=F51.4^^42^490^23
;;^UTILITY(U,$J,358.3,10828,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10828,1,3,0)
;;=3^Non-Rapid Eye Movement Sleep Arousal D/O;Sleep Terror Type
;;^UTILITY(U,$J,358.3,10828,1,4,0)
;;=4^F51.4
;;^UTILITY(U,$J,358.3,10828,2)
;;=^5003614
;;^UTILITY(U,$J,358.3,10829,0)
;;=F51.5^^42^490^21
;;^UTILITY(U,$J,358.3,10829,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10829,1,3,0)
;;=3^Nightmare Disorder
;;^UTILITY(U,$J,358.3,10829,1,4,0)
;;=4^F51.5
;;^UTILITY(U,$J,358.3,10829,2)
;;=^5003615
;;^UTILITY(U,$J,358.3,10830,0)
;;=G47.52^^42^490^25
;;^UTILITY(U,$J,358.3,10830,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10830,1,3,0)
;;=3^Rapid Eye Movement Sleep Behavior Disorder
;;^UTILITY(U,$J,358.3,10830,1,4,0)
;;=4^G47.52
;;^UTILITY(U,$J,358.3,10830,2)
;;=^332778
;;^UTILITY(U,$J,358.3,10831,0)
;;=G25.81^^42^490^26
;;^UTILITY(U,$J,358.3,10831,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10831,1,3,0)
;;=3^Restless Legs Syndrome
;;^UTILITY(U,$J,358.3,10831,1,4,0)
;;=4^G25.81
;;^UTILITY(U,$J,358.3,10831,2)
;;=^5003801
;;^UTILITY(U,$J,358.3,10832,0)
;;=G47.19^^42^490^13
;;^UTILITY(U,$J,358.3,10832,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10832,1,3,0)
;;=3^Hypersomnolence Disorder,Other Specified
;;^UTILITY(U,$J,358.3,10832,1,4,0)
;;=4^G47.19
;;^UTILITY(U,$J,358.3,10832,2)
;;=^5003973
;;^UTILITY(U,$J,358.3,10833,0)
;;=G47.8^^42^490^30
;;^UTILITY(U,$J,358.3,10833,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10833,1,3,0)
;;=3^Sleep-Wake Disorder,Other Specified
;;^UTILITY(U,$J,358.3,10833,1,4,0)
;;=4^G47.8
;;^UTILITY(U,$J,358.3,10833,2)
;;=^5003989
;;^UTILITY(U,$J,358.3,10834,0)
;;=G47.411^^42^490^19
;;^UTILITY(U,$J,358.3,10834,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10834,1,3,0)
;;=3^Narcolepsy w/ Cataplexy w/o Hypocretin Deficiency
;;^UTILITY(U,$J,358.3,10834,1,4,0)
;;=4^G47.411
;;^UTILITY(U,$J,358.3,10834,2)
;;=^5003981
;;^UTILITY(U,$J,358.3,10835,0)
;;=G47.37^^42^490^3
;;^UTILITY(U,$J,358.3,10835,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10835,1,3,0)
;;=3^Central Sleep Apnea,Comorbid w/ Opioid Use
;;^UTILITY(U,$J,358.3,10835,1,4,0)
;;=4^G47.37
;;^UTILITY(U,$J,358.3,10835,2)
;;=^332767
;;^UTILITY(U,$J,358.3,10836,0)
;;=F51.11^^42^490^12
;;^UTILITY(U,$J,358.3,10836,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10836,1,3,0)
;;=3^Hypersomnolence Disorder
;;^UTILITY(U,$J,358.3,10836,1,4,0)
;;=4^F51.11
;;^UTILITY(U,$J,358.3,10836,2)
;;=^5003609
;;^UTILITY(U,$J,358.3,10837,0)
;;=F51.01^^42^490^15
;;^UTILITY(U,$J,358.3,10837,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10837,1,3,0)
;;=3^Insomnia Disorder
;;^UTILITY(U,$J,358.3,10837,1,4,0)
;;=4^F51.01
;;^UTILITY(U,$J,358.3,10837,2)
;;=^5003603
;;^UTILITY(U,$J,358.3,10838,0)
;;=G47.36^^42^490^27
;;^UTILITY(U,$J,358.3,10838,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10838,1,3,0)
;;=3^Sleep-Related Hypoventilation,Comorbid Sleep-Related Hypoventilation
;;^UTILITY(U,$J,358.3,10838,1,4,0)
;;=4^G47.36
;;^UTILITY(U,$J,358.3,10838,2)
;;=^5003979
;;^UTILITY(U,$J,358.3,10839,0)
;;=G47.35^^42^490^28
;;^UTILITY(U,$J,358.3,10839,1,0)
;;=^358.31IA^4^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0O2 3757 printed Nov 22, 2024@17:02:38 Page 2
IBDEI0O2 ; ; 01-FEB-2022
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 01, 2022
+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,10827,1,3,0)
+2 ;;=3^Non-Rapid Eye Movement Sleep Arousal D/O;Sleepwalking Type
+3 ;;^UTILITY(U,$J,358.3,10827,1,4,0)
+4 ;;=4^F51.3
+5 ;;^UTILITY(U,$J,358.3,10827,2)
+6 ;;=^5003613
+7 ;;^UTILITY(U,$J,358.3,10828,0)
+8 ;;=F51.4^^42^490^23
+9 ;;^UTILITY(U,$J,358.3,10828,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,10828,1,3,0)
+12 ;;=3^Non-Rapid Eye Movement Sleep Arousal D/O;Sleep Terror Type
+13 ;;^UTILITY(U,$J,358.3,10828,1,4,0)
+14 ;;=4^F51.4
+15 ;;^UTILITY(U,$J,358.3,10828,2)
+16 ;;=^5003614
+17 ;;^UTILITY(U,$J,358.3,10829,0)
+18 ;;=F51.5^^42^490^21
+19 ;;^UTILITY(U,$J,358.3,10829,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,10829,1,3,0)
+22 ;;=3^Nightmare Disorder
+23 ;;^UTILITY(U,$J,358.3,10829,1,4,0)
+24 ;;=4^F51.5
+25 ;;^UTILITY(U,$J,358.3,10829,2)
+26 ;;=^5003615
+27 ;;^UTILITY(U,$J,358.3,10830,0)
+28 ;;=G47.52^^42^490^25
+29 ;;^UTILITY(U,$J,358.3,10830,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,10830,1,3,0)
+32 ;;=3^Rapid Eye Movement Sleep Behavior Disorder
+33 ;;^UTILITY(U,$J,358.3,10830,1,4,0)
+34 ;;=4^G47.52
+35 ;;^UTILITY(U,$J,358.3,10830,2)
+36 ;;=^332778
+37 ;;^UTILITY(U,$J,358.3,10831,0)
+38 ;;=G25.81^^42^490^26
+39 ;;^UTILITY(U,$J,358.3,10831,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,10831,1,3,0)
+42 ;;=3^Restless Legs Syndrome
+43 ;;^UTILITY(U,$J,358.3,10831,1,4,0)
+44 ;;=4^G25.81
+45 ;;^UTILITY(U,$J,358.3,10831,2)
+46 ;;=^5003801
+47 ;;^UTILITY(U,$J,358.3,10832,0)
+48 ;;=G47.19^^42^490^13
+49 ;;^UTILITY(U,$J,358.3,10832,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,10832,1,3,0)
+52 ;;=3^Hypersomnolence Disorder,Other Specified
+53 ;;^UTILITY(U,$J,358.3,10832,1,4,0)
+54 ;;=4^G47.19
+55 ;;^UTILITY(U,$J,358.3,10832,2)
+56 ;;=^5003973
+57 ;;^UTILITY(U,$J,358.3,10833,0)
+58 ;;=G47.8^^42^490^30
+59 ;;^UTILITY(U,$J,358.3,10833,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,10833,1,3,0)
+62 ;;=3^Sleep-Wake Disorder,Other Specified
+63 ;;^UTILITY(U,$J,358.3,10833,1,4,0)
+64 ;;=4^G47.8
+65 ;;^UTILITY(U,$J,358.3,10833,2)
+66 ;;=^5003989
+67 ;;^UTILITY(U,$J,358.3,10834,0)
+68 ;;=G47.411^^42^490^19
+69 ;;^UTILITY(U,$J,358.3,10834,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,10834,1,3,0)
+72 ;;=3^Narcolepsy w/ Cataplexy w/o Hypocretin Deficiency
+73 ;;^UTILITY(U,$J,358.3,10834,1,4,0)
+74 ;;=4^G47.411
+75 ;;^UTILITY(U,$J,358.3,10834,2)
+76 ;;=^5003981
+77 ;;^UTILITY(U,$J,358.3,10835,0)
+78 ;;=G47.37^^42^490^3
+79 ;;^UTILITY(U,$J,358.3,10835,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,10835,1,3,0)
+82 ;;=3^Central Sleep Apnea,Comorbid w/ Opioid Use
+83 ;;^UTILITY(U,$J,358.3,10835,1,4,0)
+84 ;;=4^G47.37
+85 ;;^UTILITY(U,$J,358.3,10835,2)
+86 ;;=^332767
+87 ;;^UTILITY(U,$J,358.3,10836,0)
+88 ;;=F51.11^^42^490^12
+89 ;;^UTILITY(U,$J,358.3,10836,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,10836,1,3,0)
+92 ;;=3^Hypersomnolence Disorder
+93 ;;^UTILITY(U,$J,358.3,10836,1,4,0)
+94 ;;=4^F51.11
+95 ;;^UTILITY(U,$J,358.3,10836,2)
+96 ;;=^5003609
+97 ;;^UTILITY(U,$J,358.3,10837,0)
+98 ;;=F51.01^^42^490^15
+99 ;;^UTILITY(U,$J,358.3,10837,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,10837,1,3,0)
+102 ;;=3^Insomnia Disorder
+103 ;;^UTILITY(U,$J,358.3,10837,1,4,0)
+104 ;;=4^F51.01
+105 ;;^UTILITY(U,$J,358.3,10837,2)
+106 ;;=^5003603
+107 ;;^UTILITY(U,$J,358.3,10838,0)
+108 ;;=G47.36^^42^490^27
+109 ;;^UTILITY(U,$J,358.3,10838,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,10838,1,3,0)
+112 ;;=3^Sleep-Related Hypoventilation,Comorbid Sleep-Related Hypoventilation
+113 ;;^UTILITY(U,$J,358.3,10838,1,4,0)
+114 ;;=4^G47.36
+115 ;;^UTILITY(U,$J,358.3,10838,2)
+116 ;;=^5003979
+117 ;;^UTILITY(U,$J,358.3,10839,0)
+118 ;;=G47.35^^42^490^28
+119 ;;^UTILITY(U,$J,358.3,10839,1,0)
+120 ;;=^358.31IA^4^2