Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PXEDIP

PXEDIP.m

Go to the documentation of this file.
  1. PXEDIP ;ISL/PKR - Routines to print PCE device interface errors. ;6/7/96
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;;Aug 12, 1996
  1. ;
  1. ;=======================================================================
  1. PR ;Print the report.
  1. N DONE,INDENT,PAGE,PATDFN,POP,PXRROPT,TYPE
  1. ;
  1. ;Allow the task to be cleaned up upon successful completion.
  1. I $D(ZTSK) S ZTREQ="@"
  1. ;
  1. U IO
  1. D GENHEAD
  1. ;Write out the specific information.
  1. S DONE=0
  1. S INDENT=5
  1. I OPT="EDT" D EDT
  1. I OPT="ERN" D ERN
  1. I OPT="PAT" D PAT
  1. I OPT="PDT" D PDT
  1. Q
  1. ;
  1. ;=======================================================================
  1. EDT ;Print the errors based on encounter date and time.
  1. S PATDFN=0
  1. S TYPE="EDT"
  1. W !!,"Report based on Encounter Date and Time:"
  1. W !,?INDENT,$$FMTE^XLFDT(BENDT,1)," through ",$$FMTE^XLFDT(EENDT,1),"."
  1. D ERRLST^PXEDIEL
  1. Q
  1. ;
  1. ;=======================================================================
  1. ERN ;Print the errors based on error number.
  1. S PATDFN=0
  1. S TYPE="ERN"
  1. W !!,"Report based on Error Numbers ",BERN," through ",EERN,"."
  1. D ERRLST^PXEDIEL
  1. Q
  1. ;
  1. ;=======================================================================
  1. PAT ;Print the errors based on patients.
  1. N IC
  1. S TYPE="PAT"
  1. W !!,"Report based on errors by patient."
  1. F IC=1:1:NPATIENT D
  1. . S (DFN,PATDFN)=PATIENT(IC)
  1. . D DEM^VADPT
  1. . W !,"Errors for patient ",VADM(1)," ",$P(VADM(2),U,2)
  1. . D ERRLST^PXEDIEL
  1. . D KVA^VADPT
  1. Q
  1. ;
  1. ;=======================================================================
  1. PDT ;Print the errors based on error date and time.
  1. S PATDFN=0
  1. S TYPE="PDT"
  1. D GENHEAD
  1. W !!,"Report based on Processing Date and Time:"
  1. W !,?INDENT,$$FMTE^XLFDT(BERDT,1)," through ",$$FMTE^XLFDT(EERDT,1),"."
  1. D ERRLST^PXEDIEL
  1. Q
  1. ;
  1. ;=======================================================================
  1. GENHEAD ;Print the general report heading.
  1. S PAGE=0
  1. D PAGE
  1. Q
  1. ;
  1. ;=======================================================================
  1. PAGE ;form feed to new page
  1. I (PAGE>0)&(($E(IOST)="C")&(IO=IO(0))) D
  1. . S DIR(0)="E"
  1. . W !
  1. . D ^DIR K DIR
  1. I $D(DUOUT)!($D(DTOUT)) D Q
  1. . S DONE=1
  1. I PAGE>0 W:$D(IOF) @IOF
  1. S PAGE=PAGE+1
  1. D HDR^PXRRGPRT(PAGE)
  1. Q
  1. ;