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

Package: DSS Extracts

Routine: ECXAPHA


Information

ECXAPHA ;ALB/TMD-Pharmacy Extracts Unusual Volumes/Costs Report ;5/31/17 16:18

Source Information

Source file <ECXAPHA.m>

Entry Points

Name Comments DBIA/ICR reference
EN ; entry point
BEGIN ; display report description
SELECT ; user inputs for report option, threshold volume/cost and date range
PROCESS ; entry point for queued report
PRINT ; process temp file and print report
CLOSE ;
HEADER ;header and page control
SIG(ORDNO,PATNO) ;Get ordering instructions for unit dose order. API added in patch 136
COST ;Section added in 144, entry point for unusual cost report
SIGPRE(ORDNO) ;Get SIG for Prescription Order - 178
SIGIVP(ORDNO,PATNO) ;Get SIG for IV Order - 178

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"This report requires 132-column format."
  • Line Location: EN+20
Function Call: WRITE
  • Prompt: !!,"No device selected...exiting.",!
  • Line Location: EN+22
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: BEGIN+1
Function Call: WRITE
  • Prompt: !,"determined by a user defined threshold value. It should be run"
  • Line Location: BEGIN+5
Function Call: WRITE
  • Prompt: !,"prior to the generation of the actual extract(s) to identify and"
  • Line Location: BEGIN+6
Function Call: WRITE
  • Prompt: !!,"Note: The threshold can be set after a report is selected."
  • Line Location: BEGIN+15
Function Call: WRITE
  • Prompt: !!,"Run times for this report will vary depending upon the size of"
  • Line Location: BEGIN+16
Function Call: WRITE
  • Prompt: !,"the extract and could take as long as 30 minutes or more to"
  • Line Location: BEGIN+17
Function Call: WRITE
  • Prompt: !,"complete. This report has no effect on the actual extracts and"
  • Line Location: BEGIN+18
Function Call: WRITE
  • Prompt: !,"can be run as needed."
  • Line Location: BEGIN+19
Function Call: WRITE
  • Prompt: "Choose the report you would like to run."
  • Line Location: SELECT+4
Function Call: WRITE
  • Prompt: !!,$S(ECXOPT=2:"threshold > Total Doses Per Day < -threshold",ECXOPT=4:"Component Dose Give > Threshold",1:"Quantity > threshold")
  • Line Location: SELECT+19
Function Call: WRITE
  • Prompt: !!,"Enter the date range for which you would like to scan the ",ECXTL,!,"Extract records."
  • Line Location: SELECT+27
Function Call: WRITE
  • Prompt: !
  • Line Location: CLOSE+2
Function Call: WRITE
  • Prompt: !
  • Line Location: CLOSE+3
Function Call: WRITE
  • Prompt: !
  • Line Location: HEADER+3
Function Call: WRITE
  • Prompt: !,"Start Date: ",ECSTART,?97,"Report Run Date/Time: "_ECRUN
  • Line Location: HEADER+8
Function Call: WRITE
  • Prompt: !,"End Date: ",ECEND,?97,"Threshold Value = ",$S($G(ECXCOST):"$",1:""),ECTHLD
  • Line Location: HEADER+9
Function Call: WRITE
  • Prompt: !!,"Name",?11,"SSN",?21,"Day",?29,"Generic Name",?71,"Feeder Key"
  • Line Location: HEADER+10
Function Call: WRITE
  • Prompt: ?95,"Quantity",?109,"Total Cost",?120,"Days Supply"
  • Line Location: HEADER+11
Function Call: WRITE
  • Prompt: ?93,"Total Doses",?121,"Total Cost",!,?95,"Per Day"
  • Line Location: HEADER+12
Function Call: WRITE
  • Prompt: ?96,"Quantity",?121,"Total Cost"
  • Line Location: HEADER+13
Function Call: WRITE
  • Prompt: ?89,"Component Dose Given",?121,"Total Cost"
  • Line Location: HEADER+14
Function Call: WRITE
  • Prompt: !,LN,!
  • Line Location: HEADER+15

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSRX - [#52] GETS^DIQ
55.01 GETS^DIQ
55.06 GETS^DIQ
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call