IBDEI1WN ; ; 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,30420,0)
;;=F15.982^^120^1553^6
;;^UTILITY(U,$J,358.3,30420,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30420,1,3,0)
;;=3^Caffeine Induced Sleep D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,30420,1,4,0)
;;=4^F15.982
;;^UTILITY(U,$J,358.3,30420,2)
;;=^5003322
;;^UTILITY(U,$J,358.3,30421,0)
;;=F15.99^^120^1553^8
;;^UTILITY(U,$J,358.3,30421,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30421,1,3,0)
;;=3^Caffeine Related D/O,Unspec
;;^UTILITY(U,$J,358.3,30421,1,4,0)
;;=4^F15.99
;;^UTILITY(U,$J,358.3,30421,2)
;;=^5133358
;;^UTILITY(U,$J,358.3,30422,0)
;;=R45.851^^120^1554^2
;;^UTILITY(U,$J,358.3,30422,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30422,1,3,0)
;;=3^Suicidal Ideations
;;^UTILITY(U,$J,358.3,30422,1,4,0)
;;=4^R45.851
;;^UTILITY(U,$J,358.3,30422,2)
;;=^5019474
;;^UTILITY(U,$J,358.3,30423,0)
;;=Z91.5^^120^1554^1
;;^UTILITY(U,$J,358.3,30423,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30423,1,3,0)
;;=3^Personal Hx of Suicide Attempt(s)
;;^UTILITY(U,$J,358.3,30423,1,4,0)
;;=4^Z91.5
;;^UTILITY(U,$J,358.3,30423,2)
;;=^5063624
;;^UTILITY(U,$J,358.3,30424,0)
;;=T14.91XA^^120^1554^3
;;^UTILITY(U,$J,358.3,30424,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30424,1,3,0)
;;=3^Suicide Attempt,Inital Encntr
;;^UTILITY(U,$J,358.3,30424,1,4,0)
;;=4^T14.91XA
;;^UTILITY(U,$J,358.3,30424,2)
;;=^5151779
;;^UTILITY(U,$J,358.3,30425,0)
;;=T14.91XD^^120^1554^4
;;^UTILITY(U,$J,358.3,30425,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30425,1,3,0)
;;=3^Suicide Attempt,Subsequent Encntr
;;^UTILITY(U,$J,358.3,30425,1,4,0)
;;=4^T14.91XD
;;^UTILITY(U,$J,358.3,30425,2)
;;=^5151780
;;^UTILITY(U,$J,358.3,30426,0)
;;=T14.91XS^^120^1554^5
;;^UTILITY(U,$J,358.3,30426,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30426,1,3,0)
;;=3^Suicide Attempt,Sequela
;;^UTILITY(U,$J,358.3,30426,1,4,0)
;;=4^T14.91XS
;;^UTILITY(U,$J,358.3,30426,2)
;;=^5151781
;;^UTILITY(U,$J,358.3,30427,0)
;;=F19.14^^120^1555^1
;;^UTILITY(U,$J,358.3,30427,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30427,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,30427,1,4,0)
;;=4^F19.14
;;^UTILITY(U,$J,358.3,30427,2)
;;=^5003421
;;^UTILITY(U,$J,358.3,30428,0)
;;=F19.24^^120^1555^2
;;^UTILITY(U,$J,358.3,30428,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30428,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,30428,1,4,0)
;;=4^F19.24
;;^UTILITY(U,$J,358.3,30428,2)
;;=^5003441
;;^UTILITY(U,$J,358.3,30429,0)
;;=F19.94^^120^1555^3
;;^UTILITY(U,$J,358.3,30429,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30429,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,30429,1,4,0)
;;=4^F19.94
;;^UTILITY(U,$J,358.3,30429,2)
;;=^5003460
;;^UTILITY(U,$J,358.3,30430,0)
;;=F19.17^^120^1555^4
;;^UTILITY(U,$J,358.3,30430,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30430,1,3,0)
;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,30430,1,4,0)
;;=4^F19.17
;;^UTILITY(U,$J,358.3,30430,2)
;;=^5003426
;;^UTILITY(U,$J,358.3,30431,0)
;;=F19.27^^120^1555^5
;;^UTILITY(U,$J,358.3,30431,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,30431,1,3,0)
;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,30431,1,4,0)
;;=4^F19.27
;;^UTILITY(U,$J,358.3,30431,2)
;;=^5003446
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI1WN 3784 printed Nov 22, 2024@17:27:25 Page 2
IBDEI1WN ; ; 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,30420,0)
+2 ;;=F15.982^^120^1553^6
+3 ;;^UTILITY(U,$J,358.3,30420,1,0)
+4 ;;=^358.31IA^4^2
+5 ;;^UTILITY(U,$J,358.3,30420,1,3,0)
+6 ;;=3^Caffeine Induced Sleep D/O w/o Use D/O
+7 ;;^UTILITY(U,$J,358.3,30420,1,4,0)
+8 ;;=4^F15.982
+9 ;;^UTILITY(U,$J,358.3,30420,2)
+10 ;;=^5003322
+11 ;;^UTILITY(U,$J,358.3,30421,0)
+12 ;;=F15.99^^120^1553^8
+13 ;;^UTILITY(U,$J,358.3,30421,1,0)
+14 ;;=^358.31IA^4^2
+15 ;;^UTILITY(U,$J,358.3,30421,1,3,0)
+16 ;;=3^Caffeine Related D/O,Unspec
+17 ;;^UTILITY(U,$J,358.3,30421,1,4,0)
+18 ;;=4^F15.99
+19 ;;^UTILITY(U,$J,358.3,30421,2)
+20 ;;=^5133358
+21 ;;^UTILITY(U,$J,358.3,30422,0)
+22 ;;=R45.851^^120^1554^2
+23 ;;^UTILITY(U,$J,358.3,30422,1,0)
+24 ;;=^358.31IA^4^2
+25 ;;^UTILITY(U,$J,358.3,30422,1,3,0)
+26 ;;=3^Suicidal Ideations
+27 ;;^UTILITY(U,$J,358.3,30422,1,4,0)
+28 ;;=4^R45.851
+29 ;;^UTILITY(U,$J,358.3,30422,2)
+30 ;;=^5019474
+31 ;;^UTILITY(U,$J,358.3,30423,0)
+32 ;;=Z91.5^^120^1554^1
+33 ;;^UTILITY(U,$J,358.3,30423,1,0)
+34 ;;=^358.31IA^4^2
+35 ;;^UTILITY(U,$J,358.3,30423,1,3,0)
+36 ;;=3^Personal Hx of Suicide Attempt(s)
+37 ;;^UTILITY(U,$J,358.3,30423,1,4,0)
+38 ;;=4^Z91.5
+39 ;;^UTILITY(U,$J,358.3,30423,2)
+40 ;;=^5063624
+41 ;;^UTILITY(U,$J,358.3,30424,0)
+42 ;;=T14.91XA^^120^1554^3
+43 ;;^UTILITY(U,$J,358.3,30424,1,0)
+44 ;;=^358.31IA^4^2
+45 ;;^UTILITY(U,$J,358.3,30424,1,3,0)
+46 ;;=3^Suicide Attempt,Inital Encntr
+47 ;;^UTILITY(U,$J,358.3,30424,1,4,0)
+48 ;;=4^T14.91XA
+49 ;;^UTILITY(U,$J,358.3,30424,2)
+50 ;;=^5151779
+51 ;;^UTILITY(U,$J,358.3,30425,0)
+52 ;;=T14.91XD^^120^1554^4
+53 ;;^UTILITY(U,$J,358.3,30425,1,0)
+54 ;;=^358.31IA^4^2
+55 ;;^UTILITY(U,$J,358.3,30425,1,3,0)
+56 ;;=3^Suicide Attempt,Subsequent Encntr
+57 ;;^UTILITY(U,$J,358.3,30425,1,4,0)
+58 ;;=4^T14.91XD
+59 ;;^UTILITY(U,$J,358.3,30425,2)
+60 ;;=^5151780
+61 ;;^UTILITY(U,$J,358.3,30426,0)
+62 ;;=T14.91XS^^120^1554^5
+63 ;;^UTILITY(U,$J,358.3,30426,1,0)
+64 ;;=^358.31IA^4^2
+65 ;;^UTILITY(U,$J,358.3,30426,1,3,0)
+66 ;;=3^Suicide Attempt,Sequela
+67 ;;^UTILITY(U,$J,358.3,30426,1,4,0)
+68 ;;=4^T14.91XS
+69 ;;^UTILITY(U,$J,358.3,30426,2)
+70 ;;=^5151781
+71 ;;^UTILITY(U,$J,358.3,30427,0)
+72 ;;=F19.14^^120^1555^1
+73 ;;^UTILITY(U,$J,358.3,30427,1,0)
+74 ;;=^358.31IA^4^2
+75 ;;^UTILITY(U,$J,358.3,30427,1,3,0)
+76 ;;=3^Oth/Unk Substance Induced Dep D/O w/ Mild Use D/O
+77 ;;^UTILITY(U,$J,358.3,30427,1,4,0)
+78 ;;=4^F19.14
+79 ;;^UTILITY(U,$J,358.3,30427,2)
+80 ;;=^5003421
+81 ;;^UTILITY(U,$J,358.3,30428,0)
+82 ;;=F19.24^^120^1555^2
+83 ;;^UTILITY(U,$J,358.3,30428,1,0)
+84 ;;=^358.31IA^4^2
+85 ;;^UTILITY(U,$J,358.3,30428,1,3,0)
+86 ;;=3^Oth/Unk Substance Induced Dep D/O w/ Mod/Sev Use D/O
+87 ;;^UTILITY(U,$J,358.3,30428,1,4,0)
+88 ;;=4^F19.24
+89 ;;^UTILITY(U,$J,358.3,30428,2)
+90 ;;=^5003441
+91 ;;^UTILITY(U,$J,358.3,30429,0)
+92 ;;=F19.94^^120^1555^3
+93 ;;^UTILITY(U,$J,358.3,30429,1,0)
+94 ;;=^358.31IA^4^2
+95 ;;^UTILITY(U,$J,358.3,30429,1,3,0)
+96 ;;=3^Oth/Unk Substance Induced Dep D/O w/o Use D/O
+97 ;;^UTILITY(U,$J,358.3,30429,1,4,0)
+98 ;;=4^F19.94
+99 ;;^UTILITY(U,$J,358.3,30429,2)
+100 ;;=^5003460
+101 ;;^UTILITY(U,$J,358.3,30430,0)
+102 ;;=F19.17^^120^1555^4
+103 ;;^UTILITY(U,$J,358.3,30430,1,0)
+104 ;;=^358.31IA^4^2
+105 ;;^UTILITY(U,$J,358.3,30430,1,3,0)
+106 ;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mild Use D/O
+107 ;;^UTILITY(U,$J,358.3,30430,1,4,0)
+108 ;;=4^F19.17
+109 ;;^UTILITY(U,$J,358.3,30430,2)
+110 ;;=^5003426
+111 ;;^UTILITY(U,$J,358.3,30431,0)
+112 ;;=F19.27^^120^1555^5
+113 ;;^UTILITY(U,$J,358.3,30431,1,0)
+114 ;;=^358.31IA^4^2
+115 ;;^UTILITY(U,$J,358.3,30431,1,3,0)
+116 ;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mod/Sev Use D/O
+117 ;;^UTILITY(U,$J,358.3,30431,1,4,0)
+118 ;;=4^F19.27
+119 ;;^UTILITY(U,$J,358.3,30431,2)
+120 ;;=^5003446