IBDEI0GN ; ; 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,7469,1,4,0)
;;=4^E85.82
;;^UTILITY(U,$J,358.3,7469,2)
;;=^5151303
;;^UTILITY(U,$J,358.3,7470,0)
;;=R45.851^^36^369^3
;;^UTILITY(U,$J,358.3,7470,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7470,1,3,0)
;;=3^Suicidal Ideations
;;^UTILITY(U,$J,358.3,7470,1,4,0)
;;=4^R45.851
;;^UTILITY(U,$J,358.3,7470,2)
;;=^5019474
;;^UTILITY(U,$J,358.3,7471,0)
;;=T14.91XA^^36^369^4
;;^UTILITY(U,$J,358.3,7471,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7471,1,3,0)
;;=3^Suicide Attempt,Initial Encntr
;;^UTILITY(U,$J,358.3,7471,1,4,0)
;;=4^T14.91XA
;;^UTILITY(U,$J,358.3,7471,2)
;;=^5151779
;;^UTILITY(U,$J,358.3,7472,0)
;;=T14.91XD^^36^369^6
;;^UTILITY(U,$J,358.3,7472,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7472,1,3,0)
;;=3^Suicide Attempt,Subsequent Encntr
;;^UTILITY(U,$J,358.3,7472,1,4,0)
;;=4^T14.91XD
;;^UTILITY(U,$J,358.3,7472,2)
;;=^5151780
;;^UTILITY(U,$J,358.3,7473,0)
;;=T14.91XS^^36^369^5
;;^UTILITY(U,$J,358.3,7473,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7473,1,3,0)
;;=3^Suicide Attempt,Sequela
;;^UTILITY(U,$J,358.3,7473,1,4,0)
;;=4^T14.91XS
;;^UTILITY(U,$J,358.3,7473,2)
;;=^5151781
;;^UTILITY(U,$J,358.3,7474,0)
;;=Z91.51^^36^369^2
;;^UTILITY(U,$J,358.3,7474,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7474,1,3,0)
;;=3^Personal Hx of Suicidal Behavior
;;^UTILITY(U,$J,358.3,7474,1,4,0)
;;=4^Z91.51
;;^UTILITY(U,$J,358.3,7474,2)
;;=^5161317
;;^UTILITY(U,$J,358.3,7475,0)
;;=Z91.52^^36^369^1
;;^UTILITY(U,$J,358.3,7475,1,0)
;;=^358.31IA^4^2
;;^UTILITY(U,$J,358.3,7475,1,3,0)
;;=3^Personal Hx of Non-Suicidal Self-Harm
;;^UTILITY(U,$J,358.3,7475,1,4,0)
;;=4^Z91.52
;;^UTILITY(U,$J,358.3,7475,2)
;;=^5161318
;;^UTILITY(U,$J,358.3,7476,0)
;;=43235^^37^370^21^^^^1
;;^UTILITY(U,$J,358.3,7476,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7476,1,2,0)
;;=2^43235
;;^UTILITY(U,$J,358.3,7476,1,3,0)
;;=3^EGD, Diagnostic
;;^UTILITY(U,$J,358.3,7477,0)
;;=43239^^37^370^4^^^^1
;;^UTILITY(U,$J,358.3,7477,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7477,1,2,0)
;;=2^43239
;;^UTILITY(U,$J,358.3,7477,1,3,0)
;;=3^EGD w/ Biopsy
;;^UTILITY(U,$J,358.3,7478,0)
;;=43250^^37^370^13^^^^1
;;^UTILITY(U,$J,358.3,7478,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7478,1,2,0)
;;=2^43250
;;^UTILITY(U,$J,358.3,7478,1,3,0)
;;=3^EGD w/ Hot Forceps
;;^UTILITY(U,$J,358.3,7479,0)
;;=43251^^37^370^17^^^^1
;;^UTILITY(U,$J,358.3,7479,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7479,1,2,0)
;;=2^43251
;;^UTILITY(U,$J,358.3,7479,1,3,0)
;;=3^EGD w/ Snare
;;^UTILITY(U,$J,358.3,7480,0)
;;=43247^^37^370^12^^^^1
;;^UTILITY(U,$J,358.3,7480,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7480,1,2,0)
;;=2^43247
;;^UTILITY(U,$J,358.3,7480,1,3,0)
;;=3^EGD w/ Foreign Body Removal
;;^UTILITY(U,$J,358.3,7481,0)
;;=43255^^37^370^5^^^^1
;;^UTILITY(U,$J,358.3,7481,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7481,1,2,0)
;;=2^43255
;;^UTILITY(U,$J,358.3,7481,1,3,0)
;;=3^EGD w/ Control of Bleeding
;;^UTILITY(U,$J,358.3,7482,0)
;;=43245^^37^370^9^^^^1
;;^UTILITY(U,$J,358.3,7482,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7482,1,2,0)
;;=2^43245
;;^UTILITY(U,$J,358.3,7482,1,3,0)
;;=3^EGD w/ Dilation Stomach or Duodenum
;;^UTILITY(U,$J,358.3,7483,0)
;;=43248^^37^370^8^^^^1
;;^UTILITY(U,$J,358.3,7483,1,0)
;;=^358.31IA^3^2
;;^UTILITY(U,$J,358.3,7483,1,2,0)
;;=2^43248
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI0GN 3759 printed Nov 22, 2024@16:58:31 Page 2
IBDEI0GN ; ; 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,7469,1,4,0)
+2 ;;=4^E85.82
+3 ;;^UTILITY(U,$J,358.3,7469,2)
+4 ;;=^5151303
+5 ;;^UTILITY(U,$J,358.3,7470,0)
+6 ;;=R45.851^^36^369^3
+7 ;;^UTILITY(U,$J,358.3,7470,1,0)
+8 ;;=^358.31IA^4^2
+9 ;;^UTILITY(U,$J,358.3,7470,1,3,0)
+10 ;;=3^Suicidal Ideations
+11 ;;^UTILITY(U,$J,358.3,7470,1,4,0)
+12 ;;=4^R45.851
+13 ;;^UTILITY(U,$J,358.3,7470,2)
+14 ;;=^5019474
+15 ;;^UTILITY(U,$J,358.3,7471,0)
+16 ;;=T14.91XA^^36^369^4
+17 ;;^UTILITY(U,$J,358.3,7471,1,0)
+18 ;;=^358.31IA^4^2
+19 ;;^UTILITY(U,$J,358.3,7471,1,3,0)
+20 ;;=3^Suicide Attempt,Initial Encntr
+21 ;;^UTILITY(U,$J,358.3,7471,1,4,0)
+22 ;;=4^T14.91XA
+23 ;;^UTILITY(U,$J,358.3,7471,2)
+24 ;;=^5151779
+25 ;;^UTILITY(U,$J,358.3,7472,0)
+26 ;;=T14.91XD^^36^369^6
+27 ;;^UTILITY(U,$J,358.3,7472,1,0)
+28 ;;=^358.31IA^4^2
+29 ;;^UTILITY(U,$J,358.3,7472,1,3,0)
+30 ;;=3^Suicide Attempt,Subsequent Encntr
+31 ;;^UTILITY(U,$J,358.3,7472,1,4,0)
+32 ;;=4^T14.91XD
+33 ;;^UTILITY(U,$J,358.3,7472,2)
+34 ;;=^5151780
+35 ;;^UTILITY(U,$J,358.3,7473,0)
+36 ;;=T14.91XS^^36^369^5
+37 ;;^UTILITY(U,$J,358.3,7473,1,0)
+38 ;;=^358.31IA^4^2
+39 ;;^UTILITY(U,$J,358.3,7473,1,3,0)
+40 ;;=3^Suicide Attempt,Sequela
+41 ;;^UTILITY(U,$J,358.3,7473,1,4,0)
+42 ;;=4^T14.91XS
+43 ;;^UTILITY(U,$J,358.3,7473,2)
+44 ;;=^5151781
+45 ;;^UTILITY(U,$J,358.3,7474,0)
+46 ;;=Z91.51^^36^369^2
+47 ;;^UTILITY(U,$J,358.3,7474,1,0)
+48 ;;=^358.31IA^4^2
+49 ;;^UTILITY(U,$J,358.3,7474,1,3,0)
+50 ;;=3^Personal Hx of Suicidal Behavior
+51 ;;^UTILITY(U,$J,358.3,7474,1,4,0)
+52 ;;=4^Z91.51
+53 ;;^UTILITY(U,$J,358.3,7474,2)
+54 ;;=^5161317
+55 ;;^UTILITY(U,$J,358.3,7475,0)
+56 ;;=Z91.52^^36^369^1
+57 ;;^UTILITY(U,$J,358.3,7475,1,0)
+58 ;;=^358.31IA^4^2
+59 ;;^UTILITY(U,$J,358.3,7475,1,3,0)
+60 ;;=3^Personal Hx of Non-Suicidal Self-Harm
+61 ;;^UTILITY(U,$J,358.3,7475,1,4,0)
+62 ;;=4^Z91.52
+63 ;;^UTILITY(U,$J,358.3,7475,2)
+64 ;;=^5161318
+65 ;;^UTILITY(U,$J,358.3,7476,0)
+66 ;;=43235^^37^370^21^^^^1
+67 ;;^UTILITY(U,$J,358.3,7476,1,0)
+68 ;;=^358.31IA^3^2
+69 ;;^UTILITY(U,$J,358.3,7476,1,2,0)
+70 ;;=2^43235
+71 ;;^UTILITY(U,$J,358.3,7476,1,3,0)
+72 ;;=3^EGD, Diagnostic
+73 ;;^UTILITY(U,$J,358.3,7477,0)
+74 ;;=43239^^37^370^4^^^^1
+75 ;;^UTILITY(U,$J,358.3,7477,1,0)
+76 ;;=^358.31IA^3^2
+77 ;;^UTILITY(U,$J,358.3,7477,1,2,0)
+78 ;;=2^43239
+79 ;;^UTILITY(U,$J,358.3,7477,1,3,0)
+80 ;;=3^EGD w/ Biopsy
+81 ;;^UTILITY(U,$J,358.3,7478,0)
+82 ;;=43250^^37^370^13^^^^1
+83 ;;^UTILITY(U,$J,358.3,7478,1,0)
+84 ;;=^358.31IA^3^2
+85 ;;^UTILITY(U,$J,358.3,7478,1,2,0)
+86 ;;=2^43250
+87 ;;^UTILITY(U,$J,358.3,7478,1,3,0)
+88 ;;=3^EGD w/ Hot Forceps
+89 ;;^UTILITY(U,$J,358.3,7479,0)
+90 ;;=43251^^37^370^17^^^^1
+91 ;;^UTILITY(U,$J,358.3,7479,1,0)
+92 ;;=^358.31IA^3^2
+93 ;;^UTILITY(U,$J,358.3,7479,1,2,0)
+94 ;;=2^43251
+95 ;;^UTILITY(U,$J,358.3,7479,1,3,0)
+96 ;;=3^EGD w/ Snare
+97 ;;^UTILITY(U,$J,358.3,7480,0)
+98 ;;=43247^^37^370^12^^^^1
+99 ;;^UTILITY(U,$J,358.3,7480,1,0)
+100 ;;=^358.31IA^3^2
+101 ;;^UTILITY(U,$J,358.3,7480,1,2,0)
+102 ;;=2^43247
+103 ;;^UTILITY(U,$J,358.3,7480,1,3,0)
+104 ;;=3^EGD w/ Foreign Body Removal
+105 ;;^UTILITY(U,$J,358.3,7481,0)
+106 ;;=43255^^37^370^5^^^^1
+107 ;;^UTILITY(U,$J,358.3,7481,1,0)
+108 ;;=^358.31IA^3^2
+109 ;;^UTILITY(U,$J,358.3,7481,1,2,0)
+110 ;;=2^43255
+111 ;;^UTILITY(U,$J,358.3,7481,1,3,0)
+112 ;;=3^EGD w/ Control of Bleeding
+113 ;;^UTILITY(U,$J,358.3,7482,0)
+114 ;;=43245^^37^370^9^^^^1
+115 ;;^UTILITY(U,$J,358.3,7482,1,0)
+116 ;;=^358.31IA^3^2
+117 ;;^UTILITY(U,$J,358.3,7482,1,2,0)
+118 ;;=2^43245
+119 ;;^UTILITY(U,$J,358.3,7482,1,3,0)
+120 ;;=3^EGD w/ Dilation Stomach or Duodenum
+121 ;;^UTILITY(U,$J,358.3,7483,0)
+122 ;;=43248^^37^370^8^^^^1
+123 ;;^UTILITY(U,$J,358.3,7483,1,0)
+124 ;;=^358.31IA^3^2
+125 ;;^UTILITY(U,$J,358.3,7483,1,2,0)
+126 ;;=2^43248