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