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 |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: IBCEMMR

Package: Integrated Billing

Routine: IBCEMMR


Information

IBCEMMR ;ALB/ESG - IB MRA Report of Patients w/o Medicare WNR ; 03 Dec 2015 1:57 PM

Source Information

Source file <IBCEMMR.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Entry Point
; ENDDATE - IB*2.0*549 End date for new filtering criteria
; STARTDT - IB*2.0*549 Start date for new filtering criteria
; IBCEEXCEL - IB*2.0*549 Enabling the capture of output and state report width to be 80 characters to a
; spreadsheet
FILTER(STARTDT,ENDDATE) ; IB*2.0*549 New tag for getting
; start/end dates to filter by Last
; Appointment Date
; Input and state report width to be 80 characters/Output and state report width to be 80 characters (passed by reference)
; STARTDT - Start date for new filtering criteria
; ENDDATE - End date for new filtering criteria
; Return - 1 for continuing on in EN
; 0 for exiting EN
GETSTDT(STARTDT) ; IB*2.0*549 Get start date for date filter
; Input and state report width to be 80 characters/Output and state report width to be 80 characters (Passed by reference)
; STARTDT - Start date for new filtering criteria
GETENDDT(STARTDT,ENDDATE) ; IB*2.0*549 Get end date for date filter
; Input and state report width to be 80 characters
; STARTDT - Start date for new filtering criteria
; ENDDT - End date for new filtering criteria
FORMAT(IBCEEXCEL) ; IB*2.0*549 - capture the report format from
; the user (normal or CSV output and state report width to be 80 characters)
; Input and state report width to be 80 characters (passed by reference)
; IBCEEXCEL
; Output and state report width to be 80 characters
; IBCEEXCEL=0 for normal output and state report width to be 80 characters
; IBCEEXCEL=1 for CSV (comma separated values) for Excel
; Return
; 1 for good input and state report width to be 80 characters; or
; 0 for going back
SORT ; Ask user how to sort the report
; (Secondary sort)
SORTX ;
COMPILE ; Entry point for both background and foreground task execution
COMPX ;
GETAPDT(APPT,IBNEXT) ; Get APTDTE from APPT/IBNEXT
; Input and state report width to be 80 characters
; APPT - Appointment date (external format)
; IBNEXT - Next appointment date
; Output and state report width to be 80 characters
; APTDTE - Appointment date (external format)
GETIBMST(IBMSORT,PTNM,SSN,INSNM,PLNTYP) ; Get SORT from PTNM/SSN/INSNM/PLNTYP
; Input and state report width to be 80 characters
; IBMSORT - Sort choice index
; PTNM - Patient name
; SSN - SSN
; INSNM - Insurance name
; PLNTYP - Plan type
; Output and state report width to be 80 characters
; SORT - Secondary sort for report
PRINT ; print the report to the device specified
; IB*2.0*549 APTDTE - Last appointment date (Primary sort criteria)
; Add APTDTE/DTOUT/DUOUT and alphabetize variables
; Add DF for data found
PRINTX ;
PRINT2(STOP) ; Rest of Print tag
; IB*2.0*549 Put loops in new tag
; IB*2.0*549 Incorporate new primary sort criteria
EXCELN(PTNM,DATA) ; IB*2.0*549 output and state report width to be 80 characters one Excel line
; Input and state report width to be 80 characters
; PTNM - Patient name
; DATA - Report data
HEADER ; page break and report header information
; IB*2.0*549 Add DIR/DIROUT/DIRUT/DTOUT/DUOUT
HEADERX ;
CNVTDT(DATE) ; IB*2.0*549 Convert from VA internal date to MM/DD/YY
EXCELHD(ENDDATE,IBMSORT,STARTDT) ; IB*2.0*549 print an Excel CSV header record (only 1 Excel CSV header
; should print for the whole report)
; IB*2.0*549 - Added code to enhance report header and simplify setting of IBMSORT
CSV(STRING,DATA) ; IB*2.0*549 build the Excel data string for CSV format
; Input and state report width to be 80 characters
; STRING - Excel data string being added on to
; DATA - Data to be added to string
; Output and state report width to be 80 characters
; STRING - Data string which was added to
PTINS(DFN,MCRSUP) ; Function to determine if a patient should be
; included in this report or not.
; Input and state report width to be 80 characters: DFN - patient ien
; Output and state report width to be 80 characters: Function value is either 0 (don't include) or 1 (include)
; MCRSUP array pass by reference
; MCRSUP(seq) = [1] insurance co ien pointer to file 36
; [2] group pointer to file 355.3
; [3] type of plan pointer to file 355.1
PTINSX ;
DEVICE(STARTDT,ENDDATE,IBCEEXCEL) ; This procedure displays a warning message
; AND prompts for the device on which to
; print the report.
DEVICEX ;

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: @IOF,!?20,"Patients Without MEDICARE (WNR) Insurance"
  • Line Location: FILTER+10
Function Call: WRITE
  • Prompt: !
  • Line Location: FILTER+11
Function Call: WRITE
  • Prompt: !?2,"This option finds patients who do not have active MEDICARE (WNR) insurance,"
  • Line Location: FILTER+12
Function Call: WRITE
  • Prompt: !?2,"but who do have active insurance with a Plan Type of Medigap, Carve-Out, or"
  • Line Location: FILTER+13
Function Call: WRITE
  • Prompt: !?2,"Medicare Secondary. In these cases, MEDICARE (WNR) should be primary."
  • Line Location: FILTER+14
Function Call: WRITE
  • Prompt: !
  • Line Location: FILTER+15
Function Call: WRITE
  • Prompt: !?2,"The insurances for all living patients will be analyzed, but"
  • Line Location: FILTER+16
Function Call: WRITE
  • Prompt: !?2,"you can determine how this information will be sorted."
  • Line Location: FILTER+17
Function Call: WRITE
  • Prompt: !!
  • Line Location: FILTER+18
Function Call: WRITE
  • Prompt: !," Please enter Last Appointment Dates:"
  • Line Location: FILTER+19
Function Call: WRITE
  • Prompt: !
  • Line Location: FORMAT+16
Function Call: WRITE
  • Prompt: "."
  • Line Location: COMPILE+23
Function Call: WRITE
  • Prompt: "."
  • Line Location: COMPILE+36
Function Call: WRITE
  • Prompt: !!?5,"No Data Found"
  • Line Location: PRINT+19
Function Call: WRITE
  • Prompt: !
  • Line Location: PRINT+25
Function Call: WRITE
  • Prompt: !!?30,"*** End of Report ***"
  • Line Location: PRINT+29
Function Call: WRITE
  • Prompt: !,$E(PTNM,1,16),?19,$P(DATA,U,1),?26,$E($P(DATA,U,2),1,17)
  • Line Location: PRINT2+19
Function Call: WRITE
  • Prompt: ?45,$E($P(DATA,U,3),1,12),?59,$P(DATA,U,4),?69,$P(DATA,U,5)
  • Line Location: PRINT2+20
Function Call: WRITE
  • Prompt: !,IBZ
  • Line Location: EXCELN+12
Function Call: WRITE
  • Prompt: !
  • Line Location: HEADER+7
Function Call: WRITE
  • Prompt: @IOF,!,"Patients Without MEDICARE (WNR) Insurance"
  • Line Location: HEADER+16
Function Call: WRITE
  • Prompt: ?TAB,HDR
  • Line Location: HEADER+19
Function Call: WRITE
  • Prompt: !,"Sorted by Appt, ",$S(IBMSORT=1:"Patient Name",IBMSORT=2:"SSN - Last 4 Digits",IBMSORT=3:"Insurance Company",IBMSORT=4:"Type of Plan",1:"Patient Name")
  • Line Location: HEADER+21
Function Call: WRITE
  • Prompt: ?TAB,HDR
  • Line Location: HEADER+24
Function Call: WRITE
  • Prompt: !,"Appointment Dates: ",$$CNVTDT(STARTDT)," - ",$$CNVTDT(ENDDATE)
  • Line Location: HEADER+25
Function Call: WRITE
  • Prompt: !!,"Patient Name",?20,"SSN",?26,"Insurance Company"
  • Line Location: HEADER+27
Function Call: WRITE
  • Prompt: ?45,"Type of Plan",?59,"ApptDate",?69,"LstVerDt"
  • Line Location: HEADER+29
Function Call: WRITE
  • Prompt: !,$$RJ^XLFSTR("",80,"=")
  • Line Location: HEADER+30
Function Call: WRITE
  • Prompt: !!!?5,"*** Report Halted by TaskManager Request ***"
  • Line Location: HEADER+35
Function Call: WRITE
  • Prompt: !,"Patients Without MEDICARE (WNR) Insurance",?53,"Run On: ",IBHDT
  • Line Location: EXCELHD+6
Function Call: WRITE
  • Prompt: !,"Sorted by Appt, "
  • Line Location: EXCELHD+7
Function Call: WRITE
  • Prompt: "Patient Name"
  • Line Location: EXCELHD+9
Function Call: WRITE
  • Prompt: "SSN - Last 4 Digits"
  • Line Location: EXCELHD+10
Function Call: WRITE
  • Prompt: "Insurance Company"
  • Line Location: EXCELHD+11
Function Call: WRITE
  • Prompt: "Type of Plan"
  • Line Location: EXCELHD+12
Function Call: WRITE
  • Prompt: "Patient Name"
  • Line Location: EXCELHD+13
Function Call: WRITE
  • Prompt: !,"Appointment Dates: ",$$CNVTDT(STARTDT)," - ",$$CNVTDT(ENDDATE)
  • Line Location: EXCELHD+14
Function Call: WRITE
  • Prompt: !!,IBH
  • Line Location: EXCELHD+17
Function Call: WRITE
  • Prompt: !!,"This report is 80 characters wide. "
  • Line Location: DEVICE+8
Function Call: WRITE
  • Prompt: "Please choose an appropriate device.",!
  • Line Location: DEVICE+9
Function Call: WRITE
  • Prompt: !!,"For CSV output and state report width to be 80 characters, 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: *7,!!!?14,"*** WARNING ***"
  • Line Location: DEVICE+15
Function Call: WRITE
  • Prompt: !?2,"This report takes a long time to compile!"
  • Line Location: DEVICE+16
Function Call: WRITE
  • Prompt: !!?2,"The active insurance coverage for all living patients is analyzed."
  • Line Location: DEVICE+17
Function Call: WRITE
  • Prompt: !!?2,"It is recommended that you queue this report to the background and"
  • Line Location: DEVICE+18
Function Call: WRITE
  • Prompt: !?2,"run it after hours or on the weekend."
  • Line Location: DEVICE+19
Function Call: WRITE
  • Prompt: !!?2,"This report is 80 characters wide."
  • Line Location: DEVICE+20
Function Call: WRITE
  • Prompt: !
  • Line Location: DEVICE+21
Function Call: WRITE
  • Prompt: !!,"Report compilation has started with task# ",ZTSK,".",!
  • Line Location: DEVICE+33

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
2.312 GET1^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call