IBINI08I ; ; 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,55,1,5,0)
;;= policy number
;;^UTILITY(U,$J,357.6,55,1,6,0)
;;= group name
;;^UTILITY(U,$J,357.6,55,1,7,0)
;;= policy holder's relationship to the patient
;;^UTILITY(U,$J,357.6,55,1,8,0)
;;= policy expiration date
;;^UTILITY(U,$J,357.6,55,1,9,0)
;;= group number
;;^UTILITY(U,$J,357.6,55,1,10,0)
;;= name of insured
;;^UTILITY(U,$J,357.6,55,2)
;;=INSURANCE COMPANY^30^EXPIRATION DATE^12^POLICY NUMBER^20^GROUP NUMBER^17^GROUP NAME^20^NAME OF INSURED^30^HOLDER'S RELATIONSHIP^9
;;^UTILITY(U,$J,357.6,55,3)
;;=PATIENT INSURANCE MAS PIMS
;;^UTILITY(U,$J,357.6,55,4)
;;=S ACT=""
;;^UTILITY(U,$J,357.6,55,6,0)
;;=^357.66^1^1
;;^UTILITY(U,$J,357.6,55,6,1,0)
;;=ACT
;;^UTILITY(U,$J,357.6,55,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,55,7,1,0)
;;=DFN
;;^UTILITY(U,$J,357.6,56,0)
;;=DPT PATIENT'S INSURANCE - ACTIVE ONLY^INSURANC^IBDFN6^PATIENT FILE^1^2^4^1^1^^^1
;;^UTILITY(U,$J,357.6,56,1,0)
;;=^^10^10^2931201^
;;^UTILITY(U,$J,357.6,56,1,1,0)
;;=For displaying information on the patient's health insurance. Returns ONLY
;;^UTILITY(U,$J,357.6,56,1,2,0)
;;=active insurance, excluding policies that do not reimburse.
;;^UTILITY(U,$J,357.6,56,1,3,0)
;;=Data returned:
;;^UTILITY(U,$J,357.6,56,1,4,0)
;;= insurance company
;;^UTILITY(U,$J,357.6,56,1,5,0)
;;= policy number
;;^UTILITY(U,$J,357.6,56,1,6,0)
;;= group name
;;^UTILITY(U,$J,357.6,56,1,7,0)
;;= policy holder's relationship to the patient
;;^UTILITY(U,$J,357.6,56,1,8,0)
;;= policy expiration date
;;^UTILITY(U,$J,357.6,56,1,9,0)
;;= group number
;;^UTILITY(U,$J,357.6,56,1,10,0)
;;= name of insured
;;^UTILITY(U,$J,357.6,56,2)
;;=INSURANCE COMPANY^30^EXPIRATION DATE^12^POLICY NUMBER^20^GROUP NUMBER^17^GROUP NAME^20^NAME OF INSURED^30^HOLDER'S RELATIONSHIP^9
;;^UTILITY(U,$J,357.6,56,3)
;;=PATIENT INSURANCE MAS PIMS ACTIVE
;;^UTILITY(U,$J,357.6,56,4)
;;=S ACT=1
;;^UTILITY(U,$J,357.6,56,6,0)
;;=^357.66^1^1
;;^UTILITY(U,$J,357.6,56,6,1,0)
;;=ACT
;;^UTILITY(U,$J,357.6,56,7,0)
;;=^357.67^1^1
;;^UTILITY(U,$J,357.6,56,7,1,0)
;;=DFN
IBINI08I ; ; 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,55,1,5,0)
+2 ;;= policy number
+3 ;;^UTILITY(U,$J,357.6,55,1,6,0)
+4 ;;= group name
+5 ;;^UTILITY(U,$J,357.6,55,1,7,0)
+6 ;;= policy holder's relationship to the patient
+7 ;;^UTILITY(U,$J,357.6,55,1,8,0)
+8 ;;= policy expiration date
+9 ;;^UTILITY(U,$J,357.6,55,1,9,0)
+10 ;;= group number
+11 ;;^UTILITY(U,$J,357.6,55,1,10,0)
+12 ;;= name of insured
+13 ;;^UTILITY(U,$J,357.6,55,2)
+14 ;;=INSURANCE COMPANY^30^EXPIRATION DATE^12^POLICY NUMBER^20^GROUP NUMBER^17^GROUP NAME^20^NAME OF INSURED^30^HOLDER'S RELATIONSHIP^9
+15 ;;^UTILITY(U,$J,357.6,55,3)
+16 ;;=PATIENT INSURANCE MAS PIMS
+17 ;;^UTILITY(U,$J,357.6,55,4)
+18 ;;=S ACT=""
+19 ;;^UTILITY(U,$J,357.6,55,6,0)
+20 ;;=^357.66^1^1
+21 ;;^UTILITY(U,$J,357.6,55,6,1,0)
+22 ;;=ACT
+23 ;;^UTILITY(U,$J,357.6,55,7,0)
+24 ;;=^357.67^1^1
+25 ;;^UTILITY(U,$J,357.6,55,7,1,0)
+26 ;;=DFN
+27 ;;^UTILITY(U,$J,357.6,56,0)
+28 ;;=DPT PATIENT'S INSURANCE - ACTIVE ONLY^INSURANC^IBDFN6^PATIENT FILE^1^2^4^1^1^^^1
+29 ;;^UTILITY(U,$J,357.6,56,1,0)
+30 ;;=^^10^10^2931201^
+31 ;;^UTILITY(U,$J,357.6,56,1,1,0)
+32 ;;=For displaying information on the patient's health insurance. Returns ONLY
+33 ;;^UTILITY(U,$J,357.6,56,1,2,0)
+34 ;;=active insurance, excluding policies that do not reimburse.
+35 ;;^UTILITY(U,$J,357.6,56,1,3,0)
+36 ;;=Data returned:
+37 ;;^UTILITY(U,$J,357.6,56,1,4,0)
+38 ;;= insurance company
+39 ;;^UTILITY(U,$J,357.6,56,1,5,0)
+40 ;;= policy number
+41 ;;^UTILITY(U,$J,357.6,56,1,6,0)
+42 ;;= group name
+43 ;;^UTILITY(U,$J,357.6,56,1,7,0)
+44 ;;= policy holder's relationship to the patient
+45 ;;^UTILITY(U,$J,357.6,56,1,8,0)
+46 ;;= policy expiration date
+47 ;;^UTILITY(U,$J,357.6,56,1,9,0)
+48 ;;= group number
+49 ;;^UTILITY(U,$J,357.6,56,1,10,0)
+50 ;;= name of insured
+51 ;;^UTILITY(U,$J,357.6,56,2)
+52 ;;=INSURANCE COMPANY^30^EXPIRATION DATE^12^POLICY NUMBER^20^GROUP NUMBER^17^GROUP NAME^20^NAME OF INSURED^30^HOLDER'S RELATIONSHIP^9
+53 ;;^UTILITY(U,$J,357.6,56,3)
+54 ;;=PATIENT INSURANCE MAS PIMS ACTIVE
+55 ;;^UTILITY(U,$J,357.6,56,4)
+56 ;;=S ACT=1
+57 ;;^UTILITY(U,$J,357.6,56,6,0)
+58 ;;=^357.66^1^1
+59 ;;^UTILITY(U,$J,357.6,56,6,1,0)
+60 ;;=ACT
+61 ;;^UTILITY(U,$J,357.6,56,7,0)
+62 ;;=^357.67^1^1
+63 ;;^UTILITY(U,$J,357.6,56,7,1,0)
+64 ;;=DFN