IBDEI018 ; ; 18-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQR(358.5) 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,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.5,254,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,254,2,1,0)
;;=CLINIC^^I^^^5^1^30^4
;;^UTILITY(U,$J,358.5,254,2,2,0)
;;=DATE@TIME^^I^^^5^32^17^3
;;^UTILITY(U,$J,358.5,255,0)
;;=APPOINTMENT #1^67^31^0^1
;;^UTILITY(U,$J,358.5,255,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,255,2,1,0)
;;=CLINIC^^I^^^2^1^30^4
;;^UTILITY(U,$J,358.5,255,2,2,0)
;;=DATE@TIME^^I^^^2^32^17^3
;;^UTILITY(U,$J,358.5,256,0)
;;=APPOINTMENT #2^67^31^0^2
;;^UTILITY(U,$J,358.5,256,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,256,2,1,0)
;;=CLINIC^^I^^^3^1^30^4
;;^UTILITY(U,$J,358.5,256,2,2,0)
;;=DATE@TIME^^I^^^3^32^17^3
;;^UTILITY(U,$J,358.5,257,0)
;;=APPOINTMENT #3^67^31^0^3
;;^UTILITY(U,$J,358.5,257,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,257,2,1,0)
;;=CLINIC^^I^^^4^1^30^4
;;^UTILITY(U,$J,358.5,257,2,2,0)
;;=DATE@TIME^^I^^^4^32^17^3
;;^UTILITY(U,$J,358.5,258,0)
;;=APPOINTMENT #4^67^31^0^4
;;^UTILITY(U,$J,358.5,258,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,258,2,1,0)
;;=CLINIC^^I^^^5^1^30^4
;;^UTILITY(U,$J,358.5,258,2,2,0)
;;=DATE@TIME^^I^^^5^32^17^3
;;^UTILITY(U,$J,358.5,259,0)
;;=APPOINTMENT #5^67^31^0^5
;;^UTILITY(U,$J,358.5,259,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,259,2,1,0)
;;=CLINIC^^I^^^6^1^30^4
;;^UTILITY(U,$J,358.5,259,2,2,0)
;;=DATE@TIME^^I^^^6^32^17^3
;;^UTILITY(U,$J,358.5,260,0)
;;=APPOINTMENT #6^67^31^1^6
;;^UTILITY(U,$J,358.5,260,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,260,2,1,0)
;;=CLINIC^^I^^^7^1^30^4
;;^UTILITY(U,$J,358.5,260,2,2,0)
;;=DATE@TIME^^I^^^7^32^17^3
;;^UTILITY(U,$J,358.5,261,0)
;;=APPOINTMENT #1^68^32^0^1
;;^UTILITY(U,$J,358.5,261,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,261,2,1,0)
;;=CLINIC^^I^^^2^1^30^4
;;^UTILITY(U,$J,358.5,261,2,2,0)
;;=DATE@TIME^^I^^^2^32^17^3
;;^UTILITY(U,$J,358.5,262,0)
;;=APPOINTMENT #2^68^32^0^2
;;^UTILITY(U,$J,358.5,262,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,262,2,1,0)
;;=CLINIC^^I^^^3^1^30^4
;;^UTILITY(U,$J,358.5,262,2,2,0)
;;=DATE@TIME^^I^^^3^32^17^3
;;^UTILITY(U,$J,358.5,263,0)
;;=APPOINTMENT #3^68^32^0^3
;;^UTILITY(U,$J,358.5,263,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,263,2,1,0)
;;=CLINIC^^I^^^4^1^30^4
;;^UTILITY(U,$J,358.5,263,2,2,0)
;;=DATE@TIME^^I^^^4^32^17^3
;;^UTILITY(U,$J,358.5,264,0)
;;=APPOINTMENT #4^68^32^1^4
;;^UTILITY(U,$J,358.5,264,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,264,2,1,0)
;;=CLINIC^^I^^^5^1^30^4
;;^UTILITY(U,$J,358.5,264,2,2,0)
;;=DATE@TIME^^I^^^5^32^17^3
;;^UTILITY(U,$J,358.5,265,0)
;;=SC TREATMENT QUESTIONS^69^26
;;^UTILITY(U,$J,358.5,265,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,265,2,1,0)
;;=SERVICE CONNECTED?^^I^^^0^0^46^1
;;^UTILITY(U,$J,358.5,265,2,2,0)
;;=AO,IR OR EC?^^I^^^1^0^43^5
;;^UTILITY(U,$J,358.5,266,0)
;;=ORDERS^71^3
;;^UTILITY(U,$J,358.5,266,2,0)
;;=^357.52I^4^4
;;^UTILITY(U,$J,358.5,266,2,1,0)
;;=EKG ( )^^^3^1
;;^UTILITY(U,$J,358.5,266,2,2,0)
;;=X-Ray ( )^^^12^1^1^23^109^1
;;^UTILITY(U,$J,358.5,266,2,3,0)
;;=LAB ( )^^^3^3^3^12^60^1
;;^UTILITY(U,$J,358.5,266,2,4,0)
;;=,^^^73^3^3^75^57^1
;;^UTILITY(U,$J,358.5,267,0)
;;=CONSULTS^71^3
;;^UTILITY(U,$J,358.5,267,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,267,2,1,0)
;;=Consults ( )^^^3^5^5^17^55^1
;;^UTILITY(U,$J,358.5,267,2,2,0)
;;=,^^^73^5^5^75^57^1
;;^UTILITY(U,$J,358.5,268,0)
;;=DISPOSITION^71^3
;;^UTILITY(U,$J,358.5,268,2,0)
;;=^357.52I^3^3
;;^UTILITY(U,$J,358.5,268,2,1,0)
;;=Return Visit ( )^^^3^7^7^21^25^1
;;^UTILITY(U,$J,358.5,268,2,2,0)
;;=Discharge ( )^^^48^7
;;^UTILITY(U,$J,358.5,268,2,3,0)
;;=Scheduled Admission ( )^^^67^7^7^92^40^1
IBDEI018 ; ; 18-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQR(358.5)
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,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,358.5,254,2,0)
+2 ;;=^357.52I^2^2
+3 ;;^UTILITY(U,$J,358.5,254,2,1,0)
+4 ;;=CLINIC^^I^^^5^1^30^4
+5 ;;^UTILITY(U,$J,358.5,254,2,2,0)
+6 ;;=DATE@TIME^^I^^^5^32^17^3
+7 ;;^UTILITY(U,$J,358.5,255,0)
+8 ;;=APPOINTMENT #1^67^31^0^1
+9 ;;^UTILITY(U,$J,358.5,255,2,0)
+10 ;;=^357.52I^2^2
+11 ;;^UTILITY(U,$J,358.5,255,2,1,0)
+12 ;;=CLINIC^^I^^^2^1^30^4
+13 ;;^UTILITY(U,$J,358.5,255,2,2,0)
+14 ;;=DATE@TIME^^I^^^2^32^17^3
+15 ;;^UTILITY(U,$J,358.5,256,0)
+16 ;;=APPOINTMENT #2^67^31^0^2
+17 ;;^UTILITY(U,$J,358.5,256,2,0)
+18 ;;=^357.52I^2^2
+19 ;;^UTILITY(U,$J,358.5,256,2,1,0)
+20 ;;=CLINIC^^I^^^3^1^30^4
+21 ;;^UTILITY(U,$J,358.5,256,2,2,0)
+22 ;;=DATE@TIME^^I^^^3^32^17^3
+23 ;;^UTILITY(U,$J,358.5,257,0)
+24 ;;=APPOINTMENT #3^67^31^0^3
+25 ;;^UTILITY(U,$J,358.5,257,2,0)
+26 ;;=^357.52I^2^2
+27 ;;^UTILITY(U,$J,358.5,257,2,1,0)
+28 ;;=CLINIC^^I^^^4^1^30^4
+29 ;;^UTILITY(U,$J,358.5,257,2,2,0)
+30 ;;=DATE@TIME^^I^^^4^32^17^3
+31 ;;^UTILITY(U,$J,358.5,258,0)
+32 ;;=APPOINTMENT #4^67^31^0^4
+33 ;;^UTILITY(U,$J,358.5,258,2,0)
+34 ;;=^357.52I^2^2
+35 ;;^UTILITY(U,$J,358.5,258,2,1,0)
+36 ;;=CLINIC^^I^^^5^1^30^4
+37 ;;^UTILITY(U,$J,358.5,258,2,2,0)
+38 ;;=DATE@TIME^^I^^^5^32^17^3
+39 ;;^UTILITY(U,$J,358.5,259,0)
+40 ;;=APPOINTMENT #5^67^31^0^5
+41 ;;^UTILITY(U,$J,358.5,259,2,0)
+42 ;;=^357.52I^2^2
+43 ;;^UTILITY(U,$J,358.5,259,2,1,0)
+44 ;;=CLINIC^^I^^^6^1^30^4
+45 ;;^UTILITY(U,$J,358.5,259,2,2,0)
+46 ;;=DATE@TIME^^I^^^6^32^17^3
+47 ;;^UTILITY(U,$J,358.5,260,0)
+48 ;;=APPOINTMENT #6^67^31^1^6
+49 ;;^UTILITY(U,$J,358.5,260,2,0)
+50 ;;=^357.52I^2^2
+51 ;;^UTILITY(U,$J,358.5,260,2,1,0)
+52 ;;=CLINIC^^I^^^7^1^30^4
+53 ;;^UTILITY(U,$J,358.5,260,2,2,0)
+54 ;;=DATE@TIME^^I^^^7^32^17^3
+55 ;;^UTILITY(U,$J,358.5,261,0)
+56 ;;=APPOINTMENT #1^68^32^0^1
+57 ;;^UTILITY(U,$J,358.5,261,2,0)
+58 ;;=^357.52I^2^2
+59 ;;^UTILITY(U,$J,358.5,261,2,1,0)
+60 ;;=CLINIC^^I^^^2^1^30^4
+61 ;;^UTILITY(U,$J,358.5,261,2,2,0)
+62 ;;=DATE@TIME^^I^^^2^32^17^3
+63 ;;^UTILITY(U,$J,358.5,262,0)
+64 ;;=APPOINTMENT #2^68^32^0^2
+65 ;;^UTILITY(U,$J,358.5,262,2,0)
+66 ;;=^357.52I^2^2
+67 ;;^UTILITY(U,$J,358.5,262,2,1,0)
+68 ;;=CLINIC^^I^^^3^1^30^4
+69 ;;^UTILITY(U,$J,358.5,262,2,2,0)
+70 ;;=DATE@TIME^^I^^^3^32^17^3
+71 ;;^UTILITY(U,$J,358.5,263,0)
+72 ;;=APPOINTMENT #3^68^32^0^3
+73 ;;^UTILITY(U,$J,358.5,263,2,0)
+74 ;;=^357.52I^2^2
+75 ;;^UTILITY(U,$J,358.5,263,2,1,0)
+76 ;;=CLINIC^^I^^^4^1^30^4
+77 ;;^UTILITY(U,$J,358.5,263,2,2,0)
+78 ;;=DATE@TIME^^I^^^4^32^17^3
+79 ;;^UTILITY(U,$J,358.5,264,0)
+80 ;;=APPOINTMENT #4^68^32^1^4
+81 ;;^UTILITY(U,$J,358.5,264,2,0)
+82 ;;=^357.52I^2^2
+83 ;;^UTILITY(U,$J,358.5,264,2,1,0)
+84 ;;=CLINIC^^I^^^5^1^30^4
+85 ;;^UTILITY(U,$J,358.5,264,2,2,0)
+86 ;;=DATE@TIME^^I^^^5^32^17^3
+87 ;;^UTILITY(U,$J,358.5,265,0)
+88 ;;=SC TREATMENT QUESTIONS^69^26
+89 ;;^UTILITY(U,$J,358.5,265,2,0)
+90 ;;=^357.52I^2^2
+91 ;;^UTILITY(U,$J,358.5,265,2,1,0)
+92 ;;=SERVICE CONNECTED?^^I^^^0^0^46^1
+93 ;;^UTILITY(U,$J,358.5,265,2,2,0)
+94 ;;=AO,IR OR EC?^^I^^^1^0^43^5
+95 ;;^UTILITY(U,$J,358.5,266,0)
+96 ;;=ORDERS^71^3
+97 ;;^UTILITY(U,$J,358.5,266,2,0)
+98 ;;=^357.52I^4^4
+99 ;;^UTILITY(U,$J,358.5,266,2,1,0)
+100 ;;=EKG ( )^^^3^1
+101 ;;^UTILITY(U,$J,358.5,266,2,2,0)
+102 ;;=X-Ray ( )^^^12^1^1^23^109^1
+103 ;;^UTILITY(U,$J,358.5,266,2,3,0)
+104 ;;=LAB ( )^^^3^3^3^12^60^1
+105 ;;^UTILITY(U,$J,358.5,266,2,4,0)
+106 ;;=,^^^73^3^3^75^57^1
+107 ;;^UTILITY(U,$J,358.5,267,0)
+108 ;;=CONSULTS^71^3
+109 ;;^UTILITY(U,$J,358.5,267,2,0)
+110 ;;=^357.52I^2^2
+111 ;;^UTILITY(U,$J,358.5,267,2,1,0)
+112 ;;=Consults ( )^^^3^5^5^17^55^1
+113 ;;^UTILITY(U,$J,358.5,267,2,2,0)
+114 ;;=,^^^73^5^5^75^57^1
+115 ;;^UTILITY(U,$J,358.5,268,0)
+116 ;;=DISPOSITION^71^3
+117 ;;^UTILITY(U,$J,358.5,268,2,0)
+118 ;;=^357.52I^3^3
+119 ;;^UTILITY(U,$J,358.5,268,2,1,0)
+120 ;;=Return Visit ( )^^^3^7^7^21^25^1
+121 ;;^UTILITY(U,$J,358.5,268,2,2,0)
+122 ;;=Discharge ( )^^^48^7
+123 ;;^UTILITY(U,$J,358.5,268,2,3,0)
+124 ;;=Scheduled Admission ( )^^^67^7^7^92^40^1