IBDEI3CL ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
Q:'DIFQR(358.6) 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.6,5,13,0)
;;=^357.613V^10^10
;;^UTILITY(U,$J,358.6,5,13,1,0)
;;=1;IBD(358.98,^^1^^^^^2
;;^UTILITY(U,$J,358.6,5,13,2,0)
;;=2;IBD(358.98,^^1^^^^^2
;;^UTILITY(U,$J,358.6,5,13,3,0)
;;=3;IBD(358.98,^^1^^^^^9
;;^UTILITY(U,$J,358.6,5,13,4,0)
;;=1;IBE(358.99,^^0^^^^^
;;^UTILITY(U,$J,358.6,5,13,5,0)
;;=4;IBD(358.98,^^1^^^^^10
;;^UTILITY(U,$J,358.6,5,13,6,0)
;;=5;IBD(358.98,^^1^^^^^11
;;^UTILITY(U,$J,358.6,5,13,7,0)
;;=6;IBD(358.98,^^1^^^^^12
;;^UTILITY(U,$J,358.6,5,13,8,0)
;;=7;IBD(358.98,^^1^^^^^5
;;^UTILITY(U,$J,358.6,5,13,9,0)
;;=8;IBD(358.98,^^1^^^^^6
;;^UTILITY(U,$J,358.6,5,13,10,0)
;;=9;IBD(358.98,^^1^^^^^6
;;^UTILITY(U,$J,358.6,5,14)
;;=S Y=$$DSPICD10^IBDFN9(Y)
;;^UTILITY(U,$J,358.6,5,16)
;;=^^^^^^^^
;;^UTILITY(U,$J,358.6,5,17)
;;=D SLCTDX10^IBDFN12(.X)
;;^UTILITY(U,$J,358.6,5,18)
;;=S IBDF("OTHER")="80^I '$P(^(0),U,9)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"ICD-10 Diagnosis Code")
;;^UTILITY(U,$J,358.6,5,19)
;;=D DX10^IBDFN14(X)
;;^UTILITY(U,$J,358.6,6,0)
;;=DG SELECT CPT PROCEDURE CODES^CPT^IBDFN4^SCHEDULING^^3^2^^1^^^1^7^^^^^^^^1
;;^UTILITY(U,$J,358.6,6,1,0)
;;=^^2^2^2961007^^^^
;;^UTILITY(U,$J,358.6,6,1,1,0)
;;=Allows for the selection of CPT codes from the CPT file. Only active codes
;;^UTILITY(U,$J,358.6,6,1,2,0)
;;=are allowed.
;;^UTILITY(U,$J,358.6,6,2)
;;=CODE^5^SHORT NAME^28^DESCRIPTION^161^^^^^^^^^^CODE^1^1
;;^UTILITY(U,$J,358.6,6,3)
;;=SELECT CPT PROCEDURE CODES
;;^UTILITY(U,$J,358.6,6,9)
;;=S X=$$CPT^IBDFN12(X)
;;^UTILITY(U,$J,358.6,6,11)
;;=D TESTCPT^IBDFN7
;;^UTILITY(U,$J,358.6,6,15,0)
;;=^357.615I^2^2
;;^UTILITY(U,$J,358.6,6,15,1,0)
;;=SHORT NAME^28^2^^PROCEDURE
;;^UTILITY(U,$J,358.6,6,15,2,0)
;;=DESCRIPTION^161^3^^PROCEDURE
;;^UTILITY(U,$J,358.6,6,16)
;;=o^4^Procedure Narrative^^r^5^CPT CODE^1
;;^UTILITY(U,$J,358.6,7,0)
;;=INPUT PROCEDURE CODE (CPT4)^^^PATIENT CARE ENCOUNTER^^1^4^^1^0^^1^^^^SMP
;;^UTILITY(U,$J,358.6,7,1,0)
;;=^^1^1^2960205^^^^
;;^UTILITY(U,$J,358.6,7,1,1,0)
;;=Used for inputting CPT coded procedures performed on the patient.
;;^UTILITY(U,$J,358.6,7,2)
;;=^^^^^^^^^^^^^^^^^1
;;^UTILITY(U,$J,358.6,7,3)
;;=CPT4 PROCEDURE CODES
;;^UTILITY(U,$J,358.6,7,9)
;;=D INPUTCPT^IBDFN8(.X)
;;^UTILITY(U,$J,358.6,7,10)
;;=Enter an active CPT procedure code.
;;^UTILITY(U,$J,358.6,7,11)
;;=D TESTCPT^IBDFN7
;;^UTILITY(U,$J,358.6,7,12)
;;=PROCEDURE^1^6^7^3^2
;;^UTILITY(U,$J,358.6,7,13,0)
;;=^358.613V^2^2
;;^UTILITY(U,$J,358.6,7,13,1,0)
;;=1;IBD(358.98,^^0
;;^UTILITY(U,$J,358.6,7,13,2,0)
;;=2;IBD(358.98,^^0
;;^UTILITY(U,$J,358.6,7,14)
;;=S Y=$$DSPLYCPT^IBDFN9(Y)
;;^UTILITY(U,$J,358.6,7,15,0)
;;=^357.615I^0^0
;;^UTILITY(U,$J,358.6,7,17)
;;=D SLCTCPT^IBDFN12(.X)
;;^UTILITY(U,$J,358.6,7,18)
;;=S IBDF("OTHER")="81^I '$P(^(0),U,4)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"CPT Procedure Code")
;;^UTILITY(U,$J,358.6,7,19)
;;=D CPT^IBDFN14(X)
;;^UTILITY(U,$J,358.6,8,0)
;;=DG SELECT VISIT TYPE CPT PROCEDURES^VSIT^IBDFN4^SCHEDULING^^3^2^^1^^^1^9^^^^^^^^1
;;^UTILITY(U,$J,358.6,8,1,0)
;;=^^1^1^2941116^^^^
;;^UTILITY(U,$J,358.6,8,1,1,0)
;;=Allows for select of just Visit type CPT codes from the CPT file.
;;^UTILITY(U,$J,358.6,8,2)
;;=CODE^5^RECOMMENDED TEXT-SHORT NAME^40^RECOMMENDED HEADER^30^SHORT NAME FROM CPT FILE^28^^^^^^^^^1^1
;;^UTILITY(U,$J,358.6,8,3)
;;=SELECT TYPE OF VISIT CPT
;;^UTILITY(U,$J,358.6,8,11)
;;=D TESTVST^IBDFN7
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3CL 3749 printed Dec 13, 2024@02:46:08 Page 2
IBDEI3CL ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+2 if 'DIFQR(358.6)
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.6,5,13,0)
+2 ;;=^357.613V^10^10
+3 ;;^UTILITY(U,$J,358.6,5,13,1,0)
+4 ;;=1;IBD(358.98,^^1^^^^^2
+5 ;;^UTILITY(U,$J,358.6,5,13,2,0)
+6 ;;=2;IBD(358.98,^^1^^^^^2
+7 ;;^UTILITY(U,$J,358.6,5,13,3,0)
+8 ;;=3;IBD(358.98,^^1^^^^^9
+9 ;;^UTILITY(U,$J,358.6,5,13,4,0)
+10 ;;=1;IBE(358.99,^^0^^^^^
+11 ;;^UTILITY(U,$J,358.6,5,13,5,0)
+12 ;;=4;IBD(358.98,^^1^^^^^10
+13 ;;^UTILITY(U,$J,358.6,5,13,6,0)
+14 ;;=5;IBD(358.98,^^1^^^^^11
+15 ;;^UTILITY(U,$J,358.6,5,13,7,0)
+16 ;;=6;IBD(358.98,^^1^^^^^12
+17 ;;^UTILITY(U,$J,358.6,5,13,8,0)
+18 ;;=7;IBD(358.98,^^1^^^^^5
+19 ;;^UTILITY(U,$J,358.6,5,13,9,0)
+20 ;;=8;IBD(358.98,^^1^^^^^6
+21 ;;^UTILITY(U,$J,358.6,5,13,10,0)
+22 ;;=9;IBD(358.98,^^1^^^^^6
+23 ;;^UTILITY(U,$J,358.6,5,14)
+24 ;;=S Y=$$DSPICD10^IBDFN9(Y)
+25 ;;^UTILITY(U,$J,358.6,5,16)
+26 ;;=^^^^^^^^
+27 ;;^UTILITY(U,$J,358.6,5,17)
+28 ;;=D SLCTDX10^IBDFN12(.X)
+29 ;;^UTILITY(U,$J,358.6,5,18)
+30 ;;=S IBDF("OTHER")="80^I '$P(^(0),U,9)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"ICD-10 Diagnosis Code")
+31 ;;^UTILITY(U,$J,358.6,5,19)
+32 ;;=D DX10^IBDFN14(X)
+33 ;;^UTILITY(U,$J,358.6,6,0)
+34 ;;=DG SELECT CPT PROCEDURE CODES^CPT^IBDFN4^SCHEDULING^^3^2^^1^^^1^7^^^^^^^^1
+35 ;;^UTILITY(U,$J,358.6,6,1,0)
+36 ;;=^^2^2^2961007^^^^
+37 ;;^UTILITY(U,$J,358.6,6,1,1,0)
+38 ;;=Allows for the selection of CPT codes from the CPT file. Only active codes
+39 ;;^UTILITY(U,$J,358.6,6,1,2,0)
+40 ;;=are allowed.
+41 ;;^UTILITY(U,$J,358.6,6,2)
+42 ;;=CODE^5^SHORT NAME^28^DESCRIPTION^161^^^^^^^^^^CODE^1^1
+43 ;;^UTILITY(U,$J,358.6,6,3)
+44 ;;=SELECT CPT PROCEDURE CODES
+45 ;;^UTILITY(U,$J,358.6,6,9)
+46 ;;=S X=$$CPT^IBDFN12(X)
+47 ;;^UTILITY(U,$J,358.6,6,11)
+48 ;;=D TESTCPT^IBDFN7
+49 ;;^UTILITY(U,$J,358.6,6,15,0)
+50 ;;=^357.615I^2^2
+51 ;;^UTILITY(U,$J,358.6,6,15,1,0)
+52 ;;=SHORT NAME^28^2^^PROCEDURE
+53 ;;^UTILITY(U,$J,358.6,6,15,2,0)
+54 ;;=DESCRIPTION^161^3^^PROCEDURE
+55 ;;^UTILITY(U,$J,358.6,6,16)
+56 ;;=o^4^Procedure Narrative^^r^5^CPT CODE^1
+57 ;;^UTILITY(U,$J,358.6,7,0)
+58 ;;=INPUT PROCEDURE CODE (CPT4)^^^PATIENT CARE ENCOUNTER^^1^4^^1^0^^1^^^^SMP
+59 ;;^UTILITY(U,$J,358.6,7,1,0)
+60 ;;=^^1^1^2960205^^^^
+61 ;;^UTILITY(U,$J,358.6,7,1,1,0)
+62 ;;=Used for inputting CPT coded procedures performed on the patient.
+63 ;;^UTILITY(U,$J,358.6,7,2)
+64 ;;=^^^^^^^^^^^^^^^^^1
+65 ;;^UTILITY(U,$J,358.6,7,3)
+66 ;;=CPT4 PROCEDURE CODES
+67 ;;^UTILITY(U,$J,358.6,7,9)
+68 ;;=D INPUTCPT^IBDFN8(.X)
+69 ;;^UTILITY(U,$J,358.6,7,10)
+70 ;;=Enter an active CPT procedure code.
+71 ;;^UTILITY(U,$J,358.6,7,11)
+72 ;;=D TESTCPT^IBDFN7
+73 ;;^UTILITY(U,$J,358.6,7,12)
+74 ;;=PROCEDURE^1^6^7^3^2
+75 ;;^UTILITY(U,$J,358.6,7,13,0)
+76 ;;=^358.613V^2^2
+77 ;;^UTILITY(U,$J,358.6,7,13,1,0)
+78 ;;=1;IBD(358.98,^^0
+79 ;;^UTILITY(U,$J,358.6,7,13,2,0)
+80 ;;=2;IBD(358.98,^^0
+81 ;;^UTILITY(U,$J,358.6,7,14)
+82 ;;=S Y=$$DSPLYCPT^IBDFN9(Y)
+83 ;;^UTILITY(U,$J,358.6,7,15,0)
+84 ;;=^357.615I^0^0
+85 ;;^UTILITY(U,$J,358.6,7,17)
+86 ;;=D SLCTCPT^IBDFN12(.X)
+87 ;;^UTILITY(U,$J,358.6,7,18)
+88 ;;=S IBDF("OTHER")="81^I '$P(^(0),U,4)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"CPT Procedure Code")
+89 ;;^UTILITY(U,$J,358.6,7,19)
+90 ;;=D CPT^IBDFN14(X)
+91 ;;^UTILITY(U,$J,358.6,8,0)
+92 ;;=DG SELECT VISIT TYPE CPT PROCEDURES^VSIT^IBDFN4^SCHEDULING^^3^2^^1^^^1^9^^^^^^^^1
+93 ;;^UTILITY(U,$J,358.6,8,1,0)
+94 ;;=^^1^1^2941116^^^^
+95 ;;^UTILITY(U,$J,358.6,8,1,1,0)
+96 ;;=Allows for select of just Visit type CPT codes from the CPT file.
+97 ;;^UTILITY(U,$J,358.6,8,2)
+98 ;;=CODE^5^RECOMMENDED TEXT-SHORT NAME^40^RECOMMENDED HEADER^30^SHORT NAME FROM CPT FILE^28^^^^^^^^^1^1
+99 ;;^UTILITY(U,$J,358.6,8,3)
+100 ;;=SELECT TYPE OF VISIT CPT
+101 ;;^UTILITY(U,$J,358.6,8,11)
+102 ;;=D TESTVST^IBDFN7