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