IBDEI32D ; ; 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,48924,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48924,1,3,0)
;;=3^Sleep Disorder,Nightmare
;;^UTILITY(U,$J,358.3,48924,1,4,0)
;;=4^F51.5
;;^UTILITY(U,$J,358.3,48924,2)
;;=^5003615
;;^UTILITY(U,$J,358.3,48925,0)
;;=F51.9^^185^2427^22
;;^UTILITY(U,$J,358.3,48925,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48925,1,3,0)
;;=3^Sleep Disorder,Unspec
;;^UTILITY(U,$J,358.3,48925,1,4,0)
;;=4^F51.9
;;^UTILITY(U,$J,358.3,48925,2)
;;=^5003617
;;^UTILITY(U,$J,358.3,48926,0)
;;=G47.14^^185^2427^5
;;^UTILITY(U,$J,358.3,48926,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48926,1,3,0)
;;=3^Hypersomnia d/t Medical Condition
;;^UTILITY(U,$J,358.3,48926,1,4,0)
;;=4^G47.14
;;^UTILITY(U,$J,358.3,48926,2)
;;=^5003972
;;^UTILITY(U,$J,358.3,48927,0)
;;=G47.10^^185^2427^8
;;^UTILITY(U,$J,358.3,48927,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48927,1,3,0)
;;=3^Hypersomnia,Unspec
;;^UTILITY(U,$J,358.3,48927,1,4,0)
;;=4^G47.10
;;^UTILITY(U,$J,358.3,48927,2)
;;=^332926
;;^UTILITY(U,$J,358.3,48928,0)
;;=G47.01^^185^2427^9
;;^UTILITY(U,$J,358.3,48928,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48928,1,3,0)
;;=3^Insomnia d/t Medical Condition
;;^UTILITY(U,$J,358.3,48928,1,4,0)
;;=4^G47.01
;;^UTILITY(U,$J,358.3,48928,2)
;;=^5003969
;;^UTILITY(U,$J,358.3,48929,0)
;;=G47.00^^185^2427^17
;;^UTILITY(U,$J,358.3,48929,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48929,1,3,0)
;;=3^Insomnia,Unspec
;;^UTILITY(U,$J,358.3,48929,1,4,0)
;;=4^G47.00
;;^UTILITY(U,$J,358.3,48929,2)
;;=^332924
;;^UTILITY(U,$J,358.3,48930,0)
;;=Z72.821^^185^2427^23
;;^UTILITY(U,$J,358.3,48930,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48930,1,3,0)
;;=3^Sleep Hygiene,Inadequate
;;^UTILITY(U,$J,358.3,48930,1,4,0)
;;=4^Z72.821
;;^UTILITY(U,$J,358.3,48930,2)
;;=^5063265
;;^UTILITY(U,$J,358.3,48931,0)
;;=G47.63^^185^2427^24
;;^UTILITY(U,$J,358.3,48931,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48931,1,3,0)
;;=3^Sleep Related Bruxism
;;^UTILITY(U,$J,358.3,48931,1,4,0)
;;=4^G47.63
;;^UTILITY(U,$J,358.3,48931,2)
;;=^332783
;;^UTILITY(U,$J,358.3,48932,0)
;;=G47.9^^185^2427^25
;;^UTILITY(U,$J,358.3,48932,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48932,1,3,0)
;;=3^Sleep Related Disorder,Unspec
;;^UTILITY(U,$J,358.3,48932,1,4,0)
;;=4^G47.9
;;^UTILITY(U,$J,358.3,48932,2)
;;=^5003990
;;^UTILITY(U,$J,358.3,48933,0)
;;=G47.62^^185^2427^26
;;^UTILITY(U,$J,358.3,48933,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48933,1,3,0)
;;=3^Sleep Related Leg Cramps
;;^UTILITY(U,$J,358.3,48933,1,4,0)
;;=4^G47.62
;;^UTILITY(U,$J,358.3,48933,2)
;;=^332782
;;^UTILITY(U,$J,358.3,48934,0)
;;=G47.61^^185^2427^27
;;^UTILITY(U,$J,358.3,48934,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48934,1,3,0)
;;=3^Sleep Related Movement Disorder,Periodic
;;^UTILITY(U,$J,358.3,48934,1,4,0)
;;=4^G47.61
;;^UTILITY(U,$J,358.3,48934,2)
;;=^5003987
;;^UTILITY(U,$J,358.3,48935,0)
;;=F51.12^^185^2427^28
;;^UTILITY(U,$J,358.3,48935,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48935,1,3,0)
;;=3^Sleep Syndrome,Insufficient Sleep
;;^UTILITY(U,$J,358.3,48935,1,4,0)
;;=4^F51.12
;;^UTILITY(U,$J,358.3,48935,2)
;;=^5003610
;;^UTILITY(U,$J,358.3,48936,0)
;;=F51.4^^185^2427^29
;;^UTILITY(U,$J,358.3,48936,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,48936,1,3,0)
;;=3^Sleep Terrors
;;^UTILITY(U,$J,358.3,48936,1,4,0)
;;=4^F51.4
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI32D 3779 printed Dec 13, 2024@02:40:27 Page 2
IBDEI32D ; ; 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,48924,1,0)
+2 ;;=^358.31IA^4^2
+3 ;;^UTILITY(U,$J,358.3,48924,1,3,0)
+4 ;;=3^Sleep Disorder,Nightmare
+5 ;;^UTILITY(U,$J,358.3,48924,1,4,0)
+6 ;;=4^F51.5
+7 ;;^UTILITY(U,$J,358.3,48924,2)
+8 ;;=^5003615
+9 ;;^UTILITY(U,$J,358.3,48925,0)
+10 ;;=F51.9^^185^2427^22
+11 ;;^UTILITY(U,$J,358.3,48925,1,0)
+12 ;;=^358.31IA^4^2
+13 ;;^UTILITY(U,$J,358.3,48925,1,3,0)
+14 ;;=3^Sleep Disorder,Unspec
+15 ;;^UTILITY(U,$J,358.3,48925,1,4,0)
+16 ;;=4^F51.9
+17 ;;^UTILITY(U,$J,358.3,48925,2)
+18 ;;=^5003617
+19 ;;^UTILITY(U,$J,358.3,48926,0)
+20 ;;=G47.14^^185^2427^5
+21 ;;^UTILITY(U,$J,358.3,48926,1,0)
+22 ;;=^358.31IA^4^2
+23 ;;^UTILITY(U,$J,358.3,48926,1,3,0)
+24 ;;=3^Hypersomnia d/t Medical Condition
+25 ;;^UTILITY(U,$J,358.3,48926,1,4,0)
+26 ;;=4^G47.14
+27 ;;^UTILITY(U,$J,358.3,48926,2)
+28 ;;=^5003972
+29 ;;^UTILITY(U,$J,358.3,48927,0)
+30 ;;=G47.10^^185^2427^8
+31 ;;^UTILITY(U,$J,358.3,48927,1,0)
+32 ;;=^358.31IA^4^2
+33 ;;^UTILITY(U,$J,358.3,48927,1,3,0)
+34 ;;=3^Hypersomnia,Unspec
+35 ;;^UTILITY(U,$J,358.3,48927,1,4,0)
+36 ;;=4^G47.10
+37 ;;^UTILITY(U,$J,358.3,48927,2)
+38 ;;=^332926
+39 ;;^UTILITY(U,$J,358.3,48928,0)
+40 ;;=G47.01^^185^2427^9
+41 ;;^UTILITY(U,$J,358.3,48928,1,0)
+42 ;;=^358.31IA^4^2
+43 ;;^UTILITY(U,$J,358.3,48928,1,3,0)
+44 ;;=3^Insomnia d/t Medical Condition
+45 ;;^UTILITY(U,$J,358.3,48928,1,4,0)
+46 ;;=4^G47.01
+47 ;;^UTILITY(U,$J,358.3,48928,2)
+48 ;;=^5003969
+49 ;;^UTILITY(U,$J,358.3,48929,0)
+50 ;;=G47.00^^185^2427^17
+51 ;;^UTILITY(U,$J,358.3,48929,1,0)
+52 ;;=^358.31IA^4^2
+53 ;;^UTILITY(U,$J,358.3,48929,1,3,0)
+54 ;;=3^Insomnia,Unspec
+55 ;;^UTILITY(U,$J,358.3,48929,1,4,0)
+56 ;;=4^G47.00
+57 ;;^UTILITY(U,$J,358.3,48929,2)
+58 ;;=^332924
+59 ;;^UTILITY(U,$J,358.3,48930,0)
+60 ;;=Z72.821^^185^2427^23
+61 ;;^UTILITY(U,$J,358.3,48930,1,0)
+62 ;;=^358.31IA^4^2
+63 ;;^UTILITY(U,$J,358.3,48930,1,3,0)
+64 ;;=3^Sleep Hygiene,Inadequate
+65 ;;^UTILITY(U,$J,358.3,48930,1,4,0)
+66 ;;=4^Z72.821
+67 ;;^UTILITY(U,$J,358.3,48930,2)
+68 ;;=^5063265
+69 ;;^UTILITY(U,$J,358.3,48931,0)
+70 ;;=G47.63^^185^2427^24
+71 ;;^UTILITY(U,$J,358.3,48931,1,0)
+72 ;;=^358.31IA^4^2
+73 ;;^UTILITY(U,$J,358.3,48931,1,3,0)
+74 ;;=3^Sleep Related Bruxism
+75 ;;^UTILITY(U,$J,358.3,48931,1,4,0)
+76 ;;=4^G47.63
+77 ;;^UTILITY(U,$J,358.3,48931,2)
+78 ;;=^332783
+79 ;;^UTILITY(U,$J,358.3,48932,0)
+80 ;;=G47.9^^185^2427^25
+81 ;;^UTILITY(U,$J,358.3,48932,1,0)
+82 ;;=^358.31IA^4^2
+83 ;;^UTILITY(U,$J,358.3,48932,1,3,0)
+84 ;;=3^Sleep Related Disorder,Unspec
+85 ;;^UTILITY(U,$J,358.3,48932,1,4,0)
+86 ;;=4^G47.9
+87 ;;^UTILITY(U,$J,358.3,48932,2)
+88 ;;=^5003990
+89 ;;^UTILITY(U,$J,358.3,48933,0)
+90 ;;=G47.62^^185^2427^26
+91 ;;^UTILITY(U,$J,358.3,48933,1,0)
+92 ;;=^358.31IA^4^2
+93 ;;^UTILITY(U,$J,358.3,48933,1,3,0)
+94 ;;=3^Sleep Related Leg Cramps
+95 ;;^UTILITY(U,$J,358.3,48933,1,4,0)
+96 ;;=4^G47.62
+97 ;;^UTILITY(U,$J,358.3,48933,2)
+98 ;;=^332782
+99 ;;^UTILITY(U,$J,358.3,48934,0)
+100 ;;=G47.61^^185^2427^27
+101 ;;^UTILITY(U,$J,358.3,48934,1,0)
+102 ;;=^358.31IA^4^2
+103 ;;^UTILITY(U,$J,358.3,48934,1,3,0)
+104 ;;=3^Sleep Related Movement Disorder,Periodic
+105 ;;^UTILITY(U,$J,358.3,48934,1,4,0)
+106 ;;=4^G47.61
+107 ;;^UTILITY(U,$J,358.3,48934,2)
+108 ;;=^5003987
+109 ;;^UTILITY(U,$J,358.3,48935,0)
+110 ;;=F51.12^^185^2427^28
+111 ;;^UTILITY(U,$J,358.3,48935,1,0)
+112 ;;=^358.31IA^4^2
+113 ;;^UTILITY(U,$J,358.3,48935,1,3,0)
+114 ;;=3^Sleep Syndrome,Insufficient Sleep
+115 ;;^UTILITY(U,$J,358.3,48935,1,4,0)
+116 ;;=4^F51.12
+117 ;;^UTILITY(U,$J,358.3,48935,2)
+118 ;;=^5003610
+119 ;;^UTILITY(U,$J,358.3,48936,0)
+120 ;;=F51.4^^185^2427^29
+121 ;;^UTILITY(U,$J,358.3,48936,1,0)
+122 ;;=^358.31IA^4^2
+123 ;;^UTILITY(U,$J,358.3,48936,1,3,0)
+124 ;;=3^Sleep Terrors
+125 ;;^UTILITY(U,$J,358.3,48936,1,4,0)
+126 ;;=4^F51.4