IBDEI0O1 ; ; 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,10815,1,3,0)
;;=3^Insomnia,Other Specified
;;^UTILITY(U,$J,358.3,10815,1,4,0)
;;=4^G47.09
;;^UTILITY(U,$J,358.3,10815,2)
;;=^5003970
;;^UTILITY(U,$J,358.3,10816,0)
;;=G47.00^^42^490^17
;;^UTILITY(U,$J,358.3,10816,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10816,1,3,0)
;;=3^Insomnia,Unspec
;;^UTILITY(U,$J,358.3,10816,1,4,0)
;;=4^G47.00
;;^UTILITY(U,$J,358.3,10816,2)
;;=^332924
;;^UTILITY(U,$J,358.3,10817,0)
;;=G47.10^^42^490^14
;;^UTILITY(U,$J,358.3,10817,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10817,1,3,0)
;;=3^Hypersomnolence Disorder,Unspec
;;^UTILITY(U,$J,358.3,10817,1,4,0)
;;=4^G47.10
;;^UTILITY(U,$J,358.3,10817,2)
;;=^332926
;;^UTILITY(U,$J,358.3,10818,0)
;;=G47.419^^42^490^20
;;^UTILITY(U,$J,358.3,10818,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10818,1,3,0)
;;=3^Narcolepsy w/o Cataplexy w/ Hypocretin Deficiency
;;^UTILITY(U,$J,358.3,10818,1,4,0)
;;=4^G47.419
;;^UTILITY(U,$J,358.3,10818,2)
;;=^5003982
;;^UTILITY(U,$J,358.3,10819,0)
;;=G47.33^^42^490^24
;;^UTILITY(U,$J,358.3,10819,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10819,1,3,0)
;;=3^Obstructive Sleep Apnea Hypopnea
;;^UTILITY(U,$J,358.3,10819,1,4,0)
;;=4^G47.33
;;^UTILITY(U,$J,358.3,10819,2)
;;=^332763
;;^UTILITY(U,$J,358.3,10820,0)
;;=G47.31^^42^490^4
;;^UTILITY(U,$J,358.3,10820,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10820,1,3,0)
;;=3^Central Sleep Apnea,Idiopathic
;;^UTILITY(U,$J,358.3,10820,1,4,0)
;;=4^G47.31
;;^UTILITY(U,$J,358.3,10820,2)
;;=^332761
;;^UTILITY(U,$J,358.3,10821,0)
;;=G47.21^^42^490^7
;;^UTILITY(U,$J,358.3,10821,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10821,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
;;^UTILITY(U,$J,358.3,10821,1,4,0)
;;=4^G47.21
;;^UTILITY(U,$J,358.3,10821,2)
;;=^332769
;;^UTILITY(U,$J,358.3,10822,0)
;;=G47.22^^42^490^6
;;^UTILITY(U,$J,358.3,10822,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10822,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
;;^UTILITY(U,$J,358.3,10822,1,4,0)
;;=4^G47.22
;;^UTILITY(U,$J,358.3,10822,2)
;;=^332770
;;^UTILITY(U,$J,358.3,10823,0)
;;=G47.23^^42^490^8
;;^UTILITY(U,$J,358.3,10823,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10823,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
;;^UTILITY(U,$J,358.3,10823,1,4,0)
;;=4^G47.23
;;^UTILITY(U,$J,358.3,10823,2)
;;=^5003975
;;^UTILITY(U,$J,358.3,10824,0)
;;=G47.24^^42^490^9
;;^UTILITY(U,$J,358.3,10824,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10824,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
;;^UTILITY(U,$J,358.3,10824,1,4,0)
;;=4^G47.24
;;^UTILITY(U,$J,358.3,10824,2)
;;=^5003976
;;^UTILITY(U,$J,358.3,10825,0)
;;=G47.26^^42^490^10
;;^UTILITY(U,$J,358.3,10825,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10825,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
;;^UTILITY(U,$J,358.3,10825,1,4,0)
;;=4^G47.26
;;^UTILITY(U,$J,358.3,10825,2)
;;=^332774
;;^UTILITY(U,$J,358.3,10826,0)
;;=G47.20^^42^490^11
;;^UTILITY(U,$J,358.3,10826,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,10826,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
;;^UTILITY(U,$J,358.3,10826,1,4,0)
;;=4^G47.20
;;^UTILITY(U,$J,358.3,10826,2)
;;=^5003974
;;^UTILITY(U,$J,358.3,10827,0)
;;=F51.3^^42^490^22
;;^UTILITY(U,$J,358.3,10827,1,0)
;;=^358.31IA^4^2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0O1 3779 printed Dec 13, 2024@01:52:25 Page 2
IBDEI0O1 ; ; 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,10815,1,3,0)
+2 ;;=3^Insomnia,Other Specified
+3 ;;^UTILITY(U,$J,358.3,10815,1,4,0)
+4 ;;=4^G47.09
+5 ;;^UTILITY(U,$J,358.3,10815,2)
+6 ;;=^5003970
+7 ;;^UTILITY(U,$J,358.3,10816,0)
+8 ;;=G47.00^^42^490^17
+9 ;;^UTILITY(U,$J,358.3,10816,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,10816,1,3,0)
+12 ;;=3^Insomnia,Unspec
+13 ;;^UTILITY(U,$J,358.3,10816,1,4,0)
+14 ;;=4^G47.00
+15 ;;^UTILITY(U,$J,358.3,10816,2)
+16 ;;=^332924
+17 ;;^UTILITY(U,$J,358.3,10817,0)
+18 ;;=G47.10^^42^490^14
+19 ;;^UTILITY(U,$J,358.3,10817,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,10817,1,3,0)
+22 ;;=3^Hypersomnolence Disorder,Unspec
+23 ;;^UTILITY(U,$J,358.3,10817,1,4,0)
+24 ;;=4^G47.10
+25 ;;^UTILITY(U,$J,358.3,10817,2)
+26 ;;=^332926
+27 ;;^UTILITY(U,$J,358.3,10818,0)
+28 ;;=G47.419^^42^490^20
+29 ;;^UTILITY(U,$J,358.3,10818,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,10818,1,3,0)
+32 ;;=3^Narcolepsy w/o Cataplexy w/ Hypocretin Deficiency
+33 ;;^UTILITY(U,$J,358.3,10818,1,4,0)
+34 ;;=4^G47.419
+35 ;;^UTILITY(U,$J,358.3,10818,2)
+36 ;;=^5003982
+37 ;;^UTILITY(U,$J,358.3,10819,0)
+38 ;;=G47.33^^42^490^24
+39 ;;^UTILITY(U,$J,358.3,10819,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,10819,1,3,0)
+42 ;;=3^Obstructive Sleep Apnea Hypopnea
+43 ;;^UTILITY(U,$J,358.3,10819,1,4,0)
+44 ;;=4^G47.33
+45 ;;^UTILITY(U,$J,358.3,10819,2)
+46 ;;=^332763
+47 ;;^UTILITY(U,$J,358.3,10820,0)
+48 ;;=G47.31^^42^490^4
+49 ;;^UTILITY(U,$J,358.3,10820,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,10820,1,3,0)
+52 ;;=3^Central Sleep Apnea,Idiopathic
+53 ;;^UTILITY(U,$J,358.3,10820,1,4,0)
+54 ;;=4^G47.31
+55 ;;^UTILITY(U,$J,358.3,10820,2)
+56 ;;=^332761
+57 ;;^UTILITY(U,$J,358.3,10821,0)
+58 ;;=G47.21^^42^490^7
+59 ;;^UTILITY(U,$J,358.3,10821,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,10821,1,3,0)
+62 ;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
+63 ;;^UTILITY(U,$J,358.3,10821,1,4,0)
+64 ;;=4^G47.21
+65 ;;^UTILITY(U,$J,358.3,10821,2)
+66 ;;=^332769
+67 ;;^UTILITY(U,$J,358.3,10822,0)
+68 ;;=G47.22^^42^490^6
+69 ;;^UTILITY(U,$J,358.3,10822,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,10822,1,3,0)
+72 ;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
+73 ;;^UTILITY(U,$J,358.3,10822,1,4,0)
+74 ;;=4^G47.22
+75 ;;^UTILITY(U,$J,358.3,10822,2)
+76 ;;=^332770
+77 ;;^UTILITY(U,$J,358.3,10823,0)
+78 ;;=G47.23^^42^490^8
+79 ;;^UTILITY(U,$J,358.3,10823,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,10823,1,3,0)
+82 ;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
+83 ;;^UTILITY(U,$J,358.3,10823,1,4,0)
+84 ;;=4^G47.23
+85 ;;^UTILITY(U,$J,358.3,10823,2)
+86 ;;=^5003975
+87 ;;^UTILITY(U,$J,358.3,10824,0)
+88 ;;=G47.24^^42^490^9
+89 ;;^UTILITY(U,$J,358.3,10824,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,10824,1,3,0)
+92 ;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
+93 ;;^UTILITY(U,$J,358.3,10824,1,4,0)
+94 ;;=4^G47.24
+95 ;;^UTILITY(U,$J,358.3,10824,2)
+96 ;;=^5003976
+97 ;;^UTILITY(U,$J,358.3,10825,0)
+98 ;;=G47.26^^42^490^10
+99 ;;^UTILITY(U,$J,358.3,10825,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,10825,1,3,0)
+102 ;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
+103 ;;^UTILITY(U,$J,358.3,10825,1,4,0)
+104 ;;=4^G47.26
+105 ;;^UTILITY(U,$J,358.3,10825,2)
+106 ;;=^332774
+107 ;;^UTILITY(U,$J,358.3,10826,0)
+108 ;;=G47.20^^42^490^11
+109 ;;^UTILITY(U,$J,358.3,10826,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,10826,1,3,0)
+112 ;;=3^Circadian Rhythm Sleep-Wake D/O;Unspec Type
+113 ;;^UTILITY(U,$J,358.3,10826,1,4,0)
+114 ;;=4^G47.20
+115 ;;^UTILITY(U,$J,358.3,10826,2)
+116 ;;=^5003974
+117 ;;^UTILITY(U,$J,358.3,10827,0)
+118 ;;=F51.3^^42^490^22
+119 ;;^UTILITY(U,$J,358.3,10827,1,0)
+120 ;;=^358.31IA^4^2