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: PSOPROD1

Package: Outpatient Pharmacy

Routine: PSOPROD1


Information

PSOPROD1 ;ALB/MRD - Pharmacy Productivity and Revenue Report ;9/8/15

Source Information

Source file <PSOPROD1.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; Main entry point for user prompts.
P1
P2
P3
P4
P5
P6
P7
P8
EXIT ; Exit point.
STOP() ; Determine if user wishes to exit out of the option entirely.
; Function return values:
; 1 - Yes, exit entirely.
; 0 - No, do not exit but return to the previous question.
DIVISION(PSODIV) ; Allow user to select Divisions or All Divisions.
; Input: None.
; Output: PSODIV
; PSODIV = "ALL" if the user opted to include all divisions.
; PSODIV = "D" if the user selected specific division. If that is
; the case, the selected pharmacies will be listed in PSODIV:
; PSODIV(IEN) = Division name, where IEN is a pointer to file#
; 59, Outpatient Site.
; Function return values:
; 1 - A valid entry or entries were selected.
; 0 - User has exited out (^).
REPORT(PSOREPORT) ; Allow user to select report to run (Productivity or Revenue).
; Input: None.
; Output: PSOREPORT, set to one of the following.
; PSOREPORT = "" if no selection was made.
; PSOREPORT = "R" if user selected the RRR Revenue report.
; PSOREPORT = "P" if user selected the Productivity Report.
; Function return values:
; 1 - The user selected one of the two reports.
; 0 - The user exited out.
STATUS(PSOSTATUS) ; Allow user to select statuses to include in report.
; Input: None.
; Output: PSOSTATUS, set to one of the following.
; PSOSTATUS = "" if no selection was made.
; PSOSTATUS = "P" if user selected Closed/Resolved - ePayable.
; PSOSTATUS = "R" if user selected Closed/Resolved - eRejected.
; PSOSTATUS = "B" if users opted to include both of the above.
; PSOSTATUS(0) = String to display on report header.
; Function return values:
; 1 - A valid selection was made.
; 0 - The user exited out.
DATES(PSODTBEGIN,PSODTEND) ; Prompt user for a date range.
; Function return values:
; 1 - A valid date range was entered.
; 0 - A valid date range was not entered.
INCLUDE(PSOINCLUDE) ; Allow user to enter specific Patients, Drugs, etc., to include.
; Input: None.
; Output:
; PSOINCLUDE, set to PATIENT, DRUG, RX, INSURANCE or REJECT CODE.
; For the field selected by the user to include-by, the list of
; entries to include will be at PSOINCLUDE(include-by,value)="",
; for example PSOINCLUDE("RX",12345)="" to include RxIEN 12345.
; All are defaulted to "ALL", e.g. PSOINCLUDE("RX")="ALL", and
; only the one selected by the user may be reset to be a string
; being a list of the external values of the items selected.
; Function return values:
; 1 - A valid selection was made.
; 0 - The user exited out.
INC ;
SORT(PSOSORT) ; Prompt user for the sort order.
; Input: None.
; Output: PSOSORT, set to one of the following.
; PSOSORT = "" if no selection was made.
; PSOSORT = "D" if user selected Division.
; PSOSORT = "R" if user selected Date Resolved.
; PSOSORT = "B" if user selected Resolved By.
; PSOSORT = "N" if user selected Drug Name.
; PSOSORT = "C" if user selected Reject Code.
; Function return values:
; 1 - A valid selection was made.
; 0 - The user exited out.
PATIENT(PSOSHOWPAT) ; Display Patient Name on report?
; Input: None.
; Output: PSOSHOWPAT, set to one of the following.
; 1 - Yes, display Patient Name on the report.
; 0 - No, do not display the Patient Name.
; * Note: The Patient Name will always be displayed if the user
; requests output in Excel format.
; Function return values:
; 1 - User answered the Y/N question.
; 0 - User exited out.
EXCEL(PSOEXCEL) ; Export the report to MS Excel?
; Function return values:
; 1 - User made a valid selection.
; 0 - User exited out.
; This function allows the user to indicate whether the report should be
; printed in a format that could easily be imported into an Excel
; spreadsheet. If the user wants that, the variable PSOEXCEL will be set
; to '1', otherwise PSOEXCEL will be set to '0'.
DEVICE() ; Prompt user for output device.
; Function return values:
; 1 - User selected a device.
; 0 - User exited out.

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: @IOF,!,"Pharmacy Productivity/Revenue Report",!!
  • Line Location: EN+2
Function Call: WRITE
  • Prompt: !
  • Line Location: STOP+12
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: DIVISION+21
Function Call: WRITE
  • Prompt: !!?2,"Selected:"
  • Line Location: DIVISION+34
Function Call: WRITE
  • Prompt: !,?10,PSODIV(X)
  • Line Location: DIVISION+35
Function Call: WRITE
  • Prompt: !
  • Line Location: DIVISION+42
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: DIVISION+47
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: DIVISION+65
Function Call: WRITE
  • Prompt: !!?2,"Selected:"
  • Line Location: DIVISION+81
Function Call: WRITE
  • Prompt: !,?10,PSODIV(X)
  • Line Location: DIVISION+82
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: REPORT+24
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: STATUS+24
Function Call: WRITE
  • Prompt: !
  • Line Location: DATES+13
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: DATES+15
Function Call: WRITE
  • Prompt: !
  • Line Location: DATES+25
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: DATES+27
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: INC+6
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: SORT+28
Function Call: WRITE
  • Prompt: !
  • Line Location: PATIENT+17
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: PATIENT+19
Function Call: WRITE
  • Prompt: !
  • Line Location: EXCEL+18
Function Call: WRITE
  • Prompt: $C(7)
  • Line Location: EXCEL+21
Function Call: WRITE
  • Prompt: !!,"This report is 132 characters wide. Please choose an appropriate device.",!
  • Line Location: DEVICE+8
Function Call: WRITE
  • Prompt: !!?5,"Before continuing, please set up your terminal to capture the"
  • Line Location: DEVICE+10
Function Call: WRITE
  • Prompt: !?5,"detail report data and save the detail report data in a text file"
  • Line Location: DEVICE+11
Function Call: WRITE
  • Prompt: !?5,"to a local drive. This report may take a while to run."
  • Line Location: DEVICE+12
Function Call: WRITE
  • Prompt: !!?5,"Note: To avoid undesired wrapping of the data saved to the file,"
  • Line Location: DEVICE+13
Function Call: WRITE
  • Prompt: !?11,"please enter '0;256;99999' at the 'DEVICE:' prompt.",!
  • Line Location: DEVICE+14
Function Call: WRITE
  • Prompt: !!,"Report compilation has started with task# ",ZTSK,".",!
  • Line Location: DEVICE+24

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DPT - [#2] GET1^DIQ
^DIC(36 - [#36] GET1^DIQ
^PSDRUG - [#50] GET1^DIQ
^PSRX - [#52] GET1^DIQ
^BPSF(9002313.93 - [#9002313.93] GET1^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call