IBINI08E ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQR(357.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,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,357.6,27,3)
;;=CLINIC SCHEDULING
;;^UTILITY(U,$J,357.6,27,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,27,7,1,0)
;;=IBCLINIC
;;^UTILITY(U,$J,357.6,28,0)
;;=SD APPOINTMENT DATE/TIME^APPT^IBDFN2^SCHEDULING^1^2^2^^1^^^1^^
;;^UTILITY(U,$J,357.6,28,1,0)
;;=^^2^2^2930602^^^
;;^UTILITY(U,$J,357.6,28,1,1,0)
;;=
;;^UTILITY(U,$J,357.6,28,1,2,0)
;;=Returns the date/time of the appointment.
;;^UTILITY(U,$J,357.6,28,2)
;;=APPT. DATE/TIME^18^APPT. DATE (MMM DD,YYYY)^12^APPT. TIME (HH:MM)^5
;;^UTILITY(U,$J,357.6,28,3)
;;=APPOINTMENT DATE TIME SCHEDULING
;;^UTILITY(U,$J,357.6,28,7,0)
;;=^357.67^3^3
;;^UTILITY(U,$J,357.6,28,7,1,0)
;;=IBAPPT
;;^UTILITY(U,$J,357.6,28,7,2,0)
;;=DFN
;;^UTILITY(U,$J,357.6,28,7,3,0)
;;=IBCLINIC
;;^UTILITY(U,$J,357.6,30,0)
;;=DPT PATIENT ELIGIBILITY DATA^ELIG^IBDFN^PATIENT FILE^1^2^2^^1^^^1^^
;;^UTILITY(U,$J,357.6,30,1,0)
;;=^^8^8^2931015^^^^
;;^UTILITY(U,$J,357.6,30,1,1,0)
;;=Returns patient eligibility data. Data returned is:
;;^UTILITY(U,$J,357.6,30,1,2,0)
;;= eligibility code in external form
;;^UTILITY(U,$J,357.6,30,1,3,0)
;;= period of service
;;^UTILITY(U,$J,357.6,30,1,4,0)
;;= service connected? YES/NO
;;^UTILITY(U,$J,357.6,30,1,5,0)
;;= veteran? YES/NO
;;^UTILITY(U,$J,357.6,30,1,6,0)
;;= eligible for care? YES/NO
;;^UTILITY(U,$J,357.6,30,1,7,0)
;;= type of patient
;;^UTILITY(U,$J,357.6,30,1,8,0)
;;= SC%
;;^UTILITY(U,$J,357.6,30,2)
;;=ELIGIBILTY CODE/EXTERNAL FORM^30^PERIOD OF SERVICE^25^SERVICE CONNECTED?^3^VETERAN?^3^ELIGIBLE FOR CARE?^3^TYPE OF PATIENT^20^SC %^3
;;^UTILITY(U,$J,357.6,30,3)
;;=ELIGIBLE ELIGIBILITY PATIENT PERIOD SERVICE CONNECTED VETERAN STATUS
;;^UTILITY(U,$J,357.6,30,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,30,7,1,0)
;;=DFN
;;^UTILITY(U,$J,357.6,31,0)
;;=DPT SERVICE HISTORY RELATED DATA^ELIG^IBDFN^PATIENT FILE^1^2^2^0^1^^^1^^
;;^UTILITY(U,$J,357.6,31,1,0)
;;=^^7^7^2931015^^^^
;;^UTILITY(U,$J,357.6,31,1,1,0)
;;=For displaying service history data. Data returned:
;;^UTILITY(U,$J,357.6,31,1,2,0)
;;= Vietnam service? YES/NO
;;^UTILITY(U,$J,357.6,31,1,3,0)
;;= Agent Orange exposure? YES/NO
;;^UTILITY(U,$J,357.6,31,1,4,0)
;;= radiation exposure? YES/NO
;;^UTILITY(U,$J,357.6,31,1,5,0)
;;= combat service? YES/NO
;;^UTILITY(U,$J,357.6,31,1,6,0)
;;= POW? YES/NO
;;^UTILITY(U,$J,357.6,31,1,7,0)
;;= environmental contaminants exposure? YES/NO
;;^UTILITY(U,$J,357.6,31,2)
;;=VIETNAM SERVICE?^3^AGENT ORANGE EXPOSURE?^3^RADIATION EXPOSURE?^3^POW?^3^COMBAT SERVICE?^3^ENVIRONMENTAL CONTAMINANTS?^3
;;^UTILITY(U,$J,357.6,31,3)
;;=PATIENT MAS VIETNAM SERVICE AGENT ORANGE RADIATION COMBAT POW HISTORY ENVIRONMENTAL CONTAMINANT PERSIAN
;;^UTILITY(U,$J,357.6,31,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,31,7,1,0)
;;=DFN
;;^UTILITY(U,$J,357.6,32,0)
;;=DPT PATIENT'S MEANS TEST DATA^MT^IBDFN2^MAS^1^2^2^^1^^^1^^
;;^UTILITY(U,$J,357.6,32,1,0)
;;=^^5^5^2931015^^^
;;^UTILITY(U,$J,357.6,32,1,1,0)
;;=Returns the patient's current means test category and the date of the most
;;^UTILITY(U,$J,357.6,32,1,2,0)
;;=recent means test. Data returned:
;;^UTILITY(U,$J,357.6,32,1,3,0)
;;= means test category
;;^UTILITY(U,$J,357.6,32,1,4,0)
;;= means test code
;;^UTILITY(U,$J,357.6,32,1,5,0)
;;= date of last means test
;;^UTILITY(U,$J,357.6,32,2)
;;=MEANS TEST CATEGORY^20^DATE OF LAST MEANS TEST^12^MEANS TEST CODE^1
;;^UTILITY(U,$J,357.6,32,3)
;;=MEANS TEST CATEGORY PATIENT MAS
;;^UTILITY(U,$J,357.6,32,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,32,7,1,0)
;;=DFN
IBINI08E ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQR(357.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,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,357.6,27,3)
+2 ;;=CLINIC SCHEDULING
+3 ;;^UTILITY(U,$J,357.6,27,7,0)
+4 ;;=^357.67^1^1
+5 ;;^UTILITY(U,$J,357.6,27,7,1,0)
+6 ;;=IBCLINIC
+7 ;;^UTILITY(U,$J,357.6,28,0)
+8 ;;=SD APPOINTMENT DATE/TIME^APPT^IBDFN2^SCHEDULING^1^2^2^^1^^^1^^
+9 ;;^UTILITY(U,$J,357.6,28,1,0)
+10 ;;=^^2^2^2930602^^^
+11 ;;^UTILITY(U,$J,357.6,28,1,1,0)
+12 ;;=
+13 ;;^UTILITY(U,$J,357.6,28,1,2,0)
+14 ;;=Returns the date/time of the appointment.
+15 ;;^UTILITY(U,$J,357.6,28,2)
+16 ;;=APPT. DATE/TIME^18^APPT. DATE (MMM DD,YYYY)^12^APPT. TIME (HH:MM)^5
+17 ;;^UTILITY(U,$J,357.6,28,3)
+18 ;;=APPOINTMENT DATE TIME SCHEDULING
+19 ;;^UTILITY(U,$J,357.6,28,7,0)
+20 ;;=^357.67^3^3
+21 ;;^UTILITY(U,$J,357.6,28,7,1,0)
+22 ;;=IBAPPT
+23 ;;^UTILITY(U,$J,357.6,28,7,2,0)
+24 ;;=DFN
+25 ;;^UTILITY(U,$J,357.6,28,7,3,0)
+26 ;;=IBCLINIC
+27 ;;^UTILITY(U,$J,357.6,30,0)
+28 ;;=DPT PATIENT ELIGIBILITY DATA^ELIG^IBDFN^PATIENT FILE^1^2^2^^1^^^1^^
+29 ;;^UTILITY(U,$J,357.6,30,1,0)
+30 ;;=^^8^8^2931015^^^^
+31 ;;^UTILITY(U,$J,357.6,30,1,1,0)
+32 ;;=Returns patient eligibility data. Data returned is:
+33 ;;^UTILITY(U,$J,357.6,30,1,2,0)
+34 ;;= eligibility code in external form
+35 ;;^UTILITY(U,$J,357.6,30,1,3,0)
+36 ;;= period of service
+37 ;;^UTILITY(U,$J,357.6,30,1,4,0)
+38 ;;= service connected? YES/NO
+39 ;;^UTILITY(U,$J,357.6,30,1,5,0)
+40 ;;= veteran? YES/NO
+41 ;;^UTILITY(U,$J,357.6,30,1,6,0)
+42 ;;= eligible for care? YES/NO
+43 ;;^UTILITY(U,$J,357.6,30,1,7,0)
+44 ;;= type of patient
+45 ;;^UTILITY(U,$J,357.6,30,1,8,0)
+46 ;;= SC%
+47 ;;^UTILITY(U,$J,357.6,30,2)
+48 ;;=ELIGIBILTY CODE/EXTERNAL FORM^30^PERIOD OF SERVICE^25^SERVICE CONNECTED?^3^VETERAN?^3^ELIGIBLE FOR CARE?^3^TYPE OF PATIENT^20^SC %^3
+49 ;;^UTILITY(U,$J,357.6,30,3)
+50 ;;=ELIGIBLE ELIGIBILITY PATIENT PERIOD SERVICE CONNECTED VETERAN STATUS
+51 ;;^UTILITY(U,$J,357.6,30,7,0)
+52 ;;=^357.67^1^1
+53 ;;^UTILITY(U,$J,357.6,30,7,1,0)
+54 ;;=DFN
+55 ;;^UTILITY(U,$J,357.6,31,0)
+56 ;;=DPT SERVICE HISTORY RELATED DATA^ELIG^IBDFN^PATIENT FILE^1^2^2^0^1^^^1^^
+57 ;;^UTILITY(U,$J,357.6,31,1,0)
+58 ;;=^^7^7^2931015^^^^
+59 ;;^UTILITY(U,$J,357.6,31,1,1,0)
+60 ;;=For displaying service history data. Data returned:
+61 ;;^UTILITY(U,$J,357.6,31,1,2,0)
+62 ;;= Vietnam service? YES/NO
+63 ;;^UTILITY(U,$J,357.6,31,1,3,0)
+64 ;;= Agent Orange exposure? YES/NO
+65 ;;^UTILITY(U,$J,357.6,31,1,4,0)
+66 ;;= radiation exposure? YES/NO
+67 ;;^UTILITY(U,$J,357.6,31,1,5,0)
+68 ;;= combat service? YES/NO
+69 ;;^UTILITY(U,$J,357.6,31,1,6,0)
+70 ;;= POW? YES/NO
+71 ;;^UTILITY(U,$J,357.6,31,1,7,0)
+72 ;;= environmental contaminants exposure? YES/NO
+73 ;;^UTILITY(U,$J,357.6,31,2)
+74 ;;=VIETNAM SERVICE?^3^AGENT ORANGE EXPOSURE?^3^RADIATION EXPOSURE?^3^POW?^3^COMBAT SERVICE?^3^ENVIRONMENTAL CONTAMINANTS?^3
+75 ;;^UTILITY(U,$J,357.6,31,3)
+76 ;;=PATIENT MAS VIETNAM SERVICE AGENT ORANGE RADIATION COMBAT POW HISTORY ENVIRONMENTAL CONTAMINANT PERSIAN
+77 ;;^UTILITY(U,$J,357.6,31,7,0)
+78 ;;=^357.67^1^1
+79 ;;^UTILITY(U,$J,357.6,31,7,1,0)
+80 ;;=DFN
+81 ;;^UTILITY(U,$J,357.6,32,0)
+82 ;;=DPT PATIENT'S MEANS TEST DATA^MT^IBDFN2^MAS^1^2^2^^1^^^1^^
+83 ;;^UTILITY(U,$J,357.6,32,1,0)
+84 ;;=^^5^5^2931015^^^
+85 ;;^UTILITY(U,$J,357.6,32,1,1,0)
+86 ;;=Returns the patient's current means test category and the date of the most
+87 ;;^UTILITY(U,$J,357.6,32,1,2,0)
+88 ;;=recent means test. Data returned:
+89 ;;^UTILITY(U,$J,357.6,32,1,3,0)
+90 ;;= means test category
+91 ;;^UTILITY(U,$J,357.6,32,1,4,0)
+92 ;;= means test code
+93 ;;^UTILITY(U,$J,357.6,32,1,5,0)
+94 ;;= date of last means test
+95 ;;^UTILITY(U,$J,357.6,32,2)
+96 ;;=MEANS TEST CATEGORY^20^DATE OF LAST MEANS TEST^12^MEANS TEST CODE^1
+97 ;;^UTILITY(U,$J,357.6,32,3)
+98 ;;=MEANS TEST CATEGORY PATIENT MAS
+99 ;;^UTILITY(U,$J,357.6,32,7,0)
+100 ;;=^357.67^1^1
+101 ;;^UTILITY(U,$J,357.6,32,7,1,0)
+102 ;;=DFN