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