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

LRARCAM4.m

Go to the documentation of this file.
  1. LRARCAM4 ; IHS/DIR/AAB - ARCHIVED RCS 14-4 REPORT PART 1 ;
  1. ;;5.2;LR;**1002**;JUN 01, 1998
  1. ;;5.2;LAB SERVICE;**59**;August 31,1995
  1. ;same as LRCAPAM5 except for archived wkld file reference
  1. EN ;
  1. INST ;
  1. K LRDA,LRRPTM S LRDA(1)=1 I '$D(^LAR(67.99999,1,0)) W !!?10,"Sorry, there is no primary institution in file 67.99999. Exiting." G EXIT
  1. ;Check for lab archival activity in archived status
  1. S LRART=67.9,LRARC=0 S LRARC=$O(^LAB(95.11,"O",2,LRART,LRARC))
  1. I LRARC="" D ERROR
  1. DIV ;
  1. K DIC
  1. S DIC("A")="Select Division: "
  1. S DIC("B")=$P($G(^DIC(4,+DUZ(2),0)),U)
  1. S DIC=4,DIC(0)="AQENMZ"
  1. D ^DIC G:Y<1 EXIT S LRDA=Y,LRDA=$O(^LAR(67.99999,1,1,"B",+LRDA,0))
  1. MONTHS ;
  1. K DA,DIC
  1. S DA(1)=LRDA(1),DA=+LRDA,DIC(0)="AQEN"
  1. S DIC="^LAR(67.99999,"_DA(1)_",1,"_DA_",1,"
  1. S DIC("A")="Select Month: "
  1. F D ^DIC Q:Y<1 S LRRPTM(Y)=""
  1. I '$O(LRRPTM(0)) W !!?5,"Nothing Selected " G EXIT
  1. DATTYP ;
  1. K DIR
  1. S DIR(0)="S^1:All workload;2:LMIP reportable workload;3:Non-LMIP workload"
  1. S DIR("A")="Enter the number for the workload data to report"
  1. S DIR("B")=1
  1. S DIR("?")=" reportable for LMIP."
  1. S DIR("?",1)="1 - will include all workload data in the file, period."
  1. S DIR("?",2)=" "
  1. S DIR("?",3)="2 - will include only workload which is associated with a"
  1. S DIR("?",4)=" WKLD code that is marked as reportable for LMIP uses."
  1. S DIR("?",5)=" "
  1. S DIR("?",6)="3 - will include any workload which is not marked as"
  1. D ^DIR G:($D(DTOUT))!($D(DUOUT)) EXIT
  1. S LRDTYP=Y,LRHD0=$S(LRDTYP=1:"ALL WORKLOAD DATA FOR: ",LRDTYP=2:"LMIP WORKLOAD DATA FOR: ",1:"Non-LMIP WORKLOAD DATA FOR: ")
  1. REPTYP ;
  1. K DIR S DIR(0)="S^1:CDR report"
  1. S:LRDTYP=2 DIR(0)=DIR(0)_";2:LMIP report;3:CDR and LMIP reports"
  1. S DIR("A")="Enter the number for the report(s) you want printed"
  1. S DIR("B")=1
  1. D ^DIR G:($D(DTOUT))!($D(DUOUT)) EXIT S LRRTYP=Y
  1. DETSUM ;
  1. I (LRRTYP=1)!(LRRTYP=3) D G:$G(LREND) EXIT
  1. .W !!,"CDR format selection: "
  1. .K DIR,X,Y S DIR(0)="S^1:Detailed report;2:Summary report"
  1. .D ^DIR
  1. .I ($D(DTOUT))!($D(DUOUT)) S LREND=1 Q
  1. .S LRRPT=+X
  1. G ^LRARCAM5
  1. EXIT ;
  1. D ^%ZISC
  1. D KILLALL^LRARCU
  1. K ^TMP($J,"RCS14-4"),^TMP($J,"LMIP"),LRERR
  1. Q
  1. ERROR W !!,$C(7),"This file does not have an archival activity with the status of archived."
  1. W !,"Therefore this file may be incomplete if archiving is still in progress."
  1. W !!
  1. Q