IBINI0B3 ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQR(399.1) 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,399.1)
;;=^DGCR(399.1,
;;^UTILITY(U,$J,399.1,0)
;;=MCCR UTILITY^399.1I^45^47
;;^UTILITY(U,$J,399.1,1,0)
;;=ALCOHOL AND DRUG TREATMENT^8^ETOH/DRUG^^1^^23^45
;;^UTILITY(U,$J,399.1,2,0)
;;=BLIND REHABILITATION^7^BLIND REHAB^^1^^21^45
;;^UTILITY(U,$J,399.1,3,0)
;;=GENERAL MEDICAL CARE^1^GEN MED CARE^^1^^15^45
;;^UTILITY(U,$J,399.1,4,0)
;;=INTERMEDIATE CARE^4^INTERMED CARE^^1^^19^45
;;^UTILITY(U,$J,399.1,5,0)
;;=NEUROLOGY^5^NEURO^^1^^22^45
;;^UTILITY(U,$J,399.1,6,0)
;;=NURSING HOME CARE^10^NURSING HOME^^1^^24^48
;;^UTILITY(U,$J,399.1,7,0)
;;=OUTPATIENT VISIT^12^OUTPATIENT^^1^^51
;;^UTILITY(U,$J,399.1,8,0)
;;=PRESCRIPTION^9^PRESCRIPT^^1
;;^UTILITY(U,$J,399.1,9,0)
;;=PSYCHIATRIC CARE^3^PSYCH CARE^^1^^18^45
;;^UTILITY(U,$J,399.1,10,0)
;;=REHABILITATION MEDICINE^6^REHAB MED^^1^^20^45
;;^UTILITY(U,$J,399.1,11,0)
;;=SPINAL CORD INJURY CARE^11^SCI CARE^^1^^17^45
;;^UTILITY(U,$J,399.1,12,0)
;;=SURGICAL CARE^2^SURG CARE^^1^^16^45
;;^UTILITY(U,$J,399.1,13,0)
;;=DISCHARGED TO ANOTHER SHORT-TERM GENERAL HOSPITAL^02^^^^1
;;^UTILITY(U,$J,399.1,14,0)
;;=DISCHARGED TO ANOTHER TYPE OF FACILITY^05^^^^1
;;^UTILITY(U,$J,399.1,15,0)
;;=DISCHARGED TO HOME OR SELF CARE^01^^^^1
;;^UTILITY(U,$J,399.1,16,0)
;;=DISCHARGED TO HOME UNDER CARE OF HOME HEALTH CARE SERVICE^06^^^^1
;;^UTILITY(U,$J,399.1,17,0)
;;=DISCHARGED TO INTERMEDIATE CARE FACILITY^04^^^^1
;;^UTILITY(U,$J,399.1,18,0)
;;=DISCHARGED TO SKILLED NURSING FACILITY^03^^^^1
;;^UTILITY(U,$J,399.1,19,0)
;;=EXPIRED^20^^^^1
;;^UTILITY(U,$J,399.1,20,0)
;;=LEFT AGAINST MEDICAL ADVICE^07^^^^1
;;^UTILITY(U,$J,399.1,21,0)
;;=STILL PATIENT^30^^^^1
;;^UTILITY(U,$J,399.1,22,0)
;;=LAST MENSTRUAL PERIOD^10^^1
;;^UTILITY(U,$J,399.1,23,0)
;;=ONSET OF SYMPTOMS/ILLNESS^11^^1
;;^UTILITY(U,$J,399.1,24,0)
;;=AUTO ACCIDENT ^01^^1^^^^^2
;;^UTILITY(U,$J,399.1,25,0)
;;=AUTO ACCIDENT/NO FAULT INSURANCE INVOLVED^02^^1^^^^^2^
;;^UTILITY(U,$J,399.1,26,0)
;;=ACCIDENT/TORT LIABILITY ^03^^1^^^^^
;;^UTILITY(U,$J,399.1,27,0)
;;=ACCIDENT/EMPLOYMENT RELATED ^04^^1^^^^^1
;;^UTILITY(U,$J,399.1,28,0)
;;=OTHER ACCIDENT ^05^^1^^^^^3
;;^UTILITY(U,$J,399.1,29,0)
;;=CRIME VICTIM ^06^^1
;;^UTILITY(U,$J,399.1,30,0)
;;=NON-VA CARE^^NON-VA^^1
;;^UTILITY(U,$J,399.1,31,0)
;;=OUTPATIENT DENTAL^^OPT DNTL^^1
;;^UTILITY(U,$J,399.1,32,0)
;;=DISCHARGED TO HOME UNDER CARE OF A HOME IV PROVIDER^08^^^^1
;;^UTILITY(U,$J,399.1,33,0)
;;=PRIOR STAY DATES^71^^1^^^^^^1
;;^UTILITY(U,$J,399.1,34,0)
;;=QUALIFYING STAY DATES FOR SNF USE ONLY^70^^1^^^^^^1
;;^UTILITY(U,$J,399.1,35,0)
;;=FIRST/LAST VISIT^72^^1^^^^^^1
;;^UTILITY(U,$J,399.1,36,0)
;;=BENEFIT ELIGIBILITY PERIOD^73^^1^^^^^^1
;;^UTILITY(U,$J,399.1,37,0)
;;=NONCOVERED LEVEL OF CARE^74^^1^^^^^^1
;;^UTILITY(U,$J,399.1,38,0)
;;=SNF LEVEL OF CARE^75^^1^^^^^^1
;;^UTILITY(U,$J,399.1,39,0)
;;=PATIENT LIABILITY^76^^1^^^^^^1
;;^UTILITY(U,$J,399.1,40,0)
;;=PROVIDER LIABILITY PERIOD^77^^1^^^^^^1
;;^UTILITY(U,$J,399.1,41,0)
;;=SNF PRIOR STAY DATES^78^^1^^^^^^1
;;^UTILITY(U,$J,399.1,42,0)
;;=PAYER CODE^79^^1^^^^^^1
;;^UTILITY(U,$J,399.1,43,0)
;;=PRO/UR APPROVED STAY DATES^M0^^1^^^^^^1
;;^UTILITY(U,$J,399.1,44,0)
;;=INPATIENT PROFESSIONAL COMPONENT CHARGES, COMBINED BILLED^04^^^^^^^^^1
;;^UTILITY(U,$J,399.1,45,0)
;;=NO FAULT, INCLUDING AUTO/OTHER^14^^^^^^^^^1^1
;;^UTILITY(U,$J,399.1,46,0)
;;=WORKER'S COMPENSATION^15^^^^^^^^^1^
;;^UTILITY(U,$J,399.1,47,0)
;;=ACCIDENT HOUR^45^^^^^^^^^1
IBINI0B3 ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQR(399.1)
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,399.1)
+2 ;;=^DGCR(399.1,
+3 ;;^UTILITY(U,$J,399.1,0)
+4 ;;=MCCR UTILITY^399.1I^45^47
+5 ;;^UTILITY(U,$J,399.1,1,0)
+6 ;;=ALCOHOL AND DRUG TREATMENT^8^ETOH/DRUG^^1^^23^45
+7 ;;^UTILITY(U,$J,399.1,2,0)
+8 ;;=BLIND REHABILITATION^7^BLIND REHAB^^1^^21^45
+9 ;;^UTILITY(U,$J,399.1,3,0)
+10 ;;=GENERAL MEDICAL CARE^1^GEN MED CARE^^1^^15^45
+11 ;;^UTILITY(U,$J,399.1,4,0)
+12 ;;=INTERMEDIATE CARE^4^INTERMED CARE^^1^^19^45
+13 ;;^UTILITY(U,$J,399.1,5,0)
+14 ;;=NEUROLOGY^5^NEURO^^1^^22^45
+15 ;;^UTILITY(U,$J,399.1,6,0)
+16 ;;=NURSING HOME CARE^10^NURSING HOME^^1^^24^48
+17 ;;^UTILITY(U,$J,399.1,7,0)
+18 ;;=OUTPATIENT VISIT^12^OUTPATIENT^^1^^51
+19 ;;^UTILITY(U,$J,399.1,8,0)
+20 ;;=PRESCRIPTION^9^PRESCRIPT^^1
+21 ;;^UTILITY(U,$J,399.1,9,0)
+22 ;;=PSYCHIATRIC CARE^3^PSYCH CARE^^1^^18^45
+23 ;;^UTILITY(U,$J,399.1,10,0)
+24 ;;=REHABILITATION MEDICINE^6^REHAB MED^^1^^20^45
+25 ;;^UTILITY(U,$J,399.1,11,0)
+26 ;;=SPINAL CORD INJURY CARE^11^SCI CARE^^1^^17^45
+27 ;;^UTILITY(U,$J,399.1,12,0)
+28 ;;=SURGICAL CARE^2^SURG CARE^^1^^16^45
+29 ;;^UTILITY(U,$J,399.1,13,0)
+30 ;;=DISCHARGED TO ANOTHER SHORT-TERM GENERAL HOSPITAL^02^^^^1
+31 ;;^UTILITY(U,$J,399.1,14,0)
+32 ;;=DISCHARGED TO ANOTHER TYPE OF FACILITY^05^^^^1
+33 ;;^UTILITY(U,$J,399.1,15,0)
+34 ;;=DISCHARGED TO HOME OR SELF CARE^01^^^^1
+35 ;;^UTILITY(U,$J,399.1,16,0)
+36 ;;=DISCHARGED TO HOME UNDER CARE OF HOME HEALTH CARE SERVICE^06^^^^1
+37 ;;^UTILITY(U,$J,399.1,17,0)
+38 ;;=DISCHARGED TO INTERMEDIATE CARE FACILITY^04^^^^1
+39 ;;^UTILITY(U,$J,399.1,18,0)
+40 ;;=DISCHARGED TO SKILLED NURSING FACILITY^03^^^^1
+41 ;;^UTILITY(U,$J,399.1,19,0)
+42 ;;=EXPIRED^20^^^^1
+43 ;;^UTILITY(U,$J,399.1,20,0)
+44 ;;=LEFT AGAINST MEDICAL ADVICE^07^^^^1
+45 ;;^UTILITY(U,$J,399.1,21,0)
+46 ;;=STILL PATIENT^30^^^^1
+47 ;;^UTILITY(U,$J,399.1,22,0)
+48 ;;=LAST MENSTRUAL PERIOD^10^^1
+49 ;;^UTILITY(U,$J,399.1,23,0)
+50 ;;=ONSET OF SYMPTOMS/ILLNESS^11^^1
+51 ;;^UTILITY(U,$J,399.1,24,0)
+52 ;;=AUTO ACCIDENT ^01^^1^^^^^2
+53 ;;^UTILITY(U,$J,399.1,25,0)
+54 ;;=AUTO ACCIDENT/NO FAULT INSURANCE INVOLVED^02^^1^^^^^2^
+55 ;;^UTILITY(U,$J,399.1,26,0)
+56 ;;=ACCIDENT/TORT LIABILITY ^03^^1^^^^^
+57 ;;^UTILITY(U,$J,399.1,27,0)
+58 ;;=ACCIDENT/EMPLOYMENT RELATED ^04^^1^^^^^1
+59 ;;^UTILITY(U,$J,399.1,28,0)
+60 ;;=OTHER ACCIDENT ^05^^1^^^^^3
+61 ;;^UTILITY(U,$J,399.1,29,0)
+62 ;;=CRIME VICTIM ^06^^1
+63 ;;^UTILITY(U,$J,399.1,30,0)
+64 ;;=NON-VA CARE^^NON-VA^^1
+65 ;;^UTILITY(U,$J,399.1,31,0)
+66 ;;=OUTPATIENT DENTAL^^OPT DNTL^^1
+67 ;;^UTILITY(U,$J,399.1,32,0)
+68 ;;=DISCHARGED TO HOME UNDER CARE OF A HOME IV PROVIDER^08^^^^1
+69 ;;^UTILITY(U,$J,399.1,33,0)
+70 ;;=PRIOR STAY DATES^71^^1^^^^^^1
+71 ;;^UTILITY(U,$J,399.1,34,0)
+72 ;;=QUALIFYING STAY DATES FOR SNF USE ONLY^70^^1^^^^^^1
+73 ;;^UTILITY(U,$J,399.1,35,0)
+74 ;;=FIRST/LAST VISIT^72^^1^^^^^^1
+75 ;;^UTILITY(U,$J,399.1,36,0)
+76 ;;=BENEFIT ELIGIBILITY PERIOD^73^^1^^^^^^1
+77 ;;^UTILITY(U,$J,399.1,37,0)
+78 ;;=NONCOVERED LEVEL OF CARE^74^^1^^^^^^1
+79 ;;^UTILITY(U,$J,399.1,38,0)
+80 ;;=SNF LEVEL OF CARE^75^^1^^^^^^1
+81 ;;^UTILITY(U,$J,399.1,39,0)
+82 ;;=PATIENT LIABILITY^76^^1^^^^^^1
+83 ;;^UTILITY(U,$J,399.1,40,0)
+84 ;;=PROVIDER LIABILITY PERIOD^77^^1^^^^^^1
+85 ;;^UTILITY(U,$J,399.1,41,0)
+86 ;;=SNF PRIOR STAY DATES^78^^1^^^^^^1
+87 ;;^UTILITY(U,$J,399.1,42,0)
+88 ;;=PAYER CODE^79^^1^^^^^^1
+89 ;;^UTILITY(U,$J,399.1,43,0)
+90 ;;=PRO/UR APPROVED STAY DATES^M0^^1^^^^^^1
+91 ;;^UTILITY(U,$J,399.1,44,0)
+92 ;;=INPATIENT PROFESSIONAL COMPONENT CHARGES, COMBINED BILLED^04^^^^^^^^^1
+93 ;;^UTILITY(U,$J,399.1,45,0)
+94 ;;=NO FAULT, INCLUDING AUTO/OTHER^14^^^^^^^^^1^1
+95 ;;^UTILITY(U,$J,399.1,46,0)
+96 ;;=WORKER'S COMPENSATION^15^^^^^^^^^1^
+97 ;;^UTILITY(U,$J,399.1,47,0)
+98 ;;=ACCIDENT HOUR^45^^^^^^^^^1