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