IBDEI2RQ ; ; 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,44154,2)
;;=^331928
;;^UTILITY(U,$J,358.3,44155,0)
;;=F52.8^^164^2187^8
;;^UTILITY(U,$J,358.3,44155,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44155,1,3,0)
;;=3^Sexual Dysfunction,Oth Spec
;;^UTILITY(U,$J,358.3,44155,1,4,0)
;;=4^F52.8
;;^UTILITY(U,$J,358.3,44155,2)
;;=^5003624
;;^UTILITY(U,$J,358.3,44156,0)
;;=F52.9^^164^2187^9
;;^UTILITY(U,$J,358.3,44156,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44156,1,3,0)
;;=3^Sexual Dysfunction,Unspec
;;^UTILITY(U,$J,358.3,44156,1,4,0)
;;=4^F52.9
;;^UTILITY(U,$J,358.3,44156,2)
;;=^5003625
;;^UTILITY(U,$J,358.3,44157,0)
;;=G47.09^^164^2188^14
;;^UTILITY(U,$J,358.3,44157,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44157,1,3,0)
;;=3^Insomnia D/O,Oth Spec
;;^UTILITY(U,$J,358.3,44157,1,4,0)
;;=4^G47.09
;;^UTILITY(U,$J,358.3,44157,2)
;;=^5003970
;;^UTILITY(U,$J,358.3,44158,0)
;;=G47.00^^164^2188^15
;;^UTILITY(U,$J,358.3,44158,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44158,1,3,0)
;;=3^Insomnia D/O,Unspec
;;^UTILITY(U,$J,358.3,44158,1,4,0)
;;=4^G47.00
;;^UTILITY(U,$J,358.3,44158,2)
;;=^332924
;;^UTILITY(U,$J,358.3,44159,0)
;;=G47.10^^164^2188^12
;;^UTILITY(U,$J,358.3,44159,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44159,1,3,0)
;;=3^Hypersomnolence D/O,Unspec
;;^UTILITY(U,$J,358.3,44159,1,4,0)
;;=4^G47.10
;;^UTILITY(U,$J,358.3,44159,2)
;;=^332926
;;^UTILITY(U,$J,358.3,44160,0)
;;=G47.33^^164^2188^22
;;^UTILITY(U,$J,358.3,44160,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44160,1,3,0)
;;=3^Obstructive Sleep Apnea Hypopnea
;;^UTILITY(U,$J,358.3,44160,1,4,0)
;;=4^G47.33
;;^UTILITY(U,$J,358.3,44160,2)
;;=^332763
;;^UTILITY(U,$J,358.3,44161,0)
;;=G47.31^^164^2188^2
;;^UTILITY(U,$J,358.3,44161,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44161,1,3,0)
;;=3^Central Sleep Apnea,Idiopathic
;;^UTILITY(U,$J,358.3,44161,1,4,0)
;;=4^G47.31
;;^UTILITY(U,$J,358.3,44161,2)
;;=^332761
;;^UTILITY(U,$J,358.3,44162,0)
;;=G47.21^^164^2188^5
;;^UTILITY(U,$J,358.3,44162,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44162,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
;;^UTILITY(U,$J,358.3,44162,1,4,0)
;;=4^G47.21
;;^UTILITY(U,$J,358.3,44162,2)
;;=^332769
;;^UTILITY(U,$J,358.3,44163,0)
;;=G47.22^^164^2188^4
;;^UTILITY(U,$J,358.3,44163,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44163,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
;;^UTILITY(U,$J,358.3,44163,1,4,0)
;;=4^G47.22
;;^UTILITY(U,$J,358.3,44163,2)
;;=^332770
;;^UTILITY(U,$J,358.3,44164,0)
;;=G47.23^^164^2188^6
;;^UTILITY(U,$J,358.3,44164,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44164,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
;;^UTILITY(U,$J,358.3,44164,1,4,0)
;;=4^G47.23
;;^UTILITY(U,$J,358.3,44164,2)
;;=^5003975
;;^UTILITY(U,$J,358.3,44165,0)
;;=G47.24^^164^2188^7
;;^UTILITY(U,$J,358.3,44165,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44165,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
;;^UTILITY(U,$J,358.3,44165,1,4,0)
;;=4^G47.24
;;^UTILITY(U,$J,358.3,44165,2)
;;=^5003976
;;^UTILITY(U,$J,358.3,44166,0)
;;=G47.26^^164^2188^8
;;^UTILITY(U,$J,358.3,44166,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44166,1,3,0)
;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
;;^UTILITY(U,$J,358.3,44166,1,4,0)
;;=4^G47.26
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2RQ 3751 printed Nov 22, 2024@17:44:41 Page 2
IBDEI2RQ ; ; 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,44154,2)
+2 ;;=^331928
+3 ;;^UTILITY(U,$J,358.3,44155,0)
+4 ;;=F52.8^^164^2187^8
+5 ;;^UTILITY(U,$J,358.3,44155,1,0)
+6 ;;=^358.31IA^4^2
+7 ;;^UTILITY(U,$J,358.3,44155,1,3,0)
+8 ;;=3^Sexual Dysfunction,Oth Spec
+9 ;;^UTILITY(U,$J,358.3,44155,1,4,0)
+10 ;;=4^F52.8
+11 ;;^UTILITY(U,$J,358.3,44155,2)
+12 ;;=^5003624
+13 ;;^UTILITY(U,$J,358.3,44156,0)
+14 ;;=F52.9^^164^2187^9
+15 ;;^UTILITY(U,$J,358.3,44156,1,0)
+16 ;;=^358.31IA^4^2
+17 ;;^UTILITY(U,$J,358.3,44156,1,3,0)
+18 ;;=3^Sexual Dysfunction,Unspec
+19 ;;^UTILITY(U,$J,358.3,44156,1,4,0)
+20 ;;=4^F52.9
+21 ;;^UTILITY(U,$J,358.3,44156,2)
+22 ;;=^5003625
+23 ;;^UTILITY(U,$J,358.3,44157,0)
+24 ;;=G47.09^^164^2188^14
+25 ;;^UTILITY(U,$J,358.3,44157,1,0)
+26 ;;=^358.31IA^4^2
+27 ;;^UTILITY(U,$J,358.3,44157,1,3,0)
+28 ;;=3^Insomnia D/O,Oth Spec
+29 ;;^UTILITY(U,$J,358.3,44157,1,4,0)
+30 ;;=4^G47.09
+31 ;;^UTILITY(U,$J,358.3,44157,2)
+32 ;;=^5003970
+33 ;;^UTILITY(U,$J,358.3,44158,0)
+34 ;;=G47.00^^164^2188^15
+35 ;;^UTILITY(U,$J,358.3,44158,1,0)
+36 ;;=^358.31IA^4^2
+37 ;;^UTILITY(U,$J,358.3,44158,1,3,0)
+38 ;;=3^Insomnia D/O,Unspec
+39 ;;^UTILITY(U,$J,358.3,44158,1,4,0)
+40 ;;=4^G47.00
+41 ;;^UTILITY(U,$J,358.3,44158,2)
+42 ;;=^332924
+43 ;;^UTILITY(U,$J,358.3,44159,0)
+44 ;;=G47.10^^164^2188^12
+45 ;;^UTILITY(U,$J,358.3,44159,1,0)
+46 ;;=^358.31IA^4^2
+47 ;;^UTILITY(U,$J,358.3,44159,1,3,0)
+48 ;;=3^Hypersomnolence D/O,Unspec
+49 ;;^UTILITY(U,$J,358.3,44159,1,4,0)
+50 ;;=4^G47.10
+51 ;;^UTILITY(U,$J,358.3,44159,2)
+52 ;;=^332926
+53 ;;^UTILITY(U,$J,358.3,44160,0)
+54 ;;=G47.33^^164^2188^22
+55 ;;^UTILITY(U,$J,358.3,44160,1,0)
+56 ;;=^358.31IA^4^2
+57 ;;^UTILITY(U,$J,358.3,44160,1,3,0)
+58 ;;=3^Obstructive Sleep Apnea Hypopnea
+59 ;;^UTILITY(U,$J,358.3,44160,1,4,0)
+60 ;;=4^G47.33
+61 ;;^UTILITY(U,$J,358.3,44160,2)
+62 ;;=^332763
+63 ;;^UTILITY(U,$J,358.3,44161,0)
+64 ;;=G47.31^^164^2188^2
+65 ;;^UTILITY(U,$J,358.3,44161,1,0)
+66 ;;=^358.31IA^4^2
+67 ;;^UTILITY(U,$J,358.3,44161,1,3,0)
+68 ;;=3^Central Sleep Apnea,Idiopathic
+69 ;;^UTILITY(U,$J,358.3,44161,1,4,0)
+70 ;;=4^G47.31
+71 ;;^UTILITY(U,$J,358.3,44161,2)
+72 ;;=^332761
+73 ;;^UTILITY(U,$J,358.3,44162,0)
+74 ;;=G47.21^^164^2188^5
+75 ;;^UTILITY(U,$J,358.3,44162,1,0)
+76 ;;=^358.31IA^4^2
+77 ;;^UTILITY(U,$J,358.3,44162,1,3,0)
+78 ;;=3^Circadian Rhythm Sleep-Wake D/O;Delayed Sleep Phase Type
+79 ;;^UTILITY(U,$J,358.3,44162,1,4,0)
+80 ;;=4^G47.21
+81 ;;^UTILITY(U,$J,358.3,44162,2)
+82 ;;=^332769
+83 ;;^UTILITY(U,$J,358.3,44163,0)
+84 ;;=G47.22^^164^2188^4
+85 ;;^UTILITY(U,$J,358.3,44163,1,0)
+86 ;;=^358.31IA^4^2
+87 ;;^UTILITY(U,$J,358.3,44163,1,3,0)
+88 ;;=3^Circadian Rhythm Sleep-Wake D/O;Advanced Sleep Phase Type
+89 ;;^UTILITY(U,$J,358.3,44163,1,4,0)
+90 ;;=4^G47.22
+91 ;;^UTILITY(U,$J,358.3,44163,2)
+92 ;;=^332770
+93 ;;^UTILITY(U,$J,358.3,44164,0)
+94 ;;=G47.23^^164^2188^6
+95 ;;^UTILITY(U,$J,358.3,44164,1,0)
+96 ;;=^358.31IA^4^2
+97 ;;^UTILITY(U,$J,358.3,44164,1,3,0)
+98 ;;=3^Circadian Rhythm Sleep-Wake D/O;Irregular Sleep Wake Type
+99 ;;^UTILITY(U,$J,358.3,44164,1,4,0)
+100 ;;=4^G47.23
+101 ;;^UTILITY(U,$J,358.3,44164,2)
+102 ;;=^5003975
+103 ;;^UTILITY(U,$J,358.3,44165,0)
+104 ;;=G47.24^^164^2188^7
+105 ;;^UTILITY(U,$J,358.3,44165,1,0)
+106 ;;=^358.31IA^4^2
+107 ;;^UTILITY(U,$J,358.3,44165,1,3,0)
+108 ;;=3^Circadian Rhythm Sleep-Wake D/O;Non-24 Hr Sleep Wake Type
+109 ;;^UTILITY(U,$J,358.3,44165,1,4,0)
+110 ;;=4^G47.24
+111 ;;^UTILITY(U,$J,358.3,44165,2)
+112 ;;=^5003976
+113 ;;^UTILITY(U,$J,358.3,44166,0)
+114 ;;=G47.26^^164^2188^8
+115 ;;^UTILITY(U,$J,358.3,44166,1,0)
+116 ;;=^358.31IA^4^2
+117 ;;^UTILITY(U,$J,358.3,44166,1,3,0)
+118 ;;=3^Circadian Rhythm Sleep-Wake D/O;Shift Work Type
+119 ;;^UTILITY(U,$J,358.3,44166,1,4,0)
+120 ;;=4^G47.26