DGCVRPT ;ALB/PJR,LBD,JAM - Unsupported CV End Dates Report; ; 6/16/09 10:53am
Source file <DGCVRPT.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| EN | ; Called from DG UNSUPPORTED CV END DATES RPT option
 | 
|
| SRT() | ; Get sort order
 ; OUPUT: Y - Sort (N=Name; D=DFN)  | 
|
| RPTQUE | ; Get report device. Queue report if requested.
 | 
|
| RPT(DGSRT) | ; Entry point to produce report
 | 
|
| EN1 | ; Extract
 | 
|
| CHK | ; Calculate CV End Date, check MSE data is supporting it
 ; INPUT: DFN - Patient file IEN ; OUTPUT: CEN = CV End Date on file ; CALC = Calculated CV End Date  | 
|
| SCH | ||
| PUT | ; Put record on list
 | 
|
| CNT | ||
| EN2(DGSRT) | ; Print
 ; INPUT DGSRT - Sort order for report (Name or DFN)  | 
|
| LOOPN | ; Sort by name. Loop through ^XTMP("DGCVRPT","NOSUP","NAM", x-ref
 | 
|
| LOOPD | ; Sort by DFN. Loop through ^XTMP("DGCVRPT","NOSUP","DFN", x-ref
 | 
|
| ; Print veteran
 | 
||
| TOT | ; Print total records at the end of the report
 | 
|
| PRTVAR | ; Set up variables needed to print report
 | 
|
| HDR | ; Print report header
 | 
|
| PAUSE() | ; If report is sent to screen, prompt for next page or quit
 | 
|
| CVDATE(DFN,DGARR,DGERR) | ; Returns all values for calculating the CV End date
 ; in DGARR (passed by reference) ; AND ; any error codes from the DIQ call in DGERR (passed by reference) ; AND ; the calculated CV End Date as the result of the function call  | 
|
| CVDATEQ | 
| 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: WRITE | 
  | 
| Function Call: WRITE | 
  | 
| FileNo | Call Tags | 
|---|---|
| ^DPT - [#2] | GETS^DIQ |