IBDEI2SF ; ; 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,44454,1,3,0)
;;=3^Suicide Attempt,Subsequent Encntr
;;^UTILITY(U,$J,358.3,44454,1,4,0)
;;=4^T14.91XD
;;^UTILITY(U,$J,358.3,44454,2)
;;=^5151780
;;^UTILITY(U,$J,358.3,44455,0)
;;=T14.91XS^^164^2205^5
;;^UTILITY(U,$J,358.3,44455,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44455,1,3,0)
;;=3^Suicide Attempt,Sequela
;;^UTILITY(U,$J,358.3,44455,1,4,0)
;;=4^T14.91XS
;;^UTILITY(U,$J,358.3,44455,2)
;;=^5151781
;;^UTILITY(U,$J,358.3,44456,0)
;;=F19.14^^164^2206^1
;;^UTILITY(U,$J,358.3,44456,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44456,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,44456,1,4,0)
;;=4^F19.14
;;^UTILITY(U,$J,358.3,44456,2)
;;=^5003421
;;^UTILITY(U,$J,358.3,44457,0)
;;=F19.24^^164^2206^2
;;^UTILITY(U,$J,358.3,44457,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44457,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,44457,1,4,0)
;;=4^F19.24
;;^UTILITY(U,$J,358.3,44457,2)
;;=^5003441
;;^UTILITY(U,$J,358.3,44458,0)
;;=F19.94^^164^2206^3
;;^UTILITY(U,$J,358.3,44458,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44458,1,3,0)
;;=3^Oth/Unk Substance Induced Dep D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,44458,1,4,0)
;;=4^F19.94
;;^UTILITY(U,$J,358.3,44458,2)
;;=^5003460
;;^UTILITY(U,$J,358.3,44459,0)
;;=F19.17^^164^2206^4
;;^UTILITY(U,$J,358.3,44459,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44459,1,3,0)
;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,44459,1,4,0)
;;=4^F19.17
;;^UTILITY(U,$J,358.3,44459,2)
;;=^5003426
;;^UTILITY(U,$J,358.3,44460,0)
;;=F19.27^^164^2206^5
;;^UTILITY(U,$J,358.3,44460,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44460,1,3,0)
;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,44460,1,4,0)
;;=4^F19.27
;;^UTILITY(U,$J,358.3,44460,2)
;;=^5003446
;;^UTILITY(U,$J,358.3,44461,0)
;;=F19.97^^164^2206^6
;;^UTILITY(U,$J,358.3,44461,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44461,1,3,0)
;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,44461,1,4,0)
;;=4^F19.97
;;^UTILITY(U,$J,358.3,44461,2)
;;=^5003465
;;^UTILITY(U,$J,358.3,44462,0)
;;=F19.188^^164^2206^7
;;^UTILITY(U,$J,358.3,44462,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44462,1,3,0)
;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,44462,1,4,0)
;;=4^F19.188
;;^UTILITY(U,$J,358.3,44462,2)
;;=^5133361
;;^UTILITY(U,$J,358.3,44463,0)
;;=F19.288^^164^2206^8
;;^UTILITY(U,$J,358.3,44463,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44463,1,3,0)
;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/ Mod/Sev Use D/O
;;^UTILITY(U,$J,358.3,44463,1,4,0)
;;=4^F19.288
;;^UTILITY(U,$J,358.3,44463,2)
;;=^5133362
;;^UTILITY(U,$J,358.3,44464,0)
;;=F19.988^^164^2206^9
;;^UTILITY(U,$J,358.3,44464,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44464,1,3,0)
;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/o Use D/O
;;^UTILITY(U,$J,358.3,44464,1,4,0)
;;=4^F19.988
;;^UTILITY(U,$J,358.3,44464,2)
;;=^5133363
;;^UTILITY(U,$J,358.3,44465,0)
;;=F19.159^^164^2206^10
;;^UTILITY(U,$J,358.3,44465,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,44465,1,3,0)
;;=3^Oth/Unk Substance Induced Psychotic D/O w/ Mild Use D/O
;;^UTILITY(U,$J,358.3,44465,1,4,0)
;;=4^F19.159
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI2SF 3767 printed Dec 13, 2024@02:34:55 Page 2
IBDEI2SF ; ; 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,44454,1,3,0)
+2 ;;=3^Suicide Attempt,Subsequent Encntr
+3 ;;^UTILITY(U,$J,358.3,44454,1,4,0)
+4 ;;=4^T14.91XD
+5 ;;^UTILITY(U,$J,358.3,44454,2)
+6 ;;=^5151780
+7 ;;^UTILITY(U,$J,358.3,44455,0)
+8 ;;=T14.91XS^^164^2205^5
+9 ;;^UTILITY(U,$J,358.3,44455,1,0)
+10 ;;=^358.31IA^4^2
+11 ;;^UTILITY(U,$J,358.3,44455,1,3,0)
+12 ;;=3^Suicide Attempt,Sequela
+13 ;;^UTILITY(U,$J,358.3,44455,1,4,0)
+14 ;;=4^T14.91XS
+15 ;;^UTILITY(U,$J,358.3,44455,2)
+16 ;;=^5151781
+17 ;;^UTILITY(U,$J,358.3,44456,0)
+18 ;;=F19.14^^164^2206^1
+19 ;;^UTILITY(U,$J,358.3,44456,1,0)
+20 ;;=^358.31IA^4^2
+21 ;;^UTILITY(U,$J,358.3,44456,1,3,0)
+22 ;;=3^Oth/Unk Substance Induced Dep D/O w/ Mild Use D/O
+23 ;;^UTILITY(U,$J,358.3,44456,1,4,0)
+24 ;;=4^F19.14
+25 ;;^UTILITY(U,$J,358.3,44456,2)
+26 ;;=^5003421
+27 ;;^UTILITY(U,$J,358.3,44457,0)
+28 ;;=F19.24^^164^2206^2
+29 ;;^UTILITY(U,$J,358.3,44457,1,0)
+30 ;;=^358.31IA^4^2
+31 ;;^UTILITY(U,$J,358.3,44457,1,3,0)
+32 ;;=3^Oth/Unk Substance Induced Dep D/O w/ Mod/Sev Use D/O
+33 ;;^UTILITY(U,$J,358.3,44457,1,4,0)
+34 ;;=4^F19.24
+35 ;;^UTILITY(U,$J,358.3,44457,2)
+36 ;;=^5003441
+37 ;;^UTILITY(U,$J,358.3,44458,0)
+38 ;;=F19.94^^164^2206^3
+39 ;;^UTILITY(U,$J,358.3,44458,1,0)
+40 ;;=^358.31IA^4^2
+41 ;;^UTILITY(U,$J,358.3,44458,1,3,0)
+42 ;;=3^Oth/Unk Substance Induced Dep D/O w/o Use D/O
+43 ;;^UTILITY(U,$J,358.3,44458,1,4,0)
+44 ;;=4^F19.94
+45 ;;^UTILITY(U,$J,358.3,44458,2)
+46 ;;=^5003460
+47 ;;^UTILITY(U,$J,358.3,44459,0)
+48 ;;=F19.17^^164^2206^4
+49 ;;^UTILITY(U,$J,358.3,44459,1,0)
+50 ;;=^358.31IA^4^2
+51 ;;^UTILITY(U,$J,358.3,44459,1,3,0)
+52 ;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mild Use D/O
+53 ;;^UTILITY(U,$J,358.3,44459,1,4,0)
+54 ;;=4^F19.17
+55 ;;^UTILITY(U,$J,358.3,44459,2)
+56 ;;=^5003426
+57 ;;^UTILITY(U,$J,358.3,44460,0)
+58 ;;=F19.27^^164^2206^5
+59 ;;^UTILITY(U,$J,358.3,44460,1,0)
+60 ;;=^358.31IA^4^2
+61 ;;^UTILITY(U,$J,358.3,44460,1,3,0)
+62 ;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/ Mod/Sev Use D/O
+63 ;;^UTILITY(U,$J,358.3,44460,1,4,0)
+64 ;;=4^F19.27
+65 ;;^UTILITY(U,$J,358.3,44460,2)
+66 ;;=^5003446
+67 ;;^UTILITY(U,$J,358.3,44461,0)
+68 ;;=F19.97^^164^2206^6
+69 ;;^UTILITY(U,$J,358.3,44461,1,0)
+70 ;;=^358.31IA^4^2
+71 ;;^UTILITY(U,$J,358.3,44461,1,3,0)
+72 ;;=3^Oth/Unk Substance Induced Maj Neurocog D/O w/o Use D/O
+73 ;;^UTILITY(U,$J,358.3,44461,1,4,0)
+74 ;;=4^F19.97
+75 ;;^UTILITY(U,$J,358.3,44461,2)
+76 ;;=^5003465
+77 ;;^UTILITY(U,$J,358.3,44462,0)
+78 ;;=F19.188^^164^2206^7
+79 ;;^UTILITY(U,$J,358.3,44462,1,0)
+80 ;;=^358.31IA^4^2
+81 ;;^UTILITY(U,$J,358.3,44462,1,3,0)
+82 ;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/ Mild Use D/O
+83 ;;^UTILITY(U,$J,358.3,44462,1,4,0)
+84 ;;=4^F19.188
+85 ;;^UTILITY(U,$J,358.3,44462,2)
+86 ;;=^5133361
+87 ;;^UTILITY(U,$J,358.3,44463,0)
+88 ;;=F19.288^^164^2206^8
+89 ;;^UTILITY(U,$J,358.3,44463,1,0)
+90 ;;=^358.31IA^4^2
+91 ;;^UTILITY(U,$J,358.3,44463,1,3,0)
+92 ;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/ Mod/Sev Use D/O
+93 ;;^UTILITY(U,$J,358.3,44463,1,4,0)
+94 ;;=4^F19.288
+95 ;;^UTILITY(U,$J,358.3,44463,2)
+96 ;;=^5133362
+97 ;;^UTILITY(U,$J,358.3,44464,0)
+98 ;;=F19.988^^164^2206^9
+99 ;;^UTILITY(U,$J,358.3,44464,1,0)
+100 ;;=^358.31IA^4^2
+101 ;;^UTILITY(U,$J,358.3,44464,1,3,0)
+102 ;;=3^Oth/Unk Substance Induced Mild Neurocog D/O w/o Use D/O
+103 ;;^UTILITY(U,$J,358.3,44464,1,4,0)
+104 ;;=4^F19.988
+105 ;;^UTILITY(U,$J,358.3,44464,2)
+106 ;;=^5133363
+107 ;;^UTILITY(U,$J,358.3,44465,0)
+108 ;;=F19.159^^164^2206^10
+109 ;;^UTILITY(U,$J,358.3,44465,1,0)
+110 ;;=^358.31IA^4^2
+111 ;;^UTILITY(U,$J,358.3,44465,1,3,0)
+112 ;;=3^Oth/Unk Substance Induced Psychotic D/O w/ Mild Use D/O
+113 ;;^UTILITY(U,$J,358.3,44465,1,4,0)
+114 ;;=4^F19.159