Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: FBAAIAR1

Package: Fee Basis

Routine: FBAAIAR1


Information

FBAAIAR1 ;ALB/FA - FEE IPAC Vendor DoD Invoice Number Inquiry Report ;1/16/2014

Source Information

Source file <FBAAIAR1.m>

Entry Points

Name Comments DBIA/ICR reference
EN ;EP
; Main report entry point
DODISEL(FBDODINV) ; Ask for the DoD Invoice
; Input: None
; Output: FBDODINV - Selected DoD Invoice Number
; Returns: 1 - User quit out, 0 otherwise
; Called From: EN
FORMAT(FBFORMAT) ; Capture the report format from the user (normal or CSV output)
; Input: None
; Output: FBFORMAT - 1 - CSV Format, 0 otherwise
; Returns: 0 - User quit out, 1 otherwise
; Called From: EN
DEVICE(FBDODINV,FBFORMAT) ; Device Selection and Report compilation
; Input: FBDODINV - DoD invoice number to compile VistA invoices for
; FBFORMAT - 1 - CSV Format, 0 otherwise
; Output: Report is compiled if a device is selected
; Returns: 1 - User quit out, 0 otherwise
; Called From: EN
COMPILE ; Entry point for the compile to build the scratch global
; may be background task if job queued
; Input: FBDODINV - DoD Invoice number to use for selection
; FBFORMAT - 1 - CSV format, 0 otherwise
; Output: Report is compiled and output
; Called From: Report processing
COMPOUT(FBDODINV)
ROWDATAO(VNAME,PATIEN,VENIEN,IDTIEN,SVCIEN)
GETTYPEO(PATIEN,VENIEN,IDTIEN,SVCIEN,INV0,INV2) ; Determines if the invoice has been
; cancelled, rejected, purged or voided or some combination
; Input: PATIEN - Patient IEN
; VENIEN - Vendor IEN
; IDTIEN - Initial Treatment Date IEN
; SVCIEN - Service Provided IEN
; INV0 - 0 node of the outpatient invoice
; INV2 - 2 node of the outpatient invoice
; Returns: V - Voided
; C - Cancelled
; R - Rejected
; P - Purged
; "" - Otherwise
; or any combination of C/V/R/P
; Called From: ROWDATAO
COMPIN(FBDODINV)
GETTYPEI(INVIEN,INV0,INV2) ; Determines if the inpatient invoice has been
; cancelled, rejected or voided or some combination
; Input: INVIEN - IEN of the inpatient invoice
; INV0 - 0 node of the inpatient invoice
; INV2 - 2 node of the inpatient invoice
; INV5 - 5 node of the inpatient invoice
; Returns: V - Voided
; C - Cancelled
; R - Rejected
; "" - Otherwise
; or any combination of C/V/R
; Called From: COMPIN
COMPRX(FBDODINV)
GETTYPEP(PHIEN,RXIEN,INV2,ITYPE) ; Determines if the pharmacy invoice has any
; cancelled, rejected or voided prescriptions.
; Input: PHIEN - IEN of the pharmacy invoice
; RXIEN - Prescription IEN
; INV2 - 2 node of the pharmacy prescription invoice
; ITYPE - Current value for the pharmacy invoice
; Output: ITYPE - Updated value for the pharmacy invoice
; Called From: COMPRX
TOTS(VNAME,TYPE,INVNUM,DATA) ; Gather totals and other data for all invoices for
; the specified DoD invoice#. Update the scratch global with information
; Input: VNAME - Vendor Name
; TYPE - "OUT" - Outpatient Invoice
; "ANC" - Inpatient Ancillary Invoice
; "INP" - Inpatient Invoice
; "RX" - Pharmacy Invoice
; INVNUM - VistA Invoice Number
; DATA - ^TMP("FBAAIAR1",$J,VNAME,TYPE,INVNUM)
; ^TMP("FBAAIAR1",$J,VNAME) - Current DoD Invoice Vendor totals
; ^TMP("FBAAIAR1",$J,VNAME,TYPE) - Current Type totals
; Output: ^TMP("FBAAIAR1",$J,VNAME) - Updated DoD Invoice Vendor totals
; ^TMP("FBAAIAR1",$J,VNAME,TYPE) - Updated Type totals
; Called From: COMPIN, COMPOUT, COMPRX

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: @IOF,!,"IPAC Vendor DoD Invoice Number Inquiry Report"
  • Line Location: DODISEL+8
Function Call: WRITE
  • Prompt: !!,"This report will display all of the VistA invoices for the "
  • Line Location: DODISEL+9
Function Call: WRITE
  • Prompt: !,"selected DoD Invoice Number."
  • Line Location: DODISEL+10
Function Call: WRITE
  • Prompt: !
  • Line Location: DODISEL+11
Function Call: WRITE
  • Prompt: !
  • Line Location: DODISEL+16
Function Call: WRITE
  • Prompt: *7
  • Line Location: DODISEL+19
Function Call: WRITE
  • Prompt: !
  • Line Location: FORMAT+16
Function Call: WRITE
  • Prompt: *7
  • Line Location: FORMAT+19
Function Call: WRITE
  • Prompt: !!,"This report is 80 characters wide. Please choose an appropriate device.",!
  • Line Location: DEVICE+9
Function Call: WRITE
  • Prompt: !!,"For CSV output, turn logging or capture on now."
  • Line Location: DEVICE+11
Function Call: WRITE
  • Prompt: !,"To avoid undesired wrapping of the data saved to the file,"
  • Line Location: DEVICE+12
Function Call: WRITE
  • Prompt: !,"please enter ""0;256;99999"" at the ""DEVICE:"" prompt.",!
  • Line Location: DEVICE+13
Function Call: WRITE
  • Prompt: !!,"Report compilation has started with task# ",ZTSK,".",!
  • Line Location: DEVICE+22
Function Call: WRITE
  • Prompt: !!,"Compiling IPAC Vendor DoD Invoice Inquiry Report. Please wait ... "
  • Line Location: COMPILE+8
Info |  Source |  Entry Points |  Interaction Calls