IBINI03J ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQR(353.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,353.1)
;;=^IBE(353.1,
;;^UTILITY(U,$J,353.1,0)
;;=PLACE OF SERVICE^353.1I^27^27
;;^UTILITY(U,$J,353.1,1,0)
;;=11^OFFICE^OFFICE
;;^UTILITY(U,$J,353.1,2,0)
;;=12^HOME^HOME
;;^UTILITY(U,$J,353.1,3,0)
;;=21^INPATIENT HOSPITAL^INPATIENT HOSPITAL
;;^UTILITY(U,$J,353.1,4,0)
;;=22^OUTPATIENT HOSPITAL^OUTPATIENT HOSPITAL
;;^UTILITY(U,$J,353.1,5,0)
;;=23^EMERGENCY ROOM - HOSPITAL^HOSP. EMERGENCY RM.
;;^UTILITY(U,$J,353.1,6,0)
;;=24^AMBULATORY SURGICAL CENTER^AMB. SURG. CENTER
;;^UTILITY(U,$J,353.1,7,0)
;;=25^BIRTHING CENTER^BIRTHING CENTER
;;^UTILITY(U,$J,353.1,8,0)
;;=26^MILITARY TREATMENT FACILITY^MILITARY TRTMT FAC.
;;^UTILITY(U,$J,353.1,9,0)
;;=31^SKILLED NURSING FACILITY^SKILLED NURSING FAC.
;;^UTILITY(U,$J,353.1,10,0)
;;=32^NURSING FACILITY^NURSING FACILITY
;;^UTILITY(U,$J,353.1,11,0)
;;=33^CUSTODIAL CARE FACILITY^CUSTODIAL CARE FAC.
;;^UTILITY(U,$J,353.1,12,0)
;;=34^HOSPICE^HOSPICE
;;^UTILITY(U,$J,353.1,13,0)
;;=41^AMBULANCE - LAND^AMBULANCE - LAND
;;^UTILITY(U,$J,353.1,14,0)
;;=42^AMBULANCE - AIR OR WATER^AMBULANCE AIR/WATER
;;^UTILITY(U,$J,353.1,15,0)
;;=51^INPATIENT PSYCHIATRIC FACILITY^INPT PSYCH. FAC
;;^UTILITY(U,$J,353.1,16,0)
;;=52^PSY. FAC. PARTIAL HOSPITALIZATION^PSY FAC PART HOSP
;;^UTILITY(U,$J,353.1,17,0)
;;=53^COMMUNITY MENTAL HEALTH CENTER^COMM MENTAL HLTH CTR
;;^UTILITY(U,$J,353.1,18,0)
;;=54^INTERMEDIATE CARE FAC/MENTALLY RETARDED^INTER. CARE FAC/MR
;;^UTILITY(U,$J,353.1,19,0)
;;=55^RESIDENTIAL SUBSTANCE ABUSE TREATMENT FACILITY^RES. SUB. ABUSE FAC.
;;^UTILITY(U,$J,353.1,20,0)
;;=56^PSYCHIATRIC RESIDENTIAL TREATMENT CENTER^PSY RESID TRTMT CTR
;;^UTILITY(U,$J,353.1,21,0)
;;=61^COMPREHENSIVE INPATIENT REHABILITATION FACILITY^COMP INPT REHAB FAC
;;^UTILITY(U,$J,353.1,22,0)
;;=62^COMPREHENSIVE OUTPATIENT REHABILITATION FACILITY^COMP OUTPT REHAB FAC
;;^UTILITY(U,$J,353.1,23,0)
;;=65^END STAGE RENAL DISEASE TREATMENT FACILITY^END STAGE RENAL T F
;;^UTILITY(U,$J,353.1,24,0)
;;=71^STATE OR LOCAL PUBLIC HEALTH CLINIC^ST/LOC PUB HLTH CLN
;;^UTILITY(U,$J,353.1,25,0)
;;=72^RURAL HEALTH CLINIC^RURAL HEALTH CLINIC
;;^UTILITY(U,$J,353.1,26,0)
;;=81^INDEPENDENT LABORATORY^INDEPENDENT LAB
;;^UTILITY(U,$J,353.1,27,0)
;;=99^OTHER UNLISTED FACILITY^OTHER UNLISTED FAC
IBINI03J ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQR(353.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,353.1)
+2 ;;=^IBE(353.1,
+3 ;;^UTILITY(U,$J,353.1,0)
+4 ;;=PLACE OF SERVICE^353.1I^27^27
+5 ;;^UTILITY(U,$J,353.1,1,0)
+6 ;;=11^OFFICE^OFFICE
+7 ;;^UTILITY(U,$J,353.1,2,0)
+8 ;;=12^HOME^HOME
+9 ;;^UTILITY(U,$J,353.1,3,0)
+10 ;;=21^INPATIENT HOSPITAL^INPATIENT HOSPITAL
+11 ;;^UTILITY(U,$J,353.1,4,0)
+12 ;;=22^OUTPATIENT HOSPITAL^OUTPATIENT HOSPITAL
+13 ;;^UTILITY(U,$J,353.1,5,0)
+14 ;;=23^EMERGENCY ROOM - HOSPITAL^HOSP. EMERGENCY RM.
+15 ;;^UTILITY(U,$J,353.1,6,0)
+16 ;;=24^AMBULATORY SURGICAL CENTER^AMB. SURG. CENTER
+17 ;;^UTILITY(U,$J,353.1,7,0)
+18 ;;=25^BIRTHING CENTER^BIRTHING CENTER
+19 ;;^UTILITY(U,$J,353.1,8,0)
+20 ;;=26^MILITARY TREATMENT FACILITY^MILITARY TRTMT FAC.
+21 ;;^UTILITY(U,$J,353.1,9,0)
+22 ;;=31^SKILLED NURSING FACILITY^SKILLED NURSING FAC.
+23 ;;^UTILITY(U,$J,353.1,10,0)
+24 ;;=32^NURSING FACILITY^NURSING FACILITY
+25 ;;^UTILITY(U,$J,353.1,11,0)
+26 ;;=33^CUSTODIAL CARE FACILITY^CUSTODIAL CARE FAC.
+27 ;;^UTILITY(U,$J,353.1,12,0)
+28 ;;=34^HOSPICE^HOSPICE
+29 ;;^UTILITY(U,$J,353.1,13,0)
+30 ;;=41^AMBULANCE - LAND^AMBULANCE - LAND
+31 ;;^UTILITY(U,$J,353.1,14,0)
+32 ;;=42^AMBULANCE - AIR OR WATER^AMBULANCE AIR/WATER
+33 ;;^UTILITY(U,$J,353.1,15,0)
+34 ;;=51^INPATIENT PSYCHIATRIC FACILITY^INPT PSYCH. FAC
+35 ;;^UTILITY(U,$J,353.1,16,0)
+36 ;;=52^PSY. FAC. PARTIAL HOSPITALIZATION^PSY FAC PART HOSP
+37 ;;^UTILITY(U,$J,353.1,17,0)
+38 ;;=53^COMMUNITY MENTAL HEALTH CENTER^COMM MENTAL HLTH CTR
+39 ;;^UTILITY(U,$J,353.1,18,0)
+40 ;;=54^INTERMEDIATE CARE FAC/MENTALLY RETARDED^INTER. CARE FAC/MR
+41 ;;^UTILITY(U,$J,353.1,19,0)
+42 ;;=55^RESIDENTIAL SUBSTANCE ABUSE TREATMENT FACILITY^RES. SUB. ABUSE FAC.
+43 ;;^UTILITY(U,$J,353.1,20,0)
+44 ;;=56^PSYCHIATRIC RESIDENTIAL TREATMENT CENTER^PSY RESID TRTMT CTR
+45 ;;^UTILITY(U,$J,353.1,21,0)
+46 ;;=61^COMPREHENSIVE INPATIENT REHABILITATION FACILITY^COMP INPT REHAB FAC
+47 ;;^UTILITY(U,$J,353.1,22,0)
+48 ;;=62^COMPREHENSIVE OUTPATIENT REHABILITATION FACILITY^COMP OUTPT REHAB FAC
+49 ;;^UTILITY(U,$J,353.1,23,0)
+50 ;;=65^END STAGE RENAL DISEASE TREATMENT FACILITY^END STAGE RENAL T F
+51 ;;^UTILITY(U,$J,353.1,24,0)
+52 ;;=71^STATE OR LOCAL PUBLIC HEALTH CLINIC^ST/LOC PUB HLTH CLN
+53 ;;^UTILITY(U,$J,353.1,25,0)
+54 ;;=72^RURAL HEALTH CLINIC^RURAL HEALTH CLINIC
+55 ;;^UTILITY(U,$J,353.1,26,0)
+56 ;;=81^INDEPENDENT LABORATORY^INDEPENDENT LAB
+57 ;;^UTILITY(U,$J,353.1,27,0)
+58 ;;=99^OTHER UNLISTED FACILITY^OTHER UNLISTED FAC