IBRFN ;ALB/AAS - Supported functions for AR ;5-MAY-1992
Source file <IBRFN.m>
| Name | Comments | DBIA/ICR reference |
|---|---|---|
| ERR(Y) | ; Input Y = -1^error code[;error code...]^literal message
; Output IBRERR = error message 1 ; if more than one code then ; IBRERR(n)=error code n |
|
| ERRQ | ||
| MESS(Y) | ; -input y=error code - from file 350.8 (piece 3)
; output error message |
|
| SVDT(BN,VDT) | ;returns service dates for a specific bill
; Input: BN bill number (external form) ; VDT name of array to hold outpatient visit dates, pass by value (if needed) ; Output: X function value, string, = 0 if bill not found ; = 1 (Inpt) or 2 (Outpt)^event date^stmt from date^stmt to date^LOS (I)^Number of visit dates (O) ; all are internal form, any piece may be null if not defined for the bill ; array containing outpatient visit dates as subscripts/no data, if VDT passed by value |
|
| REC(IBSTR,IBTYPE,IBDISP) | ; Find the AR for an Authorization or Rx number
; Input: IBSTR - FI Authorization Number or Rx Number ; Output: IBAR >0 => ptr to claim/AR in files 399/430 ; -1 => No receivable found ; IBTYPE (by ref) - how the IBSTR was recognized: 1-Auth,2-ECME,3-Rx#,0-Unknown ; IBDISP (by ref) - external display of number (for example to include the leading zeros on the ECME#) |
|
| RECQ | ||
| RXREC(IBRXN) | ; Search the Rx
|
|
| AREC(AUTH) | ; Find the Receivable for a TRICARE FI Authorization Number
; Input: AUTH - Fiscal Intermediary Authorization Number ; Output: IBIFN >0 => ptr to claim/AR in files 399/430 ; -1 => No receivable found |
|
| ARECQ | ;
|
|
| EREC(AUTH) | ; Find the Receivable for an ECME FI Number
; Input: AUTH - Fiscal Intermediary ECME Number ; Output: IBIFN >0 => ptr to claim/AR in files 399/430 ; -1 => No receivable found |
|
| ERECQ | ;
|
|
| DTL(IBIFN,TYPE,AUTH) | ;Details
|
|
| AUD(IBIFN) | ; Does the Accounts Receivable need to be audited?
; Input: IBIFN - ptr to claim/AR in files 399/430 ; Output: 0 => Claim does not have to be audited ; (claim was set up automatically) ; 1 => Claim must be audited ; (claim was established manually) |
|
| AUDQ | ||
| TYP(IBIFN) | ; Determine the bill type for an Accounts Receivable.
; Input: IBIFN - ptr to claim/AR in files 399/430 ; Output: I => Inpatient bill ; O => Outpatient bill ; PH => Pharmacy bill ; PR => Prosthetics bill |
|
| TYPQ | ||
| RELBILL(IBIFN) | ; given a Third Party Bill, find all related Third Party bills,
; then find all First Party bills related to any of the Third Party bills ; Input: IBIFN = internal file number of a Third Party bill ; Output: Third Party Bills (#399) ; ^TMP("IBRBT", $J, selected bill ifn) = PATIENT HAS ANY RX COVERAGE ON FROM DATE OF BILL? ; ^TMP("IBRBT", $J, selected bill ifn, matching bill ifn) = ; BILL FROM ^ BILL TO ^ CANCELLED? ^ AR BILL NUMBER ^ ; PAYER SEQUENCE ^ PAYER IS MEDICARE SUPPLEMENTAL (0/1) ^ PAYER NAME ; Output: First Party Bills (#350) ; ^TMP("IBRBF", $J , selected bill ifn ) = "" ; ^TMP("IBRBF", $J , selected bill ifn , charge ifn) = ; BILL FROM ^ BILL TO ^ CANCELLED? ^ AR BILL NUMBER ^ ; TOTAL CHARGE ^ ACTION TYPE (SHORT) ^ # DAYS ON HOLD |
|
| SEL(IBARR) | ; Select an rx bill
; Input: IBARR - Array of IBIFN ; Output: IBNUM - One of the bill iens, or -1 |
| Name | Line Occurrences |
|---|---|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| Function Call: READ |
|
| Function Call: WRITE |
|