| ISBILL | 
To determine if there is a bill with a given bill #.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
$$ISBILL | 
Output | 
return value:
-file #399 ien if found
-zero if not found
 
 | 
IBBIL | 
Input | 
Bill # - the value of the (#.01) BILL NUMBER field of
the file (#399) is expected.
 
 | 
 
 | 
BILINF | 
Get bill details from file #399.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
$$BILINF | 
Output | 
Returns two piece value:
Piece#1 :
-1 if an error
the payer sequence (P-primary, S-secondary,...)
Piece#2 :
error message if piece#1 = -1
otherwise - patient's DFN
 
 | 
IB399 | 
Input | 
Bill ien of the file (#399).
 
 | 
IBINFO | 
Both | 
Output array, passed in by reference.  Format of data
returned in the array: IBINFO("INS IEN") - insurance ien, ien of the file
(#36) IBINFO("INS NAME") - insurance name as a text IBINFO("BILL #") - bill
number, field (#.01) of the file (#399) IBINFO("AR STATUS") - Account
Receivable status for the bill IBINFO("DOS") - date of service (FM format)
IBINFO("PLAN") - plan ien of (#355.3) IBINFO("FILL NUMBER") - refill number
IBINFO("PRESCRIPTION") - prescription ien of file (#52) IBINFO("IB STATUS") -
value of STATUS field (.13) of the file (#399)
 | 
 
 | 
RXBILL | 
Find bill(s) for the specific RX/refill.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
$$RXBILL | 
Output | 
Returns 2 pieces:
piece 1 - the number of bills found for the RX/refill
piece 2 - the latest active bill's ien
 
 | 
IBRXIEN | 
Input | 
IBRXIEN RX ien (#52).
 
 | 
IBRXREF | 
Input | 
IBRXREF - refill number.
 
 | 
IBRXCOB | 
Input | 
IBRXCOB - (optional) Payer Sequence ("P"- primary,"S"
- secondary,"T" -tertiary.
 | 
IBDOS | 
Input | 
IBDOS-(optional)Date of Service.
 
 | 
IBARR | 
Both | 
IBARR - array, passed by reference to return the list
of bills for the RX#.  Format: IBARR(IEN of the file #399 )=
Bill#^status^date^insurance name^payer sequence^RX ien^Refill No^IB status
 
 | 
 
 |